Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions eventz-api/eventz.domain/Class1.cs

This file was deleted.

18 changes: 18 additions & 0 deletions eventz-api/eventz.domain/Entitites/Category.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Eventz.Domain.Entitites
{
public class Category
{
public int Id { get; set; }
public Guid CategoryToken { get; set; } = Guid.NewGuid();
public string Name { get; set; }

public string Description { get; set; }
public ICollection<Event> Events { get; set; }
}
}
28 changes: 28 additions & 0 deletions eventz-api/eventz.domain/Entitites/Event.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Eventz.Domain.Entitites
{
public class Event
{
public int Id { get; set; }
public Guid EventToken { get; set; } = Guid.NewGuid();
public string Name { get; set; }
public string Description { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public int Capacity { get; set; }
public bool IsPublic { get; set; }
public string OrganizerId { get; set; }
public int VenueId { get; set; }
public int CategoryId { get; set; }
public Venue venue { get; set; }
public Category category { get; set; }

public ICollection<EventRegistration> Registrations { get; set; }
public ICollection<Ticket> Tickets { get; set; }
}
}
20 changes: 20 additions & 0 deletions eventz-api/eventz.domain/Entitites/EventRegistration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Eventz.Domain.Entitites
{
public class EventRegistration
{
public int Id { get; set; }
public Guid EventRegistrationToken { get; set; } = Guid.NewGuid();
public string UserId { get; set; }
public string EventId { get; set; }
public DateTime RegisteredAt { get; set; }
public bool CheckedIn { get; set; }
public Event Event { get; set; }

}
}
19 changes: 19 additions & 0 deletions eventz-api/eventz.domain/Entitites/Ticket.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Eventz.Domain.Entitites
{
public class Ticket
{
public int Id { get; set; }
public Guid TicketToken { get; set; } = Guid.NewGuid();
public int EventId { get; set; }
public string Type { get; set; }
public decimal Price { get; set; }
public int Quantity { get; set; }
public Event Event { get; set; }
}
}
19 changes: 19 additions & 0 deletions eventz-api/eventz.domain/Entitites/Venue.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Eventz.Domain.Entitites
{
public class Venue
{
public int Id { get; set; }
public Guid VenueToken { get; set; } = Guid.NewGuid();
public string Name { get; set; }
public string Address { get; set; }
public string City { get; set; }
public int Capacity { get; set; }
public ICollection<Event> Events { get; set; }
}
}