From cd60afe656894f79fc86c5c88fc5caa8fa59ae6a Mon Sep 17 00:00:00 2001 From: Stian Forren Date: Fri, 22 Aug 2025 15:54:19 +0200 Subject: [PATCH 1/4] progress --- .gitignore | 1 + .../DOTs/CustomerDTOs/CustomerGet.cs | 22 + .../DOTs/CustomerDTOs/CustomerPost.cs | 11 + .../DOTs/CustomerDTOs/CustomerPut.cs | 9 + .../DOTs/CustomerDTOs/MovieNoScreenings.cs | 20 + .../DOTs/CustomerDTOs/ScreeningNoTicket.cs | 20 + .../DOTs/CustomerDTOs/TicketNoCustomer.cs | 13 + .../DOTs/MovieDTOs/CustomerNoTicket.cs | 18 + .../DOTs/MovieDTOs/MovieGet.cs | 27 + .../DOTs/MovieDTOs/ScreeningsNoMovie.cs | 20 + .../DOTs/MovieDTOs/TicketNoScreening.cs | 13 + .../Data/CinemaContext.cs | 20 +- .../api-cinema-challenge/Data/Seeder.cs | 174 ++ .../Endpoints/CustomerAPI.cs | 66 + .../Endpoints/MovieAPI.cs | 24 + .../20250822083522_First.Designer.cs | 1924 +++++++++++++++++ .../Migrations/20250822083522_First.cs | 427 ++++ .../Migrations/CinemaContextModelSnapshot.cs | 1921 ++++++++++++++++ .../api-cinema-challenge/Models/Customer.cs | 31 + .../api-cinema-challenge/Models/Movie.cs | 24 + .../api-cinema-challenge/Models/Screening.cs | 26 + .../api-cinema-challenge/Models/Ticket.cs | 25 + .../api-cinema-challenge/Program.cs | 13 + .../Repository/GenericRepository.cs | 60 + .../Repository/IEntity.cs | 7 + .../Repository/IGenericRepository.cs | 16 + .../api-cinema-challenge.csproj | 5 +- .../appsettings.example.json | 12 - 28 files changed, 4932 insertions(+), 17 deletions(-) create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGet.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerPost.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerPut.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/MovieNoScreenings.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/ScreeningNoTicket.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/TicketNoCustomer.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/CustomerNoTicket.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MovieGet.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/ScreeningsNoMovie.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/TicketNoScreening.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Data/Seeder.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.Designer.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Models/Customer.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Models/Movie.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Models/Screening.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Models/Ticket.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Repository/GenericRepository.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Repository/IEntity.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Repository/IGenericRepository.cs diff --git a/.gitignore b/.gitignore index cf332414..87d206a2 100644 --- a/.gitignore +++ b/.gitignore @@ -368,3 +368,4 @@ FodyWeavers.xsd */**/bin/Release */**/obj/Debug */**/obj/Release +*/Migrations \ No newline at end of file diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGet.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGet.cs new file mode 100644 index 00000000..e47ddd3d --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGet.cs @@ -0,0 +1,22 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.CustomerDTOs +{ + public class CustomerGet + { + public int Id { get; set; } + public string Name { get; set; } + public string Email { get; set; } + public string Phone { get; set; } + public IEnumerable Tickets { get; set; } = new List(); + + public CustomerGet(Customer customer) + { + Id = customer.Id; + Name = customer.Name; + Email = customer.Email; + Phone = customer.Phone; + Tickets = customer.Tickets.Select(x => new TicketNoCustomer(x)); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerPost.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerPost.cs new file mode 100644 index 00000000..1f14f9c2 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerPost.cs @@ -0,0 +1,11 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.CustomerDTOs +{ + public class CustomerPost + { + public string Name { get; set; } + public string Email { get; set; } + public string Phone { get; set; } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerPut.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerPut.cs new file mode 100644 index 00000000..167a7a66 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerPut.cs @@ -0,0 +1,9 @@ +namespace api_cinema_challenge.DOTs.CustomerDTOs +{ + public class CustomerPut + { + public string? Name { get; set; } + public string? Email { get; set; } + public string? Phone { get; set; } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/MovieNoScreenings.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/MovieNoScreenings.cs new file mode 100644 index 00000000..6ad85b11 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/MovieNoScreenings.cs @@ -0,0 +1,20 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.CustomerDTOs +{ + public class MovieNoScreenings + { + public string Title { get; set; } + public string Description { get; set; } + public string Rating { get; set; } + public int RunTimeMins { get; set; } + + public MovieNoScreenings(Movie movie) + { + Title = movie.Title; + Description = movie.Description; + Rating = movie.Rating; + RunTimeMins = movie.RunTimeMins; + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/ScreeningNoTicket.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/ScreeningNoTicket.cs new file mode 100644 index 00000000..b8efa2c6 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/ScreeningNoTicket.cs @@ -0,0 +1,20 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.CustomerDTOs +{ + public class ScreeningNoTicket + { + public int ScreenNumber { get; set; } + public int Capacity { get; set; } + public DateTime StartsAt { get; set; } + public MovieNoScreenings Movie { get; set; } + + public ScreeningNoTicket(Screening screening) + { + ScreenNumber = screening.ScreenNumber; + Capacity = screening.Capacity; + StartsAt = screening.StartsAt; + Movie = new MovieNoScreenings(screening.Movie); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/TicketNoCustomer.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/TicketNoCustomer.cs new file mode 100644 index 00000000..e40aeb3e --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/TicketNoCustomer.cs @@ -0,0 +1,13 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.CustomerDTOs +{ + public class TicketNoCustomer + { + public ScreeningNoTicket Screening { get; set; } + public TicketNoCustomer(Ticket ticket) + { + Screening = new ScreeningNoTicket(ticket.Screening); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/CustomerNoTicket.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/CustomerNoTicket.cs new file mode 100644 index 00000000..eeb2789f --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/CustomerNoTicket.cs @@ -0,0 +1,18 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.MovieDTOs +{ + public class CustomerNoTicket + { + public string Name { get; set; } + public string Email { get; set; } + public string Phone { get; set; } + public CustomerNoTicket(Customer customer) + { + Name = customer.Name; + Email = customer.Email; + Phone = customer.Phone; + + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MovieGet.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MovieGet.cs new file mode 100644 index 00000000..33618ad8 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MovieGet.cs @@ -0,0 +1,27 @@ +using api_cinema_challenge.DOTs.CustomerDTOs; +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.MovieDTOs +{ + public class MovieGet + { + public int Id { get; set; } + public string Title { get; set; } + public string Description { get; set; } + public string Rating { get; set; } + public int RunTimeMins { get; set; } + + public IEnumerable Screenings { get; set; } = new List(); + + public MovieGet(Movie movie) + { + Id = movie.Id; + Title = movie.Title; + Description = movie.Description; + Rating = movie.Rating; + RunTimeMins = movie.RunTimeMins; + Screenings = movie.Screenings.Select(x => new ScreeningsNoMovie(x)); + } + + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/ScreeningsNoMovie.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/ScreeningsNoMovie.cs new file mode 100644 index 00000000..df2c79a5 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/ScreeningsNoMovie.cs @@ -0,0 +1,20 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.MovieDTOs +{ + public class ScreeningsNoMovie + { + public int ScreenNumber { get; set; } + public int Capacity { get; set; } + public DateTime StartsAt { get; set; } + public IEnumerable Tickets { get; set; } = new List(); + + public ScreeningsNoMovie(Screening screening) + { + ScreenNumber = screening.ScreenNumber; + Capacity = screening.Capacity; + StartsAt = screening.StartsAt; + Tickets = screening.Tickets.Select(t => new TicketNoScreening(t)); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/TicketNoScreening.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/TicketNoScreening.cs new file mode 100644 index 00000000..96ec7961 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/TicketNoScreening.cs @@ -0,0 +1,13 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.MovieDTOs +{ + public class TicketNoScreening + { + public CustomerNoTicket Customer { get; set; } + public TicketNoScreening(Ticket ticket) + { + Customer = new CustomerNoTicket(ticket.Customer); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Data/CinemaContext.cs b/api-cinema-challenge/api-cinema-challenge/Data/CinemaContext.cs index ad4fe854..fc2b3d27 100644 --- a/api-cinema-challenge/api-cinema-challenge/Data/CinemaContext.cs +++ b/api-cinema-challenge/api-cinema-challenge/Data/CinemaContext.cs @@ -1,4 +1,5 @@ -using Microsoft.EntityFrameworkCore; +using api_cinema_challenge.Models; +using Microsoft.EntityFrameworkCore; using Newtonsoft.Json.Linq; namespace api_cinema_challenge.Data @@ -20,7 +21,24 @@ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) protected override void OnModelCreating(ModelBuilder modelBuilder) { + Seeder seeder = new Seeder(); + modelBuilder.Entity().HasMany(c => c.Tickets).WithOne(c => c.Customer).HasForeignKey(c => c.CustomerId); + modelBuilder.Entity().HasMany(m => m.Screenings).WithOne(s => s.Movie).HasForeignKey(m => m.MovieId); + modelBuilder.Entity().HasOne(t => t.Screening).WithMany(s => s.Tickets).HasForeignKey(t => t.ScreeningId); + + modelBuilder.Entity().HasData(seeder.Customers); + modelBuilder.Entity().HasData(seeder.Movies); + modelBuilder.Entity().HasData(seeder.tickets); + modelBuilder.Entity().HasData(seeder.Screenings); + + } + public DbSet Customers { get; set; } + public DbSet Movies { get; set; } + public DbSet Screenings { get; set; } + public DbSet Tickets { get; set; } + + } } diff --git a/api-cinema-challenge/api-cinema-challenge/Data/Seeder.cs b/api-cinema-challenge/api-cinema-challenge/Data/Seeder.cs new file mode 100644 index 00000000..e778fda6 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Data/Seeder.cs @@ -0,0 +1,174 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.Data +{ + public class Seeder + + { + private List _firstnames = new List() + { + "Audrey", + "Donald", + "Elvis", + "Barack", + "Oprah", + "Jimi", + "Mick", + "Kate", + "Charles", + "Kate" + }; + private List _lastnames = new List() + { + "Hepburn", + "Trump", + "Presley", + "Obama", + "Winfrey", + "Hendrix", + "Jagger", + "Winslet", + "Windsor", + "Middleton" + + }; + private List _domain = new List() + { + "bbc.co.uk", + "google.com", + "theworld.ca", + "something.com", + "tesla.com", + "nasa.org.us", + "gov.us", + "gov.gr", + "gov.nl", + "gov.ru" + }; + private List _firstword = new List() + { + "The", + "Two", + "Several", + "Fifteen", + "A bunch of", + "An army of", + "A herd of" + + + }; + private List _secondword = new List() + { + "Orange", + "Purple", + "Large", + "Microscopic", + "Green", + "Transparent", + "Rose Smelling", + "Bitter" + }; + private List _thirdword = new List() + { + "Buildings", + "Cars", + "Planets", + "Houses", + "Flowers", + "Leopards" + }; + private List _ratings = new List() + { + "All", + "years 6+", + "years 11+", + "years 16+", + "years 18+" + }; + private List _startAt = new List() + { + DateTime.Parse("2025-01-05 09:15:00").ToUniversalTime(), + DateTime.Parse("2025-01-12 14:30:00").ToUniversalTime(), + DateTime.Parse("2025-02-03T08:45:00").ToUniversalTime(), + DateTime.Parse("2025-02-21T19:00:00").ToUniversalTime(), + DateTime.Parse("2025-03-10T07:20:00").ToUniversalTime(), + DateTime.Parse("2025-03-25T16:50:00").ToUniversalTime(), + DateTime.Parse("2025-04-02T12:05:00").ToUniversalTime(), + DateTime.Parse("2025-04-18T21:30:00").ToUniversalTime(), + DateTime.Parse("2025-05-01T10:10:00").ToUniversalTime(), + DateTime.Parse("2025-05-14T18:45:00").ToUniversalTime(), + DateTime.Parse("2025-06-07T06:25:00").ToUniversalTime(), + DateTime.Parse("2025-06-22T15:40:00").ToUniversalTime(), + DateTime.Parse("2025-07-03T11:55:00").ToUniversalTime(), + DateTime.Parse("2025-07-19T20:15:00").ToUniversalTime(), + DateTime.Parse("2025-08-01T13:30:00").ToUniversalTime() + }; + + + + private List _customers = new List(); + private List _movies = new List(); + private List _screenings = new List(); + private List _tickets = new List(); + + public Seeder() + { + + Random customerRandom = new Random(); + Random movieRandom = new Random(); + Random ticketRandom = new Random(); + Random screeningRandom = new Random(); + + + + for (int x = 1; x < 50; x++) + { + Customer customer = new Customer(); + customer.Id = x; + customer.Name = $"{_firstnames[customerRandom.Next(_firstnames.Count)]} {_lastnames[customerRandom.Next(_lastnames.Count)]}"; + customer.Email = $"{customer.Name}@{_domain[customerRandom.Next(_domain.Count)]}".ToLower(); + customer.Phone = ""+movieRandom.Next(10000000, 99999999); + _customers.Add(customer); + } + + + for (int y = 1; y < 5; y++) + { + Movie movie = new Movie(); + movie.Id = y; + movie.Title = $"{_firstword[movieRandom.Next(_firstword.Count)]} {_secondword[movieRandom.Next(_secondword.Count)]} {_thirdword[movieRandom.Next(_thirdword.Count)]}"; + movie.Rating = _ratings[movieRandom.Next(_ratings.Count)]; + movie.Description = "Very funny"; + movie.RunTimeMins = movieRandom.Next(70,150); + _movies.Add(movie); + } + + for (int z = 1; z < 20; z++) + { + Screening screening = new Screening(); + screening.Id = z; + screening.ScreenNumber = screeningRandom.Next(5); + screening.Capacity = screeningRandom.Next(25, 100); + screening.StartsAt = _startAt[screeningRandom.Next(_startAt.Count)]; + screening.MovieId = _movies[movieRandom.Next(_movies.Count)].Id; + _screenings.Add(screening); + } + + for (int a = 1; a < 200; a++) + { + Ticket ticket = new Ticket(); + ticket.Id = a; + ticket.ScreeningId = _screenings[screeningRandom.Next(_screenings.Count)].Id; + ticket.CustomerId = _customers[screeningRandom.Next(_customers.Count)].Id; + _tickets.Add(ticket); + } + + + } + public List Customers { get { return _customers; } } + public List Movies { get { return _movies; } } + public List tickets { get { return _tickets; } } + public List Screenings { get { return _screenings; } } + } + } + diff --git a/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs b/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs new file mode 100644 index 00000000..204e4160 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs @@ -0,0 +1,66 @@ +using api_cinema_challenge.DOTs.CustomerDTOs; +using api_cinema_challenge.Models; +using api_cinema_challenge.Repository; +using Microsoft.EntityFrameworkCore; + + +namespace api_cinema_challenge.Endpoints +{ + public static class CustomerAPI + { + public static void ConfigueCustomer(this WebApplication app) + { + var customerGroup = app.MapGroup("customer"); + + customerGroup.MapGet("/", GetCustomers); + customerGroup.MapGet("/customer{id}", GetCustomerById); + customerGroup.MapPost("/", CreateCustomer); + customerGroup.MapPut("/customer{id}", UpdateCustomer); + customerGroup.MapDelete("/customer{id}", DeleteCustomer); + } + + private static async Task GetCustomers(IGenericRepository repository) + { + var response = await repository.GetWithIncludes(q => q.Include(p => p.Tickets).ThenInclude(t => t.Screening).ThenInclude(s => s.Movie)); + var result = response.Select(c => new CustomerGet(c)); + return TypedResults.Ok(result); + } + + private static async Task GetCustomerById(IGenericRepository repository, int id) + { + var response = await repository.GetByIdWithIncludes(q => q.Where(i => i.Id == id) + .Include(p => p.Tickets) + .ThenInclude(t => t.Screening) + .ThenInclude(s => s.Movie).FirstOrDefaultAsync().Result); + var result = new CustomerGet(response); + + return TypedResults.Ok(result); + } + + private static async Task CreateCustomer(IGenericRepository repository, CustomerPost newCustomer) + { + Customer customer = new Customer(newCustomer); + var response = await repository.Create(customer); + return TypedResults.Created("", newCustomer); + } + + private static async Task UpdateCustomer(IGenericRepository repository, int id, CustomerPut model) + { + Customer entity = await repository.GetByIdWithIncludes(q => q.Where(i => i.Id == id) + .Include(p => p.Tickets) + .ThenInclude(t => t.Screening) + .ThenInclude(s => s.Movie).FirstOrDefaultAsync().Result); + if (model.Name is not null) entity.Name = model.Name; + if (model.Email is not null) entity.Email = model.Email; + if (model.Phone is not null) entity.Phone = model.Phone; + var response = await repository.Update(entity); + return TypedResults.Created("",new CustomerGet(response)); + } + private static async Task DeleteCustomer(IGenericRepository repository, int id) + { + Customer entity = await repository.GetByIdWithIncludes(q => q.Where(i => i.Id == id).FirstOrDefaultAsync().Result); + repository.Delete(entity); + return TypedResults.Ok(entity); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs b/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs new file mode 100644 index 00000000..eaa73698 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs @@ -0,0 +1,24 @@ +using api_cinema_challenge.DOTs.MovieDTOs; +using api_cinema_challenge.Models; +using api_cinema_challenge.Repository; +using Microsoft.EntityFrameworkCore; + +namespace api_cinema_challenge.Endpoints +{ + public static class MovieAPI + { + public static void ConfigueMovie(this WebApplication app) + { + var customerGroup = app.MapGroup("movie"); + + customerGroup.MapGet("/", GetMovies); + } + + private static async Task GetMovies(IGenericRepository repository) + { + var response = await repository.GetWithIncludes(m => m.Include(s => s.Screenings).ThenInclude(t => t.Tickets).ThenInclude(c => c.Customer)); + var result = response.Select(m => new MovieGet(m)); + return TypedResults.Ok(result); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.Designer.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.Designer.cs new file mode 100644 index 00000000..a16650d3 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.Designer.cs @@ -0,0 +1,1924 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; +using api_cinema_challenge.Data; + +#nullable disable + +namespace api_cinema_challenge.Migrations +{ + [DbContext(typeof(CinemaContext))] + [Migration("20250822083522_First")] + partial class First + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "9.0.8") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("api_cinema_challenge.Models.Customer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("customer_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Email") + .IsRequired() + .HasColumnType("text") + .HasColumnName("email"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text") + .HasColumnName("name"); + + b.Property("Phone") + .IsRequired() + .HasColumnType("text") + .HasColumnName("phone"); + + b.HasKey("Id"); + + b.ToTable("Customers"); + + b.HasData( + new + { + Id = 1, + Email = "mick winfrey@gov.gr", + Name = "Mick Winfrey", + Phone = "52368274" + }, + new + { + Id = 2, + Email = "charles winfrey@gov.nl", + Name = "Charles Winfrey", + Phone = "79181350" + }, + new + { + Id = 3, + Email = "jimi hendrix@bbc.co.uk", + Name = "Jimi Hendrix", + Phone = "72502892" + }, + new + { + Id = 4, + Email = "jimi hepburn@gov.ru", + Name = "Jimi Hepburn", + Phone = "15545519" + }, + new + { + Id = 5, + Email = "audrey hepburn@theworld.ca", + Name = "Audrey Hepburn", + Phone = "92238414" + }, + new + { + Id = 6, + Email = "kate trump@bbc.co.uk", + Name = "Kate Trump", + Phone = "86190574" + }, + new + { + Id = 7, + Email = "kate obama@google.com", + Name = "Kate Obama", + Phone = "18975724" + }, + new + { + Id = 8, + Email = "jimi winslet@gov.nl", + Name = "Jimi Winslet", + Phone = "92579632" + }, + new + { + Id = 9, + Email = "mick hepburn@gov.ru", + Name = "Mick Hepburn", + Phone = "67334813" + }, + new + { + Id = 10, + Email = "kate hendrix@tesla.com", + Name = "Kate Hendrix", + Phone = "82550950" + }, + new + { + Id = 11, + Email = "oprah presley@gov.gr", + Name = "Oprah Presley", + Phone = "52997360" + }, + new + { + Id = 12, + Email = "elvis hepburn@google.com", + Name = "Elvis Hepburn", + Phone = "64207390" + }, + new + { + Id = 13, + Email = "oprah jagger@gov.gr", + Name = "Oprah Jagger", + Phone = "91111243" + }, + new + { + Id = 14, + Email = "elvis hendrix@gov.us", + Name = "Elvis Hendrix", + Phone = "13823444" + }, + new + { + Id = 15, + Email = "kate hepburn@gov.ru", + Name = "Kate Hepburn", + Phone = "97284220" + }, + new + { + Id = 16, + Email = "mick jagger@bbc.co.uk", + Name = "Mick Jagger", + Phone = "28858754" + }, + new + { + Id = 17, + Email = "elvis winfrey@gov.ru", + Name = "Elvis Winfrey", + Phone = "30038727" + }, + new + { + Id = 18, + Email = "barack presley@tesla.com", + Name = "Barack Presley", + Phone = "99825705" + }, + new + { + Id = 19, + Email = "kate hepburn@gov.nl", + Name = "Kate Hepburn", + Phone = "74139655" + }, + new + { + Id = 20, + Email = "mick jagger@gov.us", + Name = "Mick Jagger", + Phone = "95805889" + }, + new + { + Id = 21, + Email = "mick presley@something.com", + Name = "Mick Presley", + Phone = "48857519" + }, + new + { + Id = 22, + Email = "charles jagger@gov.nl", + Name = "Charles Jagger", + Phone = "17920562" + }, + new + { + Id = 23, + Email = "barack trump@tesla.com", + Name = "Barack Trump", + Phone = "26069406" + }, + new + { + Id = 24, + Email = "kate winslet@gov.nl", + Name = "Kate Winslet", + Phone = "69787774" + }, + new + { + Id = 25, + Email = "jimi obama@bbc.co.uk", + Name = "Jimi Obama", + Phone = "29989532" + }, + new + { + Id = 26, + Email = "elvis obama@gov.nl", + Name = "Elvis Obama", + Phone = "44895432" + }, + new + { + Id = 27, + Email = "oprah hepburn@gov.nl", + Name = "Oprah Hepburn", + Phone = "89556044" + }, + new + { + Id = 28, + Email = "elvis windsor@gov.gr", + Name = "Elvis Windsor", + Phone = "60390346" + }, + new + { + Id = 29, + Email = "charles windsor@theworld.ca", + Name = "Charles Windsor", + Phone = "44104543" + }, + new + { + Id = 30, + Email = "donald hendrix@gov.ru", + Name = "Donald Hendrix", + Phone = "25105264" + }, + new + { + Id = 31, + Email = "elvis obama@something.com", + Name = "Elvis Obama", + Phone = "52810651" + }, + new + { + Id = 32, + Email = "barack winfrey@google.com", + Name = "Barack Winfrey", + Phone = "34881251" + }, + new + { + Id = 33, + Email = "mick obama@tesla.com", + Name = "Mick Obama", + Phone = "36227999" + }, + new + { + Id = 34, + Email = "oprah hepburn@tesla.com", + Name = "Oprah Hepburn", + Phone = "73319625" + }, + new + { + Id = 35, + Email = "kate windsor@something.com", + Name = "Kate Windsor", + Phone = "61318402" + }, + new + { + Id = 36, + Email = "audrey presley@tesla.com", + Name = "Audrey Presley", + Phone = "39504124" + }, + new + { + Id = 37, + Email = "kate presley@google.com", + Name = "Kate Presley", + Phone = "16265734" + }, + new + { + Id = 38, + Email = "donald hendrix@google.com", + Name = "Donald Hendrix", + Phone = "35991180" + }, + new + { + Id = 39, + Email = "mick hepburn@bbc.co.uk", + Name = "Mick Hepburn", + Phone = "49117273" + }, + new + { + Id = 40, + Email = "oprah winfrey@gov.ru", + Name = "Oprah Winfrey", + Phone = "72634505" + }, + new + { + Id = 41, + Email = "jimi trump@gov.us", + Name = "Jimi Trump", + Phone = "96850307" + }, + new + { + Id = 42, + Email = "jimi winslet@gov.gr", + Name = "Jimi Winslet", + Phone = "27324349" + }, + new + { + Id = 43, + Email = "audrey jagger@tesla.com", + Name = "Audrey Jagger", + Phone = "91669517" + }, + new + { + Id = 44, + Email = "audrey obama@nasa.org.us", + Name = "Audrey Obama", + Phone = "51414027" + }, + new + { + Id = 45, + Email = "kate jagger@gov.us", + Name = "Kate Jagger", + Phone = "52606573" + }, + new + { + Id = 46, + Email = "audrey obama@something.com", + Name = "Audrey Obama", + Phone = "41214230" + }, + new + { + Id = 47, + Email = "kate obama@gov.us", + Name = "Kate Obama", + Phone = "11348879" + }, + new + { + Id = 48, + Email = "audrey presley@something.com", + Name = "Audrey Presley", + Phone = "87270053" + }, + new + { + Id = 49, + Email = "kate hendrix@tesla.com", + Name = "Kate Hendrix", + Phone = "36685672" + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Movie", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("movie_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Description") + .IsRequired() + .HasColumnType("text") + .HasColumnName("description"); + + b.Property("Rating") + .IsRequired() + .HasColumnType("text") + .HasColumnName("rating"); + + b.Property("RunTimeMins") + .HasColumnType("integer") + .HasColumnName("runtime_mins"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.HasKey("Id"); + + b.ToTable("movie"); + + b.HasData( + new + { + Id = 1, + Description = "Very funny", + Rating = "years 16+", + RunTimeMins = 146, + Title = "The Transparent Flowers" + }, + new + { + Id = 2, + Description = "Very funny", + Rating = "years 6+", + RunTimeMins = 117, + Title = "Two Microscopic Houses" + }, + new + { + Id = 3, + Description = "Very funny", + Rating = "years 11+", + RunTimeMins = 129, + Title = "A herd of Orange Leopards" + }, + new + { + Id = 4, + Description = "Very funny", + Rating = "years 16+", + RunTimeMins = 80, + Title = "Several Microscopic Houses" + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("screening_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Capacity") + .HasColumnType("integer") + .HasColumnName("capacity"); + + b.Property("MovieId") + .HasColumnType("integer") + .HasColumnName("movie_id"); + + b.Property("ScreenNumber") + .HasColumnType("integer") + .HasColumnName("screen_number"); + + b.Property("StartsAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("starts_at"); + + b.HasKey("Id"); + + b.HasIndex("MovieId"); + + b.ToTable("screenings"); + + b.HasData( + new + { + Id = 1, + Capacity = 67, + MovieId = 2, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 2, + Capacity = 46, + MovieId = 3, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 3, + Capacity = 27, + MovieId = 2, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 4, + Capacity = 98, + MovieId = 3, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 5, + Capacity = 43, + MovieId = 3, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 6, + Capacity = 31, + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 7, + Capacity = 66, + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 8, + Capacity = 63, + MovieId = 1, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 9, + Capacity = 47, + MovieId = 3, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 10, + Capacity = 36, + MovieId = 2, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 11, + Capacity = 81, + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 12, + Capacity = 28, + MovieId = 1, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 13, + Capacity = 80, + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 14, + Capacity = 57, + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 15, + Capacity = 33, + MovieId = 3, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 16, + Capacity = 94, + MovieId = 1, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 17, + Capacity = 28, + MovieId = 2, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 18, + Capacity = 52, + MovieId = 3, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 19, + Capacity = 75, + MovieId = 1, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Ticket", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("ticket_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CustomerId") + .HasColumnType("integer") + .HasColumnName("customer_id"); + + b.Property("ScreeningId") + .HasColumnType("integer") + .HasColumnName("screening_id"); + + b.HasKey("Id"); + + b.HasIndex("CustomerId"); + + b.HasIndex("ScreeningId"); + + b.ToTable("tickets"); + + b.HasData( + new + { + Id = 1, + CustomerId = 43, + ScreeningId = 14 + }, + new + { + Id = 2, + CustomerId = 1, + ScreeningId = 5 + }, + new + { + Id = 3, + CustomerId = 40, + ScreeningId = 9 + }, + new + { + Id = 4, + CustomerId = 10, + ScreeningId = 9 + }, + new + { + Id = 5, + CustomerId = 26, + ScreeningId = 5 + }, + new + { + Id = 6, + CustomerId = 26, + ScreeningId = 9 + }, + new + { + Id = 7, + CustomerId = 45, + ScreeningId = 5 + }, + new + { + Id = 8, + CustomerId = 47, + ScreeningId = 9 + }, + new + { + Id = 9, + CustomerId = 10, + ScreeningId = 11 + }, + new + { + Id = 10, + CustomerId = 31, + ScreeningId = 15 + }, + new + { + Id = 11, + CustomerId = 43, + ScreeningId = 8 + }, + new + { + Id = 12, + CustomerId = 2, + ScreeningId = 3 + }, + new + { + Id = 13, + CustomerId = 18, + ScreeningId = 14 + }, + new + { + Id = 14, + CustomerId = 15, + ScreeningId = 15 + }, + new + { + Id = 15, + CustomerId = 29, + ScreeningId = 16 + }, + new + { + Id = 16, + CustomerId = 46, + ScreeningId = 8 + }, + new + { + Id = 17, + CustomerId = 30, + ScreeningId = 2 + }, + new + { + Id = 18, + CustomerId = 3, + ScreeningId = 19 + }, + new + { + Id = 19, + CustomerId = 48, + ScreeningId = 7 + }, + new + { + Id = 20, + CustomerId = 41, + ScreeningId = 9 + }, + new + { + Id = 21, + CustomerId = 3, + ScreeningId = 14 + }, + new + { + Id = 22, + CustomerId = 16, + ScreeningId = 5 + }, + new + { + Id = 23, + CustomerId = 14, + ScreeningId = 4 + }, + new + { + Id = 24, + CustomerId = 39, + ScreeningId = 4 + }, + new + { + Id = 25, + CustomerId = 7, + ScreeningId = 19 + }, + new + { + Id = 26, + CustomerId = 32, + ScreeningId = 14 + }, + new + { + Id = 27, + CustomerId = 35, + ScreeningId = 7 + }, + new + { + Id = 28, + CustomerId = 22, + ScreeningId = 12 + }, + new + { + Id = 29, + CustomerId = 21, + ScreeningId = 7 + }, + new + { + Id = 30, + CustomerId = 2, + ScreeningId = 18 + }, + new + { + Id = 31, + CustomerId = 44, + ScreeningId = 4 + }, + new + { + Id = 32, + CustomerId = 42, + ScreeningId = 12 + }, + new + { + Id = 33, + CustomerId = 48, + ScreeningId = 2 + }, + new + { + Id = 34, + CustomerId = 5, + ScreeningId = 12 + }, + new + { + Id = 35, + CustomerId = 37, + ScreeningId = 16 + }, + new + { + Id = 36, + CustomerId = 37, + ScreeningId = 10 + }, + new + { + Id = 37, + CustomerId = 5, + ScreeningId = 18 + }, + new + { + Id = 38, + CustomerId = 9, + ScreeningId = 14 + }, + new + { + Id = 39, + CustomerId = 10, + ScreeningId = 3 + }, + new + { + Id = 40, + CustomerId = 21, + ScreeningId = 16 + }, + new + { + Id = 41, + CustomerId = 5, + ScreeningId = 17 + }, + new + { + Id = 42, + CustomerId = 11, + ScreeningId = 15 + }, + new + { + Id = 43, + CustomerId = 49, + ScreeningId = 7 + }, + new + { + Id = 44, + CustomerId = 30, + ScreeningId = 5 + }, + new + { + Id = 45, + CustomerId = 45, + ScreeningId = 18 + }, + new + { + Id = 46, + CustomerId = 18, + ScreeningId = 19 + }, + new + { + Id = 47, + CustomerId = 27, + ScreeningId = 5 + }, + new + { + Id = 48, + CustomerId = 38, + ScreeningId = 7 + }, + new + { + Id = 49, + CustomerId = 1, + ScreeningId = 16 + }, + new + { + Id = 50, + CustomerId = 34, + ScreeningId = 5 + }, + new + { + Id = 51, + CustomerId = 4, + ScreeningId = 2 + }, + new + { + Id = 52, + CustomerId = 33, + ScreeningId = 11 + }, + new + { + Id = 53, + CustomerId = 7, + ScreeningId = 19 + }, + new + { + Id = 54, + CustomerId = 14, + ScreeningId = 12 + }, + new + { + Id = 55, + CustomerId = 49, + ScreeningId = 5 + }, + new + { + Id = 56, + CustomerId = 8, + ScreeningId = 11 + }, + new + { + Id = 57, + CustomerId = 43, + ScreeningId = 4 + }, + new + { + Id = 58, + CustomerId = 32, + ScreeningId = 6 + }, + new + { + Id = 59, + CustomerId = 40, + ScreeningId = 2 + }, + new + { + Id = 60, + CustomerId = 38, + ScreeningId = 12 + }, + new + { + Id = 61, + CustomerId = 29, + ScreeningId = 3 + }, + new + { + Id = 62, + CustomerId = 24, + ScreeningId = 4 + }, + new + { + Id = 63, + CustomerId = 11, + ScreeningId = 4 + }, + new + { + Id = 64, + CustomerId = 6, + ScreeningId = 13 + }, + new + { + Id = 65, + CustomerId = 4, + ScreeningId = 13 + }, + new + { + Id = 66, + CustomerId = 42, + ScreeningId = 8 + }, + new + { + Id = 67, + CustomerId = 48, + ScreeningId = 16 + }, + new + { + Id = 68, + CustomerId = 15, + ScreeningId = 12 + }, + new + { + Id = 69, + CustomerId = 18, + ScreeningId = 13 + }, + new + { + Id = 70, + CustomerId = 9, + ScreeningId = 19 + }, + new + { + Id = 71, + CustomerId = 47, + ScreeningId = 6 + }, + new + { + Id = 72, + CustomerId = 36, + ScreeningId = 4 + }, + new + { + Id = 73, + CustomerId = 46, + ScreeningId = 6 + }, + new + { + Id = 74, + CustomerId = 27, + ScreeningId = 19 + }, + new + { + Id = 75, + CustomerId = 21, + ScreeningId = 19 + }, + new + { + Id = 76, + CustomerId = 13, + ScreeningId = 9 + }, + new + { + Id = 77, + CustomerId = 9, + ScreeningId = 13 + }, + new + { + Id = 78, + CustomerId = 1, + ScreeningId = 12 + }, + new + { + Id = 79, + CustomerId = 5, + ScreeningId = 15 + }, + new + { + Id = 80, + CustomerId = 35, + ScreeningId = 14 + }, + new + { + Id = 81, + CustomerId = 43, + ScreeningId = 14 + }, + new + { + Id = 82, + CustomerId = 1, + ScreeningId = 10 + }, + new + { + Id = 83, + CustomerId = 26, + ScreeningId = 18 + }, + new + { + Id = 84, + CustomerId = 47, + ScreeningId = 2 + }, + new + { + Id = 85, + CustomerId = 3, + ScreeningId = 4 + }, + new + { + Id = 86, + CustomerId = 35, + ScreeningId = 2 + }, + new + { + Id = 87, + CustomerId = 6, + ScreeningId = 19 + }, + new + { + Id = 88, + CustomerId = 7, + ScreeningId = 14 + }, + new + { + Id = 89, + CustomerId = 12, + ScreeningId = 15 + }, + new + { + Id = 90, + CustomerId = 12, + ScreeningId = 19 + }, + new + { + Id = 91, + CustomerId = 7, + ScreeningId = 17 + }, + new + { + Id = 92, + CustomerId = 8, + ScreeningId = 14 + }, + new + { + Id = 93, + CustomerId = 19, + ScreeningId = 2 + }, + new + { + Id = 94, + CustomerId = 22, + ScreeningId = 18 + }, + new + { + Id = 95, + CustomerId = 2, + ScreeningId = 16 + }, + new + { + Id = 96, + CustomerId = 2, + ScreeningId = 4 + }, + new + { + Id = 97, + CustomerId = 13, + ScreeningId = 8 + }, + new + { + Id = 98, + CustomerId = 4, + ScreeningId = 9 + }, + new + { + Id = 99, + CustomerId = 12, + ScreeningId = 11 + }, + new + { + Id = 100, + CustomerId = 5, + ScreeningId = 6 + }, + new + { + Id = 101, + CustomerId = 16, + ScreeningId = 16 + }, + new + { + Id = 102, + CustomerId = 5, + ScreeningId = 14 + }, + new + { + Id = 103, + CustomerId = 45, + ScreeningId = 8 + }, + new + { + Id = 104, + CustomerId = 23, + ScreeningId = 15 + }, + new + { + Id = 105, + CustomerId = 15, + ScreeningId = 18 + }, + new + { + Id = 106, + CustomerId = 43, + ScreeningId = 4 + }, + new + { + Id = 107, + CustomerId = 45, + ScreeningId = 14 + }, + new + { + Id = 108, + CustomerId = 28, + ScreeningId = 12 + }, + new + { + Id = 109, + CustomerId = 31, + ScreeningId = 17 + }, + new + { + Id = 110, + CustomerId = 32, + ScreeningId = 18 + }, + new + { + Id = 111, + CustomerId = 36, + ScreeningId = 18 + }, + new + { + Id = 112, + CustomerId = 41, + ScreeningId = 16 + }, + new + { + Id = 113, + CustomerId = 22, + ScreeningId = 14 + }, + new + { + Id = 114, + CustomerId = 26, + ScreeningId = 18 + }, + new + { + Id = 115, + CustomerId = 29, + ScreeningId = 1 + }, + new + { + Id = 116, + CustomerId = 19, + ScreeningId = 18 + }, + new + { + Id = 117, + CustomerId = 18, + ScreeningId = 11 + }, + new + { + Id = 118, + CustomerId = 16, + ScreeningId = 19 + }, + new + { + Id = 119, + CustomerId = 7, + ScreeningId = 5 + }, + new + { + Id = 120, + CustomerId = 1, + ScreeningId = 7 + }, + new + { + Id = 121, + CustomerId = 36, + ScreeningId = 2 + }, + new + { + Id = 122, + CustomerId = 39, + ScreeningId = 12 + }, + new + { + Id = 123, + CustomerId = 13, + ScreeningId = 18 + }, + new + { + Id = 124, + CustomerId = 13, + ScreeningId = 12 + }, + new + { + Id = 125, + CustomerId = 25, + ScreeningId = 13 + }, + new + { + Id = 126, + CustomerId = 31, + ScreeningId = 14 + }, + new + { + Id = 127, + CustomerId = 18, + ScreeningId = 9 + }, + new + { + Id = 128, + CustomerId = 42, + ScreeningId = 3 + }, + new + { + Id = 129, + CustomerId = 9, + ScreeningId = 14 + }, + new + { + Id = 130, + CustomerId = 44, + ScreeningId = 4 + }, + new + { + Id = 131, + CustomerId = 6, + ScreeningId = 18 + }, + new + { + Id = 132, + CustomerId = 18, + ScreeningId = 5 + }, + new + { + Id = 133, + CustomerId = 39, + ScreeningId = 5 + }, + new + { + Id = 134, + CustomerId = 13, + ScreeningId = 15 + }, + new + { + Id = 135, + CustomerId = 36, + ScreeningId = 17 + }, + new + { + Id = 136, + CustomerId = 15, + ScreeningId = 1 + }, + new + { + Id = 137, + CustomerId = 35, + ScreeningId = 6 + }, + new + { + Id = 138, + CustomerId = 28, + ScreeningId = 2 + }, + new + { + Id = 139, + CustomerId = 16, + ScreeningId = 18 + }, + new + { + Id = 140, + CustomerId = 39, + ScreeningId = 11 + }, + new + { + Id = 141, + CustomerId = 7, + ScreeningId = 8 + }, + new + { + Id = 142, + CustomerId = 38, + ScreeningId = 7 + }, + new + { + Id = 143, + CustomerId = 2, + ScreeningId = 16 + }, + new + { + Id = 144, + CustomerId = 24, + ScreeningId = 6 + }, + new + { + Id = 145, + CustomerId = 42, + ScreeningId = 13 + }, + new + { + Id = 146, + CustomerId = 6, + ScreeningId = 8 + }, + new + { + Id = 147, + CustomerId = 26, + ScreeningId = 14 + }, + new + { + Id = 148, + CustomerId = 40, + ScreeningId = 13 + }, + new + { + Id = 149, + CustomerId = 16, + ScreeningId = 7 + }, + new + { + Id = 150, + CustomerId = 21, + ScreeningId = 14 + }, + new + { + Id = 151, + CustomerId = 6, + ScreeningId = 14 + }, + new + { + Id = 152, + CustomerId = 11, + ScreeningId = 1 + }, + new + { + Id = 153, + CustomerId = 19, + ScreeningId = 4 + }, + new + { + Id = 154, + CustomerId = 20, + ScreeningId = 6 + }, + new + { + Id = 155, + CustomerId = 34, + ScreeningId = 10 + }, + new + { + Id = 156, + CustomerId = 41, + ScreeningId = 2 + }, + new + { + Id = 157, + CustomerId = 42, + ScreeningId = 19 + }, + new + { + Id = 158, + CustomerId = 27, + ScreeningId = 17 + }, + new + { + Id = 159, + CustomerId = 46, + ScreeningId = 1 + }, + new + { + Id = 160, + CustomerId = 5, + ScreeningId = 13 + }, + new + { + Id = 161, + CustomerId = 2, + ScreeningId = 15 + }, + new + { + Id = 162, + CustomerId = 39, + ScreeningId = 17 + }, + new + { + Id = 163, + CustomerId = 20, + ScreeningId = 7 + }, + new + { + Id = 164, + CustomerId = 5, + ScreeningId = 8 + }, + new + { + Id = 165, + CustomerId = 1, + ScreeningId = 6 + }, + new + { + Id = 166, + CustomerId = 14, + ScreeningId = 12 + }, + new + { + Id = 167, + CustomerId = 35, + ScreeningId = 10 + }, + new + { + Id = 168, + CustomerId = 32, + ScreeningId = 3 + }, + new + { + Id = 169, + CustomerId = 6, + ScreeningId = 15 + }, + new + { + Id = 170, + CustomerId = 24, + ScreeningId = 8 + }, + new + { + Id = 171, + CustomerId = 10, + ScreeningId = 8 + }, + new + { + Id = 172, + CustomerId = 5, + ScreeningId = 16 + }, + new + { + Id = 173, + CustomerId = 19, + ScreeningId = 5 + }, + new + { + Id = 174, + CustomerId = 27, + ScreeningId = 8 + }, + new + { + Id = 175, + CustomerId = 39, + ScreeningId = 1 + }, + new + { + Id = 176, + CustomerId = 49, + ScreeningId = 7 + }, + new + { + Id = 177, + CustomerId = 34, + ScreeningId = 10 + }, + new + { + Id = 178, + CustomerId = 38, + ScreeningId = 14 + }, + new + { + Id = 179, + CustomerId = 47, + ScreeningId = 11 + }, + new + { + Id = 180, + CustomerId = 22, + ScreeningId = 14 + }, + new + { + Id = 181, + CustomerId = 32, + ScreeningId = 15 + }, + new + { + Id = 182, + CustomerId = 23, + ScreeningId = 19 + }, + new + { + Id = 183, + CustomerId = 3, + ScreeningId = 18 + }, + new + { + Id = 184, + CustomerId = 8, + ScreeningId = 9 + }, + new + { + Id = 185, + CustomerId = 1, + ScreeningId = 9 + }, + new + { + Id = 186, + CustomerId = 16, + ScreeningId = 19 + }, + new + { + Id = 187, + CustomerId = 3, + ScreeningId = 11 + }, + new + { + Id = 188, + CustomerId = 28, + ScreeningId = 3 + }, + new + { + Id = 189, + CustomerId = 34, + ScreeningId = 13 + }, + new + { + Id = 190, + CustomerId = 1, + ScreeningId = 6 + }, + new + { + Id = 191, + CustomerId = 26, + ScreeningId = 8 + }, + new + { + Id = 192, + CustomerId = 14, + ScreeningId = 5 + }, + new + { + Id = 193, + CustomerId = 37, + ScreeningId = 11 + }, + new + { + Id = 194, + CustomerId = 13, + ScreeningId = 11 + }, + new + { + Id = 195, + CustomerId = 46, + ScreeningId = 4 + }, + new + { + Id = 196, + CustomerId = 49, + ScreeningId = 12 + }, + new + { + Id = 197, + CustomerId = 45, + ScreeningId = 7 + }, + new + { + Id = 198, + CustomerId = 25, + ScreeningId = 9 + }, + new + { + Id = 199, + CustomerId = 6, + ScreeningId = 15 + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => + { + b.HasOne("api_cinema_challenge.Models.Movie", "Movie") + .WithMany("Screenings") + .HasForeignKey("MovieId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Movie"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Ticket", b => + { + b.HasOne("api_cinema_challenge.Models.Customer", "Customer") + .WithMany("Tickets") + .HasForeignKey("CustomerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("api_cinema_challenge.Models.Screening", "Screening") + .WithMany("Tickets") + .HasForeignKey("ScreeningId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Customer"); + + b.Navigation("Screening"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Customer", b => + { + b.Navigation("Tickets"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Movie", b => + { + b.Navigation("Screenings"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => + { + b.Navigation("Tickets"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.cs new file mode 100644 index 00000000..33e63060 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.cs @@ -0,0 +1,427 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional + +namespace api_cinema_challenge.Migrations +{ + /// + public partial class First : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Customers", + columns: table => new + { + customer_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + name = table.Column(type: "text", nullable: false), + email = table.Column(type: "text", nullable: false), + phone = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Customers", x => x.customer_id); + }); + + migrationBuilder.CreateTable( + name: "movie", + columns: table => new + { + movie_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + title = table.Column(type: "text", nullable: false), + rating = table.Column(type: "text", nullable: false), + description = table.Column(type: "text", nullable: false), + runtime_mins = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_movie", x => x.movie_id); + }); + + migrationBuilder.CreateTable( + name: "screenings", + columns: table => new + { + screening_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + screen_number = table.Column(type: "integer", nullable: false), + capacity = table.Column(type: "integer", nullable: false), + starts_at = table.Column(type: "timestamp with time zone", nullable: false), + movie_id = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_screenings", x => x.screening_id); + table.ForeignKey( + name: "FK_screenings_movie_movie_id", + column: x => x.movie_id, + principalTable: "movie", + principalColumn: "movie_id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "tickets", + columns: table => new + { + ticket_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + screening_id = table.Column(type: "integer", nullable: false), + customer_id = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_tickets", x => x.ticket_id); + table.ForeignKey( + name: "FK_tickets_Customers_customer_id", + column: x => x.customer_id, + principalTable: "Customers", + principalColumn: "customer_id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_tickets_screenings_screening_id", + column: x => x.screening_id, + principalTable: "screenings", + principalColumn: "screening_id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.InsertData( + table: "Customers", + columns: new[] { "customer_id", "email", "name", "phone" }, + values: new object[,] + { + { 1, "mick winfrey@gov.gr", "Mick Winfrey", "52368274" }, + { 2, "charles winfrey@gov.nl", "Charles Winfrey", "79181350" }, + { 3, "jimi hendrix@bbc.co.uk", "Jimi Hendrix", "72502892" }, + { 4, "jimi hepburn@gov.ru", "Jimi Hepburn", "15545519" }, + { 5, "audrey hepburn@theworld.ca", "Audrey Hepburn", "92238414" }, + { 6, "kate trump@bbc.co.uk", "Kate Trump", "86190574" }, + { 7, "kate obama@google.com", "Kate Obama", "18975724" }, + { 8, "jimi winslet@gov.nl", "Jimi Winslet", "92579632" }, + { 9, "mick hepburn@gov.ru", "Mick Hepburn", "67334813" }, + { 10, "kate hendrix@tesla.com", "Kate Hendrix", "82550950" }, + { 11, "oprah presley@gov.gr", "Oprah Presley", "52997360" }, + { 12, "elvis hepburn@google.com", "Elvis Hepburn", "64207390" }, + { 13, "oprah jagger@gov.gr", "Oprah Jagger", "91111243" }, + { 14, "elvis hendrix@gov.us", "Elvis Hendrix", "13823444" }, + { 15, "kate hepburn@gov.ru", "Kate Hepburn", "97284220" }, + { 16, "mick jagger@bbc.co.uk", "Mick Jagger", "28858754" }, + { 17, "elvis winfrey@gov.ru", "Elvis Winfrey", "30038727" }, + { 18, "barack presley@tesla.com", "Barack Presley", "99825705" }, + { 19, "kate hepburn@gov.nl", "Kate Hepburn", "74139655" }, + { 20, "mick jagger@gov.us", "Mick Jagger", "95805889" }, + { 21, "mick presley@something.com", "Mick Presley", "48857519" }, + { 22, "charles jagger@gov.nl", "Charles Jagger", "17920562" }, + { 23, "barack trump@tesla.com", "Barack Trump", "26069406" }, + { 24, "kate winslet@gov.nl", "Kate Winslet", "69787774" }, + { 25, "jimi obama@bbc.co.uk", "Jimi Obama", "29989532" }, + { 26, "elvis obama@gov.nl", "Elvis Obama", "44895432" }, + { 27, "oprah hepburn@gov.nl", "Oprah Hepburn", "89556044" }, + { 28, "elvis windsor@gov.gr", "Elvis Windsor", "60390346" }, + { 29, "charles windsor@theworld.ca", "Charles Windsor", "44104543" }, + { 30, "donald hendrix@gov.ru", "Donald Hendrix", "25105264" }, + { 31, "elvis obama@something.com", "Elvis Obama", "52810651" }, + { 32, "barack winfrey@google.com", "Barack Winfrey", "34881251" }, + { 33, "mick obama@tesla.com", "Mick Obama", "36227999" }, + { 34, "oprah hepburn@tesla.com", "Oprah Hepburn", "73319625" }, + { 35, "kate windsor@something.com", "Kate Windsor", "61318402" }, + { 36, "audrey presley@tesla.com", "Audrey Presley", "39504124" }, + { 37, "kate presley@google.com", "Kate Presley", "16265734" }, + { 38, "donald hendrix@google.com", "Donald Hendrix", "35991180" }, + { 39, "mick hepburn@bbc.co.uk", "Mick Hepburn", "49117273" }, + { 40, "oprah winfrey@gov.ru", "Oprah Winfrey", "72634505" }, + { 41, "jimi trump@gov.us", "Jimi Trump", "96850307" }, + { 42, "jimi winslet@gov.gr", "Jimi Winslet", "27324349" }, + { 43, "audrey jagger@tesla.com", "Audrey Jagger", "91669517" }, + { 44, "audrey obama@nasa.org.us", "Audrey Obama", "51414027" }, + { 45, "kate jagger@gov.us", "Kate Jagger", "52606573" }, + { 46, "audrey obama@something.com", "Audrey Obama", "41214230" }, + { 47, "kate obama@gov.us", "Kate Obama", "11348879" }, + { 48, "audrey presley@something.com", "Audrey Presley", "87270053" }, + { 49, "kate hendrix@tesla.com", "Kate Hendrix", "36685672" } + }); + + migrationBuilder.InsertData( + table: "movie", + columns: new[] { "movie_id", "description", "rating", "runtime_mins", "title" }, + values: new object[,] + { + { 1, "Very funny", "years 16+", 146, "The Transparent Flowers" }, + { 2, "Very funny", "years 6+", 117, "Two Microscopic Houses" }, + { 3, "Very funny", "years 11+", 129, "A herd of Orange Leopards" }, + { 4, "Very funny", "years 16+", 80, "Several Microscopic Houses" } + }); + + migrationBuilder.InsertData( + table: "screenings", + columns: new[] { "screening_id", "capacity", "movie_id", "screen_number", "starts_at" }, + values: new object[,] + { + { 1, 67, 2, 4, new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc) }, + { 2, 46, 3, 4, new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) }, + { 3, 27, 2, 1, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) }, + { 4, 98, 3, 0, new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc) }, + { 5, 43, 3, 3, new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc) }, + { 6, 31, 1, 4, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) }, + { 7, 66, 1, 4, new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc) }, + { 8, 63, 1, 2, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) }, + { 9, 47, 3, 2, new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) }, + { 10, 36, 2, 4, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) }, + { 11, 81, 1, 4, new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc) }, + { 12, 28, 1, 3, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) }, + { 13, 80, 1, 4, new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) }, + { 14, 57, 1, 4, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) }, + { 15, 33, 3, 2, new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) }, + { 16, 94, 1, 2, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) }, + { 17, 28, 2, 2, new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) }, + { 18, 52, 3, 3, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) }, + { 19, 75, 1, 2, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) } + }); + + migrationBuilder.InsertData( + table: "tickets", + columns: new[] { "ticket_id", "customer_id", "screening_id" }, + values: new object[,] + { + { 1, 43, 14 }, + { 2, 1, 5 }, + { 3, 40, 9 }, + { 4, 10, 9 }, + { 5, 26, 5 }, + { 6, 26, 9 }, + { 7, 45, 5 }, + { 8, 47, 9 }, + { 9, 10, 11 }, + { 10, 31, 15 }, + { 11, 43, 8 }, + { 12, 2, 3 }, + { 13, 18, 14 }, + { 14, 15, 15 }, + { 15, 29, 16 }, + { 16, 46, 8 }, + { 17, 30, 2 }, + { 18, 3, 19 }, + { 19, 48, 7 }, + { 20, 41, 9 }, + { 21, 3, 14 }, + { 22, 16, 5 }, + { 23, 14, 4 }, + { 24, 39, 4 }, + { 25, 7, 19 }, + { 26, 32, 14 }, + { 27, 35, 7 }, + { 28, 22, 12 }, + { 29, 21, 7 }, + { 30, 2, 18 }, + { 31, 44, 4 }, + { 32, 42, 12 }, + { 33, 48, 2 }, + { 34, 5, 12 }, + { 35, 37, 16 }, + { 36, 37, 10 }, + { 37, 5, 18 }, + { 38, 9, 14 }, + { 39, 10, 3 }, + { 40, 21, 16 }, + { 41, 5, 17 }, + { 42, 11, 15 }, + { 43, 49, 7 }, + { 44, 30, 5 }, + { 45, 45, 18 }, + { 46, 18, 19 }, + { 47, 27, 5 }, + { 48, 38, 7 }, + { 49, 1, 16 }, + { 50, 34, 5 }, + { 51, 4, 2 }, + { 52, 33, 11 }, + { 53, 7, 19 }, + { 54, 14, 12 }, + { 55, 49, 5 }, + { 56, 8, 11 }, + { 57, 43, 4 }, + { 58, 32, 6 }, + { 59, 40, 2 }, + { 60, 38, 12 }, + { 61, 29, 3 }, + { 62, 24, 4 }, + { 63, 11, 4 }, + { 64, 6, 13 }, + { 65, 4, 13 }, + { 66, 42, 8 }, + { 67, 48, 16 }, + { 68, 15, 12 }, + { 69, 18, 13 }, + { 70, 9, 19 }, + { 71, 47, 6 }, + { 72, 36, 4 }, + { 73, 46, 6 }, + { 74, 27, 19 }, + { 75, 21, 19 }, + { 76, 13, 9 }, + { 77, 9, 13 }, + { 78, 1, 12 }, + { 79, 5, 15 }, + { 80, 35, 14 }, + { 81, 43, 14 }, + { 82, 1, 10 }, + { 83, 26, 18 }, + { 84, 47, 2 }, + { 85, 3, 4 }, + { 86, 35, 2 }, + { 87, 6, 19 }, + { 88, 7, 14 }, + { 89, 12, 15 }, + { 90, 12, 19 }, + { 91, 7, 17 }, + { 92, 8, 14 }, + { 93, 19, 2 }, + { 94, 22, 18 }, + { 95, 2, 16 }, + { 96, 2, 4 }, + { 97, 13, 8 }, + { 98, 4, 9 }, + { 99, 12, 11 }, + { 100, 5, 6 }, + { 101, 16, 16 }, + { 102, 5, 14 }, + { 103, 45, 8 }, + { 104, 23, 15 }, + { 105, 15, 18 }, + { 106, 43, 4 }, + { 107, 45, 14 }, + { 108, 28, 12 }, + { 109, 31, 17 }, + { 110, 32, 18 }, + { 111, 36, 18 }, + { 112, 41, 16 }, + { 113, 22, 14 }, + { 114, 26, 18 }, + { 115, 29, 1 }, + { 116, 19, 18 }, + { 117, 18, 11 }, + { 118, 16, 19 }, + { 119, 7, 5 }, + { 120, 1, 7 }, + { 121, 36, 2 }, + { 122, 39, 12 }, + { 123, 13, 18 }, + { 124, 13, 12 }, + { 125, 25, 13 }, + { 126, 31, 14 }, + { 127, 18, 9 }, + { 128, 42, 3 }, + { 129, 9, 14 }, + { 130, 44, 4 }, + { 131, 6, 18 }, + { 132, 18, 5 }, + { 133, 39, 5 }, + { 134, 13, 15 }, + { 135, 36, 17 }, + { 136, 15, 1 }, + { 137, 35, 6 }, + { 138, 28, 2 }, + { 139, 16, 18 }, + { 140, 39, 11 }, + { 141, 7, 8 }, + { 142, 38, 7 }, + { 143, 2, 16 }, + { 144, 24, 6 }, + { 145, 42, 13 }, + { 146, 6, 8 }, + { 147, 26, 14 }, + { 148, 40, 13 }, + { 149, 16, 7 }, + { 150, 21, 14 }, + { 151, 6, 14 }, + { 152, 11, 1 }, + { 153, 19, 4 }, + { 154, 20, 6 }, + { 155, 34, 10 }, + { 156, 41, 2 }, + { 157, 42, 19 }, + { 158, 27, 17 }, + { 159, 46, 1 }, + { 160, 5, 13 }, + { 161, 2, 15 }, + { 162, 39, 17 }, + { 163, 20, 7 }, + { 164, 5, 8 }, + { 165, 1, 6 }, + { 166, 14, 12 }, + { 167, 35, 10 }, + { 168, 32, 3 }, + { 169, 6, 15 }, + { 170, 24, 8 }, + { 171, 10, 8 }, + { 172, 5, 16 }, + { 173, 19, 5 }, + { 174, 27, 8 }, + { 175, 39, 1 }, + { 176, 49, 7 }, + { 177, 34, 10 }, + { 178, 38, 14 }, + { 179, 47, 11 }, + { 180, 22, 14 }, + { 181, 32, 15 }, + { 182, 23, 19 }, + { 183, 3, 18 }, + { 184, 8, 9 }, + { 185, 1, 9 }, + { 186, 16, 19 }, + { 187, 3, 11 }, + { 188, 28, 3 }, + { 189, 34, 13 }, + { 190, 1, 6 }, + { 191, 26, 8 }, + { 192, 14, 5 }, + { 193, 37, 11 }, + { 194, 13, 11 }, + { 195, 46, 4 }, + { 196, 49, 12 }, + { 197, 45, 7 }, + { 198, 25, 9 }, + { 199, 6, 15 } + }); + + migrationBuilder.CreateIndex( + name: "IX_screenings_movie_id", + table: "screenings", + column: "movie_id"); + + migrationBuilder.CreateIndex( + name: "IX_tickets_customer_id", + table: "tickets", + column: "customer_id"); + + migrationBuilder.CreateIndex( + name: "IX_tickets_screening_id", + table: "tickets", + column: "screening_id"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "tickets"); + + migrationBuilder.DropTable( + name: "Customers"); + + migrationBuilder.DropTable( + name: "screenings"); + + migrationBuilder.DropTable( + name: "movie"); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs new file mode 100644 index 00000000..64fa8e1f --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs @@ -0,0 +1,1921 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; +using api_cinema_challenge.Data; + +#nullable disable + +namespace api_cinema_challenge.Migrations +{ + [DbContext(typeof(CinemaContext))] + partial class CinemaContextModelSnapshot : ModelSnapshot + { + protected override void BuildModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "9.0.8") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("api_cinema_challenge.Models.Customer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("customer_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Email") + .IsRequired() + .HasColumnType("text") + .HasColumnName("email"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text") + .HasColumnName("name"); + + b.Property("Phone") + .IsRequired() + .HasColumnType("text") + .HasColumnName("phone"); + + b.HasKey("Id"); + + b.ToTable("Customers"); + + b.HasData( + new + { + Id = 1, + Email = "mick winfrey@gov.gr", + Name = "Mick Winfrey", + Phone = "52368274" + }, + new + { + Id = 2, + Email = "charles winfrey@gov.nl", + Name = "Charles Winfrey", + Phone = "79181350" + }, + new + { + Id = 3, + Email = "jimi hendrix@bbc.co.uk", + Name = "Jimi Hendrix", + Phone = "72502892" + }, + new + { + Id = 4, + Email = "jimi hepburn@gov.ru", + Name = "Jimi Hepburn", + Phone = "15545519" + }, + new + { + Id = 5, + Email = "audrey hepburn@theworld.ca", + Name = "Audrey Hepburn", + Phone = "92238414" + }, + new + { + Id = 6, + Email = "kate trump@bbc.co.uk", + Name = "Kate Trump", + Phone = "86190574" + }, + new + { + Id = 7, + Email = "kate obama@google.com", + Name = "Kate Obama", + Phone = "18975724" + }, + new + { + Id = 8, + Email = "jimi winslet@gov.nl", + Name = "Jimi Winslet", + Phone = "92579632" + }, + new + { + Id = 9, + Email = "mick hepburn@gov.ru", + Name = "Mick Hepburn", + Phone = "67334813" + }, + new + { + Id = 10, + Email = "kate hendrix@tesla.com", + Name = "Kate Hendrix", + Phone = "82550950" + }, + new + { + Id = 11, + Email = "oprah presley@gov.gr", + Name = "Oprah Presley", + Phone = "52997360" + }, + new + { + Id = 12, + Email = "elvis hepburn@google.com", + Name = "Elvis Hepburn", + Phone = "64207390" + }, + new + { + Id = 13, + Email = "oprah jagger@gov.gr", + Name = "Oprah Jagger", + Phone = "91111243" + }, + new + { + Id = 14, + Email = "elvis hendrix@gov.us", + Name = "Elvis Hendrix", + Phone = "13823444" + }, + new + { + Id = 15, + Email = "kate hepburn@gov.ru", + Name = "Kate Hepburn", + Phone = "97284220" + }, + new + { + Id = 16, + Email = "mick jagger@bbc.co.uk", + Name = "Mick Jagger", + Phone = "28858754" + }, + new + { + Id = 17, + Email = "elvis winfrey@gov.ru", + Name = "Elvis Winfrey", + Phone = "30038727" + }, + new + { + Id = 18, + Email = "barack presley@tesla.com", + Name = "Barack Presley", + Phone = "99825705" + }, + new + { + Id = 19, + Email = "kate hepburn@gov.nl", + Name = "Kate Hepburn", + Phone = "74139655" + }, + new + { + Id = 20, + Email = "mick jagger@gov.us", + Name = "Mick Jagger", + Phone = "95805889" + }, + new + { + Id = 21, + Email = "mick presley@something.com", + Name = "Mick Presley", + Phone = "48857519" + }, + new + { + Id = 22, + Email = "charles jagger@gov.nl", + Name = "Charles Jagger", + Phone = "17920562" + }, + new + { + Id = 23, + Email = "barack trump@tesla.com", + Name = "Barack Trump", + Phone = "26069406" + }, + new + { + Id = 24, + Email = "kate winslet@gov.nl", + Name = "Kate Winslet", + Phone = "69787774" + }, + new + { + Id = 25, + Email = "jimi obama@bbc.co.uk", + Name = "Jimi Obama", + Phone = "29989532" + }, + new + { + Id = 26, + Email = "elvis obama@gov.nl", + Name = "Elvis Obama", + Phone = "44895432" + }, + new + { + Id = 27, + Email = "oprah hepburn@gov.nl", + Name = "Oprah Hepburn", + Phone = "89556044" + }, + new + { + Id = 28, + Email = "elvis windsor@gov.gr", + Name = "Elvis Windsor", + Phone = "60390346" + }, + new + { + Id = 29, + Email = "charles windsor@theworld.ca", + Name = "Charles Windsor", + Phone = "44104543" + }, + new + { + Id = 30, + Email = "donald hendrix@gov.ru", + Name = "Donald Hendrix", + Phone = "25105264" + }, + new + { + Id = 31, + Email = "elvis obama@something.com", + Name = "Elvis Obama", + Phone = "52810651" + }, + new + { + Id = 32, + Email = "barack winfrey@google.com", + Name = "Barack Winfrey", + Phone = "34881251" + }, + new + { + Id = 33, + Email = "mick obama@tesla.com", + Name = "Mick Obama", + Phone = "36227999" + }, + new + { + Id = 34, + Email = "oprah hepburn@tesla.com", + Name = "Oprah Hepburn", + Phone = "73319625" + }, + new + { + Id = 35, + Email = "kate windsor@something.com", + Name = "Kate Windsor", + Phone = "61318402" + }, + new + { + Id = 36, + Email = "audrey presley@tesla.com", + Name = "Audrey Presley", + Phone = "39504124" + }, + new + { + Id = 37, + Email = "kate presley@google.com", + Name = "Kate Presley", + Phone = "16265734" + }, + new + { + Id = 38, + Email = "donald hendrix@google.com", + Name = "Donald Hendrix", + Phone = "35991180" + }, + new + { + Id = 39, + Email = "mick hepburn@bbc.co.uk", + Name = "Mick Hepburn", + Phone = "49117273" + }, + new + { + Id = 40, + Email = "oprah winfrey@gov.ru", + Name = "Oprah Winfrey", + Phone = "72634505" + }, + new + { + Id = 41, + Email = "jimi trump@gov.us", + Name = "Jimi Trump", + Phone = "96850307" + }, + new + { + Id = 42, + Email = "jimi winslet@gov.gr", + Name = "Jimi Winslet", + Phone = "27324349" + }, + new + { + Id = 43, + Email = "audrey jagger@tesla.com", + Name = "Audrey Jagger", + Phone = "91669517" + }, + new + { + Id = 44, + Email = "audrey obama@nasa.org.us", + Name = "Audrey Obama", + Phone = "51414027" + }, + new + { + Id = 45, + Email = "kate jagger@gov.us", + Name = "Kate Jagger", + Phone = "52606573" + }, + new + { + Id = 46, + Email = "audrey obama@something.com", + Name = "Audrey Obama", + Phone = "41214230" + }, + new + { + Id = 47, + Email = "kate obama@gov.us", + Name = "Kate Obama", + Phone = "11348879" + }, + new + { + Id = 48, + Email = "audrey presley@something.com", + Name = "Audrey Presley", + Phone = "87270053" + }, + new + { + Id = 49, + Email = "kate hendrix@tesla.com", + Name = "Kate Hendrix", + Phone = "36685672" + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Movie", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("movie_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Description") + .IsRequired() + .HasColumnType("text") + .HasColumnName("description"); + + b.Property("Rating") + .IsRequired() + .HasColumnType("text") + .HasColumnName("rating"); + + b.Property("RunTimeMins") + .HasColumnType("integer") + .HasColumnName("runtime_mins"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.HasKey("Id"); + + b.ToTable("movie"); + + b.HasData( + new + { + Id = 1, + Description = "Very funny", + Rating = "years 16+", + RunTimeMins = 146, + Title = "The Transparent Flowers" + }, + new + { + Id = 2, + Description = "Very funny", + Rating = "years 6+", + RunTimeMins = 117, + Title = "Two Microscopic Houses" + }, + new + { + Id = 3, + Description = "Very funny", + Rating = "years 11+", + RunTimeMins = 129, + Title = "A herd of Orange Leopards" + }, + new + { + Id = 4, + Description = "Very funny", + Rating = "years 16+", + RunTimeMins = 80, + Title = "Several Microscopic Houses" + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("screening_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Capacity") + .HasColumnType("integer") + .HasColumnName("capacity"); + + b.Property("MovieId") + .HasColumnType("integer") + .HasColumnName("movie_id"); + + b.Property("ScreenNumber") + .HasColumnType("integer") + .HasColumnName("screen_number"); + + b.Property("StartsAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("starts_at"); + + b.HasKey("Id"); + + b.HasIndex("MovieId"); + + b.ToTable("screenings"); + + b.HasData( + new + { + Id = 1, + Capacity = 67, + MovieId = 2, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 2, + Capacity = 46, + MovieId = 3, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 3, + Capacity = 27, + MovieId = 2, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 4, + Capacity = 98, + MovieId = 3, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 5, + Capacity = 43, + MovieId = 3, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 6, + Capacity = 31, + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 7, + Capacity = 66, + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 8, + Capacity = 63, + MovieId = 1, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 9, + Capacity = 47, + MovieId = 3, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 10, + Capacity = 36, + MovieId = 2, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 11, + Capacity = 81, + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 12, + Capacity = 28, + MovieId = 1, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 13, + Capacity = 80, + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 14, + Capacity = 57, + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 15, + Capacity = 33, + MovieId = 3, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 16, + Capacity = 94, + MovieId = 1, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 17, + Capacity = 28, + MovieId = 2, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 18, + Capacity = 52, + MovieId = 3, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) + }, + new + { + Id = 19, + Capacity = 75, + MovieId = 1, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Ticket", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("ticket_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CustomerId") + .HasColumnType("integer") + .HasColumnName("customer_id"); + + b.Property("ScreeningId") + .HasColumnType("integer") + .HasColumnName("screening_id"); + + b.HasKey("Id"); + + b.HasIndex("CustomerId"); + + b.HasIndex("ScreeningId"); + + b.ToTable("tickets"); + + b.HasData( + new + { + Id = 1, + CustomerId = 43, + ScreeningId = 14 + }, + new + { + Id = 2, + CustomerId = 1, + ScreeningId = 5 + }, + new + { + Id = 3, + CustomerId = 40, + ScreeningId = 9 + }, + new + { + Id = 4, + CustomerId = 10, + ScreeningId = 9 + }, + new + { + Id = 5, + CustomerId = 26, + ScreeningId = 5 + }, + new + { + Id = 6, + CustomerId = 26, + ScreeningId = 9 + }, + new + { + Id = 7, + CustomerId = 45, + ScreeningId = 5 + }, + new + { + Id = 8, + CustomerId = 47, + ScreeningId = 9 + }, + new + { + Id = 9, + CustomerId = 10, + ScreeningId = 11 + }, + new + { + Id = 10, + CustomerId = 31, + ScreeningId = 15 + }, + new + { + Id = 11, + CustomerId = 43, + ScreeningId = 8 + }, + new + { + Id = 12, + CustomerId = 2, + ScreeningId = 3 + }, + new + { + Id = 13, + CustomerId = 18, + ScreeningId = 14 + }, + new + { + Id = 14, + CustomerId = 15, + ScreeningId = 15 + }, + new + { + Id = 15, + CustomerId = 29, + ScreeningId = 16 + }, + new + { + Id = 16, + CustomerId = 46, + ScreeningId = 8 + }, + new + { + Id = 17, + CustomerId = 30, + ScreeningId = 2 + }, + new + { + Id = 18, + CustomerId = 3, + ScreeningId = 19 + }, + new + { + Id = 19, + CustomerId = 48, + ScreeningId = 7 + }, + new + { + Id = 20, + CustomerId = 41, + ScreeningId = 9 + }, + new + { + Id = 21, + CustomerId = 3, + ScreeningId = 14 + }, + new + { + Id = 22, + CustomerId = 16, + ScreeningId = 5 + }, + new + { + Id = 23, + CustomerId = 14, + ScreeningId = 4 + }, + new + { + Id = 24, + CustomerId = 39, + ScreeningId = 4 + }, + new + { + Id = 25, + CustomerId = 7, + ScreeningId = 19 + }, + new + { + Id = 26, + CustomerId = 32, + ScreeningId = 14 + }, + new + { + Id = 27, + CustomerId = 35, + ScreeningId = 7 + }, + new + { + Id = 28, + CustomerId = 22, + ScreeningId = 12 + }, + new + { + Id = 29, + CustomerId = 21, + ScreeningId = 7 + }, + new + { + Id = 30, + CustomerId = 2, + ScreeningId = 18 + }, + new + { + Id = 31, + CustomerId = 44, + ScreeningId = 4 + }, + new + { + Id = 32, + CustomerId = 42, + ScreeningId = 12 + }, + new + { + Id = 33, + CustomerId = 48, + ScreeningId = 2 + }, + new + { + Id = 34, + CustomerId = 5, + ScreeningId = 12 + }, + new + { + Id = 35, + CustomerId = 37, + ScreeningId = 16 + }, + new + { + Id = 36, + CustomerId = 37, + ScreeningId = 10 + }, + new + { + Id = 37, + CustomerId = 5, + ScreeningId = 18 + }, + new + { + Id = 38, + CustomerId = 9, + ScreeningId = 14 + }, + new + { + Id = 39, + CustomerId = 10, + ScreeningId = 3 + }, + new + { + Id = 40, + CustomerId = 21, + ScreeningId = 16 + }, + new + { + Id = 41, + CustomerId = 5, + ScreeningId = 17 + }, + new + { + Id = 42, + CustomerId = 11, + ScreeningId = 15 + }, + new + { + Id = 43, + CustomerId = 49, + ScreeningId = 7 + }, + new + { + Id = 44, + CustomerId = 30, + ScreeningId = 5 + }, + new + { + Id = 45, + CustomerId = 45, + ScreeningId = 18 + }, + new + { + Id = 46, + CustomerId = 18, + ScreeningId = 19 + }, + new + { + Id = 47, + CustomerId = 27, + ScreeningId = 5 + }, + new + { + Id = 48, + CustomerId = 38, + ScreeningId = 7 + }, + new + { + Id = 49, + CustomerId = 1, + ScreeningId = 16 + }, + new + { + Id = 50, + CustomerId = 34, + ScreeningId = 5 + }, + new + { + Id = 51, + CustomerId = 4, + ScreeningId = 2 + }, + new + { + Id = 52, + CustomerId = 33, + ScreeningId = 11 + }, + new + { + Id = 53, + CustomerId = 7, + ScreeningId = 19 + }, + new + { + Id = 54, + CustomerId = 14, + ScreeningId = 12 + }, + new + { + Id = 55, + CustomerId = 49, + ScreeningId = 5 + }, + new + { + Id = 56, + CustomerId = 8, + ScreeningId = 11 + }, + new + { + Id = 57, + CustomerId = 43, + ScreeningId = 4 + }, + new + { + Id = 58, + CustomerId = 32, + ScreeningId = 6 + }, + new + { + Id = 59, + CustomerId = 40, + ScreeningId = 2 + }, + new + { + Id = 60, + CustomerId = 38, + ScreeningId = 12 + }, + new + { + Id = 61, + CustomerId = 29, + ScreeningId = 3 + }, + new + { + Id = 62, + CustomerId = 24, + ScreeningId = 4 + }, + new + { + Id = 63, + CustomerId = 11, + ScreeningId = 4 + }, + new + { + Id = 64, + CustomerId = 6, + ScreeningId = 13 + }, + new + { + Id = 65, + CustomerId = 4, + ScreeningId = 13 + }, + new + { + Id = 66, + CustomerId = 42, + ScreeningId = 8 + }, + new + { + Id = 67, + CustomerId = 48, + ScreeningId = 16 + }, + new + { + Id = 68, + CustomerId = 15, + ScreeningId = 12 + }, + new + { + Id = 69, + CustomerId = 18, + ScreeningId = 13 + }, + new + { + Id = 70, + CustomerId = 9, + ScreeningId = 19 + }, + new + { + Id = 71, + CustomerId = 47, + ScreeningId = 6 + }, + new + { + Id = 72, + CustomerId = 36, + ScreeningId = 4 + }, + new + { + Id = 73, + CustomerId = 46, + ScreeningId = 6 + }, + new + { + Id = 74, + CustomerId = 27, + ScreeningId = 19 + }, + new + { + Id = 75, + CustomerId = 21, + ScreeningId = 19 + }, + new + { + Id = 76, + CustomerId = 13, + ScreeningId = 9 + }, + new + { + Id = 77, + CustomerId = 9, + ScreeningId = 13 + }, + new + { + Id = 78, + CustomerId = 1, + ScreeningId = 12 + }, + new + { + Id = 79, + CustomerId = 5, + ScreeningId = 15 + }, + new + { + Id = 80, + CustomerId = 35, + ScreeningId = 14 + }, + new + { + Id = 81, + CustomerId = 43, + ScreeningId = 14 + }, + new + { + Id = 82, + CustomerId = 1, + ScreeningId = 10 + }, + new + { + Id = 83, + CustomerId = 26, + ScreeningId = 18 + }, + new + { + Id = 84, + CustomerId = 47, + ScreeningId = 2 + }, + new + { + Id = 85, + CustomerId = 3, + ScreeningId = 4 + }, + new + { + Id = 86, + CustomerId = 35, + ScreeningId = 2 + }, + new + { + Id = 87, + CustomerId = 6, + ScreeningId = 19 + }, + new + { + Id = 88, + CustomerId = 7, + ScreeningId = 14 + }, + new + { + Id = 89, + CustomerId = 12, + ScreeningId = 15 + }, + new + { + Id = 90, + CustomerId = 12, + ScreeningId = 19 + }, + new + { + Id = 91, + CustomerId = 7, + ScreeningId = 17 + }, + new + { + Id = 92, + CustomerId = 8, + ScreeningId = 14 + }, + new + { + Id = 93, + CustomerId = 19, + ScreeningId = 2 + }, + new + { + Id = 94, + CustomerId = 22, + ScreeningId = 18 + }, + new + { + Id = 95, + CustomerId = 2, + ScreeningId = 16 + }, + new + { + Id = 96, + CustomerId = 2, + ScreeningId = 4 + }, + new + { + Id = 97, + CustomerId = 13, + ScreeningId = 8 + }, + new + { + Id = 98, + CustomerId = 4, + ScreeningId = 9 + }, + new + { + Id = 99, + CustomerId = 12, + ScreeningId = 11 + }, + new + { + Id = 100, + CustomerId = 5, + ScreeningId = 6 + }, + new + { + Id = 101, + CustomerId = 16, + ScreeningId = 16 + }, + new + { + Id = 102, + CustomerId = 5, + ScreeningId = 14 + }, + new + { + Id = 103, + CustomerId = 45, + ScreeningId = 8 + }, + new + { + Id = 104, + CustomerId = 23, + ScreeningId = 15 + }, + new + { + Id = 105, + CustomerId = 15, + ScreeningId = 18 + }, + new + { + Id = 106, + CustomerId = 43, + ScreeningId = 4 + }, + new + { + Id = 107, + CustomerId = 45, + ScreeningId = 14 + }, + new + { + Id = 108, + CustomerId = 28, + ScreeningId = 12 + }, + new + { + Id = 109, + CustomerId = 31, + ScreeningId = 17 + }, + new + { + Id = 110, + CustomerId = 32, + ScreeningId = 18 + }, + new + { + Id = 111, + CustomerId = 36, + ScreeningId = 18 + }, + new + { + Id = 112, + CustomerId = 41, + ScreeningId = 16 + }, + new + { + Id = 113, + CustomerId = 22, + ScreeningId = 14 + }, + new + { + Id = 114, + CustomerId = 26, + ScreeningId = 18 + }, + new + { + Id = 115, + CustomerId = 29, + ScreeningId = 1 + }, + new + { + Id = 116, + CustomerId = 19, + ScreeningId = 18 + }, + new + { + Id = 117, + CustomerId = 18, + ScreeningId = 11 + }, + new + { + Id = 118, + CustomerId = 16, + ScreeningId = 19 + }, + new + { + Id = 119, + CustomerId = 7, + ScreeningId = 5 + }, + new + { + Id = 120, + CustomerId = 1, + ScreeningId = 7 + }, + new + { + Id = 121, + CustomerId = 36, + ScreeningId = 2 + }, + new + { + Id = 122, + CustomerId = 39, + ScreeningId = 12 + }, + new + { + Id = 123, + CustomerId = 13, + ScreeningId = 18 + }, + new + { + Id = 124, + CustomerId = 13, + ScreeningId = 12 + }, + new + { + Id = 125, + CustomerId = 25, + ScreeningId = 13 + }, + new + { + Id = 126, + CustomerId = 31, + ScreeningId = 14 + }, + new + { + Id = 127, + CustomerId = 18, + ScreeningId = 9 + }, + new + { + Id = 128, + CustomerId = 42, + ScreeningId = 3 + }, + new + { + Id = 129, + CustomerId = 9, + ScreeningId = 14 + }, + new + { + Id = 130, + CustomerId = 44, + ScreeningId = 4 + }, + new + { + Id = 131, + CustomerId = 6, + ScreeningId = 18 + }, + new + { + Id = 132, + CustomerId = 18, + ScreeningId = 5 + }, + new + { + Id = 133, + CustomerId = 39, + ScreeningId = 5 + }, + new + { + Id = 134, + CustomerId = 13, + ScreeningId = 15 + }, + new + { + Id = 135, + CustomerId = 36, + ScreeningId = 17 + }, + new + { + Id = 136, + CustomerId = 15, + ScreeningId = 1 + }, + new + { + Id = 137, + CustomerId = 35, + ScreeningId = 6 + }, + new + { + Id = 138, + CustomerId = 28, + ScreeningId = 2 + }, + new + { + Id = 139, + CustomerId = 16, + ScreeningId = 18 + }, + new + { + Id = 140, + CustomerId = 39, + ScreeningId = 11 + }, + new + { + Id = 141, + CustomerId = 7, + ScreeningId = 8 + }, + new + { + Id = 142, + CustomerId = 38, + ScreeningId = 7 + }, + new + { + Id = 143, + CustomerId = 2, + ScreeningId = 16 + }, + new + { + Id = 144, + CustomerId = 24, + ScreeningId = 6 + }, + new + { + Id = 145, + CustomerId = 42, + ScreeningId = 13 + }, + new + { + Id = 146, + CustomerId = 6, + ScreeningId = 8 + }, + new + { + Id = 147, + CustomerId = 26, + ScreeningId = 14 + }, + new + { + Id = 148, + CustomerId = 40, + ScreeningId = 13 + }, + new + { + Id = 149, + CustomerId = 16, + ScreeningId = 7 + }, + new + { + Id = 150, + CustomerId = 21, + ScreeningId = 14 + }, + new + { + Id = 151, + CustomerId = 6, + ScreeningId = 14 + }, + new + { + Id = 152, + CustomerId = 11, + ScreeningId = 1 + }, + new + { + Id = 153, + CustomerId = 19, + ScreeningId = 4 + }, + new + { + Id = 154, + CustomerId = 20, + ScreeningId = 6 + }, + new + { + Id = 155, + CustomerId = 34, + ScreeningId = 10 + }, + new + { + Id = 156, + CustomerId = 41, + ScreeningId = 2 + }, + new + { + Id = 157, + CustomerId = 42, + ScreeningId = 19 + }, + new + { + Id = 158, + CustomerId = 27, + ScreeningId = 17 + }, + new + { + Id = 159, + CustomerId = 46, + ScreeningId = 1 + }, + new + { + Id = 160, + CustomerId = 5, + ScreeningId = 13 + }, + new + { + Id = 161, + CustomerId = 2, + ScreeningId = 15 + }, + new + { + Id = 162, + CustomerId = 39, + ScreeningId = 17 + }, + new + { + Id = 163, + CustomerId = 20, + ScreeningId = 7 + }, + new + { + Id = 164, + CustomerId = 5, + ScreeningId = 8 + }, + new + { + Id = 165, + CustomerId = 1, + ScreeningId = 6 + }, + new + { + Id = 166, + CustomerId = 14, + ScreeningId = 12 + }, + new + { + Id = 167, + CustomerId = 35, + ScreeningId = 10 + }, + new + { + Id = 168, + CustomerId = 32, + ScreeningId = 3 + }, + new + { + Id = 169, + CustomerId = 6, + ScreeningId = 15 + }, + new + { + Id = 170, + CustomerId = 24, + ScreeningId = 8 + }, + new + { + Id = 171, + CustomerId = 10, + ScreeningId = 8 + }, + new + { + Id = 172, + CustomerId = 5, + ScreeningId = 16 + }, + new + { + Id = 173, + CustomerId = 19, + ScreeningId = 5 + }, + new + { + Id = 174, + CustomerId = 27, + ScreeningId = 8 + }, + new + { + Id = 175, + CustomerId = 39, + ScreeningId = 1 + }, + new + { + Id = 176, + CustomerId = 49, + ScreeningId = 7 + }, + new + { + Id = 177, + CustomerId = 34, + ScreeningId = 10 + }, + new + { + Id = 178, + CustomerId = 38, + ScreeningId = 14 + }, + new + { + Id = 179, + CustomerId = 47, + ScreeningId = 11 + }, + new + { + Id = 180, + CustomerId = 22, + ScreeningId = 14 + }, + new + { + Id = 181, + CustomerId = 32, + ScreeningId = 15 + }, + new + { + Id = 182, + CustomerId = 23, + ScreeningId = 19 + }, + new + { + Id = 183, + CustomerId = 3, + ScreeningId = 18 + }, + new + { + Id = 184, + CustomerId = 8, + ScreeningId = 9 + }, + new + { + Id = 185, + CustomerId = 1, + ScreeningId = 9 + }, + new + { + Id = 186, + CustomerId = 16, + ScreeningId = 19 + }, + new + { + Id = 187, + CustomerId = 3, + ScreeningId = 11 + }, + new + { + Id = 188, + CustomerId = 28, + ScreeningId = 3 + }, + new + { + Id = 189, + CustomerId = 34, + ScreeningId = 13 + }, + new + { + Id = 190, + CustomerId = 1, + ScreeningId = 6 + }, + new + { + Id = 191, + CustomerId = 26, + ScreeningId = 8 + }, + new + { + Id = 192, + CustomerId = 14, + ScreeningId = 5 + }, + new + { + Id = 193, + CustomerId = 37, + ScreeningId = 11 + }, + new + { + Id = 194, + CustomerId = 13, + ScreeningId = 11 + }, + new + { + Id = 195, + CustomerId = 46, + ScreeningId = 4 + }, + new + { + Id = 196, + CustomerId = 49, + ScreeningId = 12 + }, + new + { + Id = 197, + CustomerId = 45, + ScreeningId = 7 + }, + new + { + Id = 198, + CustomerId = 25, + ScreeningId = 9 + }, + new + { + Id = 199, + CustomerId = 6, + ScreeningId = 15 + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => + { + b.HasOne("api_cinema_challenge.Models.Movie", "Movie") + .WithMany("Screenings") + .HasForeignKey("MovieId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Movie"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Ticket", b => + { + b.HasOne("api_cinema_challenge.Models.Customer", "Customer") + .WithMany("Tickets") + .HasForeignKey("CustomerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("api_cinema_challenge.Models.Screening", "Screening") + .WithMany("Tickets") + .HasForeignKey("ScreeningId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Customer"); + + b.Navigation("Screening"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Customer", b => + { + b.Navigation("Tickets"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Movie", b => + { + b.Navigation("Screenings"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => + { + b.Navigation("Tickets"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Models/Customer.cs b/api-cinema-challenge/api-cinema-challenge/Models/Customer.cs new file mode 100644 index 00000000..74098c8a --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Models/Customer.cs @@ -0,0 +1,31 @@ +using api_cinema_challenge.DOTs.CustomerDTOs; +using api_cinema_challenge.Repository; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace api_cinema_challenge.Models +{ + [Table("Customers")] + public class Customer + { + [Key] + [Column("customer_id")] + public int Id { get; set; } + [Column("name")] + public string Name { get; set; } + [Column("email")] + public string Email { get; set; } + [Column("phone")] + public string Phone { get; set; } + [Column("customer_tickets")] + public List Tickets { get; set; } = new List(); + + public Customer(CustomerPost newCustomer) + { + Name = newCustomer.Name; + Email = newCustomer.Email; + Phone = newCustomer.Phone; + } + public Customer() { } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs b/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs new file mode 100644 index 00000000..d390d679 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs @@ -0,0 +1,24 @@ +using api_cinema_challenge.Repository; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace api_cinema_challenge.Models +{ + [Table("movie")] + public class Movie : IEntity + { + [Key] + [Column("movie_id")] + public int Id { get; set; } + [Column("title")] + public string Title { get; set; } + [Column("rating")] + public string Rating { get; set; } + [Column("description")] + public string Description { get; set; } + [Column("runtime_mins")] + public int RunTimeMins { get; set; } + [Column("screenings")] + public List Screenings { get; set; } = new List(); + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs b/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs new file mode 100644 index 00000000..68d23701 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs @@ -0,0 +1,26 @@ +using api_cinema_challenge.Repository; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace api_cinema_challenge.Models +{ + [Table("screenings")] + public class Screening : IEntity + { + [Key] + [Column("screening_id")] + public int Id { get; set; } + [Column("screen_number")] + public int ScreenNumber { get; set; } + [Column("capacity")] + public int Capacity { get; set; } + [Column("starts_at")] + public DateTime StartsAt { get; set; } + [Column("movie_id")] + public int MovieId { get; set; } + [Column("screening_tickets")] + public List Tickets { get; set; } = new List(); + [Column("screening_movie")] + public Movie Movie { get; set; } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Models/Ticket.cs b/api-cinema-challenge/api-cinema-challenge/Models/Ticket.cs new file mode 100644 index 00000000..091bda2b --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Models/Ticket.cs @@ -0,0 +1,25 @@ +using api_cinema_challenge.Repository; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Reflection; + +namespace api_cinema_challenge.Models +{ + [Table("tickets")] + public class Ticket + { + [Key] + [Column("ticket_id")] + public int Id { get; set; } + [Column("screening_id")] + public int ScreeningId { get; set; } + [Column("customer_id")] + public int CustomerId { get; set; } + [Column("ticket_screening")] + public Screening Screening { get; set; } + + [Column("ticket_customer")] + public Customer Customer { get; set; } + + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Program.cs b/api-cinema-challenge/api-cinema-challenge/Program.cs index e55d9d54..d73e83b8 100644 --- a/api-cinema-challenge/api-cinema-challenge/Program.cs +++ b/api-cinema-challenge/api-cinema-challenge/Program.cs @@ -1,11 +1,22 @@ using api_cinema_challenge.Data; +using api_cinema_challenge.Endpoints; +using api_cinema_challenge.Models; +using api_cinema_challenge.Repository; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using System.Diagnostics; var builder = WebApplication.CreateBuilder(args); // Add services to the container. +builder.Services.AddOpenApi(); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); builder.Services.AddDbContext(); +builder.Services.AddScoped, GenericRepository>(); +builder.Services.AddScoped, GenericRepository>(); + + var app = builder.Build(); @@ -17,4 +28,6 @@ } app.UseHttpsRedirection(); +app.ConfigueMovie(); +app.ConfigueCustomer(); app.Run(); diff --git a/api-cinema-challenge/api-cinema-challenge/Repository/GenericRepository.cs b/api-cinema-challenge/api-cinema-challenge/Repository/GenericRepository.cs new file mode 100644 index 00000000..12a0982c --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Repository/GenericRepository.cs @@ -0,0 +1,60 @@ + +using api_cinema_challenge.Data; +using api_cinema_challenge.Models; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.ChangeTracking; +using System.Linq.Expressions; + +namespace api_cinema_challenge.Repository +{ + public class GenericRepository : IGenericRepository where T : class + { + private CinemaContext _db; + private DbSet _table = null!; + public GenericRepository(CinemaContext context) + { + _db = context; + _table = _db.Set(); + } + public async Task> GetAll() + { + var response = await _table.ToListAsync(); + return response; + } + + public async Task GetById(int id) + { + var response = await _table.FindAsync(id); + return response; + } + + public async Task> GetWithIncludes(Func, IQueryable> includeQuery) + { + IQueryable query = includeQuery(_table); + return await query.ToListAsync(); + } + public async Task GetByIdWithIncludes(Func, T> includeQuery) + { + var entity = includeQuery(_table); + return entity; + } + public async Task Create(T entity) + { + await _table.AddAsync(entity); + await _db.SaveChangesAsync(); + return entity; + } + public async Task Update(T entity) + { + _table.Update(entity); + await _db.SaveChangesAsync(); + return entity; + } + public async Task Delete(T entity) + { + _table.Remove(entity); + await _db.SaveChangesAsync(); + return entity; + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Repository/IEntity.cs b/api-cinema-challenge/api-cinema-challenge/Repository/IEntity.cs new file mode 100644 index 00000000..61092e1a --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Repository/IEntity.cs @@ -0,0 +1,7 @@ +namespace api_cinema_challenge.Repository +{ + public interface IEntity + { + public int Id { get; set; } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Repository/IGenericRepository.cs b/api-cinema-challenge/api-cinema-challenge/Repository/IGenericRepository.cs new file mode 100644 index 00000000..dfae529d --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Repository/IGenericRepository.cs @@ -0,0 +1,16 @@ +using Microsoft.EntityFrameworkCore.ChangeTracking; +using System.Linq.Expressions; + +namespace api_cinema_challenge.Repository +{ + public interface IGenericRepository + { + Task> GetAll(); + Task GetById(int id); + Task> GetWithIncludes(Func, IQueryable> includes); + Task GetByIdWithIncludes(Func, T> includeQuery); + Task Create(T entity); + Task Update(T entity); + Task Delete(T entity); + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/api-cinema-challenge.csproj b/api-cinema-challenge/api-cinema-challenge/api-cinema-challenge.csproj index 11e5c66b..be0321c6 100644 --- a/api-cinema-challenge/api-cinema-challenge/api-cinema-challenge.csproj +++ b/api-cinema-challenge/api-cinema-challenge/api-cinema-challenge.csproj @@ -24,11 +24,8 @@ + - - - - diff --git a/api-cinema-challenge/api-cinema-challenge/appsettings.example.json b/api-cinema-challenge/api-cinema-challenge/appsettings.example.json index b9175fe6..e69de29b 100644 --- a/api-cinema-challenge/api-cinema-challenge/appsettings.example.json +++ b/api-cinema-challenge/api-cinema-challenge/appsettings.example.json @@ -1,12 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*", - "ConnectionStrings": { - "DefaultConnectionString": "Host=HOST; Database=DATABASE; Username=USERNAME; Password=PASSWORD;" - } -} \ No newline at end of file From 26f95736f3905aef7f3c61f777df0cb704283e02 Mon Sep 17 00:00:00 2001 From: Stian Forren Date: Mon, 25 Aug 2025 11:17:31 +0200 Subject: [PATCH 2/4] added crud for movies and screenings --- .../DOTs/CustomerDTOs/CustomerGet.cs | 2 + .../DOTs/CustomerDTOs/CustomerGetNoExtra.cs | 22 + .../DOTs/MovieDTOs/MovieGet.cs | 4 + .../DOTs/MovieDTOs/MoviePost.cs | 10 + .../DOTs/MovieDTOs/MoviePut.cs | 11 + .../DOTs/ScreeningDTOs/ScreeningGet.cs | 22 + .../DOTs/ScreeningDTOs/ScreeningPost.cs | 9 + .../Endpoints/CustomerAPI.cs | 17 +- .../Endpoints/MovieAPI.cs | 62 +- .../Migrations/20250822083522_First.cs | 427 ----- ...er.cs => 20250825084958_First.Designer.cs} | 1378 +++++++++-------- .../Migrations/20250825084958_First.cs | 433 ++++++ .../Migrations/CinemaContextModelSnapshot.cs | 1376 ++++++++-------- .../api-cinema-challenge/Models/Customer.cs | 10 +- .../api-cinema-challenge/Models/Movie.cs | 22 +- .../api-cinema-challenge/Models/Screening.cs | 19 +- .../api-cinema-challenge/Program.cs | 1 + 17 files changed, 2169 insertions(+), 1656 deletions(-) create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGetNoExtra.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MoviePost.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MoviePut.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/ScreeningDTOs/ScreeningGet.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/ScreeningDTOs/ScreeningPost.cs delete mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.cs rename api-cinema-challenge/api-cinema-challenge/Migrations/{20250822083522_First.Designer.cs => 20250825084958_First.Designer.cs} (64%) create mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.cs diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGet.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGet.cs index e47ddd3d..6ceed08d 100644 --- a/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGet.cs +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGet.cs @@ -8,6 +8,8 @@ public class CustomerGet public string Name { get; set; } public string Email { get; set; } public string Phone { get; set; } + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } public IEnumerable Tickets { get; set; } = new List(); public CustomerGet(Customer customer) diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGetNoExtra.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGetNoExtra.cs new file mode 100644 index 00000000..6c653089 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/CustomerGetNoExtra.cs @@ -0,0 +1,22 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.CustomerDTOs +{ + public class CustomerGetNoExtra + { + public int Id { get; set; } + public string Name { get; set; } + public string Email { get; set; } + public string Phone { get; set; } + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } + + public CustomerGetNoExtra(Customer customer) + { + Id = customer.Id; + Name = customer.Name; + Email = customer.Email; + Phone = customer.Phone; + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MovieGet.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MovieGet.cs index 33618ad8..6b60f7ee 100644 --- a/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MovieGet.cs +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MovieGet.cs @@ -10,6 +10,8 @@ public class MovieGet public string Description { get; set; } public string Rating { get; set; } public int RunTimeMins { get; set; } + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } public IEnumerable Screenings { get; set; } = new List(); @@ -21,6 +23,8 @@ public MovieGet(Movie movie) Rating = movie.Rating; RunTimeMins = movie.RunTimeMins; Screenings = movie.Screenings.Select(x => new ScreeningsNoMovie(x)); + CreatedAt = movie.CreatedAt; + UpdatedAt = movie.UpdatedAt; } } diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MoviePost.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MoviePost.cs new file mode 100644 index 00000000..abdcc73e --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MoviePost.cs @@ -0,0 +1,10 @@ +namespace api_cinema_challenge.DOTs.MovieDTOs +{ + public class MoviePost + { + public string Title { get; set; } + public string Rating { get; set; } + public string Description { get; set; } + public int RunTimeMins { get; set; } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MoviePut.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MoviePut.cs new file mode 100644 index 00000000..5ea8abea --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/MovieDTOs/MoviePut.cs @@ -0,0 +1,11 @@ +namespace api_cinema_challenge.DOTs.MovieDTOs +{ + public class MoviePut + { + public string Title { get; set; } + public string Rating { get; set; } + public string Description { get; set; } + public int? RunTimeMins { get; set; } + + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/ScreeningDTOs/ScreeningGet.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/ScreeningDTOs/ScreeningGet.cs new file mode 100644 index 00000000..ce6a8689 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/ScreeningDTOs/ScreeningGet.cs @@ -0,0 +1,22 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.ScreeningDTOs +{ + public class ScreeningGet + { + public int Id { get; set; } + public int ScreenNumber { get; set; } + public int Capacity { get; set; } + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } + + public ScreeningGet(Screening screening) + { + Id = screening.Id; + ScreenNumber = screening.ScreenNumber; + Capacity = screening.Capacity; + CreatedAt = screening.CreatedAt; + UpdatedAt = screening.UpdatedAt; + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/ScreeningDTOs/ScreeningPost.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/ScreeningDTOs/ScreeningPost.cs new file mode 100644 index 00000000..bb1524f2 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/ScreeningDTOs/ScreeningPost.cs @@ -0,0 +1,9 @@ +namespace api_cinema_challenge.DOTs.ScreeningDTOs +{ + public class ScreeningPost + { + public int ScreenNumber { get; set; } + public int Capacity { get; set; } + public DateTime StartAt { get; set; } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs b/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs index 204e4160..702e119f 100644 --- a/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs +++ b/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs @@ -2,6 +2,7 @@ using api_cinema_challenge.Models; using api_cinema_challenge.Repository; using Microsoft.EntityFrameworkCore; +using System.Reflection.Metadata.Ecma335; namespace api_cinema_challenge.Endpoints @@ -10,19 +11,19 @@ public static class CustomerAPI { public static void ConfigueCustomer(this WebApplication app) { - var customerGroup = app.MapGroup("customer"); + var customerGroup = app.MapGroup("customers"); customerGroup.MapGet("/", GetCustomers); customerGroup.MapGet("/customer{id}", GetCustomerById); customerGroup.MapPost("/", CreateCustomer); - customerGroup.MapPut("/customer{id}", UpdateCustomer); - customerGroup.MapDelete("/customer{id}", DeleteCustomer); + customerGroup.MapPut("/{id}", UpdateCustomer); + customerGroup.MapDelete("/{id}", DeleteCustomer); } private static async Task GetCustomers(IGenericRepository repository) { var response = await repository.GetWithIncludes(q => q.Include(p => p.Tickets).ThenInclude(t => t.Screening).ThenInclude(s => s.Movie)); - var result = response.Select(c => new CustomerGet(c)); + var result = response.Select(c => new CustomerGetNoExtra(c)); return TypedResults.Ok(result); } @@ -32,7 +33,7 @@ private static async Task GetCustomerById(IGenericRepository .Include(p => p.Tickets) .ThenInclude(t => t.Screening) .ThenInclude(s => s.Movie).FirstOrDefaultAsync().Result); - var result = new CustomerGet(response); + var result = new CustomerGetNoExtra(response); return TypedResults.Ok(result); } @@ -41,7 +42,8 @@ private static async Task CreateCustomer(IGenericRepository r { Customer customer = new Customer(newCustomer); var response = await repository.Create(customer); - return TypedResults.Created("", newCustomer); + CustomerGetNoExtra customerFormated = new CustomerGetNoExtra(response); + return TypedResults.Created("", customerFormated); } private static async Task UpdateCustomer(IGenericRepository repository, int id, CustomerPut model) @@ -53,8 +55,9 @@ private static async Task UpdateCustomer(IGenericRepository r if (model.Name is not null) entity.Name = model.Name; if (model.Email is not null) entity.Email = model.Email; if (model.Phone is not null) entity.Phone = model.Phone; + entity.UpdatedAt = DateTime.UtcNow; var response = await repository.Update(entity); - return TypedResults.Created("",new CustomerGet(response)); + return TypedResults.Created("", new CustomerGetNoExtra(response)); } private static async Task DeleteCustomer(IGenericRepository repository, int id) { diff --git a/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs b/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs index eaa73698..1aec2002 100644 --- a/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs +++ b/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs @@ -1,4 +1,6 @@ -using api_cinema_challenge.DOTs.MovieDTOs; +using api_cinema_challenge.DOTs.CustomerDTOs; +using api_cinema_challenge.DOTs.MovieDTOs; +using api_cinema_challenge.DOTs.ScreeningDTOs; using api_cinema_challenge.Models; using api_cinema_challenge.Repository; using Microsoft.EntityFrameworkCore; @@ -9,16 +11,68 @@ public static class MovieAPI { public static void ConfigueMovie(this WebApplication app) { - var customerGroup = app.MapGroup("movie"); + var movieGroup = app.MapGroup("movies"); - customerGroup.MapGet("/", GetMovies); + movieGroup.MapGet("/", GetMovies); + movieGroup.MapPost("/", CreateMovie); + movieGroup.MapPut("/{id}", UpdateMovie); + movieGroup.MapDelete("/{id}", DeleteMovie); + movieGroup.MapPost("/{id}/screenings", CreateScreening); + movieGroup.MapGet("{id}/screenings", GetScreeningsForMovie); + } private static async Task GetMovies(IGenericRepository repository) { - var response = await repository.GetWithIncludes(m => m.Include(s => s.Screenings).ThenInclude(t => t.Tickets).ThenInclude(c => c.Customer)); + var response = await repository.GetWithIncludes(m => m.Include(s => s.Screenings) + .ThenInclude(t => t.Tickets) + .ThenInclude(c => c.Customer)); var result = response.Select(m => new MovieGet(m)); return TypedResults.Ok(result); } + + private static async Task CreateMovie(IGenericRepository repository, MoviePost movie) + { + Movie newMovie = new Movie(movie); + var response = await repository.Create(newMovie); + return TypedResults.Created("", new MovieGet(response)); + } + + private static async Task UpdateMovie(IGenericRepository repository, int id, MoviePut model) + { + Movie entity = await repository.GetByIdWithIncludes(m => m.Where(i => i.Id == id) + .Include(s => s.Screenings) + .ThenInclude(t => t.Tickets) + .ThenInclude(c => c.Customer) + .FirstOrDefaultAsync().Result); + if (model.Title is not null) entity.Title = model.Title; + if (model.Rating is not null ) entity.Rating = model.Rating; + if( model.Description is not null ) entity.Description = model.Description; + if (model.RunTimeMins is not null ) entity.RunTimeMins = (int)model.RunTimeMins; + entity.UpdatedAt = DateTime.UtcNow; + var response = await repository.Update(entity); + return TypedResults.Created("", new MovieGet(response)); + } + + private static async Task DeleteMovie(IGenericRepository repository, int id) + { + Movie entity = await repository.GetByIdWithIncludes(q => q.Where(i => i.Id == id).FirstOrDefaultAsync().Result); + repository.Delete(entity); + return TypedResults.Ok(entity); + } + + private static async Task CreateScreening(IGenericRepository repository, int movieId, ScreeningPost model) + { + Screening entity = new Screening(model); + entity.MovieId = movieId; + var response = await repository.Create(entity); + return TypedResults.Created("", new ScreeningGet(response)); + } + private static async Task GetScreeningsForMovie(IGenericRepository repository, int movieId) + { + var response = await repository.GetWithIncludes(s => s.Where(i => i.MovieId == movieId)); + var result = response.Select(s => new ScreeningGet(s)); + return TypedResults.Ok(result); + } } } diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.cs deleted file mode 100644 index 33e63060..00000000 --- a/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.cs +++ /dev/null @@ -1,427 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional - -namespace api_cinema_challenge.Migrations -{ - /// - public partial class First : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Customers", - columns: table => new - { - customer_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - name = table.Column(type: "text", nullable: false), - email = table.Column(type: "text", nullable: false), - phone = table.Column(type: "text", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Customers", x => x.customer_id); - }); - - migrationBuilder.CreateTable( - name: "movie", - columns: table => new - { - movie_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - title = table.Column(type: "text", nullable: false), - rating = table.Column(type: "text", nullable: false), - description = table.Column(type: "text", nullable: false), - runtime_mins = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_movie", x => x.movie_id); - }); - - migrationBuilder.CreateTable( - name: "screenings", - columns: table => new - { - screening_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - screen_number = table.Column(type: "integer", nullable: false), - capacity = table.Column(type: "integer", nullable: false), - starts_at = table.Column(type: "timestamp with time zone", nullable: false), - movie_id = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_screenings", x => x.screening_id); - table.ForeignKey( - name: "FK_screenings_movie_movie_id", - column: x => x.movie_id, - principalTable: "movie", - principalColumn: "movie_id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "tickets", - columns: table => new - { - ticket_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - screening_id = table.Column(type: "integer", nullable: false), - customer_id = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_tickets", x => x.ticket_id); - table.ForeignKey( - name: "FK_tickets_Customers_customer_id", - column: x => x.customer_id, - principalTable: "Customers", - principalColumn: "customer_id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_tickets_screenings_screening_id", - column: x => x.screening_id, - principalTable: "screenings", - principalColumn: "screening_id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.InsertData( - table: "Customers", - columns: new[] { "customer_id", "email", "name", "phone" }, - values: new object[,] - { - { 1, "mick winfrey@gov.gr", "Mick Winfrey", "52368274" }, - { 2, "charles winfrey@gov.nl", "Charles Winfrey", "79181350" }, - { 3, "jimi hendrix@bbc.co.uk", "Jimi Hendrix", "72502892" }, - { 4, "jimi hepburn@gov.ru", "Jimi Hepburn", "15545519" }, - { 5, "audrey hepburn@theworld.ca", "Audrey Hepburn", "92238414" }, - { 6, "kate trump@bbc.co.uk", "Kate Trump", "86190574" }, - { 7, "kate obama@google.com", "Kate Obama", "18975724" }, - { 8, "jimi winslet@gov.nl", "Jimi Winslet", "92579632" }, - { 9, "mick hepburn@gov.ru", "Mick Hepburn", "67334813" }, - { 10, "kate hendrix@tesla.com", "Kate Hendrix", "82550950" }, - { 11, "oprah presley@gov.gr", "Oprah Presley", "52997360" }, - { 12, "elvis hepburn@google.com", "Elvis Hepburn", "64207390" }, - { 13, "oprah jagger@gov.gr", "Oprah Jagger", "91111243" }, - { 14, "elvis hendrix@gov.us", "Elvis Hendrix", "13823444" }, - { 15, "kate hepburn@gov.ru", "Kate Hepburn", "97284220" }, - { 16, "mick jagger@bbc.co.uk", "Mick Jagger", "28858754" }, - { 17, "elvis winfrey@gov.ru", "Elvis Winfrey", "30038727" }, - { 18, "barack presley@tesla.com", "Barack Presley", "99825705" }, - { 19, "kate hepburn@gov.nl", "Kate Hepburn", "74139655" }, - { 20, "mick jagger@gov.us", "Mick Jagger", "95805889" }, - { 21, "mick presley@something.com", "Mick Presley", "48857519" }, - { 22, "charles jagger@gov.nl", "Charles Jagger", "17920562" }, - { 23, "barack trump@tesla.com", "Barack Trump", "26069406" }, - { 24, "kate winslet@gov.nl", "Kate Winslet", "69787774" }, - { 25, "jimi obama@bbc.co.uk", "Jimi Obama", "29989532" }, - { 26, "elvis obama@gov.nl", "Elvis Obama", "44895432" }, - { 27, "oprah hepburn@gov.nl", "Oprah Hepburn", "89556044" }, - { 28, "elvis windsor@gov.gr", "Elvis Windsor", "60390346" }, - { 29, "charles windsor@theworld.ca", "Charles Windsor", "44104543" }, - { 30, "donald hendrix@gov.ru", "Donald Hendrix", "25105264" }, - { 31, "elvis obama@something.com", "Elvis Obama", "52810651" }, - { 32, "barack winfrey@google.com", "Barack Winfrey", "34881251" }, - { 33, "mick obama@tesla.com", "Mick Obama", "36227999" }, - { 34, "oprah hepburn@tesla.com", "Oprah Hepburn", "73319625" }, - { 35, "kate windsor@something.com", "Kate Windsor", "61318402" }, - { 36, "audrey presley@tesla.com", "Audrey Presley", "39504124" }, - { 37, "kate presley@google.com", "Kate Presley", "16265734" }, - { 38, "donald hendrix@google.com", "Donald Hendrix", "35991180" }, - { 39, "mick hepburn@bbc.co.uk", "Mick Hepburn", "49117273" }, - { 40, "oprah winfrey@gov.ru", "Oprah Winfrey", "72634505" }, - { 41, "jimi trump@gov.us", "Jimi Trump", "96850307" }, - { 42, "jimi winslet@gov.gr", "Jimi Winslet", "27324349" }, - { 43, "audrey jagger@tesla.com", "Audrey Jagger", "91669517" }, - { 44, "audrey obama@nasa.org.us", "Audrey Obama", "51414027" }, - { 45, "kate jagger@gov.us", "Kate Jagger", "52606573" }, - { 46, "audrey obama@something.com", "Audrey Obama", "41214230" }, - { 47, "kate obama@gov.us", "Kate Obama", "11348879" }, - { 48, "audrey presley@something.com", "Audrey Presley", "87270053" }, - { 49, "kate hendrix@tesla.com", "Kate Hendrix", "36685672" } - }); - - migrationBuilder.InsertData( - table: "movie", - columns: new[] { "movie_id", "description", "rating", "runtime_mins", "title" }, - values: new object[,] - { - { 1, "Very funny", "years 16+", 146, "The Transparent Flowers" }, - { 2, "Very funny", "years 6+", 117, "Two Microscopic Houses" }, - { 3, "Very funny", "years 11+", 129, "A herd of Orange Leopards" }, - { 4, "Very funny", "years 16+", 80, "Several Microscopic Houses" } - }); - - migrationBuilder.InsertData( - table: "screenings", - columns: new[] { "screening_id", "capacity", "movie_id", "screen_number", "starts_at" }, - values: new object[,] - { - { 1, 67, 2, 4, new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc) }, - { 2, 46, 3, 4, new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) }, - { 3, 27, 2, 1, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) }, - { 4, 98, 3, 0, new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc) }, - { 5, 43, 3, 3, new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc) }, - { 6, 31, 1, 4, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) }, - { 7, 66, 1, 4, new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc) }, - { 8, 63, 1, 2, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) }, - { 9, 47, 3, 2, new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) }, - { 10, 36, 2, 4, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) }, - { 11, 81, 1, 4, new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc) }, - { 12, 28, 1, 3, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) }, - { 13, 80, 1, 4, new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) }, - { 14, 57, 1, 4, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) }, - { 15, 33, 3, 2, new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) }, - { 16, 94, 1, 2, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) }, - { 17, 28, 2, 2, new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) }, - { 18, 52, 3, 3, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) }, - { 19, 75, 1, 2, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) } - }); - - migrationBuilder.InsertData( - table: "tickets", - columns: new[] { "ticket_id", "customer_id", "screening_id" }, - values: new object[,] - { - { 1, 43, 14 }, - { 2, 1, 5 }, - { 3, 40, 9 }, - { 4, 10, 9 }, - { 5, 26, 5 }, - { 6, 26, 9 }, - { 7, 45, 5 }, - { 8, 47, 9 }, - { 9, 10, 11 }, - { 10, 31, 15 }, - { 11, 43, 8 }, - { 12, 2, 3 }, - { 13, 18, 14 }, - { 14, 15, 15 }, - { 15, 29, 16 }, - { 16, 46, 8 }, - { 17, 30, 2 }, - { 18, 3, 19 }, - { 19, 48, 7 }, - { 20, 41, 9 }, - { 21, 3, 14 }, - { 22, 16, 5 }, - { 23, 14, 4 }, - { 24, 39, 4 }, - { 25, 7, 19 }, - { 26, 32, 14 }, - { 27, 35, 7 }, - { 28, 22, 12 }, - { 29, 21, 7 }, - { 30, 2, 18 }, - { 31, 44, 4 }, - { 32, 42, 12 }, - { 33, 48, 2 }, - { 34, 5, 12 }, - { 35, 37, 16 }, - { 36, 37, 10 }, - { 37, 5, 18 }, - { 38, 9, 14 }, - { 39, 10, 3 }, - { 40, 21, 16 }, - { 41, 5, 17 }, - { 42, 11, 15 }, - { 43, 49, 7 }, - { 44, 30, 5 }, - { 45, 45, 18 }, - { 46, 18, 19 }, - { 47, 27, 5 }, - { 48, 38, 7 }, - { 49, 1, 16 }, - { 50, 34, 5 }, - { 51, 4, 2 }, - { 52, 33, 11 }, - { 53, 7, 19 }, - { 54, 14, 12 }, - { 55, 49, 5 }, - { 56, 8, 11 }, - { 57, 43, 4 }, - { 58, 32, 6 }, - { 59, 40, 2 }, - { 60, 38, 12 }, - { 61, 29, 3 }, - { 62, 24, 4 }, - { 63, 11, 4 }, - { 64, 6, 13 }, - { 65, 4, 13 }, - { 66, 42, 8 }, - { 67, 48, 16 }, - { 68, 15, 12 }, - { 69, 18, 13 }, - { 70, 9, 19 }, - { 71, 47, 6 }, - { 72, 36, 4 }, - { 73, 46, 6 }, - { 74, 27, 19 }, - { 75, 21, 19 }, - { 76, 13, 9 }, - { 77, 9, 13 }, - { 78, 1, 12 }, - { 79, 5, 15 }, - { 80, 35, 14 }, - { 81, 43, 14 }, - { 82, 1, 10 }, - { 83, 26, 18 }, - { 84, 47, 2 }, - { 85, 3, 4 }, - { 86, 35, 2 }, - { 87, 6, 19 }, - { 88, 7, 14 }, - { 89, 12, 15 }, - { 90, 12, 19 }, - { 91, 7, 17 }, - { 92, 8, 14 }, - { 93, 19, 2 }, - { 94, 22, 18 }, - { 95, 2, 16 }, - { 96, 2, 4 }, - { 97, 13, 8 }, - { 98, 4, 9 }, - { 99, 12, 11 }, - { 100, 5, 6 }, - { 101, 16, 16 }, - { 102, 5, 14 }, - { 103, 45, 8 }, - { 104, 23, 15 }, - { 105, 15, 18 }, - { 106, 43, 4 }, - { 107, 45, 14 }, - { 108, 28, 12 }, - { 109, 31, 17 }, - { 110, 32, 18 }, - { 111, 36, 18 }, - { 112, 41, 16 }, - { 113, 22, 14 }, - { 114, 26, 18 }, - { 115, 29, 1 }, - { 116, 19, 18 }, - { 117, 18, 11 }, - { 118, 16, 19 }, - { 119, 7, 5 }, - { 120, 1, 7 }, - { 121, 36, 2 }, - { 122, 39, 12 }, - { 123, 13, 18 }, - { 124, 13, 12 }, - { 125, 25, 13 }, - { 126, 31, 14 }, - { 127, 18, 9 }, - { 128, 42, 3 }, - { 129, 9, 14 }, - { 130, 44, 4 }, - { 131, 6, 18 }, - { 132, 18, 5 }, - { 133, 39, 5 }, - { 134, 13, 15 }, - { 135, 36, 17 }, - { 136, 15, 1 }, - { 137, 35, 6 }, - { 138, 28, 2 }, - { 139, 16, 18 }, - { 140, 39, 11 }, - { 141, 7, 8 }, - { 142, 38, 7 }, - { 143, 2, 16 }, - { 144, 24, 6 }, - { 145, 42, 13 }, - { 146, 6, 8 }, - { 147, 26, 14 }, - { 148, 40, 13 }, - { 149, 16, 7 }, - { 150, 21, 14 }, - { 151, 6, 14 }, - { 152, 11, 1 }, - { 153, 19, 4 }, - { 154, 20, 6 }, - { 155, 34, 10 }, - { 156, 41, 2 }, - { 157, 42, 19 }, - { 158, 27, 17 }, - { 159, 46, 1 }, - { 160, 5, 13 }, - { 161, 2, 15 }, - { 162, 39, 17 }, - { 163, 20, 7 }, - { 164, 5, 8 }, - { 165, 1, 6 }, - { 166, 14, 12 }, - { 167, 35, 10 }, - { 168, 32, 3 }, - { 169, 6, 15 }, - { 170, 24, 8 }, - { 171, 10, 8 }, - { 172, 5, 16 }, - { 173, 19, 5 }, - { 174, 27, 8 }, - { 175, 39, 1 }, - { 176, 49, 7 }, - { 177, 34, 10 }, - { 178, 38, 14 }, - { 179, 47, 11 }, - { 180, 22, 14 }, - { 181, 32, 15 }, - { 182, 23, 19 }, - { 183, 3, 18 }, - { 184, 8, 9 }, - { 185, 1, 9 }, - { 186, 16, 19 }, - { 187, 3, 11 }, - { 188, 28, 3 }, - { 189, 34, 13 }, - { 190, 1, 6 }, - { 191, 26, 8 }, - { 192, 14, 5 }, - { 193, 37, 11 }, - { 194, 13, 11 }, - { 195, 46, 4 }, - { 196, 49, 12 }, - { 197, 45, 7 }, - { 198, 25, 9 }, - { 199, 6, 15 } - }); - - migrationBuilder.CreateIndex( - name: "IX_screenings_movie_id", - table: "screenings", - column: "movie_id"); - - migrationBuilder.CreateIndex( - name: "IX_tickets_customer_id", - table: "tickets", - column: "customer_id"); - - migrationBuilder.CreateIndex( - name: "IX_tickets_screening_id", - table: "tickets", - column: "screening_id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "tickets"); - - migrationBuilder.DropTable( - name: "Customers"); - - migrationBuilder.DropTable( - name: "screenings"); - - migrationBuilder.DropTable( - name: "movie"); - } - } -} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.Designer.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.Designer.cs similarity index 64% rename from api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.Designer.cs rename to api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.Designer.cs index a16650d3..e24d17c4 100644 --- a/api-cinema-challenge/api-cinema-challenge/Migrations/20250822083522_First.Designer.cs +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.Designer.cs @@ -12,7 +12,7 @@ namespace api_cinema_challenge.Migrations { [DbContext(typeof(CinemaContext))] - [Migration("20250822083522_First")] + [Migration("20250825084958_First")] partial class First { /// @@ -34,6 +34,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + b.Property("Email") .IsRequired() .HasColumnType("text") @@ -49,6 +52,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("text") .HasColumnName("phone"); + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + b.HasKey("Id"); b.ToTable("Customers"); @@ -57,345 +63,443 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) new { Id = 1, - Email = "mick winfrey@gov.gr", - Name = "Mick Winfrey", - Phone = "52368274" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(713), + Email = "kate middleton@gov.gr", + Name = "Kate Middleton", + Phone = "57323012", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(932) }, new { Id = 2, - Email = "charles winfrey@gov.nl", - Name = "Charles Winfrey", - Phone = "79181350" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183), + Email = "kate trump@something.com", + Name = "Kate Trump", + Phone = "90036955", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183) }, new { Id = 3, - Email = "jimi hendrix@bbc.co.uk", - Name = "Jimi Hendrix", - Phone = "72502892" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2204), + Email = "kate winslet@gov.ru", + Name = "Kate Winslet", + Phone = "79662272", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2208) }, new { Id = 4, - Email = "jimi hepburn@gov.ru", - Name = "Jimi Hepburn", - Phone = "15545519" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211), + Email = "kate winslet@something.com", + Name = "Kate Winslet", + Phone = "97434122", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211) }, new { Id = 5, - Email = "audrey hepburn@theworld.ca", - Name = "Audrey Hepburn", - Phone = "92238414" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2213), + Email = "elvis hendrix@gov.us", + Name = "Elvis Hendrix", + Phone = "84320894", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2215) }, new { Id = 6, - Email = "kate trump@bbc.co.uk", - Name = "Kate Trump", - Phone = "86190574" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2240), + Email = "kate hendrix@gov.ru", + Name = "Kate Hendrix", + Phone = "86093045", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2241) }, new { Id = 7, - Email = "kate obama@google.com", - Name = "Kate Obama", - Phone = "18975724" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2242), + Email = "jimi trump@google.com", + Name = "Jimi Trump", + Phone = "77608896", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2243) }, new { Id = 8, - Email = "jimi winslet@gov.nl", - Name = "Jimi Winslet", - Phone = "92579632" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2244), + Email = "kate hendrix@gov.nl", + Name = "Kate Hendrix", + Phone = "30950692", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2245) }, new { Id = 9, - Email = "mick hepburn@gov.ru", - Name = "Mick Hepburn", - Phone = "67334813" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246), + Email = "charles hepburn@google.com", + Name = "Charles Hepburn", + Phone = "53960475", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246) }, new { Id = 10, - Email = "kate hendrix@tesla.com", - Name = "Kate Hendrix", - Phone = "82550950" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249), + Email = "barack obama@gov.nl", + Name = "Barack Obama", + Phone = "11402717", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249) }, new { Id = 11, - Email = "oprah presley@gov.gr", - Name = "Oprah Presley", - Phone = "52997360" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252), + Email = "mick jagger@gov.gr", + Name = "Mick Jagger", + Phone = "74377263", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252) }, new { Id = 12, - Email = "elvis hepburn@google.com", - Name = "Elvis Hepburn", - Phone = "64207390" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2253), + Email = "kate hepburn@tesla.com", + Name = "Kate Hepburn", + Phone = "37130689", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2254) }, new { Id = 13, - Email = "oprah jagger@gov.gr", - Name = "Oprah Jagger", - Phone = "91111243" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255), + Email = "kate windsor@google.com", + Name = "Kate Windsor", + Phone = "17850864", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255) }, new { Id = 14, - Email = "elvis hendrix@gov.us", - Name = "Elvis Hendrix", - Phone = "13823444" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257), + Email = "donald jagger@tesla.com", + Name = "Donald Jagger", + Phone = "96174535", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257) }, new { Id = 15, - Email = "kate hepburn@gov.ru", - Name = "Kate Hepburn", - Phone = "97284220" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259), + Email = "barack hendrix@something.com", + Name = "Barack Hendrix", + Phone = "38010217", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259) }, new { Id = 16, - Email = "mick jagger@bbc.co.uk", - Name = "Mick Jagger", - Phone = "28858754" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260), + Email = "elvis winfrey@gov.nl", + Name = "Elvis Winfrey", + Phone = "68797228", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260) }, new { Id = 17, - Email = "elvis winfrey@gov.ru", - Name = "Elvis Winfrey", - Phone = "30038727" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262), + Email = "mick middleton@something.com", + Name = "Mick Middleton", + Phone = "55871184", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262) }, new { Id = 18, - Email = "barack presley@tesla.com", - Name = "Barack Presley", - Phone = "99825705" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2265), + Email = "elvis obama@nasa.org.us", + Name = "Elvis Obama", + Phone = "99746360", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2266) }, new { Id = 19, - Email = "kate hepburn@gov.nl", - Name = "Kate Hepburn", - Phone = "74139655" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267), + Email = "jimi hepburn@gov.gr", + Name = "Jimi Hepburn", + Phone = "15774057", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267) }, new { Id = 20, - Email = "mick jagger@gov.us", - Name = "Mick Jagger", - Phone = "95805889" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269), + Email = "kate presley@tesla.com", + Name = "Kate Presley", + Phone = "33030025", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269) }, new { Id = 21, - Email = "mick presley@something.com", - Name = "Mick Presley", - Phone = "48857519" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270), + Email = "mick windsor@theworld.ca", + Name = "Mick Windsor", + Phone = "68406720", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270) }, new { Id = 22, - Email = "charles jagger@gov.nl", - Name = "Charles Jagger", - Phone = "17920562" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272), + Email = "mick windsor@bbc.co.uk", + Name = "Mick Windsor", + Phone = "70274513", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272) }, new { Id = 23, - Email = "barack trump@tesla.com", - Name = "Barack Trump", - Phone = "26069406" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273), + Email = "barack windsor@google.com", + Name = "Barack Windsor", + Phone = "10112351", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273) }, new { Id = 24, - Email = "kate winslet@gov.nl", - Name = "Kate Winslet", - Phone = "69787774" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275), + Email = "elvis hendrix@bbc.co.uk", + Name = "Elvis Hendrix", + Phone = "21340088", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275) }, new { Id = 25, - Email = "jimi obama@bbc.co.uk", - Name = "Jimi Obama", - Phone = "29989532" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276), + Email = "barack hendrix@nasa.org.us", + Name = "Barack Hendrix", + Phone = "67170625", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276) }, new { Id = 26, - Email = "elvis obama@gov.nl", - Name = "Elvis Obama", - Phone = "44895432" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278), + Email = "kate winslet@bbc.co.uk", + Name = "Kate Winslet", + Phone = "86772435", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278) }, new { Id = 27, - Email = "oprah hepburn@gov.nl", - Name = "Oprah Hepburn", - Phone = "89556044" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279), + Email = "barack obama@bbc.co.uk", + Name = "Barack Obama", + Phone = "83625317", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279) }, new { Id = 28, - Email = "elvis windsor@gov.gr", - Name = "Elvis Windsor", - Phone = "60390346" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281), + Email = "jimi hepburn@gov.nl", + Name = "Jimi Hepburn", + Phone = "89412341", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281) }, new { Id = 29, - Email = "charles windsor@theworld.ca", - Name = "Charles Windsor", - Phone = "44104543" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2293), + Email = "mick jagger@gov.nl", + Name = "Mick Jagger", + Phone = "37434825", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2294) }, new { Id = 30, - Email = "donald hendrix@gov.ru", - Name = "Donald Hendrix", - Phone = "25105264" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2295), + Email = "barack jagger@gov.ru", + Name = "Barack Jagger", + Phone = "23194181", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2296) }, new { Id = 31, - Email = "elvis obama@something.com", - Name = "Elvis Obama", - Phone = "52810651" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297), + Email = "elvis winfrey@gov.nl", + Name = "Elvis Winfrey", + Phone = "54447837", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297) }, new { Id = 32, - Email = "barack winfrey@google.com", - Name = "Barack Winfrey", - Phone = "34881251" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299), + Email = "kate winfrey@bbc.co.uk", + Name = "Kate Winfrey", + Phone = "58976369", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299) }, new { Id = 33, - Email = "mick obama@tesla.com", - Name = "Mick Obama", - Phone = "36227999" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2300), + Email = "charles jagger@something.com", + Name = "Charles Jagger", + Phone = "22440998", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2301) }, new { Id = 34, - Email = "oprah hepburn@tesla.com", - Name = "Oprah Hepburn", - Phone = "73319625" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303), + Email = "kate middleton@nasa.org.us", + Name = "Kate Middleton", + Phone = "19231484", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303) }, new { Id = 35, - Email = "kate windsor@something.com", - Name = "Kate Windsor", - Phone = "61318402" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2304), + Email = "oprah jagger@nasa.org.us", + Name = "Oprah Jagger", + Phone = "96209492", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2305) }, new { Id = 36, - Email = "audrey presley@tesla.com", - Name = "Audrey Presley", - Phone = "39504124" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306), + Email = "jimi middleton@gov.us", + Name = "Jimi Middleton", + Phone = "14860055", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306) }, new { Id = 37, - Email = "kate presley@google.com", - Name = "Kate Presley", - Phone = "16265734" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308), + Email = "mick windsor@bbc.co.uk", + Name = "Mick Windsor", + Phone = "46462376", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308) }, new { Id = 38, - Email = "donald hendrix@google.com", - Name = "Donald Hendrix", - Phone = "35991180" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2309), + Email = "elvis presley@theworld.ca", + Name = "Elvis Presley", + Phone = "11443439", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2310) }, new { Id = 39, - Email = "mick hepburn@bbc.co.uk", - Name = "Mick Hepburn", - Phone = "49117273" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311), + Email = "donald winfrey@something.com", + Name = "Donald Winfrey", + Phone = "71902615", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311) }, new { Id = 40, - Email = "oprah winfrey@gov.ru", - Name = "Oprah Winfrey", - Phone = "72634505" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313), + Email = "charles hepburn@gov.us", + Name = "Charles Hepburn", + Phone = "42984697", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313) }, new { Id = 41, - Email = "jimi trump@gov.us", - Name = "Jimi Trump", - Phone = "96850307" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2314), + Email = "mick jagger@tesla.com", + Name = "Mick Jagger", + Phone = "36431777", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2315) }, new { Id = 42, - Email = "jimi winslet@gov.gr", - Name = "Jimi Winslet", - Phone = "27324349" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316), + Email = "jimi hepburn@gov.nl", + Name = "Jimi Hepburn", + Phone = "93119392", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316) }, new { Id = 43, - Email = "audrey jagger@tesla.com", - Name = "Audrey Jagger", - Phone = "91669517" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318), + Email = "mick middleton@bbc.co.uk", + Name = "Mick Middleton", + Phone = "60445327", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318) }, new { Id = 44, - Email = "audrey obama@nasa.org.us", - Name = "Audrey Obama", - Phone = "51414027" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2319), + Email = "jimi winslet@tesla.com", + Name = "Jimi Winslet", + Phone = "27412326", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2320) }, new { Id = 45, - Email = "kate jagger@gov.us", - Name = "Kate Jagger", - Phone = "52606573" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321), + Email = "audrey windsor@tesla.com", + Name = "Audrey Windsor", + Phone = "41701761", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321) }, new { Id = 46, - Email = "audrey obama@something.com", - Name = "Audrey Obama", - Phone = "41214230" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2322), + Email = "kate middleton@gov.nl", + Name = "Kate Middleton", + Phone = "77306134", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2323) }, new { Id = 47, - Email = "kate obama@gov.us", - Name = "Kate Obama", - Phone = "11348879" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2324), + Email = "mick hepburn@gov.gr", + Name = "Mick Hepburn", + Phone = "69932733", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2325) }, new { Id = 48, - Email = "audrey presley@something.com", - Name = "Audrey Presley", - Phone = "87270053" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326), + Email = "donald winslet@gov.us", + Name = "Donald Winslet", + Phone = "95603319", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326) }, new { Id = 49, - Email = "kate hendrix@tesla.com", - Name = "Kate Hendrix", - Phone = "36685672" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2327), + Email = "elvis trump@gov.ru", + Name = "Elvis Trump", + Phone = "75749612", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2328) }); }); @@ -408,6 +512,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + b.Property("Description") .IsRequired() .HasColumnType("text") @@ -427,6 +534,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("text") .HasColumnName("title"); + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + b.HasKey("Id"); b.ToTable("movie"); @@ -435,34 +545,42 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) new { Id = 1, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2700), Description = "Very funny", - Rating = "years 16+", - RunTimeMins = 146, - Title = "The Transparent Flowers" + Rating = "years 18+", + RunTimeMins = 148, + Title = "The Bitter Flowers", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2811) }, new { Id = 2, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3338), Description = "Very funny", - Rating = "years 6+", - RunTimeMins = 117, - Title = "Two Microscopic Houses" + Rating = "years 16+", + RunTimeMins = 93, + Title = "A bunch of Orange Flowers", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3339) }, new { Id = 3, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3343), Description = "Very funny", - Rating = "years 11+", - RunTimeMins = 129, - Title = "A herd of Orange Leopards" + Rating = "years 6+", + RunTimeMins = 127, + Title = "Several Transparent Buildings", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3344) }, new { Id = 4, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346), Description = "Very funny", - Rating = "years 16+", - RunTimeMins = 80, - Title = "Several Microscopic Houses" + Rating = "All", + RunTimeMins = 70, + Title = "A herd of Green Planets", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346) }); }); @@ -479,6 +597,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("integer") .HasColumnName("capacity"); + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + b.Property("MovieId") .HasColumnType("integer") .HasColumnName("movie_id"); @@ -491,6 +612,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("timestamp with time zone") .HasColumnName("starts_at"); + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + b.HasKey("Id"); b.HasIndex("MovieId"); @@ -501,154 +625,192 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) new { Id = 1, - Capacity = 67, - MovieId = 2, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc) + Capacity = 89, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3602), + MovieId = 3, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3692) }, new { Id = 2, - Capacity = 46, - MovieId = 3, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) + Capacity = 89, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4667), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4668) }, new { Id = 3, - Capacity = 27, + Capacity = 57, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671), MovieId = 2, ScreenNumber = 1, - StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671) }, new { Id = 4, - Capacity = 98, - MovieId = 3, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc) + Capacity = 26, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4672), + MovieId = 4, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4673) }, new { Id = 5, - Capacity = 43, - MovieId = 3, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc) + Capacity = 61, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674), + MovieId = 1, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674) }, new { Id = 6, - Capacity = 31, - MovieId = 1, + Capacity = 54, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4676), + MovieId = 4, ScreenNumber = 4, - StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) + StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4677) }, new { Id = 7, - Capacity = 66, - MovieId = 1, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc) + Capacity = 76, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686), + MovieId = 2, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686) }, new { Id = 8, - Capacity = 63, - MovieId = 1, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) + Capacity = 84, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4687), + MovieId = 4, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4688) }, new { Id = 9, - Capacity = 47, - MovieId = 3, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + Capacity = 83, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689), + MovieId = 2, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689) }, new { Id = 10, - Capacity = 36, + Capacity = 68, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4690), MovieId = 2, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + ScreenNumber = 2, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691) }, new { Id = 11, - Capacity = 81, - MovieId = 1, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc) + Capacity = 74, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691), + MovieId = 4, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4692) }, new { Id = 12, - Capacity = 28, + Capacity = 45, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693), MovieId = 1, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + ScreenNumber = 1, + StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693) }, new { Id = 13, - Capacity = 80, - MovieId = 1, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) + Capacity = 34, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694), + MovieId = 2, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694) }, new { Id = 14, - Capacity = 57, - MovieId = 1, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) + Capacity = 25, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695), + MovieId = 4, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695) }, new { Id = 15, - Capacity = 33, - MovieId = 3, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + Capacity = 67, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696), + MovieId = 4, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696) }, new { Id = 16, - Capacity = 94, - MovieId = 1, + Capacity = 67, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697), + MovieId = 4, ScreenNumber = 2, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697) }, new { Id = 17, - Capacity = 28, - MovieId = 2, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + Capacity = 68, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698), + MovieId = 4, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698) }, new { Id = 18, - Capacity = 52, - MovieId = 3, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) + Capacity = 35, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699), + MovieId = 1, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699) }, new { Id = 19, - Capacity = 75, - MovieId = 1, + Capacity = 72, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700), + MovieId = 4, ScreenNumber = 2, - StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700) }); }); @@ -681,1196 +843,1196 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) new { Id = 1, - CustomerId = 43, - ScreeningId = 14 + CustomerId = 28, + ScreeningId = 5 }, new { Id = 2, - CustomerId = 1, - ScreeningId = 5 + CustomerId = 32, + ScreeningId = 2 }, new { Id = 3, - CustomerId = 40, - ScreeningId = 9 + CustomerId = 21, + ScreeningId = 5 }, new { Id = 4, CustomerId = 10, - ScreeningId = 9 + ScreeningId = 17 }, new { Id = 5, - CustomerId = 26, - ScreeningId = 5 + CustomerId = 19, + ScreeningId = 3 }, new { Id = 6, - CustomerId = 26, - ScreeningId = 9 + CustomerId = 34, + ScreeningId = 2 }, new { Id = 7, - CustomerId = 45, - ScreeningId = 5 + CustomerId = 25, + ScreeningId = 2 }, new { Id = 8, - CustomerId = 47, - ScreeningId = 9 + CustomerId = 40, + ScreeningId = 6 }, new { Id = 9, - CustomerId = 10, - ScreeningId = 11 + CustomerId = 18, + ScreeningId = 17 }, new { Id = 10, - CustomerId = 31, - ScreeningId = 15 + CustomerId = 2, + ScreeningId = 4 }, new { Id = 11, - CustomerId = 43, - ScreeningId = 8 + CustomerId = 41, + ScreeningId = 10 }, new { Id = 12, - CustomerId = 2, - ScreeningId = 3 + CustomerId = 17, + ScreeningId = 11 }, new { Id = 13, - CustomerId = 18, - ScreeningId = 14 + CustomerId = 11, + ScreeningId = 10 }, new { Id = 14, - CustomerId = 15, - ScreeningId = 15 + CustomerId = 37, + ScreeningId = 16 }, new { Id = 15, - CustomerId = 29, - ScreeningId = 16 + CustomerId = 27, + ScreeningId = 4 }, new { Id = 16, - CustomerId = 46, - ScreeningId = 8 + CustomerId = 36, + ScreeningId = 16 }, new { Id = 17, - CustomerId = 30, + CustomerId = 31, ScreeningId = 2 }, new { Id = 18, - CustomerId = 3, - ScreeningId = 19 + CustomerId = 1, + ScreeningId = 3 }, new { Id = 19, - CustomerId = 48, - ScreeningId = 7 + CustomerId = 22, + ScreeningId = 14 }, new { Id = 20, - CustomerId = 41, - ScreeningId = 9 + CustomerId = 40, + ScreeningId = 17 }, new { Id = 21, - CustomerId = 3, - ScreeningId = 14 + CustomerId = 49, + ScreeningId = 2 }, new { Id = 22, - CustomerId = 16, - ScreeningId = 5 + CustomerId = 11, + ScreeningId = 3 }, new { Id = 23, - CustomerId = 14, - ScreeningId = 4 + CustomerId = 38, + ScreeningId = 17 }, new { Id = 24, - CustomerId = 39, - ScreeningId = 4 + CustomerId = 12, + ScreeningId = 5 }, new { Id = 25, - CustomerId = 7, - ScreeningId = 19 + CustomerId = 3, + ScreeningId = 16 }, new { Id = 26, - CustomerId = 32, - ScreeningId = 14 + CustomerId = 11, + ScreeningId = 4 }, new { Id = 27, - CustomerId = 35, + CustomerId = 19, ScreeningId = 7 }, new { Id = 28, - CustomerId = 22, - ScreeningId = 12 + CustomerId = 3, + ScreeningId = 13 }, new { Id = 29, - CustomerId = 21, - ScreeningId = 7 + CustomerId = 41, + ScreeningId = 12 }, new { Id = 30, - CustomerId = 2, - ScreeningId = 18 + CustomerId = 42, + ScreeningId = 8 }, new { Id = 31, - CustomerId = 44, - ScreeningId = 4 + CustomerId = 28, + ScreeningId = 16 }, new { Id = 32, - CustomerId = 42, - ScreeningId = 12 + CustomerId = 48, + ScreeningId = 15 }, new { Id = 33, - CustomerId = 48, - ScreeningId = 2 + CustomerId = 45, + ScreeningId = 6 }, new { Id = 34, - CustomerId = 5, - ScreeningId = 12 + CustomerId = 28, + ScreeningId = 4 }, new { Id = 35, - CustomerId = 37, - ScreeningId = 16 + CustomerId = 44, + ScreeningId = 2 }, new { Id = 36, CustomerId = 37, - ScreeningId = 10 + ScreeningId = 9 }, new { Id = 37, - CustomerId = 5, - ScreeningId = 18 + CustomerId = 30, + ScreeningId = 4 }, new { Id = 38, - CustomerId = 9, + CustomerId = 20, ScreeningId = 14 }, new { Id = 39, - CustomerId = 10, - ScreeningId = 3 + CustomerId = 39, + ScreeningId = 1 }, new { Id = 40, - CustomerId = 21, - ScreeningId = 16 + CustomerId = 14, + ScreeningId = 2 }, new { Id = 41, - CustomerId = 5, - ScreeningId = 17 + CustomerId = 2, + ScreeningId = 9 }, new { Id = 42, - CustomerId = 11, - ScreeningId = 15 + CustomerId = 28, + ScreeningId = 7 }, new { Id = 43, - CustomerId = 49, - ScreeningId = 7 + CustomerId = 25, + ScreeningId = 9 }, new { Id = 44, - CustomerId = 30, - ScreeningId = 5 + CustomerId = 42, + ScreeningId = 11 }, new { Id = 45, - CustomerId = 45, - ScreeningId = 18 + CustomerId = 1, + ScreeningId = 2 }, new { Id = 46, - CustomerId = 18, - ScreeningId = 19 + CustomerId = 1, + ScreeningId = 14 }, new { Id = 47, - CustomerId = 27, - ScreeningId = 5 + CustomerId = 1, + ScreeningId = 13 }, new { Id = 48, CustomerId = 38, - ScreeningId = 7 + ScreeningId = 13 }, new { Id = 49, - CustomerId = 1, - ScreeningId = 16 + CustomerId = 6, + ScreeningId = 7 }, new { Id = 50, - CustomerId = 34, - ScreeningId = 5 + CustomerId = 1, + ScreeningId = 15 }, new { Id = 51, - CustomerId = 4, - ScreeningId = 2 + CustomerId = 37, + ScreeningId = 7 }, new { Id = 52, CustomerId = 33, - ScreeningId = 11 + ScreeningId = 9 }, new { Id = 53, - CustomerId = 7, - ScreeningId = 19 + CustomerId = 3, + ScreeningId = 5 }, new { Id = 54, - CustomerId = 14, - ScreeningId = 12 + CustomerId = 40, + ScreeningId = 5 }, new { Id = 55, - CustomerId = 49, - ScreeningId = 5 + CustomerId = 9, + ScreeningId = 15 }, new { Id = 56, - CustomerId = 8, - ScreeningId = 11 + CustomerId = 49, + ScreeningId = 18 }, new { Id = 57, - CustomerId = 43, - ScreeningId = 4 + CustomerId = 29, + ScreeningId = 17 }, new { Id = 58, - CustomerId = 32, - ScreeningId = 6 + CustomerId = 4, + ScreeningId = 1 }, new { Id = 59, CustomerId = 40, - ScreeningId = 2 + ScreeningId = 19 }, new { Id = 60, - CustomerId = 38, - ScreeningId = 12 + CustomerId = 47, + ScreeningId = 15 }, new { Id = 61, - CustomerId = 29, - ScreeningId = 3 + CustomerId = 22, + ScreeningId = 6 }, new { Id = 62, - CustomerId = 24, - ScreeningId = 4 + CustomerId = 34, + ScreeningId = 12 }, new { Id = 63, - CustomerId = 11, - ScreeningId = 4 + CustomerId = 28, + ScreeningId = 14 }, new { Id = 64, - CustomerId = 6, - ScreeningId = 13 + CustomerId = 45, + ScreeningId = 8 }, new { Id = 65, CustomerId = 4, - ScreeningId = 13 + ScreeningId = 7 }, new { Id = 66, - CustomerId = 42, - ScreeningId = 8 + CustomerId = 47, + ScreeningId = 12 }, new { Id = 67, - CustomerId = 48, - ScreeningId = 16 + CustomerId = 22, + ScreeningId = 19 }, new { Id = 68, - CustomerId = 15, + CustomerId = 6, ScreeningId = 12 }, new { Id = 69, - CustomerId = 18, - ScreeningId = 13 + CustomerId = 47, + ScreeningId = 4 }, new { Id = 70, - CustomerId = 9, - ScreeningId = 19 + CustomerId = 17, + ScreeningId = 14 }, new { Id = 71, - CustomerId = 47, - ScreeningId = 6 + CustomerId = 40, + ScreeningId = 17 }, new { Id = 72, - CustomerId = 36, - ScreeningId = 4 + CustomerId = 21, + ScreeningId = 5 }, new { Id = 73, - CustomerId = 46, - ScreeningId = 6 + CustomerId = 4, + ScreeningId = 13 }, new { Id = 74, - CustomerId = 27, - ScreeningId = 19 + CustomerId = 4, + ScreeningId = 12 }, new { Id = 75, - CustomerId = 21, - ScreeningId = 19 + CustomerId = 41, + ScreeningId = 14 }, new { Id = 76, - CustomerId = 13, - ScreeningId = 9 + CustomerId = 19, + ScreeningId = 19 }, new { Id = 77, - CustomerId = 9, - ScreeningId = 13 + CustomerId = 20, + ScreeningId = 6 }, new { Id = 78, - CustomerId = 1, - ScreeningId = 12 + CustomerId = 9, + ScreeningId = 16 }, new { Id = 79, - CustomerId = 5, - ScreeningId = 15 + CustomerId = 14, + ScreeningId = 4 }, new { Id = 80, - CustomerId = 35, - ScreeningId = 14 + CustomerId = 44, + ScreeningId = 17 }, new { Id = 81, - CustomerId = 43, - ScreeningId = 14 + CustomerId = 26, + ScreeningId = 17 }, new { Id = 82, - CustomerId = 1, - ScreeningId = 10 + CustomerId = 37, + ScreeningId = 1 }, new { Id = 83, - CustomerId = 26, - ScreeningId = 18 + CustomerId = 41, + ScreeningId = 4 }, new { Id = 84, - CustomerId = 47, - ScreeningId = 2 + CustomerId = 8, + ScreeningId = 19 }, new { Id = 85, - CustomerId = 3, - ScreeningId = 4 + CustomerId = 46, + ScreeningId = 16 }, new { Id = 86, - CustomerId = 35, - ScreeningId = 2 + CustomerId = 38, + ScreeningId = 18 }, new { Id = 87, - CustomerId = 6, + CustomerId = 43, ScreeningId = 19 }, new { Id = 88, - CustomerId = 7, + CustomerId = 30, ScreeningId = 14 }, new { Id = 89, - CustomerId = 12, - ScreeningId = 15 + CustomerId = 36, + ScreeningId = 5 }, new { Id = 90, - CustomerId = 12, - ScreeningId = 19 + CustomerId = 6, + ScreeningId = 9 }, new { Id = 91, - CustomerId = 7, - ScreeningId = 17 + CustomerId = 17, + ScreeningId = 18 }, new { Id = 92, - CustomerId = 8, - ScreeningId = 14 + CustomerId = 40, + ScreeningId = 6 }, new { Id = 93, - CustomerId = 19, - ScreeningId = 2 + CustomerId = 25, + ScreeningId = 8 }, new { Id = 94, - CustomerId = 22, - ScreeningId = 18 + CustomerId = 28, + ScreeningId = 5 }, new { Id = 95, - CustomerId = 2, - ScreeningId = 16 + CustomerId = 19, + ScreeningId = 15 }, new { Id = 96, - CustomerId = 2, - ScreeningId = 4 + CustomerId = 33, + ScreeningId = 13 }, new { Id = 97, - CustomerId = 13, - ScreeningId = 8 + CustomerId = 5, + ScreeningId = 19 }, new { Id = 98, - CustomerId = 4, - ScreeningId = 9 + CustomerId = 36, + ScreeningId = 7 }, new { Id = 99, - CustomerId = 12, - ScreeningId = 11 + CustomerId = 18, + ScreeningId = 15 }, new { Id = 100, - CustomerId = 5, - ScreeningId = 6 + CustomerId = 43, + ScreeningId = 1 }, new { Id = 101, - CustomerId = 16, - ScreeningId = 16 + CustomerId = 19, + ScreeningId = 2 }, new { Id = 102, - CustomerId = 5, - ScreeningId = 14 + CustomerId = 47, + ScreeningId = 16 }, new { Id = 103, - CustomerId = 45, - ScreeningId = 8 + CustomerId = 24, + ScreeningId = 10 }, new { Id = 104, - CustomerId = 23, - ScreeningId = 15 + CustomerId = 29, + ScreeningId = 19 }, new { Id = 105, - CustomerId = 15, + CustomerId = 23, ScreeningId = 18 }, new { Id = 106, - CustomerId = 43, - ScreeningId = 4 + CustomerId = 49, + ScreeningId = 18 }, new { Id = 107, - CustomerId = 45, - ScreeningId = 14 + CustomerId = 26, + ScreeningId = 13 }, new { Id = 108, - CustomerId = 28, - ScreeningId = 12 + CustomerId = 17, + ScreeningId = 14 }, new { Id = 109, - CustomerId = 31, - ScreeningId = 17 + CustomerId = 46, + ScreeningId = 6 }, new { Id = 110, - CustomerId = 32, - ScreeningId = 18 + CustomerId = 46, + ScreeningId = 15 }, new { Id = 111, - CustomerId = 36, - ScreeningId = 18 + CustomerId = 47, + ScreeningId = 15 }, new { Id = 112, - CustomerId = 41, - ScreeningId = 16 + CustomerId = 31, + ScreeningId = 3 }, new { Id = 113, - CustomerId = 22, - ScreeningId = 14 + CustomerId = 48, + ScreeningId = 2 }, new { Id = 114, - CustomerId = 26, - ScreeningId = 18 + CustomerId = 31, + ScreeningId = 4 }, new { Id = 115, - CustomerId = 29, - ScreeningId = 1 + CustomerId = 21, + ScreeningId = 8 }, new { Id = 116, - CustomerId = 19, - ScreeningId = 18 + CustomerId = 36, + ScreeningId = 2 }, new { Id = 117, - CustomerId = 18, - ScreeningId = 11 + CustomerId = 8, + ScreeningId = 4 }, new { Id = 118, - CustomerId = 16, + CustomerId = 12, ScreeningId = 19 }, new { Id = 119, - CustomerId = 7, - ScreeningId = 5 + CustomerId = 42, + ScreeningId = 9 }, new { Id = 120, - CustomerId = 1, - ScreeningId = 7 + CustomerId = 13, + ScreeningId = 4 }, new { Id = 121, - CustomerId = 36, - ScreeningId = 2 + CustomerId = 16, + ScreeningId = 12 }, new { Id = 122, - CustomerId = 39, - ScreeningId = 12 + CustomerId = 30, + ScreeningId = 15 }, new { Id = 123, CustomerId = 13, - ScreeningId = 18 + ScreeningId = 17 }, new { Id = 124, - CustomerId = 13, - ScreeningId = 12 + CustomerId = 28, + ScreeningId = 7 }, new { Id = 125, - CustomerId = 25, - ScreeningId = 13 + CustomerId = 8, + ScreeningId = 8 }, new { Id = 126, - CustomerId = 31, - ScreeningId = 14 + CustomerId = 8, + ScreeningId = 9 }, new { Id = 127, - CustomerId = 18, - ScreeningId = 9 + CustomerId = 38, + ScreeningId = 14 }, new { Id = 128, - CustomerId = 42, - ScreeningId = 3 + CustomerId = 21, + ScreeningId = 10 }, new { Id = 129, - CustomerId = 9, - ScreeningId = 14 + CustomerId = 34, + ScreeningId = 9 }, new { Id = 130, - CustomerId = 44, - ScreeningId = 4 + CustomerId = 13, + ScreeningId = 18 }, new { Id = 131, - CustomerId = 6, - ScreeningId = 18 + CustomerId = 34, + ScreeningId = 16 }, new { Id = 132, - CustomerId = 18, - ScreeningId = 5 + CustomerId = 29, + ScreeningId = 18 }, new { Id = 133, - CustomerId = 39, - ScreeningId = 5 + CustomerId = 5, + ScreeningId = 16 }, new { Id = 134, - CustomerId = 13, - ScreeningId = 15 + CustomerId = 4, + ScreeningId = 3 }, new { Id = 135, - CustomerId = 36, - ScreeningId = 17 + CustomerId = 30, + ScreeningId = 9 }, new { Id = 136, - CustomerId = 15, - ScreeningId = 1 + CustomerId = 48, + ScreeningId = 4 }, new { Id = 137, - CustomerId = 35, - ScreeningId = 6 + CustomerId = 49, + ScreeningId = 1 }, new { Id = 138, - CustomerId = 28, - ScreeningId = 2 + CustomerId = 38, + ScreeningId = 15 }, new { Id = 139, - CustomerId = 16, - ScreeningId = 18 + CustomerId = 29, + ScreeningId = 6 }, new { Id = 140, - CustomerId = 39, - ScreeningId = 11 + CustomerId = 5, + ScreeningId = 15 }, new { Id = 141, - CustomerId = 7, + CustomerId = 12, ScreeningId = 8 }, new { Id = 142, - CustomerId = 38, - ScreeningId = 7 + CustomerId = 2, + ScreeningId = 13 }, new { Id = 143, - CustomerId = 2, - ScreeningId = 16 + CustomerId = 7, + ScreeningId = 2 }, new { Id = 144, - CustomerId = 24, - ScreeningId = 6 + CustomerId = 9, + ScreeningId = 16 }, new { Id = 145, - CustomerId = 42, + CustomerId = 26, ScreeningId = 13 }, new { Id = 146, - CustomerId = 6, - ScreeningId = 8 + CustomerId = 14, + ScreeningId = 11 }, new { Id = 147, - CustomerId = 26, - ScreeningId = 14 + CustomerId = 49, + ScreeningId = 3 }, new { Id = 148, - CustomerId = 40, - ScreeningId = 13 + CustomerId = 17, + ScreeningId = 7 }, new { Id = 149, - CustomerId = 16, - ScreeningId = 7 + CustomerId = 3, + ScreeningId = 18 }, new { Id = 150, - CustomerId = 21, + CustomerId = 17, ScreeningId = 14 }, new { Id = 151, - CustomerId = 6, - ScreeningId = 14 + CustomerId = 19, + ScreeningId = 2 }, new { Id = 152, - CustomerId = 11, - ScreeningId = 1 + CustomerId = 8, + ScreeningId = 7 }, new { Id = 153, - CustomerId = 19, - ScreeningId = 4 + CustomerId = 8, + ScreeningId = 12 }, new { Id = 154, - CustomerId = 20, - ScreeningId = 6 + CustomerId = 16, + ScreeningId = 15 }, new { Id = 155, - CustomerId = 34, - ScreeningId = 10 + CustomerId = 23, + ScreeningId = 12 }, new { Id = 156, - CustomerId = 41, - ScreeningId = 2 + CustomerId = 2, + ScreeningId = 4 }, new { Id = 157, - CustomerId = 42, - ScreeningId = 19 + CustomerId = 34, + ScreeningId = 7 }, new { Id = 158, - CustomerId = 27, - ScreeningId = 17 + CustomerId = 18, + ScreeningId = 16 }, new { Id = 159, - CustomerId = 46, - ScreeningId = 1 + CustomerId = 9, + ScreeningId = 12 }, new { Id = 160, - CustomerId = 5, - ScreeningId = 13 + CustomerId = 37, + ScreeningId = 18 }, new { Id = 161, - CustomerId = 2, - ScreeningId = 15 + CustomerId = 27, + ScreeningId = 17 }, new { Id = 162, - CustomerId = 39, - ScreeningId = 17 + CustomerId = 26, + ScreeningId = 3 }, new { Id = 163, - CustomerId = 20, - ScreeningId = 7 + CustomerId = 34, + ScreeningId = 11 }, new { Id = 164, - CustomerId = 5, - ScreeningId = 8 + CustomerId = 4, + ScreeningId = 4 }, new { Id = 165, - CustomerId = 1, - ScreeningId = 6 + CustomerId = 26, + ScreeningId = 10 }, new { Id = 166, - CustomerId = 14, - ScreeningId = 12 + CustomerId = 2, + ScreeningId = 6 }, new { Id = 167, - CustomerId = 35, - ScreeningId = 10 + CustomerId = 2, + ScreeningId = 9 }, new { Id = 168, - CustomerId = 32, - ScreeningId = 3 + CustomerId = 20, + ScreeningId = 5 }, new { Id = 169, - CustomerId = 6, - ScreeningId = 15 + CustomerId = 18, + ScreeningId = 12 }, new { Id = 170, - CustomerId = 24, - ScreeningId = 8 + CustomerId = 49, + ScreeningId = 11 }, new { Id = 171, - CustomerId = 10, - ScreeningId = 8 + CustomerId = 24, + ScreeningId = 11 }, new { Id = 172, - CustomerId = 5, - ScreeningId = 16 + CustomerId = 11, + ScreeningId = 11 }, new { Id = 173, - CustomerId = 19, - ScreeningId = 5 + CustomerId = 20, + ScreeningId = 2 }, new { Id = 174, - CustomerId = 27, - ScreeningId = 8 + CustomerId = 6, + ScreeningId = 11 }, new { Id = 175, - CustomerId = 39, - ScreeningId = 1 + CustomerId = 47, + ScreeningId = 13 }, new { Id = 176, - CustomerId = 49, - ScreeningId = 7 + CustomerId = 18, + ScreeningId = 9 }, new { Id = 177, - CustomerId = 34, - ScreeningId = 10 + CustomerId = 1, + ScreeningId = 14 }, new { Id = 178, - CustomerId = 38, - ScreeningId = 14 + CustomerId = 29, + ScreeningId = 9 }, new { Id = 179, - CustomerId = 47, + CustomerId = 21, ScreeningId = 11 }, new { Id = 180, - CustomerId = 22, - ScreeningId = 14 + CustomerId = 14, + ScreeningId = 2 }, new { Id = 181, - CustomerId = 32, - ScreeningId = 15 + CustomerId = 22, + ScreeningId = 6 }, new { Id = 182, - CustomerId = 23, - ScreeningId = 19 + CustomerId = 33, + ScreeningId = 10 }, new { Id = 183, - CustomerId = 3, - ScreeningId = 18 + CustomerId = 34, + ScreeningId = 6 }, new { Id = 184, - CustomerId = 8, - ScreeningId = 9 + CustomerId = 35, + ScreeningId = 8 }, new { Id = 185, - CustomerId = 1, - ScreeningId = 9 + CustomerId = 27, + ScreeningId = 12 }, new { Id = 186, - CustomerId = 16, - ScreeningId = 19 + CustomerId = 34, + ScreeningId = 2 }, new { Id = 187, - CustomerId = 3, - ScreeningId = 11 + CustomerId = 31, + ScreeningId = 3 }, new { Id = 188, - CustomerId = 28, - ScreeningId = 3 + CustomerId = 39, + ScreeningId = 5 }, new { Id = 189, - CustomerId = 34, - ScreeningId = 13 + CustomerId = 22, + ScreeningId = 3 }, new { Id = 190, - CustomerId = 1, - ScreeningId = 6 + CustomerId = 3, + ScreeningId = 4 }, new { Id = 191, - CustomerId = 26, - ScreeningId = 8 + CustomerId = 42, + ScreeningId = 12 }, new { Id = 192, - CustomerId = 14, - ScreeningId = 5 + CustomerId = 47, + ScreeningId = 18 }, new { Id = 193, - CustomerId = 37, - ScreeningId = 11 + CustomerId = 5, + ScreeningId = 18 }, new { Id = 194, - CustomerId = 13, - ScreeningId = 11 + CustomerId = 3, + ScreeningId = 15 }, new { Id = 195, - CustomerId = 46, - ScreeningId = 4 + CustomerId = 26, + ScreeningId = 19 }, new { Id = 196, - CustomerId = 49, - ScreeningId = 12 + CustomerId = 44, + ScreeningId = 8 }, new { Id = 197, - CustomerId = 45, - ScreeningId = 7 + CustomerId = 29, + ScreeningId = 18 }, new { Id = 198, - CustomerId = 25, - ScreeningId = 9 + CustomerId = 30, + ScreeningId = 7 }, new { Id = 199, - CustomerId = 6, - ScreeningId = 15 + CustomerId = 2, + ScreeningId = 8 }); }); diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.cs new file mode 100644 index 00000000..8ceb223d --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.cs @@ -0,0 +1,433 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional + +namespace api_cinema_challenge.Migrations +{ + /// + public partial class First : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Customers", + columns: table => new + { + customer_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + name = table.Column(type: "text", nullable: false), + email = table.Column(type: "text", nullable: false), + phone = table.Column(type: "text", nullable: false), + CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), + UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Customers", x => x.customer_id); + }); + + migrationBuilder.CreateTable( + name: "movie", + columns: table => new + { + movie_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + title = table.Column(type: "text", nullable: false), + rating = table.Column(type: "text", nullable: false), + description = table.Column(type: "text", nullable: false), + runtime_mins = table.Column(type: "integer", nullable: false), + CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), + UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_movie", x => x.movie_id); + }); + + migrationBuilder.CreateTable( + name: "screenings", + columns: table => new + { + screening_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + screen_number = table.Column(type: "integer", nullable: false), + capacity = table.Column(type: "integer", nullable: false), + starts_at = table.Column(type: "timestamp with time zone", nullable: false), + movie_id = table.Column(type: "integer", nullable: false), + CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), + UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_screenings", x => x.screening_id); + table.ForeignKey( + name: "FK_screenings_movie_movie_id", + column: x => x.movie_id, + principalTable: "movie", + principalColumn: "movie_id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "tickets", + columns: table => new + { + ticket_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + screening_id = table.Column(type: "integer", nullable: false), + customer_id = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_tickets", x => x.ticket_id); + table.ForeignKey( + name: "FK_tickets_Customers_customer_id", + column: x => x.customer_id, + principalTable: "Customers", + principalColumn: "customer_id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_tickets_screenings_screening_id", + column: x => x.screening_id, + principalTable: "screenings", + principalColumn: "screening_id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.InsertData( + table: "Customers", + columns: new[] { "customer_id", "CreatedAt", "email", "name", "phone", "UpdatedAt" }, + values: new object[,] + { + { 1, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(713), "kate middleton@gov.gr", "Kate Middleton", "57323012", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(932) }, + { 2, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183), "kate trump@something.com", "Kate Trump", "90036955", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183) }, + { 3, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2204), "kate winslet@gov.ru", "Kate Winslet", "79662272", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2208) }, + { 4, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211), "kate winslet@something.com", "Kate Winslet", "97434122", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211) }, + { 5, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2213), "elvis hendrix@gov.us", "Elvis Hendrix", "84320894", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2215) }, + { 6, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2240), "kate hendrix@gov.ru", "Kate Hendrix", "86093045", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2241) }, + { 7, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2242), "jimi trump@google.com", "Jimi Trump", "77608896", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2243) }, + { 8, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2244), "kate hendrix@gov.nl", "Kate Hendrix", "30950692", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2245) }, + { 9, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246), "charles hepburn@google.com", "Charles Hepburn", "53960475", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246) }, + { 10, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249), "barack obama@gov.nl", "Barack Obama", "11402717", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249) }, + { 11, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252), "mick jagger@gov.gr", "Mick Jagger", "74377263", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252) }, + { 12, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2253), "kate hepburn@tesla.com", "Kate Hepburn", "37130689", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2254) }, + { 13, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255), "kate windsor@google.com", "Kate Windsor", "17850864", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255) }, + { 14, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257), "donald jagger@tesla.com", "Donald Jagger", "96174535", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257) }, + { 15, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259), "barack hendrix@something.com", "Barack Hendrix", "38010217", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259) }, + { 16, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260), "elvis winfrey@gov.nl", "Elvis Winfrey", "68797228", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260) }, + { 17, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262), "mick middleton@something.com", "Mick Middleton", "55871184", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262) }, + { 18, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2265), "elvis obama@nasa.org.us", "Elvis Obama", "99746360", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2266) }, + { 19, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267), "jimi hepburn@gov.gr", "Jimi Hepburn", "15774057", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267) }, + { 20, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269), "kate presley@tesla.com", "Kate Presley", "33030025", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269) }, + { 21, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270), "mick windsor@theworld.ca", "Mick Windsor", "68406720", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270) }, + { 22, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272), "mick windsor@bbc.co.uk", "Mick Windsor", "70274513", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272) }, + { 23, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273), "barack windsor@google.com", "Barack Windsor", "10112351", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273) }, + { 24, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275), "elvis hendrix@bbc.co.uk", "Elvis Hendrix", "21340088", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275) }, + { 25, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276), "barack hendrix@nasa.org.us", "Barack Hendrix", "67170625", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276) }, + { 26, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278), "kate winslet@bbc.co.uk", "Kate Winslet", "86772435", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278) }, + { 27, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279), "barack obama@bbc.co.uk", "Barack Obama", "83625317", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279) }, + { 28, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281), "jimi hepburn@gov.nl", "Jimi Hepburn", "89412341", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281) }, + { 29, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2293), "mick jagger@gov.nl", "Mick Jagger", "37434825", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2294) }, + { 30, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2295), "barack jagger@gov.ru", "Barack Jagger", "23194181", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2296) }, + { 31, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297), "elvis winfrey@gov.nl", "Elvis Winfrey", "54447837", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297) }, + { 32, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299), "kate winfrey@bbc.co.uk", "Kate Winfrey", "58976369", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299) }, + { 33, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2300), "charles jagger@something.com", "Charles Jagger", "22440998", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2301) }, + { 34, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303), "kate middleton@nasa.org.us", "Kate Middleton", "19231484", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303) }, + { 35, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2304), "oprah jagger@nasa.org.us", "Oprah Jagger", "96209492", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2305) }, + { 36, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306), "jimi middleton@gov.us", "Jimi Middleton", "14860055", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306) }, + { 37, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308), "mick windsor@bbc.co.uk", "Mick Windsor", "46462376", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308) }, + { 38, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2309), "elvis presley@theworld.ca", "Elvis Presley", "11443439", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2310) }, + { 39, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311), "donald winfrey@something.com", "Donald Winfrey", "71902615", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311) }, + { 40, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313), "charles hepburn@gov.us", "Charles Hepburn", "42984697", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313) }, + { 41, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2314), "mick jagger@tesla.com", "Mick Jagger", "36431777", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2315) }, + { 42, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316), "jimi hepburn@gov.nl", "Jimi Hepburn", "93119392", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316) }, + { 43, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318), "mick middleton@bbc.co.uk", "Mick Middleton", "60445327", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318) }, + { 44, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2319), "jimi winslet@tesla.com", "Jimi Winslet", "27412326", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2320) }, + { 45, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321), "audrey windsor@tesla.com", "Audrey Windsor", "41701761", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321) }, + { 46, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2322), "kate middleton@gov.nl", "Kate Middleton", "77306134", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2323) }, + { 47, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2324), "mick hepburn@gov.gr", "Mick Hepburn", "69932733", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2325) }, + { 48, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326), "donald winslet@gov.us", "Donald Winslet", "95603319", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326) }, + { 49, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2327), "elvis trump@gov.ru", "Elvis Trump", "75749612", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2328) } + }); + + migrationBuilder.InsertData( + table: "movie", + columns: new[] { "movie_id", "CreatedAt", "description", "rating", "runtime_mins", "title", "UpdatedAt" }, + values: new object[,] + { + { 1, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2700), "Very funny", "years 18+", 148, "The Bitter Flowers", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2811) }, + { 2, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3338), "Very funny", "years 16+", 93, "A bunch of Orange Flowers", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3339) }, + { 3, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3343), "Very funny", "years 6+", 127, "Several Transparent Buildings", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3344) }, + { 4, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346), "Very funny", "All", 70, "A herd of Green Planets", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346) } + }); + + migrationBuilder.InsertData( + table: "screenings", + columns: new[] { "screening_id", "capacity", "CreatedAt", "movie_id", "screen_number", "starts_at", "UpdatedAt" }, + values: new object[,] + { + { 1, 89, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3602), 3, 0, new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3692) }, + { 2, 89, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4667), 2, 0, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4668) }, + { 3, 57, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671), 2, 1, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671) }, + { 4, 26, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4672), 4, 3, new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4673) }, + { 5, 61, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674), 1, 0, new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674) }, + { 6, 54, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4676), 4, 4, new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4677) }, + { 7, 76, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686), 2, 3, new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686) }, + { 8, 84, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4687), 4, 1, new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4688) }, + { 9, 83, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689), 2, 4, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689) }, + { 10, 68, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4690), 2, 2, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691) }, + { 11, 74, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691), 4, 0, new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4692) }, + { 12, 45, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693), 1, 1, new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693) }, + { 13, 34, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694), 2, 2, new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694) }, + { 14, 25, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695), 4, 0, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695) }, + { 15, 67, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696), 4, 3, new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696) }, + { 16, 67, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697), 4, 2, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697) }, + { 17, 68, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698), 4, 0, new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698) }, + { 18, 35, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699), 1, 1, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699) }, + { 19, 72, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700), 4, 2, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700) } + }); + + migrationBuilder.InsertData( + table: "tickets", + columns: new[] { "ticket_id", "customer_id", "screening_id" }, + values: new object[,] + { + { 1, 28, 5 }, + { 2, 32, 2 }, + { 3, 21, 5 }, + { 4, 10, 17 }, + { 5, 19, 3 }, + { 6, 34, 2 }, + { 7, 25, 2 }, + { 8, 40, 6 }, + { 9, 18, 17 }, + { 10, 2, 4 }, + { 11, 41, 10 }, + { 12, 17, 11 }, + { 13, 11, 10 }, + { 14, 37, 16 }, + { 15, 27, 4 }, + { 16, 36, 16 }, + { 17, 31, 2 }, + { 18, 1, 3 }, + { 19, 22, 14 }, + { 20, 40, 17 }, + { 21, 49, 2 }, + { 22, 11, 3 }, + { 23, 38, 17 }, + { 24, 12, 5 }, + { 25, 3, 16 }, + { 26, 11, 4 }, + { 27, 19, 7 }, + { 28, 3, 13 }, + { 29, 41, 12 }, + { 30, 42, 8 }, + { 31, 28, 16 }, + { 32, 48, 15 }, + { 33, 45, 6 }, + { 34, 28, 4 }, + { 35, 44, 2 }, + { 36, 37, 9 }, + { 37, 30, 4 }, + { 38, 20, 14 }, + { 39, 39, 1 }, + { 40, 14, 2 }, + { 41, 2, 9 }, + { 42, 28, 7 }, + { 43, 25, 9 }, + { 44, 42, 11 }, + { 45, 1, 2 }, + { 46, 1, 14 }, + { 47, 1, 13 }, + { 48, 38, 13 }, + { 49, 6, 7 }, + { 50, 1, 15 }, + { 51, 37, 7 }, + { 52, 33, 9 }, + { 53, 3, 5 }, + { 54, 40, 5 }, + { 55, 9, 15 }, + { 56, 49, 18 }, + { 57, 29, 17 }, + { 58, 4, 1 }, + { 59, 40, 19 }, + { 60, 47, 15 }, + { 61, 22, 6 }, + { 62, 34, 12 }, + { 63, 28, 14 }, + { 64, 45, 8 }, + { 65, 4, 7 }, + { 66, 47, 12 }, + { 67, 22, 19 }, + { 68, 6, 12 }, + { 69, 47, 4 }, + { 70, 17, 14 }, + { 71, 40, 17 }, + { 72, 21, 5 }, + { 73, 4, 13 }, + { 74, 4, 12 }, + { 75, 41, 14 }, + { 76, 19, 19 }, + { 77, 20, 6 }, + { 78, 9, 16 }, + { 79, 14, 4 }, + { 80, 44, 17 }, + { 81, 26, 17 }, + { 82, 37, 1 }, + { 83, 41, 4 }, + { 84, 8, 19 }, + { 85, 46, 16 }, + { 86, 38, 18 }, + { 87, 43, 19 }, + { 88, 30, 14 }, + { 89, 36, 5 }, + { 90, 6, 9 }, + { 91, 17, 18 }, + { 92, 40, 6 }, + { 93, 25, 8 }, + { 94, 28, 5 }, + { 95, 19, 15 }, + { 96, 33, 13 }, + { 97, 5, 19 }, + { 98, 36, 7 }, + { 99, 18, 15 }, + { 100, 43, 1 }, + { 101, 19, 2 }, + { 102, 47, 16 }, + { 103, 24, 10 }, + { 104, 29, 19 }, + { 105, 23, 18 }, + { 106, 49, 18 }, + { 107, 26, 13 }, + { 108, 17, 14 }, + { 109, 46, 6 }, + { 110, 46, 15 }, + { 111, 47, 15 }, + { 112, 31, 3 }, + { 113, 48, 2 }, + { 114, 31, 4 }, + { 115, 21, 8 }, + { 116, 36, 2 }, + { 117, 8, 4 }, + { 118, 12, 19 }, + { 119, 42, 9 }, + { 120, 13, 4 }, + { 121, 16, 12 }, + { 122, 30, 15 }, + { 123, 13, 17 }, + { 124, 28, 7 }, + { 125, 8, 8 }, + { 126, 8, 9 }, + { 127, 38, 14 }, + { 128, 21, 10 }, + { 129, 34, 9 }, + { 130, 13, 18 }, + { 131, 34, 16 }, + { 132, 29, 18 }, + { 133, 5, 16 }, + { 134, 4, 3 }, + { 135, 30, 9 }, + { 136, 48, 4 }, + { 137, 49, 1 }, + { 138, 38, 15 }, + { 139, 29, 6 }, + { 140, 5, 15 }, + { 141, 12, 8 }, + { 142, 2, 13 }, + { 143, 7, 2 }, + { 144, 9, 16 }, + { 145, 26, 13 }, + { 146, 14, 11 }, + { 147, 49, 3 }, + { 148, 17, 7 }, + { 149, 3, 18 }, + { 150, 17, 14 }, + { 151, 19, 2 }, + { 152, 8, 7 }, + { 153, 8, 12 }, + { 154, 16, 15 }, + { 155, 23, 12 }, + { 156, 2, 4 }, + { 157, 34, 7 }, + { 158, 18, 16 }, + { 159, 9, 12 }, + { 160, 37, 18 }, + { 161, 27, 17 }, + { 162, 26, 3 }, + { 163, 34, 11 }, + { 164, 4, 4 }, + { 165, 26, 10 }, + { 166, 2, 6 }, + { 167, 2, 9 }, + { 168, 20, 5 }, + { 169, 18, 12 }, + { 170, 49, 11 }, + { 171, 24, 11 }, + { 172, 11, 11 }, + { 173, 20, 2 }, + { 174, 6, 11 }, + { 175, 47, 13 }, + { 176, 18, 9 }, + { 177, 1, 14 }, + { 178, 29, 9 }, + { 179, 21, 11 }, + { 180, 14, 2 }, + { 181, 22, 6 }, + { 182, 33, 10 }, + { 183, 34, 6 }, + { 184, 35, 8 }, + { 185, 27, 12 }, + { 186, 34, 2 }, + { 187, 31, 3 }, + { 188, 39, 5 }, + { 189, 22, 3 }, + { 190, 3, 4 }, + { 191, 42, 12 }, + { 192, 47, 18 }, + { 193, 5, 18 }, + { 194, 3, 15 }, + { 195, 26, 19 }, + { 196, 44, 8 }, + { 197, 29, 18 }, + { 198, 30, 7 }, + { 199, 2, 8 } + }); + + migrationBuilder.CreateIndex( + name: "IX_screenings_movie_id", + table: "screenings", + column: "movie_id"); + + migrationBuilder.CreateIndex( + name: "IX_tickets_customer_id", + table: "tickets", + column: "customer_id"); + + migrationBuilder.CreateIndex( + name: "IX_tickets_screening_id", + table: "tickets", + column: "screening_id"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "tickets"); + + migrationBuilder.DropTable( + name: "Customers"); + + migrationBuilder.DropTable( + name: "screenings"); + + migrationBuilder.DropTable( + name: "movie"); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs index 64fa8e1f..98acd465 100644 --- a/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs @@ -31,6 +31,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + b.Property("Email") .IsRequired() .HasColumnType("text") @@ -46,6 +49,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("text") .HasColumnName("phone"); + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + b.HasKey("Id"); b.ToTable("Customers"); @@ -54,345 +60,443 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - Email = "mick winfrey@gov.gr", - Name = "Mick Winfrey", - Phone = "52368274" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(713), + Email = "kate middleton@gov.gr", + Name = "Kate Middleton", + Phone = "57323012", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(932) }, new { Id = 2, - Email = "charles winfrey@gov.nl", - Name = "Charles Winfrey", - Phone = "79181350" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183), + Email = "kate trump@something.com", + Name = "Kate Trump", + Phone = "90036955", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183) }, new { Id = 3, - Email = "jimi hendrix@bbc.co.uk", - Name = "Jimi Hendrix", - Phone = "72502892" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2204), + Email = "kate winslet@gov.ru", + Name = "Kate Winslet", + Phone = "79662272", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2208) }, new { Id = 4, - Email = "jimi hepburn@gov.ru", - Name = "Jimi Hepburn", - Phone = "15545519" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211), + Email = "kate winslet@something.com", + Name = "Kate Winslet", + Phone = "97434122", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211) }, new { Id = 5, - Email = "audrey hepburn@theworld.ca", - Name = "Audrey Hepburn", - Phone = "92238414" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2213), + Email = "elvis hendrix@gov.us", + Name = "Elvis Hendrix", + Phone = "84320894", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2215) }, new { Id = 6, - Email = "kate trump@bbc.co.uk", - Name = "Kate Trump", - Phone = "86190574" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2240), + Email = "kate hendrix@gov.ru", + Name = "Kate Hendrix", + Phone = "86093045", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2241) }, new { Id = 7, - Email = "kate obama@google.com", - Name = "Kate Obama", - Phone = "18975724" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2242), + Email = "jimi trump@google.com", + Name = "Jimi Trump", + Phone = "77608896", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2243) }, new { Id = 8, - Email = "jimi winslet@gov.nl", - Name = "Jimi Winslet", - Phone = "92579632" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2244), + Email = "kate hendrix@gov.nl", + Name = "Kate Hendrix", + Phone = "30950692", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2245) }, new { Id = 9, - Email = "mick hepburn@gov.ru", - Name = "Mick Hepburn", - Phone = "67334813" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246), + Email = "charles hepburn@google.com", + Name = "Charles Hepburn", + Phone = "53960475", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246) }, new { Id = 10, - Email = "kate hendrix@tesla.com", - Name = "Kate Hendrix", - Phone = "82550950" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249), + Email = "barack obama@gov.nl", + Name = "Barack Obama", + Phone = "11402717", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249) }, new { Id = 11, - Email = "oprah presley@gov.gr", - Name = "Oprah Presley", - Phone = "52997360" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252), + Email = "mick jagger@gov.gr", + Name = "Mick Jagger", + Phone = "74377263", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252) }, new { Id = 12, - Email = "elvis hepburn@google.com", - Name = "Elvis Hepburn", - Phone = "64207390" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2253), + Email = "kate hepburn@tesla.com", + Name = "Kate Hepburn", + Phone = "37130689", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2254) }, new { Id = 13, - Email = "oprah jagger@gov.gr", - Name = "Oprah Jagger", - Phone = "91111243" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255), + Email = "kate windsor@google.com", + Name = "Kate Windsor", + Phone = "17850864", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255) }, new { Id = 14, - Email = "elvis hendrix@gov.us", - Name = "Elvis Hendrix", - Phone = "13823444" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257), + Email = "donald jagger@tesla.com", + Name = "Donald Jagger", + Phone = "96174535", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257) }, new { Id = 15, - Email = "kate hepburn@gov.ru", - Name = "Kate Hepburn", - Phone = "97284220" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259), + Email = "barack hendrix@something.com", + Name = "Barack Hendrix", + Phone = "38010217", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259) }, new { Id = 16, - Email = "mick jagger@bbc.co.uk", - Name = "Mick Jagger", - Phone = "28858754" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260), + Email = "elvis winfrey@gov.nl", + Name = "Elvis Winfrey", + Phone = "68797228", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260) }, new { Id = 17, - Email = "elvis winfrey@gov.ru", - Name = "Elvis Winfrey", - Phone = "30038727" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262), + Email = "mick middleton@something.com", + Name = "Mick Middleton", + Phone = "55871184", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262) }, new { Id = 18, - Email = "barack presley@tesla.com", - Name = "Barack Presley", - Phone = "99825705" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2265), + Email = "elvis obama@nasa.org.us", + Name = "Elvis Obama", + Phone = "99746360", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2266) }, new { Id = 19, - Email = "kate hepburn@gov.nl", - Name = "Kate Hepburn", - Phone = "74139655" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267), + Email = "jimi hepburn@gov.gr", + Name = "Jimi Hepburn", + Phone = "15774057", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267) }, new { Id = 20, - Email = "mick jagger@gov.us", - Name = "Mick Jagger", - Phone = "95805889" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269), + Email = "kate presley@tesla.com", + Name = "Kate Presley", + Phone = "33030025", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269) }, new { Id = 21, - Email = "mick presley@something.com", - Name = "Mick Presley", - Phone = "48857519" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270), + Email = "mick windsor@theworld.ca", + Name = "Mick Windsor", + Phone = "68406720", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270) }, new { Id = 22, - Email = "charles jagger@gov.nl", - Name = "Charles Jagger", - Phone = "17920562" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272), + Email = "mick windsor@bbc.co.uk", + Name = "Mick Windsor", + Phone = "70274513", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272) }, new { Id = 23, - Email = "barack trump@tesla.com", - Name = "Barack Trump", - Phone = "26069406" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273), + Email = "barack windsor@google.com", + Name = "Barack Windsor", + Phone = "10112351", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273) }, new { Id = 24, - Email = "kate winslet@gov.nl", - Name = "Kate Winslet", - Phone = "69787774" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275), + Email = "elvis hendrix@bbc.co.uk", + Name = "Elvis Hendrix", + Phone = "21340088", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275) }, new { Id = 25, - Email = "jimi obama@bbc.co.uk", - Name = "Jimi Obama", - Phone = "29989532" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276), + Email = "barack hendrix@nasa.org.us", + Name = "Barack Hendrix", + Phone = "67170625", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276) }, new { Id = 26, - Email = "elvis obama@gov.nl", - Name = "Elvis Obama", - Phone = "44895432" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278), + Email = "kate winslet@bbc.co.uk", + Name = "Kate Winslet", + Phone = "86772435", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278) }, new { Id = 27, - Email = "oprah hepburn@gov.nl", - Name = "Oprah Hepburn", - Phone = "89556044" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279), + Email = "barack obama@bbc.co.uk", + Name = "Barack Obama", + Phone = "83625317", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279) }, new { Id = 28, - Email = "elvis windsor@gov.gr", - Name = "Elvis Windsor", - Phone = "60390346" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281), + Email = "jimi hepburn@gov.nl", + Name = "Jimi Hepburn", + Phone = "89412341", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281) }, new { Id = 29, - Email = "charles windsor@theworld.ca", - Name = "Charles Windsor", - Phone = "44104543" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2293), + Email = "mick jagger@gov.nl", + Name = "Mick Jagger", + Phone = "37434825", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2294) }, new { Id = 30, - Email = "donald hendrix@gov.ru", - Name = "Donald Hendrix", - Phone = "25105264" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2295), + Email = "barack jagger@gov.ru", + Name = "Barack Jagger", + Phone = "23194181", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2296) }, new { Id = 31, - Email = "elvis obama@something.com", - Name = "Elvis Obama", - Phone = "52810651" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297), + Email = "elvis winfrey@gov.nl", + Name = "Elvis Winfrey", + Phone = "54447837", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297) }, new { Id = 32, - Email = "barack winfrey@google.com", - Name = "Barack Winfrey", - Phone = "34881251" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299), + Email = "kate winfrey@bbc.co.uk", + Name = "Kate Winfrey", + Phone = "58976369", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299) }, new { Id = 33, - Email = "mick obama@tesla.com", - Name = "Mick Obama", - Phone = "36227999" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2300), + Email = "charles jagger@something.com", + Name = "Charles Jagger", + Phone = "22440998", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2301) }, new { Id = 34, - Email = "oprah hepburn@tesla.com", - Name = "Oprah Hepburn", - Phone = "73319625" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303), + Email = "kate middleton@nasa.org.us", + Name = "Kate Middleton", + Phone = "19231484", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303) }, new { Id = 35, - Email = "kate windsor@something.com", - Name = "Kate Windsor", - Phone = "61318402" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2304), + Email = "oprah jagger@nasa.org.us", + Name = "Oprah Jagger", + Phone = "96209492", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2305) }, new { Id = 36, - Email = "audrey presley@tesla.com", - Name = "Audrey Presley", - Phone = "39504124" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306), + Email = "jimi middleton@gov.us", + Name = "Jimi Middleton", + Phone = "14860055", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306) }, new { Id = 37, - Email = "kate presley@google.com", - Name = "Kate Presley", - Phone = "16265734" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308), + Email = "mick windsor@bbc.co.uk", + Name = "Mick Windsor", + Phone = "46462376", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308) }, new { Id = 38, - Email = "donald hendrix@google.com", - Name = "Donald Hendrix", - Phone = "35991180" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2309), + Email = "elvis presley@theworld.ca", + Name = "Elvis Presley", + Phone = "11443439", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2310) }, new { Id = 39, - Email = "mick hepburn@bbc.co.uk", - Name = "Mick Hepburn", - Phone = "49117273" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311), + Email = "donald winfrey@something.com", + Name = "Donald Winfrey", + Phone = "71902615", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311) }, new { Id = 40, - Email = "oprah winfrey@gov.ru", - Name = "Oprah Winfrey", - Phone = "72634505" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313), + Email = "charles hepburn@gov.us", + Name = "Charles Hepburn", + Phone = "42984697", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313) }, new { Id = 41, - Email = "jimi trump@gov.us", - Name = "Jimi Trump", - Phone = "96850307" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2314), + Email = "mick jagger@tesla.com", + Name = "Mick Jagger", + Phone = "36431777", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2315) }, new { Id = 42, - Email = "jimi winslet@gov.gr", - Name = "Jimi Winslet", - Phone = "27324349" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316), + Email = "jimi hepburn@gov.nl", + Name = "Jimi Hepburn", + Phone = "93119392", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316) }, new { Id = 43, - Email = "audrey jagger@tesla.com", - Name = "Audrey Jagger", - Phone = "91669517" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318), + Email = "mick middleton@bbc.co.uk", + Name = "Mick Middleton", + Phone = "60445327", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318) }, new { Id = 44, - Email = "audrey obama@nasa.org.us", - Name = "Audrey Obama", - Phone = "51414027" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2319), + Email = "jimi winslet@tesla.com", + Name = "Jimi Winslet", + Phone = "27412326", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2320) }, new { Id = 45, - Email = "kate jagger@gov.us", - Name = "Kate Jagger", - Phone = "52606573" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321), + Email = "audrey windsor@tesla.com", + Name = "Audrey Windsor", + Phone = "41701761", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321) }, new { Id = 46, - Email = "audrey obama@something.com", - Name = "Audrey Obama", - Phone = "41214230" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2322), + Email = "kate middleton@gov.nl", + Name = "Kate Middleton", + Phone = "77306134", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2323) }, new { Id = 47, - Email = "kate obama@gov.us", - Name = "Kate Obama", - Phone = "11348879" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2324), + Email = "mick hepburn@gov.gr", + Name = "Mick Hepburn", + Phone = "69932733", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2325) }, new { Id = 48, - Email = "audrey presley@something.com", - Name = "Audrey Presley", - Phone = "87270053" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326), + Email = "donald winslet@gov.us", + Name = "Donald Winslet", + Phone = "95603319", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326) }, new { Id = 49, - Email = "kate hendrix@tesla.com", - Name = "Kate Hendrix", - Phone = "36685672" + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2327), + Email = "elvis trump@gov.ru", + Name = "Elvis Trump", + Phone = "75749612", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2328) }); }); @@ -405,6 +509,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + b.Property("Description") .IsRequired() .HasColumnType("text") @@ -424,6 +531,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("text") .HasColumnName("title"); + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + b.HasKey("Id"); b.ToTable("movie"); @@ -432,34 +542,42 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2700), Description = "Very funny", - Rating = "years 16+", - RunTimeMins = 146, - Title = "The Transparent Flowers" + Rating = "years 18+", + RunTimeMins = 148, + Title = "The Bitter Flowers", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2811) }, new { Id = 2, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3338), Description = "Very funny", - Rating = "years 6+", - RunTimeMins = 117, - Title = "Two Microscopic Houses" + Rating = "years 16+", + RunTimeMins = 93, + Title = "A bunch of Orange Flowers", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3339) }, new { Id = 3, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3343), Description = "Very funny", - Rating = "years 11+", - RunTimeMins = 129, - Title = "A herd of Orange Leopards" + Rating = "years 6+", + RunTimeMins = 127, + Title = "Several Transparent Buildings", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3344) }, new { Id = 4, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346), Description = "Very funny", - Rating = "years 16+", - RunTimeMins = 80, - Title = "Several Microscopic Houses" + Rating = "All", + RunTimeMins = 70, + Title = "A herd of Green Planets", + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346) }); }); @@ -476,6 +594,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("integer") .HasColumnName("capacity"); + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + b.Property("MovieId") .HasColumnType("integer") .HasColumnName("movie_id"); @@ -488,6 +609,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("timestamp with time zone") .HasColumnName("starts_at"); + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + b.HasKey("Id"); b.HasIndex("MovieId"); @@ -498,154 +622,192 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - Capacity = 67, - MovieId = 2, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc) + Capacity = 89, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3602), + MovieId = 3, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3692) }, new { Id = 2, - Capacity = 46, - MovieId = 3, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) + Capacity = 89, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4667), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4668) }, new { Id = 3, - Capacity = 27, + Capacity = 57, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671), MovieId = 2, ScreenNumber = 1, - StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671) }, new { Id = 4, - Capacity = 98, - MovieId = 3, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc) + Capacity = 26, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4672), + MovieId = 4, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4673) }, new { Id = 5, - Capacity = 43, - MovieId = 3, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc) + Capacity = 61, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674), + MovieId = 1, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674) }, new { Id = 6, - Capacity = 31, - MovieId = 1, + Capacity = 54, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4676), + MovieId = 4, ScreenNumber = 4, - StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) + StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4677) }, new { Id = 7, - Capacity = 66, - MovieId = 1, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc) + Capacity = 76, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686), + MovieId = 2, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686) }, new { Id = 8, - Capacity = 63, - MovieId = 1, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc) + Capacity = 84, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4687), + MovieId = 4, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4688) }, new { Id = 9, - Capacity = 47, - MovieId = 3, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + Capacity = 83, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689), + MovieId = 2, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689) }, new { Id = 10, - Capacity = 36, + Capacity = 68, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4690), MovieId = 2, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + ScreenNumber = 2, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691) }, new { Id = 11, - Capacity = 81, - MovieId = 1, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc) + Capacity = 74, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691), + MovieId = 4, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4692) }, new { Id = 12, - Capacity = 28, + Capacity = 45, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693), MovieId = 1, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + ScreenNumber = 1, + StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693) }, new { Id = 13, - Capacity = 80, - MovieId = 1, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc) + Capacity = 34, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694), + MovieId = 2, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694) }, new { Id = 14, - Capacity = 57, - MovieId = 1, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) + Capacity = 25, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695), + MovieId = 4, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695) }, new { Id = 15, - Capacity = 33, - MovieId = 3, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + Capacity = 67, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696), + MovieId = 4, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696) }, new { Id = 16, - Capacity = 94, - MovieId = 1, + Capacity = 67, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697), + MovieId = 4, ScreenNumber = 2, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc) + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697) }, new { Id = 17, - Capacity = 28, - MovieId = 2, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc) + Capacity = 68, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698), + MovieId = 4, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698) }, new { Id = 18, - Capacity = 52, - MovieId = 3, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc) + Capacity = 35, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699), + MovieId = 1, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699) }, new { Id = 19, - Capacity = 75, - MovieId = 1, + Capacity = 72, + CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700), + MovieId = 4, ScreenNumber = 2, - StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc) + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700) }); }); @@ -678,1196 +840,1196 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - CustomerId = 43, - ScreeningId = 14 + CustomerId = 28, + ScreeningId = 5 }, new { Id = 2, - CustomerId = 1, - ScreeningId = 5 + CustomerId = 32, + ScreeningId = 2 }, new { Id = 3, - CustomerId = 40, - ScreeningId = 9 + CustomerId = 21, + ScreeningId = 5 }, new { Id = 4, CustomerId = 10, - ScreeningId = 9 + ScreeningId = 17 }, new { Id = 5, - CustomerId = 26, - ScreeningId = 5 + CustomerId = 19, + ScreeningId = 3 }, new { Id = 6, - CustomerId = 26, - ScreeningId = 9 + CustomerId = 34, + ScreeningId = 2 }, new { Id = 7, - CustomerId = 45, - ScreeningId = 5 + CustomerId = 25, + ScreeningId = 2 }, new { Id = 8, - CustomerId = 47, - ScreeningId = 9 + CustomerId = 40, + ScreeningId = 6 }, new { Id = 9, - CustomerId = 10, - ScreeningId = 11 + CustomerId = 18, + ScreeningId = 17 }, new { Id = 10, - CustomerId = 31, - ScreeningId = 15 + CustomerId = 2, + ScreeningId = 4 }, new { Id = 11, - CustomerId = 43, - ScreeningId = 8 + CustomerId = 41, + ScreeningId = 10 }, new { Id = 12, - CustomerId = 2, - ScreeningId = 3 + CustomerId = 17, + ScreeningId = 11 }, new { Id = 13, - CustomerId = 18, - ScreeningId = 14 + CustomerId = 11, + ScreeningId = 10 }, new { Id = 14, - CustomerId = 15, - ScreeningId = 15 + CustomerId = 37, + ScreeningId = 16 }, new { Id = 15, - CustomerId = 29, - ScreeningId = 16 + CustomerId = 27, + ScreeningId = 4 }, new { Id = 16, - CustomerId = 46, - ScreeningId = 8 + CustomerId = 36, + ScreeningId = 16 }, new { Id = 17, - CustomerId = 30, + CustomerId = 31, ScreeningId = 2 }, new { Id = 18, - CustomerId = 3, - ScreeningId = 19 + CustomerId = 1, + ScreeningId = 3 }, new { Id = 19, - CustomerId = 48, - ScreeningId = 7 + CustomerId = 22, + ScreeningId = 14 }, new { Id = 20, - CustomerId = 41, - ScreeningId = 9 + CustomerId = 40, + ScreeningId = 17 }, new { Id = 21, - CustomerId = 3, - ScreeningId = 14 + CustomerId = 49, + ScreeningId = 2 }, new { Id = 22, - CustomerId = 16, - ScreeningId = 5 + CustomerId = 11, + ScreeningId = 3 }, new { Id = 23, - CustomerId = 14, - ScreeningId = 4 + CustomerId = 38, + ScreeningId = 17 }, new { Id = 24, - CustomerId = 39, - ScreeningId = 4 + CustomerId = 12, + ScreeningId = 5 }, new { Id = 25, - CustomerId = 7, - ScreeningId = 19 + CustomerId = 3, + ScreeningId = 16 }, new { Id = 26, - CustomerId = 32, - ScreeningId = 14 + CustomerId = 11, + ScreeningId = 4 }, new { Id = 27, - CustomerId = 35, + CustomerId = 19, ScreeningId = 7 }, new { Id = 28, - CustomerId = 22, - ScreeningId = 12 + CustomerId = 3, + ScreeningId = 13 }, new { Id = 29, - CustomerId = 21, - ScreeningId = 7 + CustomerId = 41, + ScreeningId = 12 }, new { Id = 30, - CustomerId = 2, - ScreeningId = 18 + CustomerId = 42, + ScreeningId = 8 }, new { Id = 31, - CustomerId = 44, - ScreeningId = 4 + CustomerId = 28, + ScreeningId = 16 }, new { Id = 32, - CustomerId = 42, - ScreeningId = 12 + CustomerId = 48, + ScreeningId = 15 }, new { Id = 33, - CustomerId = 48, - ScreeningId = 2 + CustomerId = 45, + ScreeningId = 6 }, new { Id = 34, - CustomerId = 5, - ScreeningId = 12 + CustomerId = 28, + ScreeningId = 4 }, new { Id = 35, - CustomerId = 37, - ScreeningId = 16 + CustomerId = 44, + ScreeningId = 2 }, new { Id = 36, CustomerId = 37, - ScreeningId = 10 + ScreeningId = 9 }, new { Id = 37, - CustomerId = 5, - ScreeningId = 18 + CustomerId = 30, + ScreeningId = 4 }, new { Id = 38, - CustomerId = 9, + CustomerId = 20, ScreeningId = 14 }, new { Id = 39, - CustomerId = 10, - ScreeningId = 3 + CustomerId = 39, + ScreeningId = 1 }, new { Id = 40, - CustomerId = 21, - ScreeningId = 16 + CustomerId = 14, + ScreeningId = 2 }, new { Id = 41, - CustomerId = 5, - ScreeningId = 17 + CustomerId = 2, + ScreeningId = 9 }, new { Id = 42, - CustomerId = 11, - ScreeningId = 15 + CustomerId = 28, + ScreeningId = 7 }, new { Id = 43, - CustomerId = 49, - ScreeningId = 7 + CustomerId = 25, + ScreeningId = 9 }, new { Id = 44, - CustomerId = 30, - ScreeningId = 5 + CustomerId = 42, + ScreeningId = 11 }, new { Id = 45, - CustomerId = 45, - ScreeningId = 18 + CustomerId = 1, + ScreeningId = 2 }, new { Id = 46, - CustomerId = 18, - ScreeningId = 19 + CustomerId = 1, + ScreeningId = 14 }, new { Id = 47, - CustomerId = 27, - ScreeningId = 5 + CustomerId = 1, + ScreeningId = 13 }, new { Id = 48, CustomerId = 38, - ScreeningId = 7 + ScreeningId = 13 }, new { Id = 49, - CustomerId = 1, - ScreeningId = 16 + CustomerId = 6, + ScreeningId = 7 }, new { Id = 50, - CustomerId = 34, - ScreeningId = 5 + CustomerId = 1, + ScreeningId = 15 }, new { Id = 51, - CustomerId = 4, - ScreeningId = 2 + CustomerId = 37, + ScreeningId = 7 }, new { Id = 52, CustomerId = 33, - ScreeningId = 11 + ScreeningId = 9 }, new { Id = 53, - CustomerId = 7, - ScreeningId = 19 + CustomerId = 3, + ScreeningId = 5 }, new { Id = 54, - CustomerId = 14, - ScreeningId = 12 + CustomerId = 40, + ScreeningId = 5 }, new { Id = 55, - CustomerId = 49, - ScreeningId = 5 + CustomerId = 9, + ScreeningId = 15 }, new { Id = 56, - CustomerId = 8, - ScreeningId = 11 + CustomerId = 49, + ScreeningId = 18 }, new { Id = 57, - CustomerId = 43, - ScreeningId = 4 + CustomerId = 29, + ScreeningId = 17 }, new { Id = 58, - CustomerId = 32, - ScreeningId = 6 + CustomerId = 4, + ScreeningId = 1 }, new { Id = 59, CustomerId = 40, - ScreeningId = 2 + ScreeningId = 19 }, new { Id = 60, - CustomerId = 38, - ScreeningId = 12 + CustomerId = 47, + ScreeningId = 15 }, new { Id = 61, - CustomerId = 29, - ScreeningId = 3 + CustomerId = 22, + ScreeningId = 6 }, new { Id = 62, - CustomerId = 24, - ScreeningId = 4 + CustomerId = 34, + ScreeningId = 12 }, new { Id = 63, - CustomerId = 11, - ScreeningId = 4 + CustomerId = 28, + ScreeningId = 14 }, new { Id = 64, - CustomerId = 6, - ScreeningId = 13 + CustomerId = 45, + ScreeningId = 8 }, new { Id = 65, CustomerId = 4, - ScreeningId = 13 + ScreeningId = 7 }, new { Id = 66, - CustomerId = 42, - ScreeningId = 8 + CustomerId = 47, + ScreeningId = 12 }, new { Id = 67, - CustomerId = 48, - ScreeningId = 16 + CustomerId = 22, + ScreeningId = 19 }, new { Id = 68, - CustomerId = 15, + CustomerId = 6, ScreeningId = 12 }, new { Id = 69, - CustomerId = 18, - ScreeningId = 13 + CustomerId = 47, + ScreeningId = 4 }, new { Id = 70, - CustomerId = 9, - ScreeningId = 19 + CustomerId = 17, + ScreeningId = 14 }, new { Id = 71, - CustomerId = 47, - ScreeningId = 6 + CustomerId = 40, + ScreeningId = 17 }, new { Id = 72, - CustomerId = 36, - ScreeningId = 4 + CustomerId = 21, + ScreeningId = 5 }, new { Id = 73, - CustomerId = 46, - ScreeningId = 6 + CustomerId = 4, + ScreeningId = 13 }, new { Id = 74, - CustomerId = 27, - ScreeningId = 19 + CustomerId = 4, + ScreeningId = 12 }, new { Id = 75, - CustomerId = 21, - ScreeningId = 19 + CustomerId = 41, + ScreeningId = 14 }, new { Id = 76, - CustomerId = 13, - ScreeningId = 9 + CustomerId = 19, + ScreeningId = 19 }, new { Id = 77, - CustomerId = 9, - ScreeningId = 13 + CustomerId = 20, + ScreeningId = 6 }, new { Id = 78, - CustomerId = 1, - ScreeningId = 12 + CustomerId = 9, + ScreeningId = 16 }, new { Id = 79, - CustomerId = 5, - ScreeningId = 15 + CustomerId = 14, + ScreeningId = 4 }, new { Id = 80, - CustomerId = 35, - ScreeningId = 14 + CustomerId = 44, + ScreeningId = 17 }, new { Id = 81, - CustomerId = 43, - ScreeningId = 14 + CustomerId = 26, + ScreeningId = 17 }, new { Id = 82, - CustomerId = 1, - ScreeningId = 10 + CustomerId = 37, + ScreeningId = 1 }, new { Id = 83, - CustomerId = 26, - ScreeningId = 18 + CustomerId = 41, + ScreeningId = 4 }, new { Id = 84, - CustomerId = 47, - ScreeningId = 2 + CustomerId = 8, + ScreeningId = 19 }, new { Id = 85, - CustomerId = 3, - ScreeningId = 4 + CustomerId = 46, + ScreeningId = 16 }, new { Id = 86, - CustomerId = 35, - ScreeningId = 2 + CustomerId = 38, + ScreeningId = 18 }, new { Id = 87, - CustomerId = 6, + CustomerId = 43, ScreeningId = 19 }, new { Id = 88, - CustomerId = 7, + CustomerId = 30, ScreeningId = 14 }, new { Id = 89, - CustomerId = 12, - ScreeningId = 15 + CustomerId = 36, + ScreeningId = 5 }, new { Id = 90, - CustomerId = 12, - ScreeningId = 19 + CustomerId = 6, + ScreeningId = 9 }, new { Id = 91, - CustomerId = 7, - ScreeningId = 17 + CustomerId = 17, + ScreeningId = 18 }, new { Id = 92, - CustomerId = 8, - ScreeningId = 14 + CustomerId = 40, + ScreeningId = 6 }, new { Id = 93, - CustomerId = 19, - ScreeningId = 2 + CustomerId = 25, + ScreeningId = 8 }, new { Id = 94, - CustomerId = 22, - ScreeningId = 18 + CustomerId = 28, + ScreeningId = 5 }, new { Id = 95, - CustomerId = 2, - ScreeningId = 16 + CustomerId = 19, + ScreeningId = 15 }, new { Id = 96, - CustomerId = 2, - ScreeningId = 4 + CustomerId = 33, + ScreeningId = 13 }, new { Id = 97, - CustomerId = 13, - ScreeningId = 8 + CustomerId = 5, + ScreeningId = 19 }, new { Id = 98, - CustomerId = 4, - ScreeningId = 9 + CustomerId = 36, + ScreeningId = 7 }, new { Id = 99, - CustomerId = 12, - ScreeningId = 11 + CustomerId = 18, + ScreeningId = 15 }, new { Id = 100, - CustomerId = 5, - ScreeningId = 6 + CustomerId = 43, + ScreeningId = 1 }, new { Id = 101, - CustomerId = 16, - ScreeningId = 16 + CustomerId = 19, + ScreeningId = 2 }, new { Id = 102, - CustomerId = 5, - ScreeningId = 14 + CustomerId = 47, + ScreeningId = 16 }, new { Id = 103, - CustomerId = 45, - ScreeningId = 8 + CustomerId = 24, + ScreeningId = 10 }, new { Id = 104, - CustomerId = 23, - ScreeningId = 15 + CustomerId = 29, + ScreeningId = 19 }, new { Id = 105, - CustomerId = 15, + CustomerId = 23, ScreeningId = 18 }, new { Id = 106, - CustomerId = 43, - ScreeningId = 4 + CustomerId = 49, + ScreeningId = 18 }, new { Id = 107, - CustomerId = 45, - ScreeningId = 14 + CustomerId = 26, + ScreeningId = 13 }, new { Id = 108, - CustomerId = 28, - ScreeningId = 12 + CustomerId = 17, + ScreeningId = 14 }, new { Id = 109, - CustomerId = 31, - ScreeningId = 17 + CustomerId = 46, + ScreeningId = 6 }, new { Id = 110, - CustomerId = 32, - ScreeningId = 18 + CustomerId = 46, + ScreeningId = 15 }, new { Id = 111, - CustomerId = 36, - ScreeningId = 18 + CustomerId = 47, + ScreeningId = 15 }, new { Id = 112, - CustomerId = 41, - ScreeningId = 16 + CustomerId = 31, + ScreeningId = 3 }, new { Id = 113, - CustomerId = 22, - ScreeningId = 14 + CustomerId = 48, + ScreeningId = 2 }, new { Id = 114, - CustomerId = 26, - ScreeningId = 18 + CustomerId = 31, + ScreeningId = 4 }, new { Id = 115, - CustomerId = 29, - ScreeningId = 1 + CustomerId = 21, + ScreeningId = 8 }, new { Id = 116, - CustomerId = 19, - ScreeningId = 18 + CustomerId = 36, + ScreeningId = 2 }, new { Id = 117, - CustomerId = 18, - ScreeningId = 11 + CustomerId = 8, + ScreeningId = 4 }, new { Id = 118, - CustomerId = 16, + CustomerId = 12, ScreeningId = 19 }, new { Id = 119, - CustomerId = 7, - ScreeningId = 5 + CustomerId = 42, + ScreeningId = 9 }, new { Id = 120, - CustomerId = 1, - ScreeningId = 7 + CustomerId = 13, + ScreeningId = 4 }, new { Id = 121, - CustomerId = 36, - ScreeningId = 2 + CustomerId = 16, + ScreeningId = 12 }, new { Id = 122, - CustomerId = 39, - ScreeningId = 12 + CustomerId = 30, + ScreeningId = 15 }, new { Id = 123, CustomerId = 13, - ScreeningId = 18 + ScreeningId = 17 }, new { Id = 124, - CustomerId = 13, - ScreeningId = 12 + CustomerId = 28, + ScreeningId = 7 }, new { Id = 125, - CustomerId = 25, - ScreeningId = 13 + CustomerId = 8, + ScreeningId = 8 }, new { Id = 126, - CustomerId = 31, - ScreeningId = 14 + CustomerId = 8, + ScreeningId = 9 }, new { Id = 127, - CustomerId = 18, - ScreeningId = 9 + CustomerId = 38, + ScreeningId = 14 }, new { Id = 128, - CustomerId = 42, - ScreeningId = 3 + CustomerId = 21, + ScreeningId = 10 }, new { Id = 129, - CustomerId = 9, - ScreeningId = 14 + CustomerId = 34, + ScreeningId = 9 }, new { Id = 130, - CustomerId = 44, - ScreeningId = 4 + CustomerId = 13, + ScreeningId = 18 }, new { Id = 131, - CustomerId = 6, - ScreeningId = 18 + CustomerId = 34, + ScreeningId = 16 }, new { Id = 132, - CustomerId = 18, - ScreeningId = 5 + CustomerId = 29, + ScreeningId = 18 }, new { Id = 133, - CustomerId = 39, - ScreeningId = 5 + CustomerId = 5, + ScreeningId = 16 }, new { Id = 134, - CustomerId = 13, - ScreeningId = 15 + CustomerId = 4, + ScreeningId = 3 }, new { Id = 135, - CustomerId = 36, - ScreeningId = 17 + CustomerId = 30, + ScreeningId = 9 }, new { Id = 136, - CustomerId = 15, - ScreeningId = 1 + CustomerId = 48, + ScreeningId = 4 }, new { Id = 137, - CustomerId = 35, - ScreeningId = 6 + CustomerId = 49, + ScreeningId = 1 }, new { Id = 138, - CustomerId = 28, - ScreeningId = 2 + CustomerId = 38, + ScreeningId = 15 }, new { Id = 139, - CustomerId = 16, - ScreeningId = 18 + CustomerId = 29, + ScreeningId = 6 }, new { Id = 140, - CustomerId = 39, - ScreeningId = 11 + CustomerId = 5, + ScreeningId = 15 }, new { Id = 141, - CustomerId = 7, + CustomerId = 12, ScreeningId = 8 }, new { Id = 142, - CustomerId = 38, - ScreeningId = 7 + CustomerId = 2, + ScreeningId = 13 }, new { Id = 143, - CustomerId = 2, - ScreeningId = 16 + CustomerId = 7, + ScreeningId = 2 }, new { Id = 144, - CustomerId = 24, - ScreeningId = 6 + CustomerId = 9, + ScreeningId = 16 }, new { Id = 145, - CustomerId = 42, + CustomerId = 26, ScreeningId = 13 }, new { Id = 146, - CustomerId = 6, - ScreeningId = 8 + CustomerId = 14, + ScreeningId = 11 }, new { Id = 147, - CustomerId = 26, - ScreeningId = 14 + CustomerId = 49, + ScreeningId = 3 }, new { Id = 148, - CustomerId = 40, - ScreeningId = 13 + CustomerId = 17, + ScreeningId = 7 }, new { Id = 149, - CustomerId = 16, - ScreeningId = 7 + CustomerId = 3, + ScreeningId = 18 }, new { Id = 150, - CustomerId = 21, + CustomerId = 17, ScreeningId = 14 }, new { Id = 151, - CustomerId = 6, - ScreeningId = 14 + CustomerId = 19, + ScreeningId = 2 }, new { Id = 152, - CustomerId = 11, - ScreeningId = 1 + CustomerId = 8, + ScreeningId = 7 }, new { Id = 153, - CustomerId = 19, - ScreeningId = 4 + CustomerId = 8, + ScreeningId = 12 }, new { Id = 154, - CustomerId = 20, - ScreeningId = 6 + CustomerId = 16, + ScreeningId = 15 }, new { Id = 155, - CustomerId = 34, - ScreeningId = 10 + CustomerId = 23, + ScreeningId = 12 }, new { Id = 156, - CustomerId = 41, - ScreeningId = 2 + CustomerId = 2, + ScreeningId = 4 }, new { Id = 157, - CustomerId = 42, - ScreeningId = 19 + CustomerId = 34, + ScreeningId = 7 }, new { Id = 158, - CustomerId = 27, - ScreeningId = 17 + CustomerId = 18, + ScreeningId = 16 }, new { Id = 159, - CustomerId = 46, - ScreeningId = 1 + CustomerId = 9, + ScreeningId = 12 }, new { Id = 160, - CustomerId = 5, - ScreeningId = 13 + CustomerId = 37, + ScreeningId = 18 }, new { Id = 161, - CustomerId = 2, - ScreeningId = 15 + CustomerId = 27, + ScreeningId = 17 }, new { Id = 162, - CustomerId = 39, - ScreeningId = 17 + CustomerId = 26, + ScreeningId = 3 }, new { Id = 163, - CustomerId = 20, - ScreeningId = 7 + CustomerId = 34, + ScreeningId = 11 }, new { Id = 164, - CustomerId = 5, - ScreeningId = 8 + CustomerId = 4, + ScreeningId = 4 }, new { Id = 165, - CustomerId = 1, - ScreeningId = 6 + CustomerId = 26, + ScreeningId = 10 }, new { Id = 166, - CustomerId = 14, - ScreeningId = 12 + CustomerId = 2, + ScreeningId = 6 }, new { Id = 167, - CustomerId = 35, - ScreeningId = 10 + CustomerId = 2, + ScreeningId = 9 }, new { Id = 168, - CustomerId = 32, - ScreeningId = 3 + CustomerId = 20, + ScreeningId = 5 }, new { Id = 169, - CustomerId = 6, - ScreeningId = 15 + CustomerId = 18, + ScreeningId = 12 }, new { Id = 170, - CustomerId = 24, - ScreeningId = 8 + CustomerId = 49, + ScreeningId = 11 }, new { Id = 171, - CustomerId = 10, - ScreeningId = 8 + CustomerId = 24, + ScreeningId = 11 }, new { Id = 172, - CustomerId = 5, - ScreeningId = 16 + CustomerId = 11, + ScreeningId = 11 }, new { Id = 173, - CustomerId = 19, - ScreeningId = 5 + CustomerId = 20, + ScreeningId = 2 }, new { Id = 174, - CustomerId = 27, - ScreeningId = 8 + CustomerId = 6, + ScreeningId = 11 }, new { Id = 175, - CustomerId = 39, - ScreeningId = 1 + CustomerId = 47, + ScreeningId = 13 }, new { Id = 176, - CustomerId = 49, - ScreeningId = 7 + CustomerId = 18, + ScreeningId = 9 }, new { Id = 177, - CustomerId = 34, - ScreeningId = 10 + CustomerId = 1, + ScreeningId = 14 }, new { Id = 178, - CustomerId = 38, - ScreeningId = 14 + CustomerId = 29, + ScreeningId = 9 }, new { Id = 179, - CustomerId = 47, + CustomerId = 21, ScreeningId = 11 }, new { Id = 180, - CustomerId = 22, - ScreeningId = 14 + CustomerId = 14, + ScreeningId = 2 }, new { Id = 181, - CustomerId = 32, - ScreeningId = 15 + CustomerId = 22, + ScreeningId = 6 }, new { Id = 182, - CustomerId = 23, - ScreeningId = 19 + CustomerId = 33, + ScreeningId = 10 }, new { Id = 183, - CustomerId = 3, - ScreeningId = 18 + CustomerId = 34, + ScreeningId = 6 }, new { Id = 184, - CustomerId = 8, - ScreeningId = 9 + CustomerId = 35, + ScreeningId = 8 }, new { Id = 185, - CustomerId = 1, - ScreeningId = 9 + CustomerId = 27, + ScreeningId = 12 }, new { Id = 186, - CustomerId = 16, - ScreeningId = 19 + CustomerId = 34, + ScreeningId = 2 }, new { Id = 187, - CustomerId = 3, - ScreeningId = 11 + CustomerId = 31, + ScreeningId = 3 }, new { Id = 188, - CustomerId = 28, - ScreeningId = 3 + CustomerId = 39, + ScreeningId = 5 }, new { Id = 189, - CustomerId = 34, - ScreeningId = 13 + CustomerId = 22, + ScreeningId = 3 }, new { Id = 190, - CustomerId = 1, - ScreeningId = 6 + CustomerId = 3, + ScreeningId = 4 }, new { Id = 191, - CustomerId = 26, - ScreeningId = 8 + CustomerId = 42, + ScreeningId = 12 }, new { Id = 192, - CustomerId = 14, - ScreeningId = 5 + CustomerId = 47, + ScreeningId = 18 }, new { Id = 193, - CustomerId = 37, - ScreeningId = 11 + CustomerId = 5, + ScreeningId = 18 }, new { Id = 194, - CustomerId = 13, - ScreeningId = 11 + CustomerId = 3, + ScreeningId = 15 }, new { Id = 195, - CustomerId = 46, - ScreeningId = 4 + CustomerId = 26, + ScreeningId = 19 }, new { Id = 196, - CustomerId = 49, - ScreeningId = 12 + CustomerId = 44, + ScreeningId = 8 }, new { Id = 197, - CustomerId = 45, - ScreeningId = 7 + CustomerId = 29, + ScreeningId = 18 }, new { Id = 198, - CustomerId = 25, - ScreeningId = 9 + CustomerId = 30, + ScreeningId = 7 }, new { Id = 199, - CustomerId = 6, - ScreeningId = 15 + CustomerId = 2, + ScreeningId = 8 }); }); diff --git a/api-cinema-challenge/api-cinema-challenge/Models/Customer.cs b/api-cinema-challenge/api-cinema-challenge/Models/Customer.cs index 74098c8a..3d13a99f 100644 --- a/api-cinema-challenge/api-cinema-challenge/Models/Customer.cs +++ b/api-cinema-challenge/api-cinema-challenge/Models/Customer.cs @@ -20,12 +20,20 @@ public class Customer [Column("customer_tickets")] public List Tickets { get; set; } = new List(); + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } public Customer(CustomerPost newCustomer) { Name = newCustomer.Name; Email = newCustomer.Email; Phone = newCustomer.Phone; + CreatedAt = DateTime.UtcNow; + UpdatedAt = DateTime.UtcNow; + } + public Customer() + { + CreatedAt= DateTime.UtcNow; + UpdatedAt = DateTime.UtcNow; } - public Customer() { } } } diff --git a/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs b/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs index d390d679..c9063afe 100644 --- a/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs +++ b/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs @@ -1,4 +1,5 @@ -using api_cinema_challenge.Repository; +using api_cinema_challenge.DOTs.MovieDTOs; +using api_cinema_challenge.Repository; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; @@ -20,5 +21,24 @@ public class Movie : IEntity public int RunTimeMins { get; set; } [Column("screenings")] public List Screenings { get; set; } = new List(); + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } + + + public Movie(MoviePost movie) + { + Title = movie.Title; + Rating = movie.Rating; + Description = movie.Description; + RunTimeMins = movie.RunTimeMins; + CreatedAt = DateTime.UtcNow; + UpdatedAt = DateTime.UtcNow; + } + + public Movie() + { + CreatedAt = DateTime.UtcNow; + UpdatedAt = DateTime.UtcNow; + } } } diff --git a/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs b/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs index 68d23701..0c511160 100644 --- a/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs +++ b/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs @@ -1,4 +1,5 @@ -using api_cinema_challenge.Repository; +using api_cinema_challenge.DOTs.ScreeningDTOs; +using api_cinema_challenge.Repository; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; @@ -22,5 +23,21 @@ public class Screening : IEntity public List Tickets { get; set; } = new List(); [Column("screening_movie")] public Movie Movie { get; set; } + + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } + public Screening() + { + CreatedAt = DateTime.UtcNow; + UpdatedAt = DateTime.UtcNow; + } + public Screening(ScreeningPost newScreening) + { + ScreenNumber = newScreening.ScreenNumber; + Capacity = newScreening.Capacity; + StartsAt = newScreening.StartAt; + CreatedAt = DateTime.UtcNow; + UpdatedAt = DateTime.UtcNow; + } } } diff --git a/api-cinema-challenge/api-cinema-challenge/Program.cs b/api-cinema-challenge/api-cinema-challenge/Program.cs index d73e83b8..dd126436 100644 --- a/api-cinema-challenge/api-cinema-challenge/Program.cs +++ b/api-cinema-challenge/api-cinema-challenge/Program.cs @@ -15,6 +15,7 @@ builder.Services.AddDbContext(); builder.Services.AddScoped, GenericRepository>(); builder.Services.AddScoped, GenericRepository>(); +builder.Services.AddScoped, GenericRepository>(); From e8c999485a4c32941567bb84ae16cc1f8e115f96 Mon Sep 17 00:00:00 2001 From: Stian Forren Date: Tue, 26 Aug 2025 09:53:08 +0200 Subject: [PATCH 3/4] added jwt token --- .../Controllers/UsersController.cs | 103 ++ .../Data/ApplicationUser.cs | 11 + .../Data/CinemaContext.cs | 3 + .../DataTransfer/Requests/AuthRequest.cs | 12 + .../Requests/RegistrationRequest.cs | 20 + .../DataTransfer/Response/AuthResponse.cs | 9 + .../Endpoints/CustomerAPI.cs | 7 +- .../Endpoints/MovieAPI.cs | 9 +- .../api-cinema-challenge/Enums/Role.cs | 8 + .../Migrations/20250825084958_First.cs | 433 ----- ...ner.cs => 20250825131522_Test.Designer.cs} | 1577 +++++++++-------- .../Migrations/20250825131522_Test.cs | 462 +++++ .../Migrations/CinemaContextModelSnapshot.cs | 1573 ++++++++-------- .../api-cinema-challenge/Models/Movie.cs | 2 +- .../api-cinema-challenge/Models/Screening.cs | 2 +- .../api-cinema-challenge/Program.cs | 107 +- .../Repository/IEntity.cs | 7 - .../Services/TokenService.cs | 82 + .../api-cinema-challenge.csproj | 12 +- 19 files changed, 2462 insertions(+), 1977 deletions(-) create mode 100644 api-cinema-challenge/api-cinema-challenge/Controllers/UsersController.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Data/ApplicationUser.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DataTransfer/Requests/AuthRequest.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DataTransfer/Requests/RegistrationRequest.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DataTransfer/Response/AuthResponse.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Enums/Role.cs delete mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.cs rename api-cinema-challenge/api-cinema-challenge/Migrations/{20250825084958_First.Designer.cs => 20250825131522_Test.Designer.cs} (75%) create mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.cs delete mode 100644 api-cinema-challenge/api-cinema-challenge/Repository/IEntity.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Services/TokenService.cs diff --git a/api-cinema-challenge/api-cinema-challenge/Controllers/UsersController.cs b/api-cinema-challenge/api-cinema-challenge/Controllers/UsersController.cs new file mode 100644 index 00000000..badf47c0 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Controllers/UsersController.cs @@ -0,0 +1,103 @@ +using api_cinema_challenge.Data; +using api_cinema_challenge.DataTransfer.Requests; +using api_cinema_challenge.DataTransfer.Response; +using api_cinema_challenge.Enums; +using api_cinema_challenge.RegistrationRequeest; +using api_cinema_challenge.Services; +using Microsoft.AspNetCore.Identity; +using Microsoft.AspNetCore.Mvc; + + + +namespace api_cinema_challenge.Controllers + +{ + + [ApiController] + [Route("/api/[controller]")] + public class UsersController : ControllerBase + { + private readonly UserManager _userManager; + private readonly CinemaContext _context; + private readonly TokenService _tokenService; + + public UsersController(UserManager userManager, CinemaContext context, + TokenService tokenService, ILogger logger) + { + _userManager = userManager; + _context = context; + _tokenService = tokenService; + } + + + [HttpPost] + [Route("register")] + public async Task Register(RegistrationRequest request) + { + if (!ModelState.IsValid) + { + return BadRequest(ModelState); + } + + var result = await _userManager.CreateAsync( + new ApplicationUser { UserName = request.Username, Email = request.Email, Role = request.Role }, + request.Password! + ); + + if (result.Succeeded) + { + request.Password = ""; + return CreatedAtAction(nameof(Register), new { email = request.Email, role = Role.User }, request); + } + + foreach (var error in result.Errors) + { + ModelState.AddModelError(error.Code, error.Description); + } + + return BadRequest(ModelState); + } + + + [HttpPost] + [Route("login")] + public async Task> Authenticate([FromBody] AuthRequest request) + { + if (!ModelState.IsValid) + { + return BadRequest(ModelState); + } + + var managedUser = await _userManager.FindByEmailAsync(request.Email!); + + if (managedUser == null) + { + return BadRequest("Bad credentials"); + } + + var isPasswordValid = await _userManager.CheckPasswordAsync(managedUser, request.Password!); + + if (!isPasswordValid) + { + return BadRequest("Bad credentials"); + } + + var userInDb = _context.ApplicationUsers.FirstOrDefault(u => u.Email == request.Email); + + if (userInDb is null) + { + return Unauthorized(); + } + + var accessToken = _tokenService.CreateToken(userInDb); + await _context.SaveChangesAsync(); + + return Ok(new AuthResponse + { + Username = userInDb.UserName, + Email = userInDb.Email, + Token = accessToken, + }); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Data/ApplicationUser.cs b/api-cinema-challenge/api-cinema-challenge/Data/ApplicationUser.cs new file mode 100644 index 00000000..3e26ce06 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Data/ApplicationUser.cs @@ -0,0 +1,11 @@ +using api_cinema_challenge.Enums; +using Microsoft.AspNetCore.Identity; + +namespace api_cinema_challenge.Data +{ + public class ApplicationUser : IdentityUser + { + public Role Role { get; set; } + } + } + diff --git a/api-cinema-challenge/api-cinema-challenge/Data/CinemaContext.cs b/api-cinema-challenge/api-cinema-challenge/Data/CinemaContext.cs index fc2b3d27..60ff857a 100644 --- a/api-cinema-challenge/api-cinema-challenge/Data/CinemaContext.cs +++ b/api-cinema-challenge/api-cinema-challenge/Data/CinemaContext.cs @@ -1,4 +1,5 @@ using api_cinema_challenge.Models; +using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Newtonsoft.Json.Linq; @@ -38,6 +39,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) public DbSet Movies { get; set; } public DbSet Screenings { get; set; } public DbSet Tickets { get; set; } + public DbSet ApplicationUsers { get; set; } + } diff --git a/api-cinema-challenge/api-cinema-challenge/DataTransfer/Requests/AuthRequest.cs b/api-cinema-challenge/api-cinema-challenge/DataTransfer/Requests/AuthRequest.cs new file mode 100644 index 00000000..8fb6640e --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DataTransfer/Requests/AuthRequest.cs @@ -0,0 +1,12 @@ +namespace api_cinema_challenge.DataTransfer.Requests; + +public class AuthRequest +{ + public string? Email { get; set; } + public string? Password { get; set; } + + public bool IsValid() + { + return true; + } +} \ No newline at end of file diff --git a/api-cinema-challenge/api-cinema-challenge/DataTransfer/Requests/RegistrationRequest.cs b/api-cinema-challenge/api-cinema-challenge/DataTransfer/Requests/RegistrationRequest.cs new file mode 100644 index 00000000..d0211fe1 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DataTransfer/Requests/RegistrationRequest.cs @@ -0,0 +1,20 @@ + + +using api_cinema_challenge.Enums; +using System.ComponentModel.DataAnnotations; + +namespace api_cinema_challenge.RegistrationRequeest; + +public class RegistrationRequest +{ + [Required] + public string? Email { get; set; } + + [Required] + public string? Username { get { return this.Email; } set { } } + + [Required] + public string? Password { get; set; } + + public Role Role { get; set; } = Role.User; +} \ No newline at end of file diff --git a/api-cinema-challenge/api-cinema-challenge/DataTransfer/Response/AuthResponse.cs b/api-cinema-challenge/api-cinema-challenge/DataTransfer/Response/AuthResponse.cs new file mode 100644 index 00000000..84b0c057 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DataTransfer/Response/AuthResponse.cs @@ -0,0 +1,9 @@ +namespace api_cinema_challenge.DataTransfer.Response; + + +public class AuthResponse +{ + public string? Username { get; set; } + public string? Email { get; set; } + public string? Token { get; set; } +} \ No newline at end of file diff --git a/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs b/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs index 702e119f..51447bb5 100644 --- a/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs +++ b/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs @@ -1,6 +1,7 @@ using api_cinema_challenge.DOTs.CustomerDTOs; using api_cinema_challenge.Models; using api_cinema_challenge.Repository; +using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore; using System.Reflection.Metadata.Ecma335; @@ -20,6 +21,7 @@ public static void ConfigueCustomer(this WebApplication app) customerGroup.MapDelete("/{id}", DeleteCustomer); } + private static async Task GetCustomers(IGenericRepository repository) { var response = await repository.GetWithIncludes(q => q.Include(p => p.Tickets).ThenInclude(t => t.Screening).ThenInclude(s => s.Movie)); @@ -27,6 +29,7 @@ private static async Task GetCustomers(IGenericRepository rep return TypedResults.Ok(result); } + [Authorize(Roles = "User")] private static async Task GetCustomerById(IGenericRepository repository, int id) { var response = await repository.GetByIdWithIncludes(q => q.Where(i => i.Id == id) @@ -38,6 +41,7 @@ private static async Task GetCustomerById(IGenericRepository return TypedResults.Ok(result); } + [Authorize(Roles = "Admin")] private static async Task CreateCustomer(IGenericRepository repository, CustomerPost newCustomer) { Customer customer = new Customer(newCustomer); @@ -45,7 +49,7 @@ private static async Task CreateCustomer(IGenericRepository r CustomerGetNoExtra customerFormated = new CustomerGetNoExtra(response); return TypedResults.Created("", customerFormated); } - + [Authorize(Roles = "Admin")] private static async Task UpdateCustomer(IGenericRepository repository, int id, CustomerPut model) { Customer entity = await repository.GetByIdWithIncludes(q => q.Where(i => i.Id == id) @@ -59,6 +63,7 @@ private static async Task UpdateCustomer(IGenericRepository r var response = await repository.Update(entity); return TypedResults.Created("", new CustomerGetNoExtra(response)); } + [Authorize(Roles = "Admin")] private static async Task DeleteCustomer(IGenericRepository repository, int id) { Customer entity = await repository.GetByIdWithIncludes(q => q.Where(i => i.Id == id).FirstOrDefaultAsync().Result); diff --git a/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs b/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs index 1aec2002..d1d2c5ff 100644 --- a/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs +++ b/api-cinema-challenge/api-cinema-challenge/Endpoints/MovieAPI.cs @@ -1,8 +1,8 @@ -using api_cinema_challenge.DOTs.CustomerDTOs; -using api_cinema_challenge.DOTs.MovieDTOs; +using api_cinema_challenge.DOTs.MovieDTOs; using api_cinema_challenge.DOTs.ScreeningDTOs; using api_cinema_challenge.Models; using api_cinema_challenge.Repository; +using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore; namespace api_cinema_challenge.Endpoints @@ -31,6 +31,7 @@ private static async Task GetMovies(IGenericRepository repositor return TypedResults.Ok(result); } + [Authorize(Roles = "Admin")] private static async Task CreateMovie(IGenericRepository repository, MoviePost movie) { Movie newMovie = new Movie(movie); @@ -38,6 +39,7 @@ private static async Task CreateMovie(IGenericRepository reposit return TypedResults.Created("", new MovieGet(response)); } + [Authorize(Roles = "Admin")] private static async Task UpdateMovie(IGenericRepository repository, int id, MoviePut model) { Movie entity = await repository.GetByIdWithIncludes(m => m.Where(i => i.Id == id) @@ -54,6 +56,7 @@ private static async Task UpdateMovie(IGenericRepository reposit return TypedResults.Created("", new MovieGet(response)); } + [Authorize(Roles = "Admin")] private static async Task DeleteMovie(IGenericRepository repository, int id) { Movie entity = await repository.GetByIdWithIncludes(q => q.Where(i => i.Id == id).FirstOrDefaultAsync().Result); @@ -61,6 +64,7 @@ private static async Task DeleteMovie(IGenericRepository reposit return TypedResults.Ok(entity); } + [Authorize(Roles = "Admin")] private static async Task CreateScreening(IGenericRepository repository, int movieId, ScreeningPost model) { Screening entity = new Screening(model); @@ -68,6 +72,7 @@ private static async Task CreateScreening(IGenericRepository var response = await repository.Create(entity); return TypedResults.Created("", new ScreeningGet(response)); } + [Authorize(Roles = "User")] private static async Task GetScreeningsForMovie(IGenericRepository repository, int movieId) { var response = await repository.GetWithIncludes(s => s.Where(i => i.MovieId == movieId)); diff --git a/api-cinema-challenge/api-cinema-challenge/Enums/Role.cs b/api-cinema-challenge/api-cinema-challenge/Enums/Role.cs new file mode 100644 index 00000000..1fd4d248 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Enums/Role.cs @@ -0,0 +1,8 @@ +namespace api_cinema_challenge.Enums +{ + public enum Role + { + Admin, + User + } +} \ No newline at end of file diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.cs deleted file mode 100644 index 8ceb223d..00000000 --- a/api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.cs +++ /dev/null @@ -1,433 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional - -namespace api_cinema_challenge.Migrations -{ - /// - public partial class First : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Customers", - columns: table => new - { - customer_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - name = table.Column(type: "text", nullable: false), - email = table.Column(type: "text", nullable: false), - phone = table.Column(type: "text", nullable: false), - CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), - UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Customers", x => x.customer_id); - }); - - migrationBuilder.CreateTable( - name: "movie", - columns: table => new - { - movie_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - title = table.Column(type: "text", nullable: false), - rating = table.Column(type: "text", nullable: false), - description = table.Column(type: "text", nullable: false), - runtime_mins = table.Column(type: "integer", nullable: false), - CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), - UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_movie", x => x.movie_id); - }); - - migrationBuilder.CreateTable( - name: "screenings", - columns: table => new - { - screening_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - screen_number = table.Column(type: "integer", nullable: false), - capacity = table.Column(type: "integer", nullable: false), - starts_at = table.Column(type: "timestamp with time zone", nullable: false), - movie_id = table.Column(type: "integer", nullable: false), - CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), - UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_screenings", x => x.screening_id); - table.ForeignKey( - name: "FK_screenings_movie_movie_id", - column: x => x.movie_id, - principalTable: "movie", - principalColumn: "movie_id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "tickets", - columns: table => new - { - ticket_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - screening_id = table.Column(type: "integer", nullable: false), - customer_id = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_tickets", x => x.ticket_id); - table.ForeignKey( - name: "FK_tickets_Customers_customer_id", - column: x => x.customer_id, - principalTable: "Customers", - principalColumn: "customer_id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_tickets_screenings_screening_id", - column: x => x.screening_id, - principalTable: "screenings", - principalColumn: "screening_id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.InsertData( - table: "Customers", - columns: new[] { "customer_id", "CreatedAt", "email", "name", "phone", "UpdatedAt" }, - values: new object[,] - { - { 1, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(713), "kate middleton@gov.gr", "Kate Middleton", "57323012", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(932) }, - { 2, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183), "kate trump@something.com", "Kate Trump", "90036955", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183) }, - { 3, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2204), "kate winslet@gov.ru", "Kate Winslet", "79662272", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2208) }, - { 4, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211), "kate winslet@something.com", "Kate Winslet", "97434122", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211) }, - { 5, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2213), "elvis hendrix@gov.us", "Elvis Hendrix", "84320894", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2215) }, - { 6, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2240), "kate hendrix@gov.ru", "Kate Hendrix", "86093045", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2241) }, - { 7, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2242), "jimi trump@google.com", "Jimi Trump", "77608896", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2243) }, - { 8, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2244), "kate hendrix@gov.nl", "Kate Hendrix", "30950692", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2245) }, - { 9, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246), "charles hepburn@google.com", "Charles Hepburn", "53960475", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246) }, - { 10, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249), "barack obama@gov.nl", "Barack Obama", "11402717", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249) }, - { 11, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252), "mick jagger@gov.gr", "Mick Jagger", "74377263", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252) }, - { 12, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2253), "kate hepburn@tesla.com", "Kate Hepburn", "37130689", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2254) }, - { 13, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255), "kate windsor@google.com", "Kate Windsor", "17850864", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255) }, - { 14, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257), "donald jagger@tesla.com", "Donald Jagger", "96174535", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257) }, - { 15, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259), "barack hendrix@something.com", "Barack Hendrix", "38010217", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259) }, - { 16, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260), "elvis winfrey@gov.nl", "Elvis Winfrey", "68797228", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260) }, - { 17, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262), "mick middleton@something.com", "Mick Middleton", "55871184", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262) }, - { 18, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2265), "elvis obama@nasa.org.us", "Elvis Obama", "99746360", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2266) }, - { 19, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267), "jimi hepburn@gov.gr", "Jimi Hepburn", "15774057", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267) }, - { 20, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269), "kate presley@tesla.com", "Kate Presley", "33030025", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269) }, - { 21, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270), "mick windsor@theworld.ca", "Mick Windsor", "68406720", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270) }, - { 22, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272), "mick windsor@bbc.co.uk", "Mick Windsor", "70274513", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272) }, - { 23, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273), "barack windsor@google.com", "Barack Windsor", "10112351", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273) }, - { 24, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275), "elvis hendrix@bbc.co.uk", "Elvis Hendrix", "21340088", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275) }, - { 25, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276), "barack hendrix@nasa.org.us", "Barack Hendrix", "67170625", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276) }, - { 26, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278), "kate winslet@bbc.co.uk", "Kate Winslet", "86772435", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278) }, - { 27, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279), "barack obama@bbc.co.uk", "Barack Obama", "83625317", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279) }, - { 28, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281), "jimi hepburn@gov.nl", "Jimi Hepburn", "89412341", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281) }, - { 29, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2293), "mick jagger@gov.nl", "Mick Jagger", "37434825", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2294) }, - { 30, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2295), "barack jagger@gov.ru", "Barack Jagger", "23194181", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2296) }, - { 31, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297), "elvis winfrey@gov.nl", "Elvis Winfrey", "54447837", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297) }, - { 32, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299), "kate winfrey@bbc.co.uk", "Kate Winfrey", "58976369", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299) }, - { 33, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2300), "charles jagger@something.com", "Charles Jagger", "22440998", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2301) }, - { 34, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303), "kate middleton@nasa.org.us", "Kate Middleton", "19231484", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303) }, - { 35, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2304), "oprah jagger@nasa.org.us", "Oprah Jagger", "96209492", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2305) }, - { 36, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306), "jimi middleton@gov.us", "Jimi Middleton", "14860055", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306) }, - { 37, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308), "mick windsor@bbc.co.uk", "Mick Windsor", "46462376", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308) }, - { 38, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2309), "elvis presley@theworld.ca", "Elvis Presley", "11443439", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2310) }, - { 39, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311), "donald winfrey@something.com", "Donald Winfrey", "71902615", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311) }, - { 40, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313), "charles hepburn@gov.us", "Charles Hepburn", "42984697", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313) }, - { 41, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2314), "mick jagger@tesla.com", "Mick Jagger", "36431777", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2315) }, - { 42, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316), "jimi hepburn@gov.nl", "Jimi Hepburn", "93119392", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316) }, - { 43, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318), "mick middleton@bbc.co.uk", "Mick Middleton", "60445327", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318) }, - { 44, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2319), "jimi winslet@tesla.com", "Jimi Winslet", "27412326", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2320) }, - { 45, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321), "audrey windsor@tesla.com", "Audrey Windsor", "41701761", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321) }, - { 46, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2322), "kate middleton@gov.nl", "Kate Middleton", "77306134", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2323) }, - { 47, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2324), "mick hepburn@gov.gr", "Mick Hepburn", "69932733", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2325) }, - { 48, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326), "donald winslet@gov.us", "Donald Winslet", "95603319", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326) }, - { 49, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2327), "elvis trump@gov.ru", "Elvis Trump", "75749612", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2328) } - }); - - migrationBuilder.InsertData( - table: "movie", - columns: new[] { "movie_id", "CreatedAt", "description", "rating", "runtime_mins", "title", "UpdatedAt" }, - values: new object[,] - { - { 1, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2700), "Very funny", "years 18+", 148, "The Bitter Flowers", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2811) }, - { 2, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3338), "Very funny", "years 16+", 93, "A bunch of Orange Flowers", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3339) }, - { 3, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3343), "Very funny", "years 6+", 127, "Several Transparent Buildings", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3344) }, - { 4, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346), "Very funny", "All", 70, "A herd of Green Planets", new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346) } - }); - - migrationBuilder.InsertData( - table: "screenings", - columns: new[] { "screening_id", "capacity", "CreatedAt", "movie_id", "screen_number", "starts_at", "UpdatedAt" }, - values: new object[,] - { - { 1, 89, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3602), 3, 0, new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3692) }, - { 2, 89, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4667), 2, 0, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4668) }, - { 3, 57, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671), 2, 1, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671) }, - { 4, 26, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4672), 4, 3, new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4673) }, - { 5, 61, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674), 1, 0, new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674) }, - { 6, 54, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4676), 4, 4, new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4677) }, - { 7, 76, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686), 2, 3, new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686) }, - { 8, 84, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4687), 4, 1, new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4688) }, - { 9, 83, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689), 2, 4, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689) }, - { 10, 68, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4690), 2, 2, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691) }, - { 11, 74, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691), 4, 0, new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4692) }, - { 12, 45, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693), 1, 1, new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693) }, - { 13, 34, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694), 2, 2, new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694) }, - { 14, 25, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695), 4, 0, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695) }, - { 15, 67, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696), 4, 3, new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696) }, - { 16, 67, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697), 4, 2, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697) }, - { 17, 68, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698), 4, 0, new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698) }, - { 18, 35, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699), 1, 1, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699) }, - { 19, 72, new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700), 4, 2, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700) } - }); - - migrationBuilder.InsertData( - table: "tickets", - columns: new[] { "ticket_id", "customer_id", "screening_id" }, - values: new object[,] - { - { 1, 28, 5 }, - { 2, 32, 2 }, - { 3, 21, 5 }, - { 4, 10, 17 }, - { 5, 19, 3 }, - { 6, 34, 2 }, - { 7, 25, 2 }, - { 8, 40, 6 }, - { 9, 18, 17 }, - { 10, 2, 4 }, - { 11, 41, 10 }, - { 12, 17, 11 }, - { 13, 11, 10 }, - { 14, 37, 16 }, - { 15, 27, 4 }, - { 16, 36, 16 }, - { 17, 31, 2 }, - { 18, 1, 3 }, - { 19, 22, 14 }, - { 20, 40, 17 }, - { 21, 49, 2 }, - { 22, 11, 3 }, - { 23, 38, 17 }, - { 24, 12, 5 }, - { 25, 3, 16 }, - { 26, 11, 4 }, - { 27, 19, 7 }, - { 28, 3, 13 }, - { 29, 41, 12 }, - { 30, 42, 8 }, - { 31, 28, 16 }, - { 32, 48, 15 }, - { 33, 45, 6 }, - { 34, 28, 4 }, - { 35, 44, 2 }, - { 36, 37, 9 }, - { 37, 30, 4 }, - { 38, 20, 14 }, - { 39, 39, 1 }, - { 40, 14, 2 }, - { 41, 2, 9 }, - { 42, 28, 7 }, - { 43, 25, 9 }, - { 44, 42, 11 }, - { 45, 1, 2 }, - { 46, 1, 14 }, - { 47, 1, 13 }, - { 48, 38, 13 }, - { 49, 6, 7 }, - { 50, 1, 15 }, - { 51, 37, 7 }, - { 52, 33, 9 }, - { 53, 3, 5 }, - { 54, 40, 5 }, - { 55, 9, 15 }, - { 56, 49, 18 }, - { 57, 29, 17 }, - { 58, 4, 1 }, - { 59, 40, 19 }, - { 60, 47, 15 }, - { 61, 22, 6 }, - { 62, 34, 12 }, - { 63, 28, 14 }, - { 64, 45, 8 }, - { 65, 4, 7 }, - { 66, 47, 12 }, - { 67, 22, 19 }, - { 68, 6, 12 }, - { 69, 47, 4 }, - { 70, 17, 14 }, - { 71, 40, 17 }, - { 72, 21, 5 }, - { 73, 4, 13 }, - { 74, 4, 12 }, - { 75, 41, 14 }, - { 76, 19, 19 }, - { 77, 20, 6 }, - { 78, 9, 16 }, - { 79, 14, 4 }, - { 80, 44, 17 }, - { 81, 26, 17 }, - { 82, 37, 1 }, - { 83, 41, 4 }, - { 84, 8, 19 }, - { 85, 46, 16 }, - { 86, 38, 18 }, - { 87, 43, 19 }, - { 88, 30, 14 }, - { 89, 36, 5 }, - { 90, 6, 9 }, - { 91, 17, 18 }, - { 92, 40, 6 }, - { 93, 25, 8 }, - { 94, 28, 5 }, - { 95, 19, 15 }, - { 96, 33, 13 }, - { 97, 5, 19 }, - { 98, 36, 7 }, - { 99, 18, 15 }, - { 100, 43, 1 }, - { 101, 19, 2 }, - { 102, 47, 16 }, - { 103, 24, 10 }, - { 104, 29, 19 }, - { 105, 23, 18 }, - { 106, 49, 18 }, - { 107, 26, 13 }, - { 108, 17, 14 }, - { 109, 46, 6 }, - { 110, 46, 15 }, - { 111, 47, 15 }, - { 112, 31, 3 }, - { 113, 48, 2 }, - { 114, 31, 4 }, - { 115, 21, 8 }, - { 116, 36, 2 }, - { 117, 8, 4 }, - { 118, 12, 19 }, - { 119, 42, 9 }, - { 120, 13, 4 }, - { 121, 16, 12 }, - { 122, 30, 15 }, - { 123, 13, 17 }, - { 124, 28, 7 }, - { 125, 8, 8 }, - { 126, 8, 9 }, - { 127, 38, 14 }, - { 128, 21, 10 }, - { 129, 34, 9 }, - { 130, 13, 18 }, - { 131, 34, 16 }, - { 132, 29, 18 }, - { 133, 5, 16 }, - { 134, 4, 3 }, - { 135, 30, 9 }, - { 136, 48, 4 }, - { 137, 49, 1 }, - { 138, 38, 15 }, - { 139, 29, 6 }, - { 140, 5, 15 }, - { 141, 12, 8 }, - { 142, 2, 13 }, - { 143, 7, 2 }, - { 144, 9, 16 }, - { 145, 26, 13 }, - { 146, 14, 11 }, - { 147, 49, 3 }, - { 148, 17, 7 }, - { 149, 3, 18 }, - { 150, 17, 14 }, - { 151, 19, 2 }, - { 152, 8, 7 }, - { 153, 8, 12 }, - { 154, 16, 15 }, - { 155, 23, 12 }, - { 156, 2, 4 }, - { 157, 34, 7 }, - { 158, 18, 16 }, - { 159, 9, 12 }, - { 160, 37, 18 }, - { 161, 27, 17 }, - { 162, 26, 3 }, - { 163, 34, 11 }, - { 164, 4, 4 }, - { 165, 26, 10 }, - { 166, 2, 6 }, - { 167, 2, 9 }, - { 168, 20, 5 }, - { 169, 18, 12 }, - { 170, 49, 11 }, - { 171, 24, 11 }, - { 172, 11, 11 }, - { 173, 20, 2 }, - { 174, 6, 11 }, - { 175, 47, 13 }, - { 176, 18, 9 }, - { 177, 1, 14 }, - { 178, 29, 9 }, - { 179, 21, 11 }, - { 180, 14, 2 }, - { 181, 22, 6 }, - { 182, 33, 10 }, - { 183, 34, 6 }, - { 184, 35, 8 }, - { 185, 27, 12 }, - { 186, 34, 2 }, - { 187, 31, 3 }, - { 188, 39, 5 }, - { 189, 22, 3 }, - { 190, 3, 4 }, - { 191, 42, 12 }, - { 192, 47, 18 }, - { 193, 5, 18 }, - { 194, 3, 15 }, - { 195, 26, 19 }, - { 196, 44, 8 }, - { 197, 29, 18 }, - { 198, 30, 7 }, - { 199, 2, 8 } - }); - - migrationBuilder.CreateIndex( - name: "IX_screenings_movie_id", - table: "screenings", - column: "movie_id"); - - migrationBuilder.CreateIndex( - name: "IX_tickets_customer_id", - table: "tickets", - column: "customer_id"); - - migrationBuilder.CreateIndex( - name: "IX_tickets_screening_id", - table: "tickets", - column: "screening_id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "tickets"); - - migrationBuilder.DropTable( - name: "Customers"); - - migrationBuilder.DropTable( - name: "screenings"); - - migrationBuilder.DropTable( - name: "movie"); - } - } -} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.Designer.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.Designer.cs similarity index 75% rename from api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.Designer.cs rename to api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.Designer.cs index e24d17c4..1545473e 100644 --- a/api-cinema-challenge/api-cinema-challenge/Migrations/20250825084958_First.Designer.cs +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.Designer.cs @@ -12,8 +12,8 @@ namespace api_cinema_challenge.Migrations { [DbContext(typeof(CinemaContext))] - [Migration("20250825084958_First")] - partial class First + [Migration("20250825131522_Test")] + partial class Test { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -25,6 +25,61 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + modelBuilder.Entity("api_cinema_challenge.Data.ApplicationUser", b => + { + b.Property("Id") + .HasColumnType("text"); + + b.Property("AccessFailedCount") + .HasColumnType("integer"); + + b.Property("ConcurrencyStamp") + .HasColumnType("text"); + + b.Property("Email") + .HasColumnType("text"); + + b.Property("EmailConfirmed") + .HasColumnType("boolean"); + + b.Property("LockoutEnabled") + .HasColumnType("boolean"); + + b.Property("LockoutEnd") + .HasColumnType("timestamp with time zone"); + + b.Property("NormalizedEmail") + .HasColumnType("text"); + + b.Property("NormalizedUserName") + .HasColumnType("text"); + + b.Property("PasswordHash") + .HasColumnType("text"); + + b.Property("PhoneNumber") + .HasColumnType("text"); + + b.Property("PhoneNumberConfirmed") + .HasColumnType("boolean"); + + b.Property("Role") + .HasColumnType("integer"); + + b.Property("SecurityStamp") + .HasColumnType("text"); + + b.Property("TwoFactorEnabled") + .HasColumnType("boolean"); + + b.Property("UserName") + .HasColumnType("text"); + + b.HasKey("Id"); + + b.ToTable("ApplicationUsers"); + }); + modelBuilder.Entity("api_cinema_challenge.Models.Customer", b => { b.Property("Id") @@ -63,443 +118,443 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) new { Id = 1, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(713), - Email = "kate middleton@gov.gr", - Name = "Kate Middleton", - Phone = "57323012", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(932) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2035), + Email = "audrey hepburn@gov.gr", + Name = "Audrey Hepburn", + Phone = "24634684", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2268) }, new { Id = 2, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183), - Email = "kate trump@something.com", - Name = "Kate Trump", - Phone = "90036955", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3539), + Email = "kate hepburn@bbc.co.uk", + Name = "Kate Hepburn", + Phone = "49646097", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3540) }, new { Id = 3, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2204), - Email = "kate winslet@gov.ru", - Name = "Kate Winslet", - Phone = "79662272", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2208) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563), + Email = "charles presley@gov.nl", + Name = "Charles Presley", + Phone = "26639659", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563) }, new { Id = 4, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211), - Email = "kate winslet@something.com", - Name = "Kate Winslet", - Phone = "97434122", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3565), + Email = "donald hendrix@gov.ru", + Name = "Donald Hendrix", + Phone = "65109755", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3566) }, new { Id = 5, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2213), - Email = "elvis hendrix@gov.us", - Name = "Elvis Hendrix", - Phone = "84320894", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2215) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568), + Email = "oprah middleton@gov.us", + Name = "Oprah Middleton", + Phone = "43044406", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568) }, new { Id = 6, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2240), - Email = "kate hendrix@gov.ru", - Name = "Kate Hendrix", - Phone = "86093045", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2241) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579), + Email = "kate trump@bbc.co.uk", + Name = "Kate Trump", + Phone = "52083056", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579) }, new { Id = 7, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2242), - Email = "jimi trump@google.com", - Name = "Jimi Trump", - Phone = "77608896", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2243) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581), + Email = "charles winfrey@google.com", + Name = "Charles Winfrey", + Phone = "85242581", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581) }, new { Id = 8, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2244), - Email = "kate hendrix@gov.nl", - Name = "Kate Hendrix", - Phone = "30950692", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2245) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3604), + Email = "donald windsor@gov.us", + Name = "Donald Windsor", + Phone = "57665393", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3605) }, new { Id = 9, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246), - Email = "charles hepburn@google.com", - Name = "Charles Hepburn", - Phone = "53960475", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3606), + Email = "kate obama@google.com", + Name = "Kate Obama", + Phone = "22385849", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3607) }, new { Id = 10, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249), - Email = "barack obama@gov.nl", - Name = "Barack Obama", - Phone = "11402717", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609), + Email = "donald windsor@something.com", + Name = "Donald Windsor", + Phone = "62639816", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609) }, new { Id = 11, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252), - Email = "mick jagger@gov.gr", - Name = "Mick Jagger", - Phone = "74377263", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611), + Email = "charles hepburn@gov.ru", + Name = "Charles Hepburn", + Phone = "62276921", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611) }, new { Id = 12, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2253), - Email = "kate hepburn@tesla.com", - Name = "Kate Hepburn", - Phone = "37130689", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2254) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613), + Email = "elvis winfrey@tesla.com", + Name = "Elvis Winfrey", + Phone = "35293476", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613) }, new { Id = 13, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255), - Email = "kate windsor@google.com", - Name = "Kate Windsor", - Phone = "17850864", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3614), + Email = "elvis hepburn@gov.us", + Name = "Elvis Hepburn", + Phone = "84876191", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3615) }, new { Id = 14, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257), - Email = "donald jagger@tesla.com", - Name = "Donald Jagger", - Phone = "96174535", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616), + Email = "charles jagger@gov.ru", + Name = "Charles Jagger", + Phone = "54864917", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616) }, new { Id = 15, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259), - Email = "barack hendrix@something.com", - Name = "Barack Hendrix", - Phone = "38010217", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618), + Email = "barack winfrey@gov.ru", + Name = "Barack Winfrey", + Phone = "34106523", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618) }, new { Id = 16, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260), - Email = "elvis winfrey@gov.nl", - Name = "Elvis Winfrey", - Phone = "68797228", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619), + Email = "mick windsor@gov.gr", + Name = "Mick Windsor", + Phone = "52226638", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619) }, new { Id = 17, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262), - Email = "mick middleton@something.com", - Name = "Mick Middleton", - Phone = "55871184", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621), + Email = "elvis hepburn@nasa.org.us", + Name = "Elvis Hepburn", + Phone = "50058133", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621) }, new { Id = 18, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2265), - Email = "elvis obama@nasa.org.us", - Name = "Elvis Obama", - Phone = "99746360", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2266) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623), + Email = "jimi jagger@gov.us", + Name = "Jimi Jagger", + Phone = "30126005", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623) }, new { Id = 19, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267), - Email = "jimi hepburn@gov.gr", - Name = "Jimi Hepburn", - Phone = "15774057", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3624), + Email = "kate jagger@nasa.org.us", + Name = "Kate Jagger", + Phone = "28409903", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3625) }, new { Id = 20, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269), - Email = "kate presley@tesla.com", - Name = "Kate Presley", - Phone = "33030025", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626), + Email = "kate jagger@something.com", + Name = "Kate Jagger", + Phone = "27803251", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626) }, new { Id = 21, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270), - Email = "mick windsor@theworld.ca", - Name = "Mick Windsor", - Phone = "68406720", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3627), + Email = "barack winslet@bbc.co.uk", + Name = "Barack Winslet", + Phone = "56314127", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3628) }, new { Id = 22, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272), - Email = "mick windsor@bbc.co.uk", - Name = "Mick Windsor", - Phone = "70274513", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629), + Email = "jimi presley@tesla.com", + Name = "Jimi Presley", + Phone = "51246437", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629) }, new { Id = 23, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273), - Email = "barack windsor@google.com", - Name = "Barack Windsor", - Phone = "10112351", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3630), + Email = "kate winslet@something.com", + Name = "Kate Winslet", + Phone = "12062719", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3631) }, new { Id = 24, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275), - Email = "elvis hendrix@bbc.co.uk", - Name = "Elvis Hendrix", - Phone = "21340088", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3632), + Email = "mick presley@gov.ru", + Name = "Mick Presley", + Phone = "84330792", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3633) }, new { Id = 25, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276), - Email = "barack hendrix@nasa.org.us", - Name = "Barack Hendrix", - Phone = "67170625", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634), + Email = "kate hepburn@tesla.com", + Name = "Kate Hepburn", + Phone = "60705909", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634) }, new { Id = 26, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278), - Email = "kate winslet@bbc.co.uk", + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3635), + Email = "kate winslet@nasa.org.us", Name = "Kate Winslet", - Phone = "86772435", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278) + Phone = "47374763", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3636) }, new { Id = 27, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279), - Email = "barack obama@bbc.co.uk", - Name = "Barack Obama", - Phone = "83625317", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637), + Email = "audrey presley@gov.us", + Name = "Audrey Presley", + Phone = "89646824", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637) }, new { Id = 28, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281), - Email = "jimi hepburn@gov.nl", + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3638), + Email = "jimi hepburn@gov.gr", Name = "Jimi Hepburn", - Phone = "89412341", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281) + Phone = "70843563", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3639) }, new { Id = 29, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2293), - Email = "mick jagger@gov.nl", - Name = "Mick Jagger", - Phone = "37434825", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2294) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640), + Email = "mick windsor@nasa.org.us", + Name = "Mick Windsor", + Phone = "21891104", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640) }, new { Id = 30, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2295), - Email = "barack jagger@gov.ru", - Name = "Barack Jagger", - Phone = "23194181", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2296) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3641), + Email = "donald trump@nasa.org.us", + Name = "Donald Trump", + Phone = "77180744", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3642) }, new { Id = 31, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297), - Email = "elvis winfrey@gov.nl", - Name = "Elvis Winfrey", - Phone = "54447837", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3648), + Email = "kate presley@gov.nl", + Name = "Kate Presley", + Phone = "18549554", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3649) }, new { Id = 32, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299), - Email = "kate winfrey@bbc.co.uk", - Name = "Kate Winfrey", - Phone = "58976369", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651), + Email = "kate winslet@tesla.com", + Name = "Kate Winslet", + Phone = "22886454", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651) }, new { Id = 33, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2300), - Email = "charles jagger@something.com", - Name = "Charles Jagger", - Phone = "22440998", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2301) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3652), + Email = "elvis winfrey@something.com", + Name = "Elvis Winfrey", + Phone = "44923720", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3653) }, new { Id = 34, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303), - Email = "kate middleton@nasa.org.us", - Name = "Kate Middleton", - Phone = "19231484", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655), + Email = "kate winfrey@gov.nl", + Name = "Kate Winfrey", + Phone = "52713833", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655) }, new { Id = 35, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2304), - Email = "oprah jagger@nasa.org.us", - Name = "Oprah Jagger", - Phone = "96209492", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2305) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656), + Email = "jimi hendrix@gov.nl", + Name = "Jimi Hendrix", + Phone = "69254646", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656) }, new { Id = 36, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306), - Email = "jimi middleton@gov.us", - Name = "Jimi Middleton", - Phone = "14860055", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658), + Email = "barack trump@tesla.com", + Name = "Barack Trump", + Phone = "18571321", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658) }, new { Id = 37, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308), - Email = "mick windsor@bbc.co.uk", - Name = "Mick Windsor", - Phone = "46462376", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659), + Email = "elvis middleton@bbc.co.uk", + Name = "Elvis Middleton", + Phone = "66441056", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659) }, new { Id = 38, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2309), - Email = "elvis presley@theworld.ca", - Name = "Elvis Presley", - Phone = "11443439", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2310) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661), + Email = "jimi middleton@bbc.co.uk", + Name = "Jimi Middleton", + Phone = "31023577", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661) }, new { Id = 39, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311), - Email = "donald winfrey@something.com", - Name = "Donald Winfrey", - Phone = "71902615", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663), + Email = "kate hendrix@gov.ru", + Name = "Kate Hendrix", + Phone = "22668985", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663) }, new { Id = 40, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313), - Email = "charles hepburn@gov.us", - Name = "Charles Hepburn", - Phone = "42984697", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664), + Email = "kate hepburn@theworld.ca", + Name = "Kate Hepburn", + Phone = "54717904", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664) }, new { Id = 41, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2314), - Email = "mick jagger@tesla.com", - Name = "Mick Jagger", - Phone = "36431777", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2315) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666), + Email = "elvis jagger@tesla.com", + Name = "Elvis Jagger", + Phone = "72683693", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666) }, new { Id = 42, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316), - Email = "jimi hepburn@gov.nl", - Name = "Jimi Hepburn", - Phone = "93119392", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667), + Email = "barack middleton@nasa.org.us", + Name = "Barack Middleton", + Phone = "23610983", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667) }, new { Id = 43, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318), - Email = "mick middleton@bbc.co.uk", - Name = "Mick Middleton", - Phone = "60445327", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669), + Email = "kate obama@bbc.co.uk", + Name = "Kate Obama", + Phone = "28499438", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669) }, new { Id = 44, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2319), - Email = "jimi winslet@tesla.com", - Name = "Jimi Winslet", - Phone = "27412326", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2320) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3670), + Email = "elvis middleton@gov.ru", + Name = "Elvis Middleton", + Phone = "39411817", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3671) }, new { Id = 45, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321), - Email = "audrey windsor@tesla.com", - Name = "Audrey Windsor", - Phone = "41701761", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672), + Email = "jimi jagger@gov.us", + Name = "Jimi Jagger", + Phone = "54613053", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672) }, new { Id = 46, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2322), - Email = "kate middleton@gov.nl", - Name = "Kate Middleton", - Phone = "77306134", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2323) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674), + Email = "oprah presley@bbc.co.uk", + Name = "Oprah Presley", + Phone = "80862726", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674) }, new { Id = 47, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2324), - Email = "mick hepburn@gov.gr", - Name = "Mick Hepburn", - Phone = "69932733", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2325) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675), + Email = "jimi obama@nasa.org.us", + Name = "Jimi Obama", + Phone = "20418161", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675) }, new { Id = 48, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326), - Email = "donald winslet@gov.us", - Name = "Donald Winslet", - Phone = "95603319", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677), + Email = "charles hepburn@theworld.ca", + Name = "Charles Hepburn", + Phone = "17586489", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677) }, new { Id = 49, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2327), - Email = "elvis trump@gov.ru", - Name = "Elvis Trump", - Phone = "75749612", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2328) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678), + Email = "oprah middleton@google.com", + Name = "Oprah Middleton", + Phone = "48095329", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678) }); }); @@ -545,42 +600,42 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) new { Id = 1, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2700), + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4071), Description = "Very funny", - Rating = "years 18+", - RunTimeMins = 148, - Title = "The Bitter Flowers", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2811) + Rating = "years 11+", + RunTimeMins = 129, + Title = "A bunch of Large Flowers", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4202) }, new { Id = 2, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3338), + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4757), Description = "Very funny", - Rating = "years 16+", - RunTimeMins = 93, - Title = "A bunch of Orange Flowers", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3339) + Rating = "All", + RunTimeMins = 118, + Title = "Several Green Flowers", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4758) }, new { Id = 3, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3343), + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762), Description = "Very funny", - Rating = "years 6+", - RunTimeMins = 127, - Title = "Several Transparent Buildings", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3344) + Rating = "years 16+", + RunTimeMins = 123, + Title = "Several Purple Buildings", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762) }, new { Id = 4, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346), + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4764), Description = "Very funny", - Rating = "All", - RunTimeMins = 70, - Title = "A herd of Green Planets", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346) + Rating = "years 6+", + RunTimeMins = 72, + Title = "The Bitter Houses", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4765) }); }); @@ -625,192 +680,192 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) new { Id = 1, - Capacity = 89, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3602), - MovieId = 3, + Capacity = 77, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5046), + MovieId = 1, ScreenNumber = 0, - StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3692) + StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5157) }, new { Id = 2, - Capacity = 89, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4667), - MovieId = 2, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4668) + Capacity = 25, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6485), + MovieId = 3, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6487) }, new { Id = 3, - Capacity = 57, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671), - MovieId = 2, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671) + Capacity = 27, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490), + MovieId = 4, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490) }, new { Id = 4, - Capacity = 26, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4672), + Capacity = 84, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491), MovieId = 4, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4673) + ScreenNumber = 2, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491) }, new { Id = 5, - Capacity = 61, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674), - MovieId = 1, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674) + Capacity = 63, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492), + MovieId = 2, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492) }, new { Id = 6, - Capacity = 54, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4676), - MovieId = 4, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4677) + Capacity = 25, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503), + MovieId = 2, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503) }, new { Id = 7, - Capacity = 76, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686), - MovieId = 2, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686) + Capacity = 65, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504), + MovieId = 4, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504) }, new { Id = 8, - Capacity = 84, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4687), - MovieId = 4, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4688) + Capacity = 48, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505), + MovieId = 3, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505) }, new { Id = 9, - Capacity = 83, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689), + Capacity = 77, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506), MovieId = 2, ScreenNumber = 4, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689) + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506) }, new { Id = 10, - Capacity = 68, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4690), - MovieId = 2, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691) + Capacity = 59, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), + MovieId = 3, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508) }, new { Id = 11, - Capacity = 74, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691), - MovieId = 4, + Capacity = 87, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), + MovieId = 3, ScreenNumber = 0, - StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4692) + StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509) }, new { Id = 12, - Capacity = 45, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693), - MovieId = 1, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693) + Capacity = 99, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509), + MovieId = 2, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) }, new { Id = 13, - Capacity = 34, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694), + Capacity = 45, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510), MovieId = 2, ScreenNumber = 2, - StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694) + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) }, new { Id = 14, - Capacity = 25, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695), - MovieId = 4, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695) + Capacity = 38, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511), + MovieId = 2, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511) }, new { Id = 15, - Capacity = 67, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696), - MovieId = 4, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696) + Capacity = 26, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512) }, new { Id = 16, - Capacity = 67, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697), - MovieId = 4, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697) + Capacity = 51, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), + MovieId = 2, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513) }, new { Id = 17, - Capacity = 68, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698), - MovieId = 4, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698) + Capacity = 74, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513), + MovieId = 3, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6514) }, new { Id = 18, - Capacity = 35, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699), - MovieId = 1, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699) + Capacity = 79, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515) }, new { Id = 19, - Capacity = 72, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700), - MovieId = 4, + Capacity = 40, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516), + MovieId = 2, ScreenNumber = 2, - StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700) + StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516) }); }); @@ -843,1196 +898,1196 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) new { Id = 1, - CustomerId = 28, - ScreeningId = 5 + CustomerId = 33, + ScreeningId = 14 }, new { Id = 2, - CustomerId = 32, - ScreeningId = 2 + CustomerId = 28, + ScreeningId = 12 }, new { Id = 3, - CustomerId = 21, - ScreeningId = 5 + CustomerId = 17, + ScreeningId = 15 }, new { Id = 4, - CustomerId = 10, - ScreeningId = 17 + CustomerId = 2, + ScreeningId = 6 }, new { Id = 5, - CustomerId = 19, - ScreeningId = 3 + CustomerId = 41, + ScreeningId = 6 }, new { Id = 6, - CustomerId = 34, - ScreeningId = 2 + CustomerId = 42, + ScreeningId = 6 }, new { Id = 7, - CustomerId = 25, - ScreeningId = 2 + CustomerId = 27, + ScreeningId = 13 }, new { Id = 8, - CustomerId = 40, - ScreeningId = 6 + CustomerId = 39, + ScreeningId = 11 }, new { Id = 9, - CustomerId = 18, - ScreeningId = 17 + CustomerId = 17, + ScreeningId = 5 }, new { Id = 10, - CustomerId = 2, - ScreeningId = 4 + CustomerId = 25, + ScreeningId = 9 }, new { Id = 11, - CustomerId = 41, - ScreeningId = 10 + CustomerId = 9, + ScreeningId = 5 }, new { Id = 12, - CustomerId = 17, - ScreeningId = 11 + CustomerId = 30, + ScreeningId = 9 }, new { Id = 13, - CustomerId = 11, - ScreeningId = 10 + CustomerId = 36, + ScreeningId = 6 }, new { Id = 14, - CustomerId = 37, - ScreeningId = 16 + CustomerId = 41, + ScreeningId = 8 }, new { Id = 15, - CustomerId = 27, - ScreeningId = 4 + CustomerId = 6, + ScreeningId = 9 }, new { Id = 16, - CustomerId = 36, - ScreeningId = 16 + CustomerId = 30, + ScreeningId = 15 }, new { Id = 17, - CustomerId = 31, - ScreeningId = 2 + CustomerId = 46, + ScreeningId = 16 }, new { Id = 18, - CustomerId = 1, - ScreeningId = 3 + CustomerId = 21, + ScreeningId = 8 }, new { Id = 19, - CustomerId = 22, - ScreeningId = 14 + CustomerId = 6, + ScreeningId = 3 }, new { Id = 20, - CustomerId = 40, - ScreeningId = 17 + CustomerId = 47, + ScreeningId = 5 }, new { Id = 21, - CustomerId = 49, - ScreeningId = 2 + CustomerId = 40, + ScreeningId = 7 }, new { Id = 22, - CustomerId = 11, - ScreeningId = 3 + CustomerId = 28, + ScreeningId = 1 }, new { Id = 23, - CustomerId = 38, - ScreeningId = 17 + CustomerId = 32, + ScreeningId = 4 }, new { Id = 24, - CustomerId = 12, - ScreeningId = 5 + CustomerId = 23, + ScreeningId = 12 }, new { Id = 25, - CustomerId = 3, - ScreeningId = 16 + CustomerId = 12, + ScreeningId = 7 }, new { Id = 26, - CustomerId = 11, - ScreeningId = 4 + CustomerId = 17, + ScreeningId = 11 }, new { Id = 27, - CustomerId = 19, - ScreeningId = 7 + CustomerId = 18, + ScreeningId = 3 }, new { Id = 28, - CustomerId = 3, - ScreeningId = 13 + CustomerId = 34, + ScreeningId = 18 }, new { Id = 29, - CustomerId = 41, - ScreeningId = 12 + CustomerId = 49, + ScreeningId = 5 }, new { Id = 30, - CustomerId = 42, - ScreeningId = 8 + CustomerId = 7, + ScreeningId = 13 }, new { Id = 31, - CustomerId = 28, - ScreeningId = 16 + CustomerId = 42, + ScreeningId = 18 }, new { Id = 32, - CustomerId = 48, - ScreeningId = 15 + CustomerId = 14, + ScreeningId = 10 }, new { Id = 33, - CustomerId = 45, - ScreeningId = 6 + CustomerId = 26, + ScreeningId = 18 }, new { Id = 34, - CustomerId = 28, - ScreeningId = 4 + CustomerId = 33, + ScreeningId = 17 }, new { Id = 35, - CustomerId = 44, - ScreeningId = 2 + CustomerId = 21, + ScreeningId = 5 }, new { Id = 36, - CustomerId = 37, - ScreeningId = 9 + CustomerId = 44, + ScreeningId = 12 }, new { Id = 37, - CustomerId = 30, - ScreeningId = 4 + CustomerId = 28, + ScreeningId = 1 }, new { Id = 38, - CustomerId = 20, - ScreeningId = 14 + CustomerId = 1, + ScreeningId = 12 }, new { Id = 39, - CustomerId = 39, - ScreeningId = 1 + CustomerId = 14, + ScreeningId = 4 }, new { Id = 40, - CustomerId = 14, - ScreeningId = 2 + CustomerId = 1, + ScreeningId = 14 }, new { Id = 41, - CustomerId = 2, - ScreeningId = 9 + CustomerId = 44, + ScreeningId = 17 }, new { Id = 42, - CustomerId = 28, - ScreeningId = 7 + CustomerId = 29, + ScreeningId = 6 }, new { Id = 43, - CustomerId = 25, - ScreeningId = 9 + CustomerId = 45, + ScreeningId = 17 }, new { Id = 44, - CustomerId = 42, - ScreeningId = 11 + CustomerId = 37, + ScreeningId = 7 }, new { Id = 45, - CustomerId = 1, - ScreeningId = 2 + CustomerId = 35, + ScreeningId = 19 }, new { Id = 46, - CustomerId = 1, - ScreeningId = 14 + CustomerId = 12, + ScreeningId = 16 }, new { Id = 47, - CustomerId = 1, - ScreeningId = 13 + CustomerId = 44, + ScreeningId = 17 }, new { Id = 48, - CustomerId = 38, - ScreeningId = 13 + CustomerId = 42, + ScreeningId = 7 }, new { Id = 49, - CustomerId = 6, - ScreeningId = 7 + CustomerId = 28, + ScreeningId = 5 }, new { Id = 50, - CustomerId = 1, - ScreeningId = 15 + CustomerId = 43, + ScreeningId = 8 }, new { Id = 51, - CustomerId = 37, - ScreeningId = 7 + CustomerId = 26, + ScreeningId = 8 }, new { Id = 52, - CustomerId = 33, + CustomerId = 44, ScreeningId = 9 }, new { Id = 53, - CustomerId = 3, - ScreeningId = 5 + CustomerId = 4, + ScreeningId = 19 }, new { Id = 54, - CustomerId = 40, - ScreeningId = 5 + CustomerId = 22, + ScreeningId = 10 }, new { Id = 55, - CustomerId = 9, - ScreeningId = 15 + CustomerId = 15, + ScreeningId = 3 }, new { Id = 56, - CustomerId = 49, - ScreeningId = 18 + CustomerId = 43, + ScreeningId = 5 }, new { Id = 57, - CustomerId = 29, - ScreeningId = 17 + CustomerId = 43, + ScreeningId = 18 }, new { Id = 58, - CustomerId = 4, - ScreeningId = 1 + CustomerId = 9, + ScreeningId = 4 }, new { Id = 59, - CustomerId = 40, - ScreeningId = 19 + CustomerId = 15, + ScreeningId = 6 }, new { Id = 60, - CustomerId = 47, - ScreeningId = 15 + CustomerId = 22, + ScreeningId = 14 }, new { Id = 61, - CustomerId = 22, - ScreeningId = 6 + CustomerId = 3, + ScreeningId = 7 }, new { Id = 62, - CustomerId = 34, - ScreeningId = 12 + CustomerId = 43, + ScreeningId = 16 }, new { Id = 63, - CustomerId = 28, - ScreeningId = 14 + CustomerId = 7, + ScreeningId = 4 }, new { Id = 64, - CustomerId = 45, - ScreeningId = 8 + CustomerId = 27, + ScreeningId = 10 }, new { Id = 65, - CustomerId = 4, - ScreeningId = 7 + CustomerId = 13, + ScreeningId = 17 }, new { Id = 66, - CustomerId = 47, - ScreeningId = 12 + CustomerId = 39, + ScreeningId = 4 }, new { Id = 67, - CustomerId = 22, - ScreeningId = 19 + CustomerId = 47, + ScreeningId = 4 }, new { Id = 68, - CustomerId = 6, - ScreeningId = 12 + CustomerId = 21, + ScreeningId = 2 }, new { Id = 69, - CustomerId = 47, - ScreeningId = 4 + CustomerId = 46, + ScreeningId = 17 }, new { Id = 70, - CustomerId = 17, - ScreeningId = 14 + CustomerId = 14, + ScreeningId = 1 }, new { Id = 71, - CustomerId = 40, - ScreeningId = 17 + CustomerId = 28, + ScreeningId = 4 }, new { Id = 72, - CustomerId = 21, - ScreeningId = 5 + CustomerId = 47, + ScreeningId = 6 }, new { Id = 73, - CustomerId = 4, - ScreeningId = 13 + CustomerId = 5, + ScreeningId = 17 }, new { Id = 74, - CustomerId = 4, - ScreeningId = 12 + CustomerId = 11, + ScreeningId = 15 }, new { Id = 75, - CustomerId = 41, - ScreeningId = 14 + CustomerId = 46, + ScreeningId = 5 }, new { Id = 76, - CustomerId = 19, - ScreeningId = 19 + CustomerId = 45, + ScreeningId = 17 }, new { Id = 77, - CustomerId = 20, - ScreeningId = 6 + CustomerId = 6, + ScreeningId = 1 }, new { Id = 78, - CustomerId = 9, - ScreeningId = 16 + CustomerId = 16, + ScreeningId = 18 }, new { Id = 79, - CustomerId = 14, - ScreeningId = 4 + CustomerId = 36, + ScreeningId = 1 }, new { Id = 80, - CustomerId = 44, - ScreeningId = 17 + CustomerId = 43, + ScreeningId = 14 }, new { Id = 81, - CustomerId = 26, - ScreeningId = 17 + CustomerId = 12, + ScreeningId = 15 }, new { Id = 82, - CustomerId = 37, - ScreeningId = 1 + CustomerId = 40, + ScreeningId = 2 }, new { Id = 83, - CustomerId = 41, + CustomerId = 5, ScreeningId = 4 }, new { Id = 84, - CustomerId = 8, - ScreeningId = 19 + CustomerId = 36, + ScreeningId = 10 }, new { Id = 85, - CustomerId = 46, - ScreeningId = 16 + CustomerId = 21, + ScreeningId = 13 }, new { Id = 86, - CustomerId = 38, - ScreeningId = 18 + CustomerId = 4, + ScreeningId = 10 }, new { Id = 87, - CustomerId = 43, - ScreeningId = 19 + CustomerId = 42, + ScreeningId = 2 }, new { Id = 88, - CustomerId = 30, - ScreeningId = 14 + CustomerId = 1, + ScreeningId = 10 }, new { Id = 89, - CustomerId = 36, - ScreeningId = 5 + CustomerId = 5, + ScreeningId = 1 }, new { Id = 90, - CustomerId = 6, - ScreeningId = 9 + CustomerId = 34, + ScreeningId = 12 }, new { Id = 91, - CustomerId = 17, - ScreeningId = 18 + CustomerId = 35, + ScreeningId = 7 }, new { Id = 92, - CustomerId = 40, - ScreeningId = 6 + CustomerId = 47, + ScreeningId = 8 }, new { Id = 93, - CustomerId = 25, - ScreeningId = 8 + CustomerId = 35, + ScreeningId = 9 }, new { Id = 94, - CustomerId = 28, - ScreeningId = 5 + CustomerId = 5, + ScreeningId = 12 }, new { Id = 95, - CustomerId = 19, - ScreeningId = 15 + CustomerId = 43, + ScreeningId = 7 }, new { Id = 96, - CustomerId = 33, - ScreeningId = 13 + CustomerId = 36, + ScreeningId = 1 }, new { Id = 97, - CustomerId = 5, - ScreeningId = 19 + CustomerId = 4, + ScreeningId = 7 }, new { Id = 98, - CustomerId = 36, - ScreeningId = 7 + CustomerId = 31, + ScreeningId = 14 }, new { Id = 99, - CustomerId = 18, - ScreeningId = 15 + CustomerId = 25, + ScreeningId = 19 }, new { Id = 100, - CustomerId = 43, - ScreeningId = 1 + CustomerId = 49, + ScreeningId = 9 }, new { Id = 101, - CustomerId = 19, - ScreeningId = 2 + CustomerId = 4, + ScreeningId = 15 }, new { Id = 102, - CustomerId = 47, - ScreeningId = 16 + CustomerId = 34, + ScreeningId = 10 }, new { Id = 103, - CustomerId = 24, - ScreeningId = 10 + CustomerId = 14, + ScreeningId = 8 }, new { Id = 104, - CustomerId = 29, - ScreeningId = 19 + CustomerId = 28, + ScreeningId = 7 }, new { Id = 105, - CustomerId = 23, - ScreeningId = 18 + CustomerId = 38, + ScreeningId = 2 }, new { Id = 106, - CustomerId = 49, + CustomerId = 7, ScreeningId = 18 }, new { Id = 107, - CustomerId = 26, - ScreeningId = 13 + CustomerId = 40, + ScreeningId = 9 }, new { Id = 108, - CustomerId = 17, - ScreeningId = 14 + CustomerId = 22, + ScreeningId = 3 }, new { Id = 109, - CustomerId = 46, - ScreeningId = 6 + CustomerId = 4, + ScreeningId = 7 }, new { Id = 110, - CustomerId = 46, - ScreeningId = 15 + CustomerId = 34, + ScreeningId = 17 }, new { Id = 111, - CustomerId = 47, - ScreeningId = 15 + CustomerId = 6, + ScreeningId = 6 }, new { Id = 112, - CustomerId = 31, - ScreeningId = 3 + CustomerId = 9, + ScreeningId = 10 }, new { Id = 113, - CustomerId = 48, - ScreeningId = 2 + CustomerId = 39, + ScreeningId = 8 }, new { Id = 114, - CustomerId = 31, - ScreeningId = 4 + CustomerId = 22, + ScreeningId = 5 }, new { Id = 115, - CustomerId = 21, - ScreeningId = 8 + CustomerId = 26, + ScreeningId = 12 }, new { Id = 116, - CustomerId = 36, - ScreeningId = 2 + CustomerId = 34, + ScreeningId = 5 }, new { Id = 117, - CustomerId = 8, - ScreeningId = 4 + CustomerId = 15, + ScreeningId = 7 }, new { Id = 118, - CustomerId = 12, - ScreeningId = 19 + CustomerId = 41, + ScreeningId = 18 }, new { Id = 119, - CustomerId = 42, + CustomerId = 39, ScreeningId = 9 }, new { Id = 120, - CustomerId = 13, - ScreeningId = 4 + CustomerId = 14, + ScreeningId = 5 }, new { Id = 121, - CustomerId = 16, - ScreeningId = 12 + CustomerId = 10, + ScreeningId = 10 }, new { Id = 122, - CustomerId = 30, - ScreeningId = 15 + CustomerId = 3, + ScreeningId = 14 }, new { Id = 123, - CustomerId = 13, - ScreeningId = 17 + CustomerId = 16, + ScreeningId = 10 }, new { Id = 124, - CustomerId = 28, - ScreeningId = 7 + CustomerId = 3, + ScreeningId = 13 }, new { Id = 125, - CustomerId = 8, - ScreeningId = 8 + CustomerId = 43, + ScreeningId = 5 }, new { Id = 126, - CustomerId = 8, - ScreeningId = 9 + CustomerId = 39, + ScreeningId = 16 }, new { Id = 127, - CustomerId = 38, - ScreeningId = 14 + CustomerId = 6, + ScreeningId = 15 }, new { Id = 128, - CustomerId = 21, - ScreeningId = 10 + CustomerId = 20, + ScreeningId = 3 }, new { Id = 129, - CustomerId = 34, - ScreeningId = 9 + CustomerId = 29, + ScreeningId = 12 }, new { Id = 130, - CustomerId = 13, - ScreeningId = 18 + CustomerId = 31, + ScreeningId = 15 }, new { Id = 131, - CustomerId = 34, - ScreeningId = 16 + CustomerId = 10, + ScreeningId = 6 }, new { Id = 132, - CustomerId = 29, - ScreeningId = 18 + CustomerId = 16, + ScreeningId = 3 }, new { Id = 133, - CustomerId = 5, - ScreeningId = 16 + CustomerId = 13, + ScreeningId = 15 }, new { Id = 134, - CustomerId = 4, - ScreeningId = 3 + CustomerId = 17, + ScreeningId = 2 }, new { Id = 135, - CustomerId = 30, - ScreeningId = 9 + CustomerId = 18, + ScreeningId = 15 }, new { Id = 136, - CustomerId = 48, - ScreeningId = 4 + CustomerId = 41, + ScreeningId = 19 }, new { Id = 137, - CustomerId = 49, - ScreeningId = 1 + CustomerId = 41, + ScreeningId = 13 }, new { Id = 138, - CustomerId = 38, - ScreeningId = 15 + CustomerId = 23, + ScreeningId = 3 }, new { Id = 139, - CustomerId = 29, - ScreeningId = 6 + CustomerId = 40, + ScreeningId = 5 }, new { Id = 140, - CustomerId = 5, - ScreeningId = 15 + CustomerId = 38, + ScreeningId = 1 }, new { Id = 141, - CustomerId = 12, - ScreeningId = 8 + CustomerId = 7, + ScreeningId = 9 }, new { Id = 142, - CustomerId = 2, - ScreeningId = 13 + CustomerId = 45, + ScreeningId = 6 }, new { Id = 143, - CustomerId = 7, - ScreeningId = 2 + CustomerId = 30, + ScreeningId = 5 }, new { Id = 144, - CustomerId = 9, - ScreeningId = 16 + CustomerId = 14, + ScreeningId = 9 }, new { Id = 145, - CustomerId = 26, - ScreeningId = 13 + CustomerId = 14, + ScreeningId = 18 }, new { Id = 146, - CustomerId = 14, - ScreeningId = 11 + CustomerId = 23, + ScreeningId = 16 }, new { Id = 147, - CustomerId = 49, - ScreeningId = 3 + CustomerId = 31, + ScreeningId = 16 }, new { Id = 148, - CustomerId = 17, - ScreeningId = 7 + CustomerId = 45, + ScreeningId = 1 }, new { Id = 149, CustomerId = 3, - ScreeningId = 18 + ScreeningId = 6 }, new { Id = 150, - CustomerId = 17, - ScreeningId = 14 + CustomerId = 1, + ScreeningId = 7 }, new { Id = 151, - CustomerId = 19, - ScreeningId = 2 + CustomerId = 35, + ScreeningId = 3 }, new { Id = 152, - CustomerId = 8, - ScreeningId = 7 + CustomerId = 1, + ScreeningId = 15 }, new { Id = 153, - CustomerId = 8, - ScreeningId = 12 + CustomerId = 4, + ScreeningId = 8 }, new { Id = 154, - CustomerId = 16, - ScreeningId = 15 + CustomerId = 25, + ScreeningId = 1 }, new { Id = 155, - CustomerId = 23, - ScreeningId = 12 + CustomerId = 32, + ScreeningId = 18 }, new { Id = 156, - CustomerId = 2, - ScreeningId = 4 + CustomerId = 34, + ScreeningId = 13 }, new { Id = 157, - CustomerId = 34, - ScreeningId = 7 + CustomerId = 33, + ScreeningId = 4 }, new { Id = 158, - CustomerId = 18, - ScreeningId = 16 + CustomerId = 24, + ScreeningId = 5 }, new { Id = 159, - CustomerId = 9, - ScreeningId = 12 + CustomerId = 31, + ScreeningId = 15 }, new { Id = 160, - CustomerId = 37, - ScreeningId = 18 + CustomerId = 44, + ScreeningId = 15 }, new { Id = 161, - CustomerId = 27, - ScreeningId = 17 + CustomerId = 37, + ScreeningId = 8 }, new { Id = 162, - CustomerId = 26, - ScreeningId = 3 + CustomerId = 3, + ScreeningId = 7 }, new { Id = 163, - CustomerId = 34, - ScreeningId = 11 + CustomerId = 27, + ScreeningId = 9 }, new { Id = 164, - CustomerId = 4, - ScreeningId = 4 + CustomerId = 40, + ScreeningId = 9 }, new { Id = 165, - CustomerId = 26, + CustomerId = 16, ScreeningId = 10 }, new { Id = 166, - CustomerId = 2, - ScreeningId = 6 + CustomerId = 26, + ScreeningId = 16 }, new { Id = 167, - CustomerId = 2, - ScreeningId = 9 + CustomerId = 31, + ScreeningId = 15 }, new { Id = 168, - CustomerId = 20, - ScreeningId = 5 + CustomerId = 18, + ScreeningId = 11 }, new { Id = 169, - CustomerId = 18, - ScreeningId = 12 + CustomerId = 30, + ScreeningId = 16 }, new { Id = 170, - CustomerId = 49, + CustomerId = 48, ScreeningId = 11 }, new { Id = 171, - CustomerId = 24, - ScreeningId = 11 + CustomerId = 30, + ScreeningId = 1 }, new { Id = 172, - CustomerId = 11, - ScreeningId = 11 + CustomerId = 17, + ScreeningId = 9 }, new { Id = 173, - CustomerId = 20, + CustomerId = 24, ScreeningId = 2 }, new { Id = 174, - CustomerId = 6, - ScreeningId = 11 + CustomerId = 3, + ScreeningId = 2 }, new { Id = 175, - CustomerId = 47, - ScreeningId = 13 + CustomerId = 32, + ScreeningId = 18 }, new { Id = 176, - CustomerId = 18, - ScreeningId = 9 + CustomerId = 33, + ScreeningId = 10 }, new { Id = 177, - CustomerId = 1, - ScreeningId = 14 + CustomerId = 48, + ScreeningId = 1 }, new { Id = 178, - CustomerId = 29, - ScreeningId = 9 + CustomerId = 36, + ScreeningId = 14 }, new { Id = 179, - CustomerId = 21, - ScreeningId = 11 + CustomerId = 47, + ScreeningId = 2 }, new { Id = 180, - CustomerId = 14, - ScreeningId = 2 + CustomerId = 43, + ScreeningId = 7 }, new { Id = 181, - CustomerId = 22, - ScreeningId = 6 + CustomerId = 13, + ScreeningId = 1 }, new { Id = 182, - CustomerId = 33, - ScreeningId = 10 + CustomerId = 19, + ScreeningId = 12 }, new { Id = 183, - CustomerId = 34, - ScreeningId = 6 + CustomerId = 35, + ScreeningId = 2 }, new { Id = 184, - CustomerId = 35, - ScreeningId = 8 + CustomerId = 37, + ScreeningId = 18 }, new { Id = 185, - CustomerId = 27, - ScreeningId = 12 + CustomerId = 28, + ScreeningId = 2 }, new { Id = 186, - CustomerId = 34, - ScreeningId = 2 + CustomerId = 11, + ScreeningId = 8 }, new { Id = 187, - CustomerId = 31, - ScreeningId = 3 + CustomerId = 43, + ScreeningId = 18 }, new { Id = 188, - CustomerId = 39, - ScreeningId = 5 + CustomerId = 36, + ScreeningId = 9 }, new { Id = 189, - CustomerId = 22, - ScreeningId = 3 + CustomerId = 25, + ScreeningId = 19 }, new { Id = 190, - CustomerId = 3, - ScreeningId = 4 + CustomerId = 40, + ScreeningId = 16 }, new { Id = 191, - CustomerId = 42, - ScreeningId = 12 + CustomerId = 8, + ScreeningId = 17 }, new { Id = 192, - CustomerId = 47, - ScreeningId = 18 + CustomerId = 23, + ScreeningId = 17 }, new { Id = 193, - CustomerId = 5, - ScreeningId = 18 + CustomerId = 49, + ScreeningId = 7 }, new { Id = 194, - CustomerId = 3, - ScreeningId = 15 + CustomerId = 6, + ScreeningId = 12 }, new { Id = 195, - CustomerId = 26, - ScreeningId = 19 + CustomerId = 31, + ScreeningId = 3 }, new { Id = 196, - CustomerId = 44, - ScreeningId = 8 + CustomerId = 16, + ScreeningId = 10 }, new { Id = 197, - CustomerId = 29, - ScreeningId = 18 + CustomerId = 41, + ScreeningId = 4 }, new { Id = 198, - CustomerId = 30, - ScreeningId = 7 + CustomerId = 1, + ScreeningId = 2 }, new { Id = 199, - CustomerId = 2, - ScreeningId = 8 + CustomerId = 11, + ScreeningId = 15 }); }); diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.cs new file mode 100644 index 00000000..b3c53633 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.cs @@ -0,0 +1,462 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional + +namespace api_cinema_challenge.Migrations +{ + /// + public partial class Test : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "ApplicationUsers", + columns: table => new + { + Id = table.Column(type: "text", nullable: false), + Role = table.Column(type: "integer", nullable: false), + UserName = table.Column(type: "text", nullable: true), + NormalizedUserName = table.Column(type: "text", nullable: true), + Email = table.Column(type: "text", nullable: true), + NormalizedEmail = table.Column(type: "text", nullable: true), + EmailConfirmed = table.Column(type: "boolean", nullable: false), + PasswordHash = table.Column(type: "text", nullable: true), + SecurityStamp = table.Column(type: "text", nullable: true), + ConcurrencyStamp = table.Column(type: "text", nullable: true), + PhoneNumber = table.Column(type: "text", nullable: true), + PhoneNumberConfirmed = table.Column(type: "boolean", nullable: false), + TwoFactorEnabled = table.Column(type: "boolean", nullable: false), + LockoutEnd = table.Column(type: "timestamp with time zone", nullable: true), + LockoutEnabled = table.Column(type: "boolean", nullable: false), + AccessFailedCount = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ApplicationUsers", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Customers", + columns: table => new + { + customer_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + name = table.Column(type: "text", nullable: false), + email = table.Column(type: "text", nullable: false), + phone = table.Column(type: "text", nullable: false), + CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), + UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Customers", x => x.customer_id); + }); + + migrationBuilder.CreateTable( + name: "movie", + columns: table => new + { + movie_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + title = table.Column(type: "text", nullable: false), + rating = table.Column(type: "text", nullable: false), + description = table.Column(type: "text", nullable: false), + runtime_mins = table.Column(type: "integer", nullable: false), + CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), + UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_movie", x => x.movie_id); + }); + + migrationBuilder.CreateTable( + name: "screenings", + columns: table => new + { + screening_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + screen_number = table.Column(type: "integer", nullable: false), + capacity = table.Column(type: "integer", nullable: false), + starts_at = table.Column(type: "timestamp with time zone", nullable: false), + movie_id = table.Column(type: "integer", nullable: false), + CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), + UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_screenings", x => x.screening_id); + table.ForeignKey( + name: "FK_screenings_movie_movie_id", + column: x => x.movie_id, + principalTable: "movie", + principalColumn: "movie_id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "tickets", + columns: table => new + { + ticket_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + screening_id = table.Column(type: "integer", nullable: false), + customer_id = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_tickets", x => x.ticket_id); + table.ForeignKey( + name: "FK_tickets_Customers_customer_id", + column: x => x.customer_id, + principalTable: "Customers", + principalColumn: "customer_id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_tickets_screenings_screening_id", + column: x => x.screening_id, + principalTable: "screenings", + principalColumn: "screening_id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.InsertData( + table: "Customers", + columns: new[] { "customer_id", "CreatedAt", "email", "name", "phone", "UpdatedAt" }, + values: new object[,] + { + { 1, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2035), "audrey hepburn@gov.gr", "Audrey Hepburn", "24634684", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2268) }, + { 2, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3539), "kate hepburn@bbc.co.uk", "Kate Hepburn", "49646097", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3540) }, + { 3, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563), "charles presley@gov.nl", "Charles Presley", "26639659", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563) }, + { 4, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3565), "donald hendrix@gov.ru", "Donald Hendrix", "65109755", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3566) }, + { 5, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568), "oprah middleton@gov.us", "Oprah Middleton", "43044406", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568) }, + { 6, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579), "kate trump@bbc.co.uk", "Kate Trump", "52083056", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579) }, + { 7, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581), "charles winfrey@google.com", "Charles Winfrey", "85242581", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581) }, + { 8, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3604), "donald windsor@gov.us", "Donald Windsor", "57665393", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3605) }, + { 9, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3606), "kate obama@google.com", "Kate Obama", "22385849", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3607) }, + { 10, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609), "donald windsor@something.com", "Donald Windsor", "62639816", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609) }, + { 11, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611), "charles hepburn@gov.ru", "Charles Hepburn", "62276921", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611) }, + { 12, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613), "elvis winfrey@tesla.com", "Elvis Winfrey", "35293476", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613) }, + { 13, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3614), "elvis hepburn@gov.us", "Elvis Hepburn", "84876191", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3615) }, + { 14, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616), "charles jagger@gov.ru", "Charles Jagger", "54864917", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616) }, + { 15, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618), "barack winfrey@gov.ru", "Barack Winfrey", "34106523", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618) }, + { 16, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619), "mick windsor@gov.gr", "Mick Windsor", "52226638", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619) }, + { 17, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621), "elvis hepburn@nasa.org.us", "Elvis Hepburn", "50058133", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621) }, + { 18, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623), "jimi jagger@gov.us", "Jimi Jagger", "30126005", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623) }, + { 19, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3624), "kate jagger@nasa.org.us", "Kate Jagger", "28409903", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3625) }, + { 20, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626), "kate jagger@something.com", "Kate Jagger", "27803251", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626) }, + { 21, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3627), "barack winslet@bbc.co.uk", "Barack Winslet", "56314127", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3628) }, + { 22, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629), "jimi presley@tesla.com", "Jimi Presley", "51246437", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629) }, + { 23, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3630), "kate winslet@something.com", "Kate Winslet", "12062719", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3631) }, + { 24, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3632), "mick presley@gov.ru", "Mick Presley", "84330792", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3633) }, + { 25, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634), "kate hepburn@tesla.com", "Kate Hepburn", "60705909", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634) }, + { 26, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3635), "kate winslet@nasa.org.us", "Kate Winslet", "47374763", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3636) }, + { 27, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637), "audrey presley@gov.us", "Audrey Presley", "89646824", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637) }, + { 28, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3638), "jimi hepburn@gov.gr", "Jimi Hepburn", "70843563", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3639) }, + { 29, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640), "mick windsor@nasa.org.us", "Mick Windsor", "21891104", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640) }, + { 30, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3641), "donald trump@nasa.org.us", "Donald Trump", "77180744", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3642) }, + { 31, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3648), "kate presley@gov.nl", "Kate Presley", "18549554", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3649) }, + { 32, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651), "kate winslet@tesla.com", "Kate Winslet", "22886454", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651) }, + { 33, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3652), "elvis winfrey@something.com", "Elvis Winfrey", "44923720", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3653) }, + { 34, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655), "kate winfrey@gov.nl", "Kate Winfrey", "52713833", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655) }, + { 35, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656), "jimi hendrix@gov.nl", "Jimi Hendrix", "69254646", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656) }, + { 36, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658), "barack trump@tesla.com", "Barack Trump", "18571321", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658) }, + { 37, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659), "elvis middleton@bbc.co.uk", "Elvis Middleton", "66441056", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659) }, + { 38, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661), "jimi middleton@bbc.co.uk", "Jimi Middleton", "31023577", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661) }, + { 39, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663), "kate hendrix@gov.ru", "Kate Hendrix", "22668985", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663) }, + { 40, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664), "kate hepburn@theworld.ca", "Kate Hepburn", "54717904", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664) }, + { 41, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666), "elvis jagger@tesla.com", "Elvis Jagger", "72683693", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666) }, + { 42, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667), "barack middleton@nasa.org.us", "Barack Middleton", "23610983", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667) }, + { 43, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669), "kate obama@bbc.co.uk", "Kate Obama", "28499438", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669) }, + { 44, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3670), "elvis middleton@gov.ru", "Elvis Middleton", "39411817", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3671) }, + { 45, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672), "jimi jagger@gov.us", "Jimi Jagger", "54613053", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672) }, + { 46, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674), "oprah presley@bbc.co.uk", "Oprah Presley", "80862726", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674) }, + { 47, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675), "jimi obama@nasa.org.us", "Jimi Obama", "20418161", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675) }, + { 48, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677), "charles hepburn@theworld.ca", "Charles Hepburn", "17586489", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677) }, + { 49, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678), "oprah middleton@google.com", "Oprah Middleton", "48095329", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678) } + }); + + migrationBuilder.InsertData( + table: "movie", + columns: new[] { "movie_id", "CreatedAt", "description", "rating", "runtime_mins", "title", "UpdatedAt" }, + values: new object[,] + { + { 1, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4071), "Very funny", "years 11+", 129, "A bunch of Large Flowers", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4202) }, + { 2, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4757), "Very funny", "All", 118, "Several Green Flowers", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4758) }, + { 3, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762), "Very funny", "years 16+", 123, "Several Purple Buildings", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762) }, + { 4, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4764), "Very funny", "years 6+", 72, "The Bitter Houses", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4765) } + }); + + migrationBuilder.InsertData( + table: "screenings", + columns: new[] { "screening_id", "capacity", "CreatedAt", "movie_id", "screen_number", "starts_at", "UpdatedAt" }, + values: new object[,] + { + { 1, 77, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5046), 1, 0, new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5157) }, + { 2, 25, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6485), 3, 3, new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6487) }, + { 3, 27, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490), 4, 2, new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490) }, + { 4, 84, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491), 4, 2, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491) }, + { 5, 63, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492), 2, 3, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492) }, + { 6, 25, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503), 2, 1, new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503) }, + { 7, 65, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504), 4, 0, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504) }, + { 8, 48, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505), 3, 0, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505) }, + { 9, 77, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506), 2, 4, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506) }, + { 10, 59, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), 3, 4, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508) }, + { 11, 87, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), 3, 0, new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509) }, + { 12, 99, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509), 2, 3, new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) }, + { 13, 45, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510), 2, 2, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) }, + { 14, 38, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511), 2, 1, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511) }, + { 15, 26, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), 2, 0, new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512) }, + { 16, 51, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), 2, 4, new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513) }, + { 17, 74, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513), 3, 3, new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6514) }, + { 18, 79, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515), 2, 0, new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515) }, + { 19, 40, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516), 2, 2, new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516) } + }); + + migrationBuilder.InsertData( + table: "tickets", + columns: new[] { "ticket_id", "customer_id", "screening_id" }, + values: new object[,] + { + { 1, 33, 14 }, + { 2, 28, 12 }, + { 3, 17, 15 }, + { 4, 2, 6 }, + { 5, 41, 6 }, + { 6, 42, 6 }, + { 7, 27, 13 }, + { 8, 39, 11 }, + { 9, 17, 5 }, + { 10, 25, 9 }, + { 11, 9, 5 }, + { 12, 30, 9 }, + { 13, 36, 6 }, + { 14, 41, 8 }, + { 15, 6, 9 }, + { 16, 30, 15 }, + { 17, 46, 16 }, + { 18, 21, 8 }, + { 19, 6, 3 }, + { 20, 47, 5 }, + { 21, 40, 7 }, + { 22, 28, 1 }, + { 23, 32, 4 }, + { 24, 23, 12 }, + { 25, 12, 7 }, + { 26, 17, 11 }, + { 27, 18, 3 }, + { 28, 34, 18 }, + { 29, 49, 5 }, + { 30, 7, 13 }, + { 31, 42, 18 }, + { 32, 14, 10 }, + { 33, 26, 18 }, + { 34, 33, 17 }, + { 35, 21, 5 }, + { 36, 44, 12 }, + { 37, 28, 1 }, + { 38, 1, 12 }, + { 39, 14, 4 }, + { 40, 1, 14 }, + { 41, 44, 17 }, + { 42, 29, 6 }, + { 43, 45, 17 }, + { 44, 37, 7 }, + { 45, 35, 19 }, + { 46, 12, 16 }, + { 47, 44, 17 }, + { 48, 42, 7 }, + { 49, 28, 5 }, + { 50, 43, 8 }, + { 51, 26, 8 }, + { 52, 44, 9 }, + { 53, 4, 19 }, + { 54, 22, 10 }, + { 55, 15, 3 }, + { 56, 43, 5 }, + { 57, 43, 18 }, + { 58, 9, 4 }, + { 59, 15, 6 }, + { 60, 22, 14 }, + { 61, 3, 7 }, + { 62, 43, 16 }, + { 63, 7, 4 }, + { 64, 27, 10 }, + { 65, 13, 17 }, + { 66, 39, 4 }, + { 67, 47, 4 }, + { 68, 21, 2 }, + { 69, 46, 17 }, + { 70, 14, 1 }, + { 71, 28, 4 }, + { 72, 47, 6 }, + { 73, 5, 17 }, + { 74, 11, 15 }, + { 75, 46, 5 }, + { 76, 45, 17 }, + { 77, 6, 1 }, + { 78, 16, 18 }, + { 79, 36, 1 }, + { 80, 43, 14 }, + { 81, 12, 15 }, + { 82, 40, 2 }, + { 83, 5, 4 }, + { 84, 36, 10 }, + { 85, 21, 13 }, + { 86, 4, 10 }, + { 87, 42, 2 }, + { 88, 1, 10 }, + { 89, 5, 1 }, + { 90, 34, 12 }, + { 91, 35, 7 }, + { 92, 47, 8 }, + { 93, 35, 9 }, + { 94, 5, 12 }, + { 95, 43, 7 }, + { 96, 36, 1 }, + { 97, 4, 7 }, + { 98, 31, 14 }, + { 99, 25, 19 }, + { 100, 49, 9 }, + { 101, 4, 15 }, + { 102, 34, 10 }, + { 103, 14, 8 }, + { 104, 28, 7 }, + { 105, 38, 2 }, + { 106, 7, 18 }, + { 107, 40, 9 }, + { 108, 22, 3 }, + { 109, 4, 7 }, + { 110, 34, 17 }, + { 111, 6, 6 }, + { 112, 9, 10 }, + { 113, 39, 8 }, + { 114, 22, 5 }, + { 115, 26, 12 }, + { 116, 34, 5 }, + { 117, 15, 7 }, + { 118, 41, 18 }, + { 119, 39, 9 }, + { 120, 14, 5 }, + { 121, 10, 10 }, + { 122, 3, 14 }, + { 123, 16, 10 }, + { 124, 3, 13 }, + { 125, 43, 5 }, + { 126, 39, 16 }, + { 127, 6, 15 }, + { 128, 20, 3 }, + { 129, 29, 12 }, + { 130, 31, 15 }, + { 131, 10, 6 }, + { 132, 16, 3 }, + { 133, 13, 15 }, + { 134, 17, 2 }, + { 135, 18, 15 }, + { 136, 41, 19 }, + { 137, 41, 13 }, + { 138, 23, 3 }, + { 139, 40, 5 }, + { 140, 38, 1 }, + { 141, 7, 9 }, + { 142, 45, 6 }, + { 143, 30, 5 }, + { 144, 14, 9 }, + { 145, 14, 18 }, + { 146, 23, 16 }, + { 147, 31, 16 }, + { 148, 45, 1 }, + { 149, 3, 6 }, + { 150, 1, 7 }, + { 151, 35, 3 }, + { 152, 1, 15 }, + { 153, 4, 8 }, + { 154, 25, 1 }, + { 155, 32, 18 }, + { 156, 34, 13 }, + { 157, 33, 4 }, + { 158, 24, 5 }, + { 159, 31, 15 }, + { 160, 44, 15 }, + { 161, 37, 8 }, + { 162, 3, 7 }, + { 163, 27, 9 }, + { 164, 40, 9 }, + { 165, 16, 10 }, + { 166, 26, 16 }, + { 167, 31, 15 }, + { 168, 18, 11 }, + { 169, 30, 16 }, + { 170, 48, 11 }, + { 171, 30, 1 }, + { 172, 17, 9 }, + { 173, 24, 2 }, + { 174, 3, 2 }, + { 175, 32, 18 }, + { 176, 33, 10 }, + { 177, 48, 1 }, + { 178, 36, 14 }, + { 179, 47, 2 }, + { 180, 43, 7 }, + { 181, 13, 1 }, + { 182, 19, 12 }, + { 183, 35, 2 }, + { 184, 37, 18 }, + { 185, 28, 2 }, + { 186, 11, 8 }, + { 187, 43, 18 }, + { 188, 36, 9 }, + { 189, 25, 19 }, + { 190, 40, 16 }, + { 191, 8, 17 }, + { 192, 23, 17 }, + { 193, 49, 7 }, + { 194, 6, 12 }, + { 195, 31, 3 }, + { 196, 16, 10 }, + { 197, 41, 4 }, + { 198, 1, 2 }, + { 199, 11, 15 } + }); + + migrationBuilder.CreateIndex( + name: "IX_screenings_movie_id", + table: "screenings", + column: "movie_id"); + + migrationBuilder.CreateIndex( + name: "IX_tickets_customer_id", + table: "tickets", + column: "customer_id"); + + migrationBuilder.CreateIndex( + name: "IX_tickets_screening_id", + table: "tickets", + column: "screening_id"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "ApplicationUsers"); + + migrationBuilder.DropTable( + name: "tickets"); + + migrationBuilder.DropTable( + name: "Customers"); + + migrationBuilder.DropTable( + name: "screenings"); + + migrationBuilder.DropTable( + name: "movie"); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs index 98acd465..ab3f22ee 100644 --- a/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs @@ -22,6 +22,61 @@ protected override void BuildModel(ModelBuilder modelBuilder) NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + modelBuilder.Entity("api_cinema_challenge.Data.ApplicationUser", b => + { + b.Property("Id") + .HasColumnType("text"); + + b.Property("AccessFailedCount") + .HasColumnType("integer"); + + b.Property("ConcurrencyStamp") + .HasColumnType("text"); + + b.Property("Email") + .HasColumnType("text"); + + b.Property("EmailConfirmed") + .HasColumnType("boolean"); + + b.Property("LockoutEnabled") + .HasColumnType("boolean"); + + b.Property("LockoutEnd") + .HasColumnType("timestamp with time zone"); + + b.Property("NormalizedEmail") + .HasColumnType("text"); + + b.Property("NormalizedUserName") + .HasColumnType("text"); + + b.Property("PasswordHash") + .HasColumnType("text"); + + b.Property("PhoneNumber") + .HasColumnType("text"); + + b.Property("PhoneNumberConfirmed") + .HasColumnType("boolean"); + + b.Property("Role") + .HasColumnType("integer"); + + b.Property("SecurityStamp") + .HasColumnType("text"); + + b.Property("TwoFactorEnabled") + .HasColumnType("boolean"); + + b.Property("UserName") + .HasColumnType("text"); + + b.HasKey("Id"); + + b.ToTable("ApplicationUsers"); + }); + modelBuilder.Entity("api_cinema_challenge.Models.Customer", b => { b.Property("Id") @@ -60,443 +115,443 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(713), - Email = "kate middleton@gov.gr", - Name = "Kate Middleton", - Phone = "57323012", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(932) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2035), + Email = "audrey hepburn@gov.gr", + Name = "Audrey Hepburn", + Phone = "24634684", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2268) }, new { Id = 2, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183), - Email = "kate trump@something.com", - Name = "Kate Trump", - Phone = "90036955", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2183) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3539), + Email = "kate hepburn@bbc.co.uk", + Name = "Kate Hepburn", + Phone = "49646097", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3540) }, new { Id = 3, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2204), - Email = "kate winslet@gov.ru", - Name = "Kate Winslet", - Phone = "79662272", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2208) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563), + Email = "charles presley@gov.nl", + Name = "Charles Presley", + Phone = "26639659", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563) }, new { Id = 4, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211), - Email = "kate winslet@something.com", - Name = "Kate Winslet", - Phone = "97434122", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2211) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3565), + Email = "donald hendrix@gov.ru", + Name = "Donald Hendrix", + Phone = "65109755", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3566) }, new { Id = 5, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2213), - Email = "elvis hendrix@gov.us", - Name = "Elvis Hendrix", - Phone = "84320894", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2215) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568), + Email = "oprah middleton@gov.us", + Name = "Oprah Middleton", + Phone = "43044406", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568) }, new { Id = 6, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2240), - Email = "kate hendrix@gov.ru", - Name = "Kate Hendrix", - Phone = "86093045", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2241) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579), + Email = "kate trump@bbc.co.uk", + Name = "Kate Trump", + Phone = "52083056", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579) }, new { Id = 7, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2242), - Email = "jimi trump@google.com", - Name = "Jimi Trump", - Phone = "77608896", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2243) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581), + Email = "charles winfrey@google.com", + Name = "Charles Winfrey", + Phone = "85242581", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581) }, new { Id = 8, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2244), - Email = "kate hendrix@gov.nl", - Name = "Kate Hendrix", - Phone = "30950692", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2245) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3604), + Email = "donald windsor@gov.us", + Name = "Donald Windsor", + Phone = "57665393", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3605) }, new { Id = 9, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246), - Email = "charles hepburn@google.com", - Name = "Charles Hepburn", - Phone = "53960475", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2246) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3606), + Email = "kate obama@google.com", + Name = "Kate Obama", + Phone = "22385849", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3607) }, new { Id = 10, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249), - Email = "barack obama@gov.nl", - Name = "Barack Obama", - Phone = "11402717", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2249) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609), + Email = "donald windsor@something.com", + Name = "Donald Windsor", + Phone = "62639816", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609) }, new { Id = 11, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252), - Email = "mick jagger@gov.gr", - Name = "Mick Jagger", - Phone = "74377263", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2252) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611), + Email = "charles hepburn@gov.ru", + Name = "Charles Hepburn", + Phone = "62276921", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611) }, new { Id = 12, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2253), - Email = "kate hepburn@tesla.com", - Name = "Kate Hepburn", - Phone = "37130689", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2254) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613), + Email = "elvis winfrey@tesla.com", + Name = "Elvis Winfrey", + Phone = "35293476", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613) }, new { Id = 13, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255), - Email = "kate windsor@google.com", - Name = "Kate Windsor", - Phone = "17850864", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2255) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3614), + Email = "elvis hepburn@gov.us", + Name = "Elvis Hepburn", + Phone = "84876191", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3615) }, new { Id = 14, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257), - Email = "donald jagger@tesla.com", - Name = "Donald Jagger", - Phone = "96174535", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2257) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616), + Email = "charles jagger@gov.ru", + Name = "Charles Jagger", + Phone = "54864917", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616) }, new { Id = 15, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259), - Email = "barack hendrix@something.com", - Name = "Barack Hendrix", - Phone = "38010217", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2259) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618), + Email = "barack winfrey@gov.ru", + Name = "Barack Winfrey", + Phone = "34106523", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618) }, new { Id = 16, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260), - Email = "elvis winfrey@gov.nl", - Name = "Elvis Winfrey", - Phone = "68797228", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2260) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619), + Email = "mick windsor@gov.gr", + Name = "Mick Windsor", + Phone = "52226638", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619) }, new { Id = 17, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262), - Email = "mick middleton@something.com", - Name = "Mick Middleton", - Phone = "55871184", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2262) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621), + Email = "elvis hepburn@nasa.org.us", + Name = "Elvis Hepburn", + Phone = "50058133", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621) }, new { Id = 18, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2265), - Email = "elvis obama@nasa.org.us", - Name = "Elvis Obama", - Phone = "99746360", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2266) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623), + Email = "jimi jagger@gov.us", + Name = "Jimi Jagger", + Phone = "30126005", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623) }, new { Id = 19, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267), - Email = "jimi hepburn@gov.gr", - Name = "Jimi Hepburn", - Phone = "15774057", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2267) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3624), + Email = "kate jagger@nasa.org.us", + Name = "Kate Jagger", + Phone = "28409903", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3625) }, new { Id = 20, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269), - Email = "kate presley@tesla.com", - Name = "Kate Presley", - Phone = "33030025", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2269) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626), + Email = "kate jagger@something.com", + Name = "Kate Jagger", + Phone = "27803251", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626) }, new { Id = 21, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270), - Email = "mick windsor@theworld.ca", - Name = "Mick Windsor", - Phone = "68406720", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2270) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3627), + Email = "barack winslet@bbc.co.uk", + Name = "Barack Winslet", + Phone = "56314127", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3628) }, new { Id = 22, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272), - Email = "mick windsor@bbc.co.uk", - Name = "Mick Windsor", - Phone = "70274513", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2272) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629), + Email = "jimi presley@tesla.com", + Name = "Jimi Presley", + Phone = "51246437", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629) }, new { Id = 23, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273), - Email = "barack windsor@google.com", - Name = "Barack Windsor", - Phone = "10112351", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2273) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3630), + Email = "kate winslet@something.com", + Name = "Kate Winslet", + Phone = "12062719", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3631) }, new { Id = 24, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275), - Email = "elvis hendrix@bbc.co.uk", - Name = "Elvis Hendrix", - Phone = "21340088", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2275) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3632), + Email = "mick presley@gov.ru", + Name = "Mick Presley", + Phone = "84330792", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3633) }, new { Id = 25, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276), - Email = "barack hendrix@nasa.org.us", - Name = "Barack Hendrix", - Phone = "67170625", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2276) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634), + Email = "kate hepburn@tesla.com", + Name = "Kate Hepburn", + Phone = "60705909", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634) }, new { Id = 26, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278), - Email = "kate winslet@bbc.co.uk", + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3635), + Email = "kate winslet@nasa.org.us", Name = "Kate Winslet", - Phone = "86772435", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2278) + Phone = "47374763", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3636) }, new { Id = 27, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279), - Email = "barack obama@bbc.co.uk", - Name = "Barack Obama", - Phone = "83625317", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2279) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637), + Email = "audrey presley@gov.us", + Name = "Audrey Presley", + Phone = "89646824", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637) }, new { Id = 28, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281), - Email = "jimi hepburn@gov.nl", + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3638), + Email = "jimi hepburn@gov.gr", Name = "Jimi Hepburn", - Phone = "89412341", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2281) + Phone = "70843563", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3639) }, new { Id = 29, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2293), - Email = "mick jagger@gov.nl", - Name = "Mick Jagger", - Phone = "37434825", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2294) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640), + Email = "mick windsor@nasa.org.us", + Name = "Mick Windsor", + Phone = "21891104", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640) }, new { Id = 30, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2295), - Email = "barack jagger@gov.ru", - Name = "Barack Jagger", - Phone = "23194181", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2296) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3641), + Email = "donald trump@nasa.org.us", + Name = "Donald Trump", + Phone = "77180744", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3642) }, new { Id = 31, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297), - Email = "elvis winfrey@gov.nl", - Name = "Elvis Winfrey", - Phone = "54447837", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2297) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3648), + Email = "kate presley@gov.nl", + Name = "Kate Presley", + Phone = "18549554", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3649) }, new { Id = 32, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299), - Email = "kate winfrey@bbc.co.uk", - Name = "Kate Winfrey", - Phone = "58976369", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2299) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651), + Email = "kate winslet@tesla.com", + Name = "Kate Winslet", + Phone = "22886454", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651) }, new { Id = 33, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2300), - Email = "charles jagger@something.com", - Name = "Charles Jagger", - Phone = "22440998", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2301) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3652), + Email = "elvis winfrey@something.com", + Name = "Elvis Winfrey", + Phone = "44923720", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3653) }, new { Id = 34, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303), - Email = "kate middleton@nasa.org.us", - Name = "Kate Middleton", - Phone = "19231484", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2303) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655), + Email = "kate winfrey@gov.nl", + Name = "Kate Winfrey", + Phone = "52713833", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655) }, new { Id = 35, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2304), - Email = "oprah jagger@nasa.org.us", - Name = "Oprah Jagger", - Phone = "96209492", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2305) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656), + Email = "jimi hendrix@gov.nl", + Name = "Jimi Hendrix", + Phone = "69254646", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656) }, new { Id = 36, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306), - Email = "jimi middleton@gov.us", - Name = "Jimi Middleton", - Phone = "14860055", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2306) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658), + Email = "barack trump@tesla.com", + Name = "Barack Trump", + Phone = "18571321", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658) }, new { Id = 37, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308), - Email = "mick windsor@bbc.co.uk", - Name = "Mick Windsor", - Phone = "46462376", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2308) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659), + Email = "elvis middleton@bbc.co.uk", + Name = "Elvis Middleton", + Phone = "66441056", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659) }, new { Id = 38, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2309), - Email = "elvis presley@theworld.ca", - Name = "Elvis Presley", - Phone = "11443439", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2310) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661), + Email = "jimi middleton@bbc.co.uk", + Name = "Jimi Middleton", + Phone = "31023577", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661) }, new { Id = 39, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311), - Email = "donald winfrey@something.com", - Name = "Donald Winfrey", - Phone = "71902615", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2311) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663), + Email = "kate hendrix@gov.ru", + Name = "Kate Hendrix", + Phone = "22668985", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663) }, new { Id = 40, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313), - Email = "charles hepburn@gov.us", - Name = "Charles Hepburn", - Phone = "42984697", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2313) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664), + Email = "kate hepburn@theworld.ca", + Name = "Kate Hepburn", + Phone = "54717904", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664) }, new { Id = 41, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2314), - Email = "mick jagger@tesla.com", - Name = "Mick Jagger", - Phone = "36431777", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2315) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666), + Email = "elvis jagger@tesla.com", + Name = "Elvis Jagger", + Phone = "72683693", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666) }, new { Id = 42, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316), - Email = "jimi hepburn@gov.nl", - Name = "Jimi Hepburn", - Phone = "93119392", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2316) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667), + Email = "barack middleton@nasa.org.us", + Name = "Barack Middleton", + Phone = "23610983", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667) }, new { Id = 43, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318), - Email = "mick middleton@bbc.co.uk", - Name = "Mick Middleton", - Phone = "60445327", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2318) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669), + Email = "kate obama@bbc.co.uk", + Name = "Kate Obama", + Phone = "28499438", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669) }, new { Id = 44, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2319), - Email = "jimi winslet@tesla.com", - Name = "Jimi Winslet", - Phone = "27412326", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2320) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3670), + Email = "elvis middleton@gov.ru", + Name = "Elvis Middleton", + Phone = "39411817", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3671) }, new { Id = 45, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321), - Email = "audrey windsor@tesla.com", - Name = "Audrey Windsor", - Phone = "41701761", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2321) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672), + Email = "jimi jagger@gov.us", + Name = "Jimi Jagger", + Phone = "54613053", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672) }, new { Id = 46, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2322), - Email = "kate middleton@gov.nl", - Name = "Kate Middleton", - Phone = "77306134", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2323) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674), + Email = "oprah presley@bbc.co.uk", + Name = "Oprah Presley", + Phone = "80862726", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674) }, new { Id = 47, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2324), - Email = "mick hepburn@gov.gr", - Name = "Mick Hepburn", - Phone = "69932733", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2325) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675), + Email = "jimi obama@nasa.org.us", + Name = "Jimi Obama", + Phone = "20418161", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675) }, new { Id = 48, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326), - Email = "donald winslet@gov.us", - Name = "Donald Winslet", - Phone = "95603319", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2326) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677), + Email = "charles hepburn@theworld.ca", + Name = "Charles Hepburn", + Phone = "17586489", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677) }, new { Id = 49, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2327), - Email = "elvis trump@gov.ru", - Name = "Elvis Trump", - Phone = "75749612", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2328) + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678), + Email = "oprah middleton@google.com", + Name = "Oprah Middleton", + Phone = "48095329", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678) }); }); @@ -542,42 +597,42 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2700), + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4071), Description = "Very funny", - Rating = "years 18+", - RunTimeMins = 148, - Title = "The Bitter Flowers", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(2811) + Rating = "years 11+", + RunTimeMins = 129, + Title = "A bunch of Large Flowers", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4202) }, new { Id = 2, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3338), + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4757), Description = "Very funny", - Rating = "years 16+", - RunTimeMins = 93, - Title = "A bunch of Orange Flowers", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3339) + Rating = "All", + RunTimeMins = 118, + Title = "Several Green Flowers", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4758) }, new { Id = 3, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3343), + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762), Description = "Very funny", - Rating = "years 6+", - RunTimeMins = 127, - Title = "Several Transparent Buildings", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3344) + Rating = "years 16+", + RunTimeMins = 123, + Title = "Several Purple Buildings", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762) }, new { Id = 4, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346), + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4764), Description = "Very funny", - Rating = "All", - RunTimeMins = 70, - Title = "A herd of Green Planets", - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3346) + Rating = "years 6+", + RunTimeMins = 72, + Title = "The Bitter Houses", + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4765) }); }); @@ -622,192 +677,192 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - Capacity = 89, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3602), - MovieId = 3, + Capacity = 77, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5046), + MovieId = 1, ScreenNumber = 0, - StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(3692) + StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5157) }, new { Id = 2, - Capacity = 89, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4667), - MovieId = 2, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4668) + Capacity = 25, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6485), + MovieId = 3, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6487) }, new { Id = 3, - Capacity = 57, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671), - MovieId = 2, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4671) + Capacity = 27, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490), + MovieId = 4, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490) }, new { Id = 4, - Capacity = 26, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4672), + Capacity = 84, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491), MovieId = 4, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4673) + ScreenNumber = 2, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491) }, new { Id = 5, - Capacity = 61, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674), - MovieId = 1, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4674) + Capacity = 63, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492), + MovieId = 2, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492) }, new { Id = 6, - Capacity = 54, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4676), - MovieId = 4, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4677) + Capacity = 25, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503), + MovieId = 2, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503) }, new { Id = 7, - Capacity = 76, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686), - MovieId = 2, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4686) + Capacity = 65, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504), + MovieId = 4, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504) }, new { Id = 8, - Capacity = 84, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4687), - MovieId = 4, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4688) + Capacity = 48, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505), + MovieId = 3, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505) }, new { Id = 9, - Capacity = 83, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689), + Capacity = 77, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506), MovieId = 2, ScreenNumber = 4, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4689) + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506) }, new { Id = 10, - Capacity = 68, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4690), - MovieId = 2, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691) + Capacity = 59, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), + MovieId = 3, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508) }, new { Id = 11, - Capacity = 74, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4691), - MovieId = 4, + Capacity = 87, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), + MovieId = 3, ScreenNumber = 0, - StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4692) + StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509) }, new { Id = 12, - Capacity = 45, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693), - MovieId = 1, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 3, 10, 6, 20, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4693) + Capacity = 99, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509), + MovieId = 2, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) }, new { Id = 13, - Capacity = 34, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694), + Capacity = 45, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510), MovieId = 2, ScreenNumber = 2, - StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4694) + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) }, new { Id = 14, - Capacity = 25, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695), - MovieId = 4, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4695) + Capacity = 38, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511), + MovieId = 2, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511) }, new { Id = 15, - Capacity = 67, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696), - MovieId = 4, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 4, 18, 19, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4696) + Capacity = 26, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512) }, new { Id = 16, - Capacity = 67, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697), - MovieId = 4, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4697) + Capacity = 51, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), + MovieId = 2, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513) }, new { Id = 17, - Capacity = 68, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698), - MovieId = 4, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 7, 19, 18, 15, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4698) + Capacity = 74, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513), + MovieId = 3, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6514) }, new { Id = 18, - Capacity = 35, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699), - MovieId = 1, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4699) + Capacity = 79, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515) }, new { Id = 19, - Capacity = 72, - CreatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700), - MovieId = 4, + Capacity = 40, + CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516), + MovieId = 2, ScreenNumber = 2, - StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 8, 49, 55, 411, DateTimeKind.Utc).AddTicks(4700) + StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516) }); }); @@ -840,1196 +895,1196 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - CustomerId = 28, - ScreeningId = 5 + CustomerId = 33, + ScreeningId = 14 }, new { Id = 2, - CustomerId = 32, - ScreeningId = 2 + CustomerId = 28, + ScreeningId = 12 }, new { Id = 3, - CustomerId = 21, - ScreeningId = 5 + CustomerId = 17, + ScreeningId = 15 }, new { Id = 4, - CustomerId = 10, - ScreeningId = 17 + CustomerId = 2, + ScreeningId = 6 }, new { Id = 5, - CustomerId = 19, - ScreeningId = 3 + CustomerId = 41, + ScreeningId = 6 }, new { Id = 6, - CustomerId = 34, - ScreeningId = 2 + CustomerId = 42, + ScreeningId = 6 }, new { Id = 7, - CustomerId = 25, - ScreeningId = 2 + CustomerId = 27, + ScreeningId = 13 }, new { Id = 8, - CustomerId = 40, - ScreeningId = 6 + CustomerId = 39, + ScreeningId = 11 }, new { Id = 9, - CustomerId = 18, - ScreeningId = 17 + CustomerId = 17, + ScreeningId = 5 }, new { Id = 10, - CustomerId = 2, - ScreeningId = 4 + CustomerId = 25, + ScreeningId = 9 }, new { Id = 11, - CustomerId = 41, - ScreeningId = 10 + CustomerId = 9, + ScreeningId = 5 }, new { Id = 12, - CustomerId = 17, - ScreeningId = 11 + CustomerId = 30, + ScreeningId = 9 }, new { Id = 13, - CustomerId = 11, - ScreeningId = 10 + CustomerId = 36, + ScreeningId = 6 }, new { Id = 14, - CustomerId = 37, - ScreeningId = 16 + CustomerId = 41, + ScreeningId = 8 }, new { Id = 15, - CustomerId = 27, - ScreeningId = 4 + CustomerId = 6, + ScreeningId = 9 }, new { Id = 16, - CustomerId = 36, - ScreeningId = 16 + CustomerId = 30, + ScreeningId = 15 }, new { Id = 17, - CustomerId = 31, - ScreeningId = 2 + CustomerId = 46, + ScreeningId = 16 }, new { Id = 18, - CustomerId = 1, - ScreeningId = 3 + CustomerId = 21, + ScreeningId = 8 }, new { Id = 19, - CustomerId = 22, - ScreeningId = 14 + CustomerId = 6, + ScreeningId = 3 }, new { Id = 20, - CustomerId = 40, - ScreeningId = 17 + CustomerId = 47, + ScreeningId = 5 }, new { Id = 21, - CustomerId = 49, - ScreeningId = 2 + CustomerId = 40, + ScreeningId = 7 }, new { Id = 22, - CustomerId = 11, - ScreeningId = 3 + CustomerId = 28, + ScreeningId = 1 }, new { Id = 23, - CustomerId = 38, - ScreeningId = 17 + CustomerId = 32, + ScreeningId = 4 }, new { Id = 24, - CustomerId = 12, - ScreeningId = 5 + CustomerId = 23, + ScreeningId = 12 }, new { Id = 25, - CustomerId = 3, - ScreeningId = 16 + CustomerId = 12, + ScreeningId = 7 }, new { Id = 26, - CustomerId = 11, - ScreeningId = 4 + CustomerId = 17, + ScreeningId = 11 }, new { Id = 27, - CustomerId = 19, - ScreeningId = 7 + CustomerId = 18, + ScreeningId = 3 }, new { Id = 28, - CustomerId = 3, - ScreeningId = 13 + CustomerId = 34, + ScreeningId = 18 }, new { Id = 29, - CustomerId = 41, - ScreeningId = 12 + CustomerId = 49, + ScreeningId = 5 }, new { Id = 30, - CustomerId = 42, - ScreeningId = 8 + CustomerId = 7, + ScreeningId = 13 }, new { Id = 31, - CustomerId = 28, - ScreeningId = 16 + CustomerId = 42, + ScreeningId = 18 }, new { Id = 32, - CustomerId = 48, - ScreeningId = 15 + CustomerId = 14, + ScreeningId = 10 }, new { Id = 33, - CustomerId = 45, - ScreeningId = 6 + CustomerId = 26, + ScreeningId = 18 }, new { Id = 34, - CustomerId = 28, - ScreeningId = 4 + CustomerId = 33, + ScreeningId = 17 }, new { Id = 35, - CustomerId = 44, - ScreeningId = 2 + CustomerId = 21, + ScreeningId = 5 }, new { Id = 36, - CustomerId = 37, - ScreeningId = 9 + CustomerId = 44, + ScreeningId = 12 }, new { Id = 37, - CustomerId = 30, - ScreeningId = 4 + CustomerId = 28, + ScreeningId = 1 }, new { Id = 38, - CustomerId = 20, - ScreeningId = 14 + CustomerId = 1, + ScreeningId = 12 }, new { Id = 39, - CustomerId = 39, - ScreeningId = 1 + CustomerId = 14, + ScreeningId = 4 }, new { Id = 40, - CustomerId = 14, - ScreeningId = 2 + CustomerId = 1, + ScreeningId = 14 }, new { Id = 41, - CustomerId = 2, - ScreeningId = 9 + CustomerId = 44, + ScreeningId = 17 }, new { Id = 42, - CustomerId = 28, - ScreeningId = 7 + CustomerId = 29, + ScreeningId = 6 }, new { Id = 43, - CustomerId = 25, - ScreeningId = 9 + CustomerId = 45, + ScreeningId = 17 }, new { Id = 44, - CustomerId = 42, - ScreeningId = 11 + CustomerId = 37, + ScreeningId = 7 }, new { Id = 45, - CustomerId = 1, - ScreeningId = 2 + CustomerId = 35, + ScreeningId = 19 }, new { Id = 46, - CustomerId = 1, - ScreeningId = 14 + CustomerId = 12, + ScreeningId = 16 }, new { Id = 47, - CustomerId = 1, - ScreeningId = 13 + CustomerId = 44, + ScreeningId = 17 }, new { Id = 48, - CustomerId = 38, - ScreeningId = 13 + CustomerId = 42, + ScreeningId = 7 }, new { Id = 49, - CustomerId = 6, - ScreeningId = 7 + CustomerId = 28, + ScreeningId = 5 }, new { Id = 50, - CustomerId = 1, - ScreeningId = 15 + CustomerId = 43, + ScreeningId = 8 }, new { Id = 51, - CustomerId = 37, - ScreeningId = 7 + CustomerId = 26, + ScreeningId = 8 }, new { Id = 52, - CustomerId = 33, + CustomerId = 44, ScreeningId = 9 }, new { Id = 53, - CustomerId = 3, - ScreeningId = 5 + CustomerId = 4, + ScreeningId = 19 }, new { Id = 54, - CustomerId = 40, - ScreeningId = 5 + CustomerId = 22, + ScreeningId = 10 }, new { Id = 55, - CustomerId = 9, - ScreeningId = 15 + CustomerId = 15, + ScreeningId = 3 }, new { Id = 56, - CustomerId = 49, - ScreeningId = 18 + CustomerId = 43, + ScreeningId = 5 }, new { Id = 57, - CustomerId = 29, - ScreeningId = 17 + CustomerId = 43, + ScreeningId = 18 }, new { Id = 58, - CustomerId = 4, - ScreeningId = 1 + CustomerId = 9, + ScreeningId = 4 }, new { Id = 59, - CustomerId = 40, - ScreeningId = 19 + CustomerId = 15, + ScreeningId = 6 }, new { Id = 60, - CustomerId = 47, - ScreeningId = 15 + CustomerId = 22, + ScreeningId = 14 }, new { Id = 61, - CustomerId = 22, - ScreeningId = 6 + CustomerId = 3, + ScreeningId = 7 }, new { Id = 62, - CustomerId = 34, - ScreeningId = 12 + CustomerId = 43, + ScreeningId = 16 }, new { Id = 63, - CustomerId = 28, - ScreeningId = 14 + CustomerId = 7, + ScreeningId = 4 }, new { Id = 64, - CustomerId = 45, - ScreeningId = 8 + CustomerId = 27, + ScreeningId = 10 }, new { Id = 65, - CustomerId = 4, - ScreeningId = 7 + CustomerId = 13, + ScreeningId = 17 }, new { Id = 66, - CustomerId = 47, - ScreeningId = 12 + CustomerId = 39, + ScreeningId = 4 }, new { Id = 67, - CustomerId = 22, - ScreeningId = 19 + CustomerId = 47, + ScreeningId = 4 }, new { Id = 68, - CustomerId = 6, - ScreeningId = 12 + CustomerId = 21, + ScreeningId = 2 }, new { Id = 69, - CustomerId = 47, - ScreeningId = 4 + CustomerId = 46, + ScreeningId = 17 }, new { Id = 70, - CustomerId = 17, - ScreeningId = 14 + CustomerId = 14, + ScreeningId = 1 }, new { Id = 71, - CustomerId = 40, - ScreeningId = 17 + CustomerId = 28, + ScreeningId = 4 }, new { Id = 72, - CustomerId = 21, - ScreeningId = 5 + CustomerId = 47, + ScreeningId = 6 }, new { Id = 73, - CustomerId = 4, - ScreeningId = 13 + CustomerId = 5, + ScreeningId = 17 }, new { Id = 74, - CustomerId = 4, - ScreeningId = 12 + CustomerId = 11, + ScreeningId = 15 }, new { Id = 75, - CustomerId = 41, - ScreeningId = 14 + CustomerId = 46, + ScreeningId = 5 }, new { Id = 76, - CustomerId = 19, - ScreeningId = 19 + CustomerId = 45, + ScreeningId = 17 }, new { Id = 77, - CustomerId = 20, - ScreeningId = 6 + CustomerId = 6, + ScreeningId = 1 }, new { Id = 78, - CustomerId = 9, - ScreeningId = 16 + CustomerId = 16, + ScreeningId = 18 }, new { Id = 79, - CustomerId = 14, - ScreeningId = 4 + CustomerId = 36, + ScreeningId = 1 }, new { Id = 80, - CustomerId = 44, - ScreeningId = 17 + CustomerId = 43, + ScreeningId = 14 }, new { Id = 81, - CustomerId = 26, - ScreeningId = 17 + CustomerId = 12, + ScreeningId = 15 }, new { Id = 82, - CustomerId = 37, - ScreeningId = 1 + CustomerId = 40, + ScreeningId = 2 }, new { Id = 83, - CustomerId = 41, + CustomerId = 5, ScreeningId = 4 }, new { Id = 84, - CustomerId = 8, - ScreeningId = 19 + CustomerId = 36, + ScreeningId = 10 }, new { Id = 85, - CustomerId = 46, - ScreeningId = 16 + CustomerId = 21, + ScreeningId = 13 }, new { Id = 86, - CustomerId = 38, - ScreeningId = 18 + CustomerId = 4, + ScreeningId = 10 }, new { Id = 87, - CustomerId = 43, - ScreeningId = 19 + CustomerId = 42, + ScreeningId = 2 }, new { Id = 88, - CustomerId = 30, - ScreeningId = 14 + CustomerId = 1, + ScreeningId = 10 }, new { Id = 89, - CustomerId = 36, - ScreeningId = 5 + CustomerId = 5, + ScreeningId = 1 }, new { Id = 90, - CustomerId = 6, - ScreeningId = 9 + CustomerId = 34, + ScreeningId = 12 }, new { Id = 91, - CustomerId = 17, - ScreeningId = 18 + CustomerId = 35, + ScreeningId = 7 }, new { Id = 92, - CustomerId = 40, - ScreeningId = 6 + CustomerId = 47, + ScreeningId = 8 }, new { Id = 93, - CustomerId = 25, - ScreeningId = 8 + CustomerId = 35, + ScreeningId = 9 }, new { Id = 94, - CustomerId = 28, - ScreeningId = 5 + CustomerId = 5, + ScreeningId = 12 }, new { Id = 95, - CustomerId = 19, - ScreeningId = 15 + CustomerId = 43, + ScreeningId = 7 }, new { Id = 96, - CustomerId = 33, - ScreeningId = 13 + CustomerId = 36, + ScreeningId = 1 }, new { Id = 97, - CustomerId = 5, - ScreeningId = 19 + CustomerId = 4, + ScreeningId = 7 }, new { Id = 98, - CustomerId = 36, - ScreeningId = 7 + CustomerId = 31, + ScreeningId = 14 }, new { Id = 99, - CustomerId = 18, - ScreeningId = 15 + CustomerId = 25, + ScreeningId = 19 }, new { Id = 100, - CustomerId = 43, - ScreeningId = 1 + CustomerId = 49, + ScreeningId = 9 }, new { Id = 101, - CustomerId = 19, - ScreeningId = 2 + CustomerId = 4, + ScreeningId = 15 }, new { Id = 102, - CustomerId = 47, - ScreeningId = 16 + CustomerId = 34, + ScreeningId = 10 }, new { Id = 103, - CustomerId = 24, - ScreeningId = 10 + CustomerId = 14, + ScreeningId = 8 }, new { Id = 104, - CustomerId = 29, - ScreeningId = 19 + CustomerId = 28, + ScreeningId = 7 }, new { Id = 105, - CustomerId = 23, - ScreeningId = 18 + CustomerId = 38, + ScreeningId = 2 }, new { Id = 106, - CustomerId = 49, + CustomerId = 7, ScreeningId = 18 }, new { Id = 107, - CustomerId = 26, - ScreeningId = 13 + CustomerId = 40, + ScreeningId = 9 }, new { Id = 108, - CustomerId = 17, - ScreeningId = 14 + CustomerId = 22, + ScreeningId = 3 }, new { Id = 109, - CustomerId = 46, - ScreeningId = 6 + CustomerId = 4, + ScreeningId = 7 }, new { Id = 110, - CustomerId = 46, - ScreeningId = 15 + CustomerId = 34, + ScreeningId = 17 }, new { Id = 111, - CustomerId = 47, - ScreeningId = 15 + CustomerId = 6, + ScreeningId = 6 }, new { Id = 112, - CustomerId = 31, - ScreeningId = 3 + CustomerId = 9, + ScreeningId = 10 }, new { Id = 113, - CustomerId = 48, - ScreeningId = 2 + CustomerId = 39, + ScreeningId = 8 }, new { Id = 114, - CustomerId = 31, - ScreeningId = 4 + CustomerId = 22, + ScreeningId = 5 }, new { Id = 115, - CustomerId = 21, - ScreeningId = 8 + CustomerId = 26, + ScreeningId = 12 }, new { Id = 116, - CustomerId = 36, - ScreeningId = 2 + CustomerId = 34, + ScreeningId = 5 }, new { Id = 117, - CustomerId = 8, - ScreeningId = 4 + CustomerId = 15, + ScreeningId = 7 }, new { Id = 118, - CustomerId = 12, - ScreeningId = 19 + CustomerId = 41, + ScreeningId = 18 }, new { Id = 119, - CustomerId = 42, + CustomerId = 39, ScreeningId = 9 }, new { Id = 120, - CustomerId = 13, - ScreeningId = 4 + CustomerId = 14, + ScreeningId = 5 }, new { Id = 121, - CustomerId = 16, - ScreeningId = 12 + CustomerId = 10, + ScreeningId = 10 }, new { Id = 122, - CustomerId = 30, - ScreeningId = 15 + CustomerId = 3, + ScreeningId = 14 }, new { Id = 123, - CustomerId = 13, - ScreeningId = 17 + CustomerId = 16, + ScreeningId = 10 }, new { Id = 124, - CustomerId = 28, - ScreeningId = 7 + CustomerId = 3, + ScreeningId = 13 }, new { Id = 125, - CustomerId = 8, - ScreeningId = 8 + CustomerId = 43, + ScreeningId = 5 }, new { Id = 126, - CustomerId = 8, - ScreeningId = 9 + CustomerId = 39, + ScreeningId = 16 }, new { Id = 127, - CustomerId = 38, - ScreeningId = 14 + CustomerId = 6, + ScreeningId = 15 }, new { Id = 128, - CustomerId = 21, - ScreeningId = 10 + CustomerId = 20, + ScreeningId = 3 }, new { Id = 129, - CustomerId = 34, - ScreeningId = 9 + CustomerId = 29, + ScreeningId = 12 }, new { Id = 130, - CustomerId = 13, - ScreeningId = 18 + CustomerId = 31, + ScreeningId = 15 }, new { Id = 131, - CustomerId = 34, - ScreeningId = 16 + CustomerId = 10, + ScreeningId = 6 }, new { Id = 132, - CustomerId = 29, - ScreeningId = 18 + CustomerId = 16, + ScreeningId = 3 }, new { Id = 133, - CustomerId = 5, - ScreeningId = 16 + CustomerId = 13, + ScreeningId = 15 }, new { Id = 134, - CustomerId = 4, - ScreeningId = 3 + CustomerId = 17, + ScreeningId = 2 }, new { Id = 135, - CustomerId = 30, - ScreeningId = 9 + CustomerId = 18, + ScreeningId = 15 }, new { Id = 136, - CustomerId = 48, - ScreeningId = 4 + CustomerId = 41, + ScreeningId = 19 }, new { Id = 137, - CustomerId = 49, - ScreeningId = 1 + CustomerId = 41, + ScreeningId = 13 }, new { Id = 138, - CustomerId = 38, - ScreeningId = 15 + CustomerId = 23, + ScreeningId = 3 }, new { Id = 139, - CustomerId = 29, - ScreeningId = 6 + CustomerId = 40, + ScreeningId = 5 }, new { Id = 140, - CustomerId = 5, - ScreeningId = 15 + CustomerId = 38, + ScreeningId = 1 }, new { Id = 141, - CustomerId = 12, - ScreeningId = 8 + CustomerId = 7, + ScreeningId = 9 }, new { Id = 142, - CustomerId = 2, - ScreeningId = 13 + CustomerId = 45, + ScreeningId = 6 }, new { Id = 143, - CustomerId = 7, - ScreeningId = 2 + CustomerId = 30, + ScreeningId = 5 }, new { Id = 144, - CustomerId = 9, - ScreeningId = 16 + CustomerId = 14, + ScreeningId = 9 }, new { Id = 145, - CustomerId = 26, - ScreeningId = 13 + CustomerId = 14, + ScreeningId = 18 }, new { Id = 146, - CustomerId = 14, - ScreeningId = 11 + CustomerId = 23, + ScreeningId = 16 }, new { Id = 147, - CustomerId = 49, - ScreeningId = 3 + CustomerId = 31, + ScreeningId = 16 }, new { Id = 148, - CustomerId = 17, - ScreeningId = 7 + CustomerId = 45, + ScreeningId = 1 }, new { Id = 149, CustomerId = 3, - ScreeningId = 18 + ScreeningId = 6 }, new { Id = 150, - CustomerId = 17, - ScreeningId = 14 + CustomerId = 1, + ScreeningId = 7 }, new { Id = 151, - CustomerId = 19, - ScreeningId = 2 + CustomerId = 35, + ScreeningId = 3 }, new { Id = 152, - CustomerId = 8, - ScreeningId = 7 + CustomerId = 1, + ScreeningId = 15 }, new { Id = 153, - CustomerId = 8, - ScreeningId = 12 + CustomerId = 4, + ScreeningId = 8 }, new { Id = 154, - CustomerId = 16, - ScreeningId = 15 + CustomerId = 25, + ScreeningId = 1 }, new { Id = 155, - CustomerId = 23, - ScreeningId = 12 + CustomerId = 32, + ScreeningId = 18 }, new { Id = 156, - CustomerId = 2, - ScreeningId = 4 + CustomerId = 34, + ScreeningId = 13 }, new { Id = 157, - CustomerId = 34, - ScreeningId = 7 + CustomerId = 33, + ScreeningId = 4 }, new { Id = 158, - CustomerId = 18, - ScreeningId = 16 + CustomerId = 24, + ScreeningId = 5 }, new { Id = 159, - CustomerId = 9, - ScreeningId = 12 + CustomerId = 31, + ScreeningId = 15 }, new { Id = 160, - CustomerId = 37, - ScreeningId = 18 + CustomerId = 44, + ScreeningId = 15 }, new { Id = 161, - CustomerId = 27, - ScreeningId = 17 + CustomerId = 37, + ScreeningId = 8 }, new { Id = 162, - CustomerId = 26, - ScreeningId = 3 + CustomerId = 3, + ScreeningId = 7 }, new { Id = 163, - CustomerId = 34, - ScreeningId = 11 + CustomerId = 27, + ScreeningId = 9 }, new { Id = 164, - CustomerId = 4, - ScreeningId = 4 + CustomerId = 40, + ScreeningId = 9 }, new { Id = 165, - CustomerId = 26, + CustomerId = 16, ScreeningId = 10 }, new { Id = 166, - CustomerId = 2, - ScreeningId = 6 + CustomerId = 26, + ScreeningId = 16 }, new { Id = 167, - CustomerId = 2, - ScreeningId = 9 + CustomerId = 31, + ScreeningId = 15 }, new { Id = 168, - CustomerId = 20, - ScreeningId = 5 + CustomerId = 18, + ScreeningId = 11 }, new { Id = 169, - CustomerId = 18, - ScreeningId = 12 + CustomerId = 30, + ScreeningId = 16 }, new { Id = 170, - CustomerId = 49, + CustomerId = 48, ScreeningId = 11 }, new { Id = 171, - CustomerId = 24, - ScreeningId = 11 + CustomerId = 30, + ScreeningId = 1 }, new { Id = 172, - CustomerId = 11, - ScreeningId = 11 + CustomerId = 17, + ScreeningId = 9 }, new { Id = 173, - CustomerId = 20, + CustomerId = 24, ScreeningId = 2 }, new { Id = 174, - CustomerId = 6, - ScreeningId = 11 + CustomerId = 3, + ScreeningId = 2 }, new { Id = 175, - CustomerId = 47, - ScreeningId = 13 + CustomerId = 32, + ScreeningId = 18 }, new { Id = 176, - CustomerId = 18, - ScreeningId = 9 + CustomerId = 33, + ScreeningId = 10 }, new { Id = 177, - CustomerId = 1, - ScreeningId = 14 + CustomerId = 48, + ScreeningId = 1 }, new { Id = 178, - CustomerId = 29, - ScreeningId = 9 + CustomerId = 36, + ScreeningId = 14 }, new { Id = 179, - CustomerId = 21, - ScreeningId = 11 + CustomerId = 47, + ScreeningId = 2 }, new { Id = 180, - CustomerId = 14, - ScreeningId = 2 + CustomerId = 43, + ScreeningId = 7 }, new { Id = 181, - CustomerId = 22, - ScreeningId = 6 + CustomerId = 13, + ScreeningId = 1 }, new { Id = 182, - CustomerId = 33, - ScreeningId = 10 + CustomerId = 19, + ScreeningId = 12 }, new { Id = 183, - CustomerId = 34, - ScreeningId = 6 + CustomerId = 35, + ScreeningId = 2 }, new { Id = 184, - CustomerId = 35, - ScreeningId = 8 + CustomerId = 37, + ScreeningId = 18 }, new { Id = 185, - CustomerId = 27, - ScreeningId = 12 + CustomerId = 28, + ScreeningId = 2 }, new { Id = 186, - CustomerId = 34, - ScreeningId = 2 + CustomerId = 11, + ScreeningId = 8 }, new { Id = 187, - CustomerId = 31, - ScreeningId = 3 + CustomerId = 43, + ScreeningId = 18 }, new { Id = 188, - CustomerId = 39, - ScreeningId = 5 + CustomerId = 36, + ScreeningId = 9 }, new { Id = 189, - CustomerId = 22, - ScreeningId = 3 + CustomerId = 25, + ScreeningId = 19 }, new { Id = 190, - CustomerId = 3, - ScreeningId = 4 + CustomerId = 40, + ScreeningId = 16 }, new { Id = 191, - CustomerId = 42, - ScreeningId = 12 + CustomerId = 8, + ScreeningId = 17 }, new { Id = 192, - CustomerId = 47, - ScreeningId = 18 + CustomerId = 23, + ScreeningId = 17 }, new { Id = 193, - CustomerId = 5, - ScreeningId = 18 + CustomerId = 49, + ScreeningId = 7 }, new { Id = 194, - CustomerId = 3, - ScreeningId = 15 + CustomerId = 6, + ScreeningId = 12 }, new { Id = 195, - CustomerId = 26, - ScreeningId = 19 + CustomerId = 31, + ScreeningId = 3 }, new { Id = 196, - CustomerId = 44, - ScreeningId = 8 + CustomerId = 16, + ScreeningId = 10 }, new { Id = 197, - CustomerId = 29, - ScreeningId = 18 + CustomerId = 41, + ScreeningId = 4 }, new { Id = 198, - CustomerId = 30, - ScreeningId = 7 + CustomerId = 1, + ScreeningId = 2 }, new { Id = 199, - CustomerId = 2, - ScreeningId = 8 + CustomerId = 11, + ScreeningId = 15 }); }); diff --git a/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs b/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs index c9063afe..c36292e1 100644 --- a/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs +++ b/api-cinema-challenge/api-cinema-challenge/Models/Movie.cs @@ -6,7 +6,7 @@ namespace api_cinema_challenge.Models { [Table("movie")] - public class Movie : IEntity + public class Movie { [Key] [Column("movie_id")] diff --git a/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs b/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs index 0c511160..87c1f099 100644 --- a/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs +++ b/api-cinema-challenge/api-cinema-challenge/Models/Screening.cs @@ -6,7 +6,7 @@ namespace api_cinema_challenge.Models { [Table("screenings")] - public class Screening : IEntity + public class Screening { [Key] [Column("screening_id")] diff --git a/api-cinema-challenge/api-cinema-challenge/Program.cs b/api-cinema-challenge/api-cinema-challenge/Program.cs index dd126436..5ff88588 100644 --- a/api-cinema-challenge/api-cinema-challenge/Program.cs +++ b/api-cinema-challenge/api-cinema-challenge/Program.cs @@ -2,21 +2,115 @@ using api_cinema_challenge.Endpoints; using api_cinema_challenge.Models; using api_cinema_challenge.Repository; +using api_cinema_challenge.Services; +using Microsoft.AspNetCore.Authentication.JwtBearer; +using Microsoft.AspNetCore.Identity; +using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Microsoft.Extensions.DependencyInjection; +using Microsoft.IdentityModel.Tokens; +using Microsoft.OpenApi.Models; using System.Diagnostics; +using System.Text; +using System.Text.Json.Serialization; var builder = WebApplication.CreateBuilder(args); // Add services to the container. -builder.Services.AddOpenApi(); +//builder.Services.AddOpenApi(); +builder.Services.AddControllers(); builder.Services.AddEndpointsApiExplorer(); -builder.Services.AddSwaggerGen(); -builder.Services.AddDbContext(); +builder.Services.AddSwaggerGen(option => +{ + option.SwaggerDoc("v1", new OpenApiInfo { Title = "Test API", Version = "v1" }); + option.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme + { + In = ParameterLocation.Header, + Description = "Please enter a valid token", + Name = "Authorization", + Type = SecuritySchemeType.Http, + BearerFormat = "JWT", + Scheme = "Bearer" + }); + option.AddSecurityRequirement(new OpenApiSecurityRequirement + { + { + new OpenApiSecurityScheme + { + Reference = new OpenApiReference + { + Type = ReferenceType.SecurityScheme, + Id = "Bearer" + } + }, + new string[] { } + } + }); +}); + +builder.Services.AddProblemDetails(); +builder.Services.AddApiVersioning(cfg => +{ + cfg.DefaultApiVersion = new ApiVersion(1, 1); + cfg.AssumeDefaultVersionWhenUnspecified = true; +}); +builder.Services.AddRouting(options => options.LowercaseUrls = true); +builder.Services.AddDbContext(opt => +{ + opt.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnectionString")); + opt.LogTo(message => Debug.WriteLine(message)); + +}); builder.Services.AddScoped, GenericRepository>(); builder.Services.AddScoped, GenericRepository>(); builder.Services.AddScoped, GenericRepository>(); +builder.Services.AddScoped(); + +builder.Services.AddControllers().AddJsonOptions(opt => +{ + opt.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter()); +}); + +builder.Services + .AddIdentity(options => + { + options.SignIn.RequireConfirmedAccount = false; + options.User.RequireUniqueEmail = true; + options.Password.RequireDigit = false; + options.Password.RequiredLength = 6; + options.Password.RequireNonAlphanumeric = false; + options.Password.RequireUppercase = false; + }) + .AddRoles() + .AddEntityFrameworkStores(); + +var validIssuer = builder.Configuration.GetValue("JwtTokenSettings:ValidIssuer"); +var validAudience = builder.Configuration.GetValue("JwtTokenSettings:ValidAudience"); +var symmetricSecurityKey = builder.Configuration.GetValue("JwtTokenSettings:SymmetricSecurityKey"); + +builder.Services.AddAuthentication(options => +{ + options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; + options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; + options.DefaultScheme = JwtBearerDefaults.AuthenticationScheme; +}) + .AddJwtBearer(options => + { + options.IncludeErrorDetails = true; + options.TokenValidationParameters = new TokenValidationParameters() + { + ClockSkew = TimeSpan.Zero, + ValidateIssuer = true, + ValidateAudience = true, + ValidateLifetime = true, + ValidateIssuerSigningKey = true, + ValidIssuer = validIssuer, + ValidAudience = validAudience, + IssuerSigningKey = new SymmetricSecurityKey( + Encoding.UTF8.GetBytes(symmetricSecurityKey) + ), + }; + }); var app = builder.Build(); @@ -29,6 +123,11 @@ } app.UseHttpsRedirection(); +app.UseStatusCodePages(); + +app.UseAuthentication(); +app.UseAuthorization(); app.ConfigueMovie(); app.ConfigueCustomer(); +app.MapControllers(); app.Run(); diff --git a/api-cinema-challenge/api-cinema-challenge/Repository/IEntity.cs b/api-cinema-challenge/api-cinema-challenge/Repository/IEntity.cs deleted file mode 100644 index 61092e1a..00000000 --- a/api-cinema-challenge/api-cinema-challenge/Repository/IEntity.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace api_cinema_challenge.Repository -{ - public interface IEntity - { - public int Id { get; set; } - } -} diff --git a/api-cinema-challenge/api-cinema-challenge/Services/TokenService.cs b/api-cinema-challenge/api-cinema-challenge/Services/TokenService.cs new file mode 100644 index 00000000..44239815 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Services/TokenService.cs @@ -0,0 +1,82 @@ + + +using System.IdentityModel.Tokens.Jwt; +using Microsoft.IdentityModel.Tokens; +using System.Security.Claims; +using System.Text; +using api_cinema_challenge.Data; + +namespace api_cinema_challenge.Services; +public class TokenService +{ + private const int ExpirationMinutes = 60; + private readonly ILogger _logger; + public TokenService(ILogger logger) + { + _logger = logger; + } + + public string CreateToken(ApplicationUser user) + { + + var expiration = DateTime.UtcNow.AddMinutes(ExpirationMinutes); + var token = CreateJwtToken( + CreateClaims(user), + CreateSigningCredentials(), + expiration + ); + var tokenHandler = new JwtSecurityTokenHandler(); + + _logger.LogInformation("JWT Token created"); + + return tokenHandler.WriteToken(token); + } + + private JwtSecurityToken CreateJwtToken(List claims, SigningCredentials credentials, + DateTime expiration) => + new( + new ConfigurationBuilder().AddJsonFile("appsettings.json").Build().GetSection("JwtTokenSettings")["ValidIssuer"], + new ConfigurationBuilder().AddJsonFile("appsettings.json").Build().GetSection("JwtTokenSettings")["ValidAudience"], + claims, + expires: expiration, + signingCredentials: credentials + ); + + private List CreateClaims(ApplicationUser user) + { + var jwtSub = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build().GetSection("JwtTokenSettings")["JwtRegisteredClaimNamesSub"]; + + try + { + var claims = new List + { + new Claim(JwtRegisteredClaimNames.Sub, jwtSub), + new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString()), + new Claim(JwtRegisteredClaimNames.Iat, DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString()), + new Claim(ClaimTypes.NameIdentifier, user.Id), + new Claim(ClaimTypes.Name, user.UserName), + new Claim(ClaimTypes.Email, user.Email), + new Claim(ClaimTypes.Role, user.Role.ToString()) + }; + + return claims; + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + private SigningCredentials CreateSigningCredentials() + { + var symmetricSecurityKey = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build().GetSection("JwtTokenSettings")["SymmetricSecurityKey"]; + + return new SigningCredentials( + new SymmetricSecurityKey( + Encoding.UTF8.GetBytes(symmetricSecurityKey) + ), + SecurityAlgorithms.HmacSha256 + ); + } +} \ No newline at end of file diff --git a/api-cinema-challenge/api-cinema-challenge/api-cinema-challenge.csproj b/api-cinema-challenge/api-cinema-challenge/api-cinema-challenge.csproj index be0321c6..8befbb94 100644 --- a/api-cinema-challenge/api-cinema-challenge/api-cinema-challenge.csproj +++ b/api-cinema-challenge/api-cinema-challenge/api-cinema-challenge.csproj @@ -8,13 +8,9 @@ - - - - - - - + + + @@ -24,7 +20,7 @@ - + From af66079bda1fe37b6dc865a3e65b039427285f00 Mon Sep 17 00:00:00 2001 From: Stian Forren Date: Tue, 26 Aug 2025 13:32:32 +0200 Subject: [PATCH 4/4] added Tickets --- .../DOTs/CustomerDTOs/TicketNoExtra.cs | 10 + .../DOTs/TicketDTO/TicketGet.cs | 20 + .../DOTs/TicketDTO/TicketPost.cs | 7 + .../api-cinema-challenge/Data/Seeder.cs | 1 + .../Endpoints/CustomerAPI.cs | 22 + .../20250825131522_Test.Designer.cs | 2141 ------------- .../Migrations/20250825131522_Test.cs | 462 --- .../20250826100627_test.Designer.cs | 2747 +++++++++++++++++ .../Migrations/20250826100627_test.cs | 465 +++ .../Migrations/CinemaContextModelSnapshot.cs | 2144 ++++++++----- .../api-cinema-challenge/Models/Ticket.cs | 17 +- .../api-cinema-challenge/Program.cs | 2 + .../Repository/TicketRepository.cs | 25 + 13 files changed, 4690 insertions(+), 3373 deletions(-) create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/TicketNoExtra.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/TicketDTO/TicketGet.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/DOTs/TicketDTO/TicketPost.cs delete mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.Designer.cs delete mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/20250826100627_test.Designer.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Migrations/20250826100627_test.cs create mode 100644 api-cinema-challenge/api-cinema-challenge/Repository/TicketRepository.cs diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/TicketNoExtra.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/TicketNoExtra.cs new file mode 100644 index 00000000..fed3beca --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/CustomerDTOs/TicketNoExtra.cs @@ -0,0 +1,10 @@ +namespace api_cinema_challenge.DOTs.CustomerDTOs +{ + public class TicketNoExtra + { + public int Id { get; set; } + public int numSeats { get; set; } + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/TicketDTO/TicketGet.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/TicketDTO/TicketGet.cs new file mode 100644 index 00000000..0b18d923 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/TicketDTO/TicketGet.cs @@ -0,0 +1,20 @@ +using api_cinema_challenge.Models; + +namespace api_cinema_challenge.DOTs.TicketDTO +{ + public class TicketGet + { + public int Id { get; set; } + public int numSeats { get; set; } + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } + + public TicketGet(Ticket ticket) + { + Id = ticket.Id; + numSeats = ticket.numSeats; + CreatedAt = ticket.CreatedAt; + UpdatedAt = ticket.UpdatedAt; + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/DOTs/TicketDTO/TicketPost.cs b/api-cinema-challenge/api-cinema-challenge/DOTs/TicketDTO/TicketPost.cs new file mode 100644 index 00000000..f4eb7aba --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/DOTs/TicketDTO/TicketPost.cs @@ -0,0 +1,7 @@ +namespace api_cinema_challenge.DOTs.TicketDTO +{ + public class TicketPost + { + public int numSeats { get; set; } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Data/Seeder.cs b/api-cinema-challenge/api-cinema-challenge/Data/Seeder.cs index e778fda6..97b1524d 100644 --- a/api-cinema-challenge/api-cinema-challenge/Data/Seeder.cs +++ b/api-cinema-challenge/api-cinema-challenge/Data/Seeder.cs @@ -160,6 +160,7 @@ public Seeder() ticket.Id = a; ticket.ScreeningId = _screenings[screeningRandom.Next(_screenings.Count)].Id; ticket.CustomerId = _customers[screeningRandom.Next(_customers.Count)].Id; + ticket.numSeats = ticketRandom.Next(1, 3); _tickets.Add(ticket); } diff --git a/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs b/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs index 51447bb5..d961a350 100644 --- a/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs +++ b/api-cinema-challenge/api-cinema-challenge/Endpoints/CustomerAPI.cs @@ -1,7 +1,9 @@ using api_cinema_challenge.DOTs.CustomerDTOs; +using api_cinema_challenge.DOTs.TicketDTO; using api_cinema_challenge.Models; using api_cinema_challenge.Repository; using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Reflection.Metadata.Ecma335; @@ -19,9 +21,12 @@ public static void ConfigueCustomer(this WebApplication app) customerGroup.MapPost("/", CreateCustomer); customerGroup.MapPut("/{id}", UpdateCustomer); customerGroup.MapDelete("/{id}", DeleteCustomer); + customerGroup.MapPost("/{customerId}/screenings/{screeningId}", BookTicket); + customerGroup.MapGet("/{customerId}/screenings/{screeningId}", GetAllTickets); } + [Authorize(Roles ="Admin")] private static async Task GetCustomers(IGenericRepository repository) { var response = await repository.GetWithIncludes(q => q.Include(p => p.Tickets).ThenInclude(t => t.Screening).ThenInclude(s => s.Movie)); @@ -70,5 +75,22 @@ private static async Task DeleteCustomer(IGenericRepository r repository.Delete(entity); return TypedResults.Ok(entity); } + + + [Authorize(Roles = "Admin")] + private static async Task BookTicket(IGenericRepository repository, TicketPost ticketPost, int screeningId, int customerId) + { + Ticket ticket = new Ticket(ticketPost, screeningId, customerId); + var response = await repository.Create(ticket); + return TypedResults.Created("Success", new TicketGet(response)); + + } + + [Authorize(Roles = "User")] + private static async Task GetAllTickets(IGenericRepository repository, int customerId, int screeningId) + { + var response = await repository.GetWithIncludes(q => q.Where(c => c.CustomerId == customerId && c.ScreeningId == screeningId)); + return TypedResults.Ok(response.Select(c => new TicketGet(c))); + } } } diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.Designer.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.Designer.cs deleted file mode 100644 index 1545473e..00000000 --- a/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.Designer.cs +++ /dev/null @@ -1,2141 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using api_cinema_challenge.Data; - -#nullable disable - -namespace api_cinema_challenge.Migrations -{ - [DbContext(typeof(CinemaContext))] - [Migration("20250825131522_Test")] - partial class Test - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("api_cinema_challenge.Data.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("ConcurrencyStamp") - .HasColumnType("text"); - - b.Property("Email") - .HasColumnType("text"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("NormalizedEmail") - .HasColumnType("text"); - - b.Property("NormalizedUserName") - .HasColumnType("text"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("Role") - .HasColumnType("integer"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("ApplicationUsers"); - }); - - modelBuilder.Entity("api_cinema_challenge.Models.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("customer_id"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("CreatedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Email") - .IsRequired() - .HasColumnType("text") - .HasColumnName("email"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text") - .HasColumnName("name"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text") - .HasColumnName("phone"); - - b.Property("UpdatedAt") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.ToTable("Customers"); - - b.HasData( - new - { - Id = 1, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2035), - Email = "audrey hepburn@gov.gr", - Name = "Audrey Hepburn", - Phone = "24634684", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2268) - }, - new - { - Id = 2, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3539), - Email = "kate hepburn@bbc.co.uk", - Name = "Kate Hepburn", - Phone = "49646097", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3540) - }, - new - { - Id = 3, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563), - Email = "charles presley@gov.nl", - Name = "Charles Presley", - Phone = "26639659", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563) - }, - new - { - Id = 4, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3565), - Email = "donald hendrix@gov.ru", - Name = "Donald Hendrix", - Phone = "65109755", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3566) - }, - new - { - Id = 5, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568), - Email = "oprah middleton@gov.us", - Name = "Oprah Middleton", - Phone = "43044406", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568) - }, - new - { - Id = 6, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579), - Email = "kate trump@bbc.co.uk", - Name = "Kate Trump", - Phone = "52083056", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579) - }, - new - { - Id = 7, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581), - Email = "charles winfrey@google.com", - Name = "Charles Winfrey", - Phone = "85242581", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581) - }, - new - { - Id = 8, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3604), - Email = "donald windsor@gov.us", - Name = "Donald Windsor", - Phone = "57665393", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3605) - }, - new - { - Id = 9, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3606), - Email = "kate obama@google.com", - Name = "Kate Obama", - Phone = "22385849", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3607) - }, - new - { - Id = 10, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609), - Email = "donald windsor@something.com", - Name = "Donald Windsor", - Phone = "62639816", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609) - }, - new - { - Id = 11, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611), - Email = "charles hepburn@gov.ru", - Name = "Charles Hepburn", - Phone = "62276921", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611) - }, - new - { - Id = 12, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613), - Email = "elvis winfrey@tesla.com", - Name = "Elvis Winfrey", - Phone = "35293476", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613) - }, - new - { - Id = 13, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3614), - Email = "elvis hepburn@gov.us", - Name = "Elvis Hepburn", - Phone = "84876191", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3615) - }, - new - { - Id = 14, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616), - Email = "charles jagger@gov.ru", - Name = "Charles Jagger", - Phone = "54864917", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616) - }, - new - { - Id = 15, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618), - Email = "barack winfrey@gov.ru", - Name = "Barack Winfrey", - Phone = "34106523", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618) - }, - new - { - Id = 16, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619), - Email = "mick windsor@gov.gr", - Name = "Mick Windsor", - Phone = "52226638", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619) - }, - new - { - Id = 17, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621), - Email = "elvis hepburn@nasa.org.us", - Name = "Elvis Hepburn", - Phone = "50058133", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621) - }, - new - { - Id = 18, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623), - Email = "jimi jagger@gov.us", - Name = "Jimi Jagger", - Phone = "30126005", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623) - }, - new - { - Id = 19, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3624), - Email = "kate jagger@nasa.org.us", - Name = "Kate Jagger", - Phone = "28409903", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3625) - }, - new - { - Id = 20, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626), - Email = "kate jagger@something.com", - Name = "Kate Jagger", - Phone = "27803251", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626) - }, - new - { - Id = 21, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3627), - Email = "barack winslet@bbc.co.uk", - Name = "Barack Winslet", - Phone = "56314127", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3628) - }, - new - { - Id = 22, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629), - Email = "jimi presley@tesla.com", - Name = "Jimi Presley", - Phone = "51246437", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629) - }, - new - { - Id = 23, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3630), - Email = "kate winslet@something.com", - Name = "Kate Winslet", - Phone = "12062719", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3631) - }, - new - { - Id = 24, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3632), - Email = "mick presley@gov.ru", - Name = "Mick Presley", - Phone = "84330792", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3633) - }, - new - { - Id = 25, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634), - Email = "kate hepburn@tesla.com", - Name = "Kate Hepburn", - Phone = "60705909", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634) - }, - new - { - Id = 26, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3635), - Email = "kate winslet@nasa.org.us", - Name = "Kate Winslet", - Phone = "47374763", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3636) - }, - new - { - Id = 27, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637), - Email = "audrey presley@gov.us", - Name = "Audrey Presley", - Phone = "89646824", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637) - }, - new - { - Id = 28, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3638), - Email = "jimi hepburn@gov.gr", - Name = "Jimi Hepburn", - Phone = "70843563", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3639) - }, - new - { - Id = 29, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640), - Email = "mick windsor@nasa.org.us", - Name = "Mick Windsor", - Phone = "21891104", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640) - }, - new - { - Id = 30, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3641), - Email = "donald trump@nasa.org.us", - Name = "Donald Trump", - Phone = "77180744", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3642) - }, - new - { - Id = 31, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3648), - Email = "kate presley@gov.nl", - Name = "Kate Presley", - Phone = "18549554", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3649) - }, - new - { - Id = 32, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651), - Email = "kate winslet@tesla.com", - Name = "Kate Winslet", - Phone = "22886454", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651) - }, - new - { - Id = 33, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3652), - Email = "elvis winfrey@something.com", - Name = "Elvis Winfrey", - Phone = "44923720", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3653) - }, - new - { - Id = 34, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655), - Email = "kate winfrey@gov.nl", - Name = "Kate Winfrey", - Phone = "52713833", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655) - }, - new - { - Id = 35, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656), - Email = "jimi hendrix@gov.nl", - Name = "Jimi Hendrix", - Phone = "69254646", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656) - }, - new - { - Id = 36, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658), - Email = "barack trump@tesla.com", - Name = "Barack Trump", - Phone = "18571321", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658) - }, - new - { - Id = 37, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659), - Email = "elvis middleton@bbc.co.uk", - Name = "Elvis Middleton", - Phone = "66441056", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659) - }, - new - { - Id = 38, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661), - Email = "jimi middleton@bbc.co.uk", - Name = "Jimi Middleton", - Phone = "31023577", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661) - }, - new - { - Id = 39, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663), - Email = "kate hendrix@gov.ru", - Name = "Kate Hendrix", - Phone = "22668985", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663) - }, - new - { - Id = 40, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664), - Email = "kate hepburn@theworld.ca", - Name = "Kate Hepburn", - Phone = "54717904", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664) - }, - new - { - Id = 41, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666), - Email = "elvis jagger@tesla.com", - Name = "Elvis Jagger", - Phone = "72683693", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666) - }, - new - { - Id = 42, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667), - Email = "barack middleton@nasa.org.us", - Name = "Barack Middleton", - Phone = "23610983", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667) - }, - new - { - Id = 43, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669), - Email = "kate obama@bbc.co.uk", - Name = "Kate Obama", - Phone = "28499438", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669) - }, - new - { - Id = 44, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3670), - Email = "elvis middleton@gov.ru", - Name = "Elvis Middleton", - Phone = "39411817", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3671) - }, - new - { - Id = 45, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672), - Email = "jimi jagger@gov.us", - Name = "Jimi Jagger", - Phone = "54613053", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672) - }, - new - { - Id = 46, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674), - Email = "oprah presley@bbc.co.uk", - Name = "Oprah Presley", - Phone = "80862726", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674) - }, - new - { - Id = 47, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675), - Email = "jimi obama@nasa.org.us", - Name = "Jimi Obama", - Phone = "20418161", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675) - }, - new - { - Id = 48, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677), - Email = "charles hepburn@theworld.ca", - Name = "Charles Hepburn", - Phone = "17586489", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677) - }, - new - { - Id = 49, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678), - Email = "oprah middleton@google.com", - Name = "Oprah Middleton", - Phone = "48095329", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678) - }); - }); - - modelBuilder.Entity("api_cinema_challenge.Models.Movie", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("movie_id"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("CreatedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text") - .HasColumnName("description"); - - b.Property("Rating") - .IsRequired() - .HasColumnType("text") - .HasColumnName("rating"); - - b.Property("RunTimeMins") - .HasColumnType("integer") - .HasColumnName("runtime_mins"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text") - .HasColumnName("title"); - - b.Property("UpdatedAt") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.ToTable("movie"); - - b.HasData( - new - { - Id = 1, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4071), - Description = "Very funny", - Rating = "years 11+", - RunTimeMins = 129, - Title = "A bunch of Large Flowers", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4202) - }, - new - { - Id = 2, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4757), - Description = "Very funny", - Rating = "All", - RunTimeMins = 118, - Title = "Several Green Flowers", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4758) - }, - new - { - Id = 3, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762), - Description = "Very funny", - Rating = "years 16+", - RunTimeMins = 123, - Title = "Several Purple Buildings", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762) - }, - new - { - Id = 4, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4764), - Description = "Very funny", - Rating = "years 6+", - RunTimeMins = 72, - Title = "The Bitter Houses", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4765) - }); - }); - - modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("screening_id"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Capacity") - .HasColumnType("integer") - .HasColumnName("capacity"); - - b.Property("CreatedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("MovieId") - .HasColumnType("integer") - .HasColumnName("movie_id"); - - b.Property("ScreenNumber") - .HasColumnType("integer") - .HasColumnName("screen_number"); - - b.Property("StartsAt") - .HasColumnType("timestamp with time zone") - .HasColumnName("starts_at"); - - b.Property("UpdatedAt") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("MovieId"); - - b.ToTable("screenings"); - - b.HasData( - new - { - Id = 1, - Capacity = 77, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5046), - MovieId = 1, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5157) - }, - new - { - Id = 2, - Capacity = 25, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6485), - MovieId = 3, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6487) - }, - new - { - Id = 3, - Capacity = 27, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490), - MovieId = 4, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490) - }, - new - { - Id = 4, - Capacity = 84, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491), - MovieId = 4, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491) - }, - new - { - Id = 5, - Capacity = 63, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492), - MovieId = 2, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492) - }, - new - { - Id = 6, - Capacity = 25, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503), - MovieId = 2, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503) - }, - new - { - Id = 7, - Capacity = 65, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504), - MovieId = 4, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504) - }, - new - { - Id = 8, - Capacity = 48, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505), - MovieId = 3, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505) - }, - new - { - Id = 9, - Capacity = 77, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506), - MovieId = 2, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506) - }, - new - { - Id = 10, - Capacity = 59, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), - MovieId = 3, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508) - }, - new - { - Id = 11, - Capacity = 87, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), - MovieId = 3, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509) - }, - new - { - Id = 12, - Capacity = 99, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509), - MovieId = 2, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) - }, - new - { - Id = 13, - Capacity = 45, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510), - MovieId = 2, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) - }, - new - { - Id = 14, - Capacity = 38, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511), - MovieId = 2, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511) - }, - new - { - Id = 15, - Capacity = 26, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), - MovieId = 2, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512) - }, - new - { - Id = 16, - Capacity = 51, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), - MovieId = 2, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513) - }, - new - { - Id = 17, - Capacity = 74, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513), - MovieId = 3, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6514) - }, - new - { - Id = 18, - Capacity = 79, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515), - MovieId = 2, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515) - }, - new - { - Id = 19, - Capacity = 40, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516), - MovieId = 2, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516) - }); - }); - - modelBuilder.Entity("api_cinema_challenge.Models.Ticket", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("ticket_id"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("CustomerId") - .HasColumnType("integer") - .HasColumnName("customer_id"); - - b.Property("ScreeningId") - .HasColumnType("integer") - .HasColumnName("screening_id"); - - b.HasKey("Id"); - - b.HasIndex("CustomerId"); - - b.HasIndex("ScreeningId"); - - b.ToTable("tickets"); - - b.HasData( - new - { - Id = 1, - CustomerId = 33, - ScreeningId = 14 - }, - new - { - Id = 2, - CustomerId = 28, - ScreeningId = 12 - }, - new - { - Id = 3, - CustomerId = 17, - ScreeningId = 15 - }, - new - { - Id = 4, - CustomerId = 2, - ScreeningId = 6 - }, - new - { - Id = 5, - CustomerId = 41, - ScreeningId = 6 - }, - new - { - Id = 6, - CustomerId = 42, - ScreeningId = 6 - }, - new - { - Id = 7, - CustomerId = 27, - ScreeningId = 13 - }, - new - { - Id = 8, - CustomerId = 39, - ScreeningId = 11 - }, - new - { - Id = 9, - CustomerId = 17, - ScreeningId = 5 - }, - new - { - Id = 10, - CustomerId = 25, - ScreeningId = 9 - }, - new - { - Id = 11, - CustomerId = 9, - ScreeningId = 5 - }, - new - { - Id = 12, - CustomerId = 30, - ScreeningId = 9 - }, - new - { - Id = 13, - CustomerId = 36, - ScreeningId = 6 - }, - new - { - Id = 14, - CustomerId = 41, - ScreeningId = 8 - }, - new - { - Id = 15, - CustomerId = 6, - ScreeningId = 9 - }, - new - { - Id = 16, - CustomerId = 30, - ScreeningId = 15 - }, - new - { - Id = 17, - CustomerId = 46, - ScreeningId = 16 - }, - new - { - Id = 18, - CustomerId = 21, - ScreeningId = 8 - }, - new - { - Id = 19, - CustomerId = 6, - ScreeningId = 3 - }, - new - { - Id = 20, - CustomerId = 47, - ScreeningId = 5 - }, - new - { - Id = 21, - CustomerId = 40, - ScreeningId = 7 - }, - new - { - Id = 22, - CustomerId = 28, - ScreeningId = 1 - }, - new - { - Id = 23, - CustomerId = 32, - ScreeningId = 4 - }, - new - { - Id = 24, - CustomerId = 23, - ScreeningId = 12 - }, - new - { - Id = 25, - CustomerId = 12, - ScreeningId = 7 - }, - new - { - Id = 26, - CustomerId = 17, - ScreeningId = 11 - }, - new - { - Id = 27, - CustomerId = 18, - ScreeningId = 3 - }, - new - { - Id = 28, - CustomerId = 34, - ScreeningId = 18 - }, - new - { - Id = 29, - CustomerId = 49, - ScreeningId = 5 - }, - new - { - Id = 30, - CustomerId = 7, - ScreeningId = 13 - }, - new - { - Id = 31, - CustomerId = 42, - ScreeningId = 18 - }, - new - { - Id = 32, - CustomerId = 14, - ScreeningId = 10 - }, - new - { - Id = 33, - CustomerId = 26, - ScreeningId = 18 - }, - new - { - Id = 34, - CustomerId = 33, - ScreeningId = 17 - }, - new - { - Id = 35, - CustomerId = 21, - ScreeningId = 5 - }, - new - { - Id = 36, - CustomerId = 44, - ScreeningId = 12 - }, - new - { - Id = 37, - CustomerId = 28, - ScreeningId = 1 - }, - new - { - Id = 38, - CustomerId = 1, - ScreeningId = 12 - }, - new - { - Id = 39, - CustomerId = 14, - ScreeningId = 4 - }, - new - { - Id = 40, - CustomerId = 1, - ScreeningId = 14 - }, - new - { - Id = 41, - CustomerId = 44, - ScreeningId = 17 - }, - new - { - Id = 42, - CustomerId = 29, - ScreeningId = 6 - }, - new - { - Id = 43, - CustomerId = 45, - ScreeningId = 17 - }, - new - { - Id = 44, - CustomerId = 37, - ScreeningId = 7 - }, - new - { - Id = 45, - CustomerId = 35, - ScreeningId = 19 - }, - new - { - Id = 46, - CustomerId = 12, - ScreeningId = 16 - }, - new - { - Id = 47, - CustomerId = 44, - ScreeningId = 17 - }, - new - { - Id = 48, - CustomerId = 42, - ScreeningId = 7 - }, - new - { - Id = 49, - CustomerId = 28, - ScreeningId = 5 - }, - new - { - Id = 50, - CustomerId = 43, - ScreeningId = 8 - }, - new - { - Id = 51, - CustomerId = 26, - ScreeningId = 8 - }, - new - { - Id = 52, - CustomerId = 44, - ScreeningId = 9 - }, - new - { - Id = 53, - CustomerId = 4, - ScreeningId = 19 - }, - new - { - Id = 54, - CustomerId = 22, - ScreeningId = 10 - }, - new - { - Id = 55, - CustomerId = 15, - ScreeningId = 3 - }, - new - { - Id = 56, - CustomerId = 43, - ScreeningId = 5 - }, - new - { - Id = 57, - CustomerId = 43, - ScreeningId = 18 - }, - new - { - Id = 58, - CustomerId = 9, - ScreeningId = 4 - }, - new - { - Id = 59, - CustomerId = 15, - ScreeningId = 6 - }, - new - { - Id = 60, - CustomerId = 22, - ScreeningId = 14 - }, - new - { - Id = 61, - CustomerId = 3, - ScreeningId = 7 - }, - new - { - Id = 62, - CustomerId = 43, - ScreeningId = 16 - }, - new - { - Id = 63, - CustomerId = 7, - ScreeningId = 4 - }, - new - { - Id = 64, - CustomerId = 27, - ScreeningId = 10 - }, - new - { - Id = 65, - CustomerId = 13, - ScreeningId = 17 - }, - new - { - Id = 66, - CustomerId = 39, - ScreeningId = 4 - }, - new - { - Id = 67, - CustomerId = 47, - ScreeningId = 4 - }, - new - { - Id = 68, - CustomerId = 21, - ScreeningId = 2 - }, - new - { - Id = 69, - CustomerId = 46, - ScreeningId = 17 - }, - new - { - Id = 70, - CustomerId = 14, - ScreeningId = 1 - }, - new - { - Id = 71, - CustomerId = 28, - ScreeningId = 4 - }, - new - { - Id = 72, - CustomerId = 47, - ScreeningId = 6 - }, - new - { - Id = 73, - CustomerId = 5, - ScreeningId = 17 - }, - new - { - Id = 74, - CustomerId = 11, - ScreeningId = 15 - }, - new - { - Id = 75, - CustomerId = 46, - ScreeningId = 5 - }, - new - { - Id = 76, - CustomerId = 45, - ScreeningId = 17 - }, - new - { - Id = 77, - CustomerId = 6, - ScreeningId = 1 - }, - new - { - Id = 78, - CustomerId = 16, - ScreeningId = 18 - }, - new - { - Id = 79, - CustomerId = 36, - ScreeningId = 1 - }, - new - { - Id = 80, - CustomerId = 43, - ScreeningId = 14 - }, - new - { - Id = 81, - CustomerId = 12, - ScreeningId = 15 - }, - new - { - Id = 82, - CustomerId = 40, - ScreeningId = 2 - }, - new - { - Id = 83, - CustomerId = 5, - ScreeningId = 4 - }, - new - { - Id = 84, - CustomerId = 36, - ScreeningId = 10 - }, - new - { - Id = 85, - CustomerId = 21, - ScreeningId = 13 - }, - new - { - Id = 86, - CustomerId = 4, - ScreeningId = 10 - }, - new - { - Id = 87, - CustomerId = 42, - ScreeningId = 2 - }, - new - { - Id = 88, - CustomerId = 1, - ScreeningId = 10 - }, - new - { - Id = 89, - CustomerId = 5, - ScreeningId = 1 - }, - new - { - Id = 90, - CustomerId = 34, - ScreeningId = 12 - }, - new - { - Id = 91, - CustomerId = 35, - ScreeningId = 7 - }, - new - { - Id = 92, - CustomerId = 47, - ScreeningId = 8 - }, - new - { - Id = 93, - CustomerId = 35, - ScreeningId = 9 - }, - new - { - Id = 94, - CustomerId = 5, - ScreeningId = 12 - }, - new - { - Id = 95, - CustomerId = 43, - ScreeningId = 7 - }, - new - { - Id = 96, - CustomerId = 36, - ScreeningId = 1 - }, - new - { - Id = 97, - CustomerId = 4, - ScreeningId = 7 - }, - new - { - Id = 98, - CustomerId = 31, - ScreeningId = 14 - }, - new - { - Id = 99, - CustomerId = 25, - ScreeningId = 19 - }, - new - { - Id = 100, - CustomerId = 49, - ScreeningId = 9 - }, - new - { - Id = 101, - CustomerId = 4, - ScreeningId = 15 - }, - new - { - Id = 102, - CustomerId = 34, - ScreeningId = 10 - }, - new - { - Id = 103, - CustomerId = 14, - ScreeningId = 8 - }, - new - { - Id = 104, - CustomerId = 28, - ScreeningId = 7 - }, - new - { - Id = 105, - CustomerId = 38, - ScreeningId = 2 - }, - new - { - Id = 106, - CustomerId = 7, - ScreeningId = 18 - }, - new - { - Id = 107, - CustomerId = 40, - ScreeningId = 9 - }, - new - { - Id = 108, - CustomerId = 22, - ScreeningId = 3 - }, - new - { - Id = 109, - CustomerId = 4, - ScreeningId = 7 - }, - new - { - Id = 110, - CustomerId = 34, - ScreeningId = 17 - }, - new - { - Id = 111, - CustomerId = 6, - ScreeningId = 6 - }, - new - { - Id = 112, - CustomerId = 9, - ScreeningId = 10 - }, - new - { - Id = 113, - CustomerId = 39, - ScreeningId = 8 - }, - new - { - Id = 114, - CustomerId = 22, - ScreeningId = 5 - }, - new - { - Id = 115, - CustomerId = 26, - ScreeningId = 12 - }, - new - { - Id = 116, - CustomerId = 34, - ScreeningId = 5 - }, - new - { - Id = 117, - CustomerId = 15, - ScreeningId = 7 - }, - new - { - Id = 118, - CustomerId = 41, - ScreeningId = 18 - }, - new - { - Id = 119, - CustomerId = 39, - ScreeningId = 9 - }, - new - { - Id = 120, - CustomerId = 14, - ScreeningId = 5 - }, - new - { - Id = 121, - CustomerId = 10, - ScreeningId = 10 - }, - new - { - Id = 122, - CustomerId = 3, - ScreeningId = 14 - }, - new - { - Id = 123, - CustomerId = 16, - ScreeningId = 10 - }, - new - { - Id = 124, - CustomerId = 3, - ScreeningId = 13 - }, - new - { - Id = 125, - CustomerId = 43, - ScreeningId = 5 - }, - new - { - Id = 126, - CustomerId = 39, - ScreeningId = 16 - }, - new - { - Id = 127, - CustomerId = 6, - ScreeningId = 15 - }, - new - { - Id = 128, - CustomerId = 20, - ScreeningId = 3 - }, - new - { - Id = 129, - CustomerId = 29, - ScreeningId = 12 - }, - new - { - Id = 130, - CustomerId = 31, - ScreeningId = 15 - }, - new - { - Id = 131, - CustomerId = 10, - ScreeningId = 6 - }, - new - { - Id = 132, - CustomerId = 16, - ScreeningId = 3 - }, - new - { - Id = 133, - CustomerId = 13, - ScreeningId = 15 - }, - new - { - Id = 134, - CustomerId = 17, - ScreeningId = 2 - }, - new - { - Id = 135, - CustomerId = 18, - ScreeningId = 15 - }, - new - { - Id = 136, - CustomerId = 41, - ScreeningId = 19 - }, - new - { - Id = 137, - CustomerId = 41, - ScreeningId = 13 - }, - new - { - Id = 138, - CustomerId = 23, - ScreeningId = 3 - }, - new - { - Id = 139, - CustomerId = 40, - ScreeningId = 5 - }, - new - { - Id = 140, - CustomerId = 38, - ScreeningId = 1 - }, - new - { - Id = 141, - CustomerId = 7, - ScreeningId = 9 - }, - new - { - Id = 142, - CustomerId = 45, - ScreeningId = 6 - }, - new - { - Id = 143, - CustomerId = 30, - ScreeningId = 5 - }, - new - { - Id = 144, - CustomerId = 14, - ScreeningId = 9 - }, - new - { - Id = 145, - CustomerId = 14, - ScreeningId = 18 - }, - new - { - Id = 146, - CustomerId = 23, - ScreeningId = 16 - }, - new - { - Id = 147, - CustomerId = 31, - ScreeningId = 16 - }, - new - { - Id = 148, - CustomerId = 45, - ScreeningId = 1 - }, - new - { - Id = 149, - CustomerId = 3, - ScreeningId = 6 - }, - new - { - Id = 150, - CustomerId = 1, - ScreeningId = 7 - }, - new - { - Id = 151, - CustomerId = 35, - ScreeningId = 3 - }, - new - { - Id = 152, - CustomerId = 1, - ScreeningId = 15 - }, - new - { - Id = 153, - CustomerId = 4, - ScreeningId = 8 - }, - new - { - Id = 154, - CustomerId = 25, - ScreeningId = 1 - }, - new - { - Id = 155, - CustomerId = 32, - ScreeningId = 18 - }, - new - { - Id = 156, - CustomerId = 34, - ScreeningId = 13 - }, - new - { - Id = 157, - CustomerId = 33, - ScreeningId = 4 - }, - new - { - Id = 158, - CustomerId = 24, - ScreeningId = 5 - }, - new - { - Id = 159, - CustomerId = 31, - ScreeningId = 15 - }, - new - { - Id = 160, - CustomerId = 44, - ScreeningId = 15 - }, - new - { - Id = 161, - CustomerId = 37, - ScreeningId = 8 - }, - new - { - Id = 162, - CustomerId = 3, - ScreeningId = 7 - }, - new - { - Id = 163, - CustomerId = 27, - ScreeningId = 9 - }, - new - { - Id = 164, - CustomerId = 40, - ScreeningId = 9 - }, - new - { - Id = 165, - CustomerId = 16, - ScreeningId = 10 - }, - new - { - Id = 166, - CustomerId = 26, - ScreeningId = 16 - }, - new - { - Id = 167, - CustomerId = 31, - ScreeningId = 15 - }, - new - { - Id = 168, - CustomerId = 18, - ScreeningId = 11 - }, - new - { - Id = 169, - CustomerId = 30, - ScreeningId = 16 - }, - new - { - Id = 170, - CustomerId = 48, - ScreeningId = 11 - }, - new - { - Id = 171, - CustomerId = 30, - ScreeningId = 1 - }, - new - { - Id = 172, - CustomerId = 17, - ScreeningId = 9 - }, - new - { - Id = 173, - CustomerId = 24, - ScreeningId = 2 - }, - new - { - Id = 174, - CustomerId = 3, - ScreeningId = 2 - }, - new - { - Id = 175, - CustomerId = 32, - ScreeningId = 18 - }, - new - { - Id = 176, - CustomerId = 33, - ScreeningId = 10 - }, - new - { - Id = 177, - CustomerId = 48, - ScreeningId = 1 - }, - new - { - Id = 178, - CustomerId = 36, - ScreeningId = 14 - }, - new - { - Id = 179, - CustomerId = 47, - ScreeningId = 2 - }, - new - { - Id = 180, - CustomerId = 43, - ScreeningId = 7 - }, - new - { - Id = 181, - CustomerId = 13, - ScreeningId = 1 - }, - new - { - Id = 182, - CustomerId = 19, - ScreeningId = 12 - }, - new - { - Id = 183, - CustomerId = 35, - ScreeningId = 2 - }, - new - { - Id = 184, - CustomerId = 37, - ScreeningId = 18 - }, - new - { - Id = 185, - CustomerId = 28, - ScreeningId = 2 - }, - new - { - Id = 186, - CustomerId = 11, - ScreeningId = 8 - }, - new - { - Id = 187, - CustomerId = 43, - ScreeningId = 18 - }, - new - { - Id = 188, - CustomerId = 36, - ScreeningId = 9 - }, - new - { - Id = 189, - CustomerId = 25, - ScreeningId = 19 - }, - new - { - Id = 190, - CustomerId = 40, - ScreeningId = 16 - }, - new - { - Id = 191, - CustomerId = 8, - ScreeningId = 17 - }, - new - { - Id = 192, - CustomerId = 23, - ScreeningId = 17 - }, - new - { - Id = 193, - CustomerId = 49, - ScreeningId = 7 - }, - new - { - Id = 194, - CustomerId = 6, - ScreeningId = 12 - }, - new - { - Id = 195, - CustomerId = 31, - ScreeningId = 3 - }, - new - { - Id = 196, - CustomerId = 16, - ScreeningId = 10 - }, - new - { - Id = 197, - CustomerId = 41, - ScreeningId = 4 - }, - new - { - Id = 198, - CustomerId = 1, - ScreeningId = 2 - }, - new - { - Id = 199, - CustomerId = 11, - ScreeningId = 15 - }); - }); - - modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => - { - b.HasOne("api_cinema_challenge.Models.Movie", "Movie") - .WithMany("Screenings") - .HasForeignKey("MovieId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Movie"); - }); - - modelBuilder.Entity("api_cinema_challenge.Models.Ticket", b => - { - b.HasOne("api_cinema_challenge.Models.Customer", "Customer") - .WithMany("Tickets") - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("api_cinema_challenge.Models.Screening", "Screening") - .WithMany("Tickets") - .HasForeignKey("ScreeningId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Customer"); - - b.Navigation("Screening"); - }); - - modelBuilder.Entity("api_cinema_challenge.Models.Customer", b => - { - b.Navigation("Tickets"); - }); - - modelBuilder.Entity("api_cinema_challenge.Models.Movie", b => - { - b.Navigation("Screenings"); - }); - - modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => - { - b.Navigation("Tickets"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.cs deleted file mode 100644 index b3c53633..00000000 --- a/api-cinema-challenge/api-cinema-challenge/Migrations/20250825131522_Test.cs +++ /dev/null @@ -1,462 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional - -namespace api_cinema_challenge.Migrations -{ - /// - public partial class Test : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "ApplicationUsers", - columns: table => new - { - Id = table.Column(type: "text", nullable: false), - Role = table.Column(type: "integer", nullable: false), - UserName = table.Column(type: "text", nullable: true), - NormalizedUserName = table.Column(type: "text", nullable: true), - Email = table.Column(type: "text", nullable: true), - NormalizedEmail = table.Column(type: "text", nullable: true), - EmailConfirmed = table.Column(type: "boolean", nullable: false), - PasswordHash = table.Column(type: "text", nullable: true), - SecurityStamp = table.Column(type: "text", nullable: true), - ConcurrencyStamp = table.Column(type: "text", nullable: true), - PhoneNumber = table.Column(type: "text", nullable: true), - PhoneNumberConfirmed = table.Column(type: "boolean", nullable: false), - TwoFactorEnabled = table.Column(type: "boolean", nullable: false), - LockoutEnd = table.Column(type: "timestamp with time zone", nullable: true), - LockoutEnabled = table.Column(type: "boolean", nullable: false), - AccessFailedCount = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_ApplicationUsers", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Customers", - columns: table => new - { - customer_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - name = table.Column(type: "text", nullable: false), - email = table.Column(type: "text", nullable: false), - phone = table.Column(type: "text", nullable: false), - CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), - UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Customers", x => x.customer_id); - }); - - migrationBuilder.CreateTable( - name: "movie", - columns: table => new - { - movie_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - title = table.Column(type: "text", nullable: false), - rating = table.Column(type: "text", nullable: false), - description = table.Column(type: "text", nullable: false), - runtime_mins = table.Column(type: "integer", nullable: false), - CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), - UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_movie", x => x.movie_id); - }); - - migrationBuilder.CreateTable( - name: "screenings", - columns: table => new - { - screening_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - screen_number = table.Column(type: "integer", nullable: false), - capacity = table.Column(type: "integer", nullable: false), - starts_at = table.Column(type: "timestamp with time zone", nullable: false), - movie_id = table.Column(type: "integer", nullable: false), - CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), - UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_screenings", x => x.screening_id); - table.ForeignKey( - name: "FK_screenings_movie_movie_id", - column: x => x.movie_id, - principalTable: "movie", - principalColumn: "movie_id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "tickets", - columns: table => new - { - ticket_id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - screening_id = table.Column(type: "integer", nullable: false), - customer_id = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_tickets", x => x.ticket_id); - table.ForeignKey( - name: "FK_tickets_Customers_customer_id", - column: x => x.customer_id, - principalTable: "Customers", - principalColumn: "customer_id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_tickets_screenings_screening_id", - column: x => x.screening_id, - principalTable: "screenings", - principalColumn: "screening_id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.InsertData( - table: "Customers", - columns: new[] { "customer_id", "CreatedAt", "email", "name", "phone", "UpdatedAt" }, - values: new object[,] - { - { 1, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2035), "audrey hepburn@gov.gr", "Audrey Hepburn", "24634684", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2268) }, - { 2, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3539), "kate hepburn@bbc.co.uk", "Kate Hepburn", "49646097", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3540) }, - { 3, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563), "charles presley@gov.nl", "Charles Presley", "26639659", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563) }, - { 4, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3565), "donald hendrix@gov.ru", "Donald Hendrix", "65109755", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3566) }, - { 5, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568), "oprah middleton@gov.us", "Oprah Middleton", "43044406", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568) }, - { 6, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579), "kate trump@bbc.co.uk", "Kate Trump", "52083056", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579) }, - { 7, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581), "charles winfrey@google.com", "Charles Winfrey", "85242581", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581) }, - { 8, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3604), "donald windsor@gov.us", "Donald Windsor", "57665393", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3605) }, - { 9, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3606), "kate obama@google.com", "Kate Obama", "22385849", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3607) }, - { 10, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609), "donald windsor@something.com", "Donald Windsor", "62639816", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609) }, - { 11, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611), "charles hepburn@gov.ru", "Charles Hepburn", "62276921", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611) }, - { 12, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613), "elvis winfrey@tesla.com", "Elvis Winfrey", "35293476", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613) }, - { 13, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3614), "elvis hepburn@gov.us", "Elvis Hepburn", "84876191", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3615) }, - { 14, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616), "charles jagger@gov.ru", "Charles Jagger", "54864917", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616) }, - { 15, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618), "barack winfrey@gov.ru", "Barack Winfrey", "34106523", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618) }, - { 16, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619), "mick windsor@gov.gr", "Mick Windsor", "52226638", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619) }, - { 17, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621), "elvis hepburn@nasa.org.us", "Elvis Hepburn", "50058133", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621) }, - { 18, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623), "jimi jagger@gov.us", "Jimi Jagger", "30126005", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623) }, - { 19, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3624), "kate jagger@nasa.org.us", "Kate Jagger", "28409903", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3625) }, - { 20, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626), "kate jagger@something.com", "Kate Jagger", "27803251", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626) }, - { 21, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3627), "barack winslet@bbc.co.uk", "Barack Winslet", "56314127", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3628) }, - { 22, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629), "jimi presley@tesla.com", "Jimi Presley", "51246437", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629) }, - { 23, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3630), "kate winslet@something.com", "Kate Winslet", "12062719", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3631) }, - { 24, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3632), "mick presley@gov.ru", "Mick Presley", "84330792", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3633) }, - { 25, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634), "kate hepburn@tesla.com", "Kate Hepburn", "60705909", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634) }, - { 26, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3635), "kate winslet@nasa.org.us", "Kate Winslet", "47374763", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3636) }, - { 27, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637), "audrey presley@gov.us", "Audrey Presley", "89646824", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637) }, - { 28, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3638), "jimi hepburn@gov.gr", "Jimi Hepburn", "70843563", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3639) }, - { 29, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640), "mick windsor@nasa.org.us", "Mick Windsor", "21891104", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640) }, - { 30, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3641), "donald trump@nasa.org.us", "Donald Trump", "77180744", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3642) }, - { 31, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3648), "kate presley@gov.nl", "Kate Presley", "18549554", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3649) }, - { 32, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651), "kate winslet@tesla.com", "Kate Winslet", "22886454", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651) }, - { 33, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3652), "elvis winfrey@something.com", "Elvis Winfrey", "44923720", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3653) }, - { 34, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655), "kate winfrey@gov.nl", "Kate Winfrey", "52713833", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655) }, - { 35, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656), "jimi hendrix@gov.nl", "Jimi Hendrix", "69254646", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656) }, - { 36, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658), "barack trump@tesla.com", "Barack Trump", "18571321", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658) }, - { 37, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659), "elvis middleton@bbc.co.uk", "Elvis Middleton", "66441056", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659) }, - { 38, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661), "jimi middleton@bbc.co.uk", "Jimi Middleton", "31023577", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661) }, - { 39, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663), "kate hendrix@gov.ru", "Kate Hendrix", "22668985", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663) }, - { 40, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664), "kate hepburn@theworld.ca", "Kate Hepburn", "54717904", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664) }, - { 41, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666), "elvis jagger@tesla.com", "Elvis Jagger", "72683693", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666) }, - { 42, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667), "barack middleton@nasa.org.us", "Barack Middleton", "23610983", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667) }, - { 43, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669), "kate obama@bbc.co.uk", "Kate Obama", "28499438", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669) }, - { 44, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3670), "elvis middleton@gov.ru", "Elvis Middleton", "39411817", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3671) }, - { 45, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672), "jimi jagger@gov.us", "Jimi Jagger", "54613053", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672) }, - { 46, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674), "oprah presley@bbc.co.uk", "Oprah Presley", "80862726", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674) }, - { 47, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675), "jimi obama@nasa.org.us", "Jimi Obama", "20418161", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675) }, - { 48, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677), "charles hepburn@theworld.ca", "Charles Hepburn", "17586489", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677) }, - { 49, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678), "oprah middleton@google.com", "Oprah Middleton", "48095329", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678) } - }); - - migrationBuilder.InsertData( - table: "movie", - columns: new[] { "movie_id", "CreatedAt", "description", "rating", "runtime_mins", "title", "UpdatedAt" }, - values: new object[,] - { - { 1, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4071), "Very funny", "years 11+", 129, "A bunch of Large Flowers", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4202) }, - { 2, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4757), "Very funny", "All", 118, "Several Green Flowers", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4758) }, - { 3, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762), "Very funny", "years 16+", 123, "Several Purple Buildings", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762) }, - { 4, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4764), "Very funny", "years 6+", 72, "The Bitter Houses", new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4765) } - }); - - migrationBuilder.InsertData( - table: "screenings", - columns: new[] { "screening_id", "capacity", "CreatedAt", "movie_id", "screen_number", "starts_at", "UpdatedAt" }, - values: new object[,] - { - { 1, 77, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5046), 1, 0, new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5157) }, - { 2, 25, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6485), 3, 3, new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6487) }, - { 3, 27, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490), 4, 2, new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490) }, - { 4, 84, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491), 4, 2, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491) }, - { 5, 63, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492), 2, 3, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492) }, - { 6, 25, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503), 2, 1, new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503) }, - { 7, 65, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504), 4, 0, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504) }, - { 8, 48, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505), 3, 0, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505) }, - { 9, 77, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506), 2, 4, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506) }, - { 10, 59, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), 3, 4, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508) }, - { 11, 87, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), 3, 0, new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509) }, - { 12, 99, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509), 2, 3, new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) }, - { 13, 45, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510), 2, 2, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) }, - { 14, 38, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511), 2, 1, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511) }, - { 15, 26, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), 2, 0, new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512) }, - { 16, 51, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), 2, 4, new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513) }, - { 17, 74, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513), 3, 3, new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6514) }, - { 18, 79, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515), 2, 0, new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515) }, - { 19, 40, new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516), 2, 2, new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516) } - }); - - migrationBuilder.InsertData( - table: "tickets", - columns: new[] { "ticket_id", "customer_id", "screening_id" }, - values: new object[,] - { - { 1, 33, 14 }, - { 2, 28, 12 }, - { 3, 17, 15 }, - { 4, 2, 6 }, - { 5, 41, 6 }, - { 6, 42, 6 }, - { 7, 27, 13 }, - { 8, 39, 11 }, - { 9, 17, 5 }, - { 10, 25, 9 }, - { 11, 9, 5 }, - { 12, 30, 9 }, - { 13, 36, 6 }, - { 14, 41, 8 }, - { 15, 6, 9 }, - { 16, 30, 15 }, - { 17, 46, 16 }, - { 18, 21, 8 }, - { 19, 6, 3 }, - { 20, 47, 5 }, - { 21, 40, 7 }, - { 22, 28, 1 }, - { 23, 32, 4 }, - { 24, 23, 12 }, - { 25, 12, 7 }, - { 26, 17, 11 }, - { 27, 18, 3 }, - { 28, 34, 18 }, - { 29, 49, 5 }, - { 30, 7, 13 }, - { 31, 42, 18 }, - { 32, 14, 10 }, - { 33, 26, 18 }, - { 34, 33, 17 }, - { 35, 21, 5 }, - { 36, 44, 12 }, - { 37, 28, 1 }, - { 38, 1, 12 }, - { 39, 14, 4 }, - { 40, 1, 14 }, - { 41, 44, 17 }, - { 42, 29, 6 }, - { 43, 45, 17 }, - { 44, 37, 7 }, - { 45, 35, 19 }, - { 46, 12, 16 }, - { 47, 44, 17 }, - { 48, 42, 7 }, - { 49, 28, 5 }, - { 50, 43, 8 }, - { 51, 26, 8 }, - { 52, 44, 9 }, - { 53, 4, 19 }, - { 54, 22, 10 }, - { 55, 15, 3 }, - { 56, 43, 5 }, - { 57, 43, 18 }, - { 58, 9, 4 }, - { 59, 15, 6 }, - { 60, 22, 14 }, - { 61, 3, 7 }, - { 62, 43, 16 }, - { 63, 7, 4 }, - { 64, 27, 10 }, - { 65, 13, 17 }, - { 66, 39, 4 }, - { 67, 47, 4 }, - { 68, 21, 2 }, - { 69, 46, 17 }, - { 70, 14, 1 }, - { 71, 28, 4 }, - { 72, 47, 6 }, - { 73, 5, 17 }, - { 74, 11, 15 }, - { 75, 46, 5 }, - { 76, 45, 17 }, - { 77, 6, 1 }, - { 78, 16, 18 }, - { 79, 36, 1 }, - { 80, 43, 14 }, - { 81, 12, 15 }, - { 82, 40, 2 }, - { 83, 5, 4 }, - { 84, 36, 10 }, - { 85, 21, 13 }, - { 86, 4, 10 }, - { 87, 42, 2 }, - { 88, 1, 10 }, - { 89, 5, 1 }, - { 90, 34, 12 }, - { 91, 35, 7 }, - { 92, 47, 8 }, - { 93, 35, 9 }, - { 94, 5, 12 }, - { 95, 43, 7 }, - { 96, 36, 1 }, - { 97, 4, 7 }, - { 98, 31, 14 }, - { 99, 25, 19 }, - { 100, 49, 9 }, - { 101, 4, 15 }, - { 102, 34, 10 }, - { 103, 14, 8 }, - { 104, 28, 7 }, - { 105, 38, 2 }, - { 106, 7, 18 }, - { 107, 40, 9 }, - { 108, 22, 3 }, - { 109, 4, 7 }, - { 110, 34, 17 }, - { 111, 6, 6 }, - { 112, 9, 10 }, - { 113, 39, 8 }, - { 114, 22, 5 }, - { 115, 26, 12 }, - { 116, 34, 5 }, - { 117, 15, 7 }, - { 118, 41, 18 }, - { 119, 39, 9 }, - { 120, 14, 5 }, - { 121, 10, 10 }, - { 122, 3, 14 }, - { 123, 16, 10 }, - { 124, 3, 13 }, - { 125, 43, 5 }, - { 126, 39, 16 }, - { 127, 6, 15 }, - { 128, 20, 3 }, - { 129, 29, 12 }, - { 130, 31, 15 }, - { 131, 10, 6 }, - { 132, 16, 3 }, - { 133, 13, 15 }, - { 134, 17, 2 }, - { 135, 18, 15 }, - { 136, 41, 19 }, - { 137, 41, 13 }, - { 138, 23, 3 }, - { 139, 40, 5 }, - { 140, 38, 1 }, - { 141, 7, 9 }, - { 142, 45, 6 }, - { 143, 30, 5 }, - { 144, 14, 9 }, - { 145, 14, 18 }, - { 146, 23, 16 }, - { 147, 31, 16 }, - { 148, 45, 1 }, - { 149, 3, 6 }, - { 150, 1, 7 }, - { 151, 35, 3 }, - { 152, 1, 15 }, - { 153, 4, 8 }, - { 154, 25, 1 }, - { 155, 32, 18 }, - { 156, 34, 13 }, - { 157, 33, 4 }, - { 158, 24, 5 }, - { 159, 31, 15 }, - { 160, 44, 15 }, - { 161, 37, 8 }, - { 162, 3, 7 }, - { 163, 27, 9 }, - { 164, 40, 9 }, - { 165, 16, 10 }, - { 166, 26, 16 }, - { 167, 31, 15 }, - { 168, 18, 11 }, - { 169, 30, 16 }, - { 170, 48, 11 }, - { 171, 30, 1 }, - { 172, 17, 9 }, - { 173, 24, 2 }, - { 174, 3, 2 }, - { 175, 32, 18 }, - { 176, 33, 10 }, - { 177, 48, 1 }, - { 178, 36, 14 }, - { 179, 47, 2 }, - { 180, 43, 7 }, - { 181, 13, 1 }, - { 182, 19, 12 }, - { 183, 35, 2 }, - { 184, 37, 18 }, - { 185, 28, 2 }, - { 186, 11, 8 }, - { 187, 43, 18 }, - { 188, 36, 9 }, - { 189, 25, 19 }, - { 190, 40, 16 }, - { 191, 8, 17 }, - { 192, 23, 17 }, - { 193, 49, 7 }, - { 194, 6, 12 }, - { 195, 31, 3 }, - { 196, 16, 10 }, - { 197, 41, 4 }, - { 198, 1, 2 }, - { 199, 11, 15 } - }); - - migrationBuilder.CreateIndex( - name: "IX_screenings_movie_id", - table: "screenings", - column: "movie_id"); - - migrationBuilder.CreateIndex( - name: "IX_tickets_customer_id", - table: "tickets", - column: "customer_id"); - - migrationBuilder.CreateIndex( - name: "IX_tickets_screening_id", - table: "tickets", - column: "screening_id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "ApplicationUsers"); - - migrationBuilder.DropTable( - name: "tickets"); - - migrationBuilder.DropTable( - name: "Customers"); - - migrationBuilder.DropTable( - name: "screenings"); - - migrationBuilder.DropTable( - name: "movie"); - } - } -} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250826100627_test.Designer.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250826100627_test.Designer.cs new file mode 100644 index 00000000..0730bb83 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/20250826100627_test.Designer.cs @@ -0,0 +1,2747 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; +using api_cinema_challenge.Data; + +#nullable disable + +namespace api_cinema_challenge.Migrations +{ + [DbContext(typeof(CinemaContext))] + [Migration("20250826100627_test")] + partial class test + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "9.0.8") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("api_cinema_challenge.Data.ApplicationUser", b => + { + b.Property("Id") + .HasColumnType("text"); + + b.Property("AccessFailedCount") + .HasColumnType("integer"); + + b.Property("ConcurrencyStamp") + .HasColumnType("text"); + + b.Property("Email") + .HasColumnType("text"); + + b.Property("EmailConfirmed") + .HasColumnType("boolean"); + + b.Property("LockoutEnabled") + .HasColumnType("boolean"); + + b.Property("LockoutEnd") + .HasColumnType("timestamp with time zone"); + + b.Property("NormalizedEmail") + .HasColumnType("text"); + + b.Property("NormalizedUserName") + .HasColumnType("text"); + + b.Property("PasswordHash") + .HasColumnType("text"); + + b.Property("PhoneNumber") + .HasColumnType("text"); + + b.Property("PhoneNumberConfirmed") + .HasColumnType("boolean"); + + b.Property("Role") + .HasColumnType("integer"); + + b.Property("SecurityStamp") + .HasColumnType("text"); + + b.Property("TwoFactorEnabled") + .HasColumnType("boolean"); + + b.Property("UserName") + .HasColumnType("text"); + + b.HasKey("Id"); + + b.ToTable("ApplicationUsers"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Customer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("customer_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + + b.Property("Email") + .IsRequired() + .HasColumnType("text") + .HasColumnName("email"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text") + .HasColumnName("name"); + + b.Property("Phone") + .IsRequired() + .HasColumnType("text") + .HasColumnName("phone"); + + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + + b.HasKey("Id"); + + b.ToTable("Customers"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(5796), + Email = "oprah winslet@nasa.org.us", + Name = "Oprah Winslet", + Phone = "38597758", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(5997) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7059), + Email = "donald hendrix@nasa.org.us", + Name = "Donald Hendrix", + Phone = "31294393", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7060) + }, + new + { + Id = 3, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7077), + Email = "oprah winfrey@gov.ru", + Name = "Oprah Winfrey", + Phone = "12461023", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7077) + }, + new + { + Id = 4, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7079), + Email = "kate windsor@nasa.org.us", + Name = "Kate Windsor", + Phone = "60877520", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7080) + }, + new + { + Id = 5, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7081), + Email = "kate trump@gov.gr", + Name = "Kate Trump", + Phone = "28214601", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7082) + }, + new + { + Id = 6, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7087), + Email = "donald winslet@theworld.ca", + Name = "Donald Winslet", + Phone = "99090594", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7087) + }, + new + { + Id = 7, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7089), + Email = "jimi winslet@google.com", + Name = "Jimi Winslet", + Phone = "51342584", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7090) + }, + new + { + Id = 8, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7092), + Email = "kate presley@google.com", + Name = "Kate Presley", + Phone = "24606771", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7093) + }, + new + { + Id = 9, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7094), + Email = "audrey winslet@tesla.com", + Name = "Audrey Winslet", + Phone = "35122566", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7094) + }, + new + { + Id = 10, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7096), + Email = "barack jagger@bbc.co.uk", + Name = "Barack Jagger", + Phone = "30581375", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7096) + }, + new + { + Id = 11, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7098), + Email = "jimi trump@gov.nl", + Name = "Jimi Trump", + Phone = "29071711", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7098) + }, + new + { + Id = 12, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7107), + Email = "mick jagger@something.com", + Name = "Mick Jagger", + Phone = "71722749", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7108) + }, + new + { + Id = 13, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7109), + Email = "barack middleton@gov.gr", + Name = "Barack Middleton", + Phone = "28169066", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7109) + }, + new + { + Id = 14, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7111), + Email = "mick hepburn@gov.nl", + Name = "Mick Hepburn", + Phone = "46074000", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7111) + }, + new + { + Id = 15, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7113), + Email = "barack winslet@tesla.com", + Name = "Barack Winslet", + Phone = "66728315", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7113) + }, + new + { + Id = 16, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7114), + Email = "jimi middleton@theworld.ca", + Name = "Jimi Middleton", + Phone = "29909156", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7114) + }, + new + { + Id = 17, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7115), + Email = "donald hepburn@gov.nl", + Name = "Donald Hepburn", + Phone = "24603305", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7116) + }, + new + { + Id = 18, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7117), + Email = "kate jagger@google.com", + Name = "Kate Jagger", + Phone = "90412194", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7118) + }, + new + { + Id = 19, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7119), + Email = "kate winfrey@gov.us", + Name = "Kate Winfrey", + Phone = "58591549", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7119) + }, + new + { + Id = 20, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7120), + Email = "audrey windsor@gov.nl", + Name = "Audrey Windsor", + Phone = "61422617", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7120) + }, + new + { + Id = 21, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7122), + Email = "charles jagger@google.com", + Name = "Charles Jagger", + Phone = "39291620", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7122) + }, + new + { + Id = 22, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7123), + Email = "jimi obama@gov.us", + Name = "Jimi Obama", + Phone = "41054703", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7123) + }, + new + { + Id = 23, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7124), + Email = "barack jagger@theworld.ca", + Name = "Barack Jagger", + Phone = "81454823", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7125) + }, + new + { + Id = 24, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7126), + Email = "oprah winfrey@bbc.co.uk", + Name = "Oprah Winfrey", + Phone = "84236288", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7126) + }, + new + { + Id = 25, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7127), + Email = "donald obama@tesla.com", + Name = "Donald Obama", + Phone = "11106320", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7128) + }, + new + { + Id = 26, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7129), + Email = "charles winfrey@something.com", + Name = "Charles Winfrey", + Phone = "98425086", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7129) + }, + new + { + Id = 27, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7130), + Email = "mick winfrey@bbc.co.uk", + Name = "Mick Winfrey", + Phone = "70070854", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7130) + }, + new + { + Id = 28, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7131), + Email = "kate presley@nasa.org.us", + Name = "Kate Presley", + Phone = "88125635", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7132) + }, + new + { + Id = 29, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7133), + Email = "oprah winslet@gov.ru", + Name = "Oprah Winslet", + Phone = "55589125", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7133) + }, + new + { + Id = 30, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7134), + Email = "audrey windsor@something.com", + Name = "Audrey Windsor", + Phone = "87967846", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7134) + }, + new + { + Id = 31, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7135), + Email = "elvis middleton@gov.ru", + Name = "Elvis Middleton", + Phone = "77889124", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7136) + }, + new + { + Id = 32, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7137), + Email = "charles hepburn@bbc.co.uk", + Name = "Charles Hepburn", + Phone = "41980562", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7137) + }, + new + { + Id = 33, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7138), + Email = "mick windsor@tesla.com", + Name = "Mick Windsor", + Phone = "46573335", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7138) + }, + new + { + Id = 34, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7147), + Email = "audrey winfrey@tesla.com", + Name = "Audrey Winfrey", + Phone = "14297485", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7148) + }, + new + { + Id = 35, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7149), + Email = "donald jagger@something.com", + Name = "Donald Jagger", + Phone = "76653793", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7149) + }, + new + { + Id = 36, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7151), + Email = "oprah winfrey@theworld.ca", + Name = "Oprah Winfrey", + Phone = "27250815", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7151) + }, + new + { + Id = 37, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7152), + Email = "charles jagger@tesla.com", + Name = "Charles Jagger", + Phone = "22683147", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7152) + }, + new + { + Id = 38, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7153), + Email = "elvis winslet@bbc.co.uk", + Name = "Elvis Winslet", + Phone = "61709303", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7153) + }, + new + { + Id = 39, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7154), + Email = "mick jagger@tesla.com", + Name = "Mick Jagger", + Phone = "38151327", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7155) + }, + new + { + Id = 40, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7156), + Email = "audrey windsor@something.com", + Name = "Audrey Windsor", + Phone = "27011355", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7156) + }, + new + { + Id = 41, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7157), + Email = "kate winfrey@theworld.ca", + Name = "Kate Winfrey", + Phone = "37145318", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7157) + }, + new + { + Id = 42, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7158), + Email = "audrey winfrey@something.com", + Name = "Audrey Winfrey", + Phone = "38519203", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7159) + }, + new + { + Id = 43, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7160), + Email = "charles middleton@gov.us", + Name = "Charles Middleton", + Phone = "77133526", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7160) + }, + new + { + Id = 44, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7161), + Email = "donald hepburn@nasa.org.us", + Name = "Donald Hepburn", + Phone = "48194121", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7162) + }, + new + { + Id = 45, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7163), + Email = "barack presley@nasa.org.us", + Name = "Barack Presley", + Phone = "18488203", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7163) + }, + new + { + Id = 46, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7164), + Email = "charles trump@theworld.ca", + Name = "Charles Trump", + Phone = "13162166", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7165) + }, + new + { + Id = 47, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7166), + Email = "jimi hepburn@google.com", + Name = "Jimi Hepburn", + Phone = "23226421", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7166) + }, + new + { + Id = 48, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7167), + Email = "audrey jagger@gov.gr", + Name = "Audrey Jagger", + Phone = "61420949", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7167) + }, + new + { + Id = 49, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7168), + Email = "kate obama@gov.us", + Name = "Kate Obama", + Phone = "59125783", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7168) + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Movie", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("movie_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + + b.Property("Description") + .IsRequired() + .HasColumnType("text") + .HasColumnName("description"); + + b.Property("Rating") + .IsRequired() + .HasColumnType("text") + .HasColumnName("rating"); + + b.Property("RunTimeMins") + .HasColumnType("integer") + .HasColumnName("runtime_mins"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasColumnName("title"); + + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + + b.HasKey("Id"); + + b.ToTable("movie"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7525), + Description = "Very funny", + Rating = "years 11+", + RunTimeMins = 146, + Title = "Several Rose Smelling Buildings", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7643) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8153), + Description = "Very funny", + Rating = "years 16+", + RunTimeMins = 91, + Title = "Fifteen Microscopic Leopards", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8153) + }, + new + { + Id = 3, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8157), + Description = "Very funny", + Rating = "years 6+", + RunTimeMins = 90, + Title = "Fifteen Microscopic Leopards", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8157) + }, + new + { + Id = 4, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8159), + Description = "Very funny", + Rating = "All", + RunTimeMins = 137, + Title = "Two Transparent Cars", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8159) + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("screening_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Capacity") + .HasColumnType("integer") + .HasColumnName("capacity"); + + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + + b.Property("MovieId") + .HasColumnType("integer") + .HasColumnName("movie_id"); + + b.Property("ScreenNumber") + .HasColumnType("integer") + .HasColumnName("screen_number"); + + b.Property("StartsAt") + .HasColumnType("timestamp with time zone") + .HasColumnName("starts_at"); + + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + + b.HasKey("Id"); + + b.HasIndex("MovieId"); + + b.ToTable("screenings"); + + b.HasData( + new + { + Id = 1, + Capacity = 89, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8777), + MovieId = 3, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8892) + }, + new + { + Id = 2, + Capacity = 88, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9799), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9800) + }, + new + { + Id = 3, + Capacity = 34, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9802), + MovieId = 3, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9802) + }, + new + { + Id = 4, + Capacity = 55, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9803), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9803) + }, + new + { + Id = 5, + Capacity = 61, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9804), + MovieId = 3, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9804) + }, + new + { + Id = 6, + Capacity = 84, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9807), + MovieId = 2, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9807) + }, + new + { + Id = 7, + Capacity = 78, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9808), + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9808) + }, + new + { + Id = 8, + Capacity = 56, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9809), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9809) + }, + new + { + Id = 9, + Capacity = 50, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9810), + MovieId = 1, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9810) + }, + new + { + Id = 10, + Capacity = 63, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9811), + MovieId = 4, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9812) + }, + new + { + Id = 11, + Capacity = 70, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9812), + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9813) + }, + new + { + Id = 12, + Capacity = 62, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9813), + MovieId = 4, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9813) + }, + new + { + Id = 13, + Capacity = 43, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9814), + MovieId = 4, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9814) + }, + new + { + Id = 14, + Capacity = 26, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9815), + MovieId = 3, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9815) + }, + new + { + Id = 15, + Capacity = 66, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9816), + MovieId = 1, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9816) + }, + new + { + Id = 16, + Capacity = 66, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9823), + MovieId = 2, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9823) + }, + new + { + Id = 17, + Capacity = 86, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9824), + MovieId = 2, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9824) + }, + new + { + Id = 18, + Capacity = 54, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9826), + MovieId = 4, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9826) + }, + new + { + Id = 19, + Capacity = 65, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9826), + MovieId = 1, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9827) + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Ticket", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("ticket_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + + b.Property("CustomerId") + .HasColumnType("integer") + .HasColumnName("customer_id"); + + b.Property("ScreeningId") + .HasColumnType("integer") + .HasColumnName("screening_id"); + + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + + b.Property("numSeats") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("CustomerId"); + + b.HasIndex("ScreeningId"); + + b.ToTable("tickets"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 25, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 2, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 7, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 3, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 5, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 4, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 5, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 6, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 34, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 7, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 8, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 43, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 9, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 33, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 10, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 11, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 49, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 12, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 13, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 14, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 15, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 7, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 16, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 17, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 48, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 18, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 18, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 19, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 16, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 20, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 21, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 11, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 22, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 32, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 23, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 8, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 24, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 36, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 25, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 26, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 32, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 27, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 28, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 27, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 29, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 22, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 30, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 33, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 31, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 26, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 32, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 4, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 33, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 22, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 34, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 35, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 36, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 29, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 37, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 38, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 39, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 18, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 40, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 46, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 41, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 42, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 29, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 43, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 38, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 44, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 18, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 45, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 25, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 46, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 47, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 16, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 48, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 23, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 49, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 38, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 50, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 23, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 51, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 52, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 53, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 54, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 4, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 55, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 28, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 56, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 57, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 36, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 58, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 5, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 59, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 29, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 60, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 31, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 61, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 3, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 62, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 45, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 63, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 34, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 64, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 25, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 65, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 66, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 67, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 6, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 68, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 69, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 27, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 70, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 36, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 71, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 23, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 72, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 8, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 73, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 10, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 74, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 25, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 75, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 37, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 76, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 42, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 77, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 40, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 78, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 21, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 79, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 80, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 7, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 81, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 82, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 83, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 47, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 84, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 5, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 85, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 14, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 86, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 87, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 88, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 36, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 89, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 3, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 90, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 20, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 91, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 41, + ScreeningId = 10, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 92, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 19, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 93, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 47, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 94, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 37, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 95, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 19, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 96, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 43, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 97, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 48, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 98, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 22, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 99, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 100, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 15, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 101, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 38, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 102, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 36, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 103, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 20, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 104, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 49, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 105, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 7, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 106, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 14, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 107, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 45, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 108, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 20, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 109, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 110, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 111, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 112, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 5, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 113, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 15, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 114, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 49, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 115, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 33, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 116, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 23, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 117, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 118, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 48, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 119, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 18, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 120, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 46, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 121, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 40, + ScreeningId = 10, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 122, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 123, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 20, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 124, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 19, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 125, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 49, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 126, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 42, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 127, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 40, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 128, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 11, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 129, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 130, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 42, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 131, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 27, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 132, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 29, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 133, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 134, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 33, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 135, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 41, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 136, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 137, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 138, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 139, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 140, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 141, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 41, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 142, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 47, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 143, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 34, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 144, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 2, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 145, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 146, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 7, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 147, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 2, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 148, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 11, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 149, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 150, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 2, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 151, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 31, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 152, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 16, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 153, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 16, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 154, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 155, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 4, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 156, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 157, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 6, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 158, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 5, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 159, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 45, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 160, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 44, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 161, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 25, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 162, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 40, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 163, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 164, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 8, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 165, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 27, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 166, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 167, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 168, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 2, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 169, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 4, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 170, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 171, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 172, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 173, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 48, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 174, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 23, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 175, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 6, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 176, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 40, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 177, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 8, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 178, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 179, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 41, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 180, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 181, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 182, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 48, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 183, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 3, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 184, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 42, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 185, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 186, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 187, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 29, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 188, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 45, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 189, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 190, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 4, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 191, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 11, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 192, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 193, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 41, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 194, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 10, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 195, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 47, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 196, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 8, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }, + new + { + Id = 197, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 198, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 37, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 + }, + new + { + Id = 199, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 44, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 + }); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => + { + b.HasOne("api_cinema_challenge.Models.Movie", "Movie") + .WithMany("Screenings") + .HasForeignKey("MovieId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Movie"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Ticket", b => + { + b.HasOne("api_cinema_challenge.Models.Customer", "Customer") + .WithMany("Tickets") + .HasForeignKey("CustomerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("api_cinema_challenge.Models.Screening", "Screening") + .WithMany("Tickets") + .HasForeignKey("ScreeningId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Customer"); + + b.Navigation("Screening"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Customer", b => + { + b.Navigation("Tickets"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Movie", b => + { + b.Navigation("Screenings"); + }); + + modelBuilder.Entity("api_cinema_challenge.Models.Screening", b => + { + b.Navigation("Tickets"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/20250826100627_test.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/20250826100627_test.cs new file mode 100644 index 00000000..6d7f06b4 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/20250826100627_test.cs @@ -0,0 +1,465 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional + +namespace api_cinema_challenge.Migrations +{ + /// + public partial class test : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "ApplicationUsers", + columns: table => new + { + Id = table.Column(type: "text", nullable: false), + Role = table.Column(type: "integer", nullable: false), + UserName = table.Column(type: "text", nullable: true), + NormalizedUserName = table.Column(type: "text", nullable: true), + Email = table.Column(type: "text", nullable: true), + NormalizedEmail = table.Column(type: "text", nullable: true), + EmailConfirmed = table.Column(type: "boolean", nullable: false), + PasswordHash = table.Column(type: "text", nullable: true), + SecurityStamp = table.Column(type: "text", nullable: true), + ConcurrencyStamp = table.Column(type: "text", nullable: true), + PhoneNumber = table.Column(type: "text", nullable: true), + PhoneNumberConfirmed = table.Column(type: "boolean", nullable: false), + TwoFactorEnabled = table.Column(type: "boolean", nullable: false), + LockoutEnd = table.Column(type: "timestamp with time zone", nullable: true), + LockoutEnabled = table.Column(type: "boolean", nullable: false), + AccessFailedCount = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ApplicationUsers", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Customers", + columns: table => new + { + customer_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + name = table.Column(type: "text", nullable: false), + email = table.Column(type: "text", nullable: false), + phone = table.Column(type: "text", nullable: false), + CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), + UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Customers", x => x.customer_id); + }); + + migrationBuilder.CreateTable( + name: "movie", + columns: table => new + { + movie_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + title = table.Column(type: "text", nullable: false), + rating = table.Column(type: "text", nullable: false), + description = table.Column(type: "text", nullable: false), + runtime_mins = table.Column(type: "integer", nullable: false), + CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), + UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_movie", x => x.movie_id); + }); + + migrationBuilder.CreateTable( + name: "screenings", + columns: table => new + { + screening_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + screen_number = table.Column(type: "integer", nullable: false), + capacity = table.Column(type: "integer", nullable: false), + starts_at = table.Column(type: "timestamp with time zone", nullable: false), + movie_id = table.Column(type: "integer", nullable: false), + CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), + UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_screenings", x => x.screening_id); + table.ForeignKey( + name: "FK_screenings_movie_movie_id", + column: x => x.movie_id, + principalTable: "movie", + principalColumn: "movie_id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "tickets", + columns: table => new + { + ticket_id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + screening_id = table.Column(type: "integer", nullable: false), + customer_id = table.Column(type: "integer", nullable: false), + numSeats = table.Column(type: "integer", nullable: false), + CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), + UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_tickets", x => x.ticket_id); + table.ForeignKey( + name: "FK_tickets_Customers_customer_id", + column: x => x.customer_id, + principalTable: "Customers", + principalColumn: "customer_id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_tickets_screenings_screening_id", + column: x => x.screening_id, + principalTable: "screenings", + principalColumn: "screening_id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.InsertData( + table: "Customers", + columns: new[] { "customer_id", "CreatedAt", "email", "name", "phone", "UpdatedAt" }, + values: new object[,] + { + { 1, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(5796), "oprah winslet@nasa.org.us", "Oprah Winslet", "38597758", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(5997) }, + { 2, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7059), "donald hendrix@nasa.org.us", "Donald Hendrix", "31294393", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7060) }, + { 3, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7077), "oprah winfrey@gov.ru", "Oprah Winfrey", "12461023", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7077) }, + { 4, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7079), "kate windsor@nasa.org.us", "Kate Windsor", "60877520", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7080) }, + { 5, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7081), "kate trump@gov.gr", "Kate Trump", "28214601", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7082) }, + { 6, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7087), "donald winslet@theworld.ca", "Donald Winslet", "99090594", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7087) }, + { 7, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7089), "jimi winslet@google.com", "Jimi Winslet", "51342584", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7090) }, + { 8, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7092), "kate presley@google.com", "Kate Presley", "24606771", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7093) }, + { 9, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7094), "audrey winslet@tesla.com", "Audrey Winslet", "35122566", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7094) }, + { 10, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7096), "barack jagger@bbc.co.uk", "Barack Jagger", "30581375", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7096) }, + { 11, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7098), "jimi trump@gov.nl", "Jimi Trump", "29071711", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7098) }, + { 12, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7107), "mick jagger@something.com", "Mick Jagger", "71722749", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7108) }, + { 13, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7109), "barack middleton@gov.gr", "Barack Middleton", "28169066", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7109) }, + { 14, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7111), "mick hepburn@gov.nl", "Mick Hepburn", "46074000", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7111) }, + { 15, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7113), "barack winslet@tesla.com", "Barack Winslet", "66728315", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7113) }, + { 16, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7114), "jimi middleton@theworld.ca", "Jimi Middleton", "29909156", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7114) }, + { 17, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7115), "donald hepburn@gov.nl", "Donald Hepburn", "24603305", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7116) }, + { 18, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7117), "kate jagger@google.com", "Kate Jagger", "90412194", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7118) }, + { 19, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7119), "kate winfrey@gov.us", "Kate Winfrey", "58591549", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7119) }, + { 20, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7120), "audrey windsor@gov.nl", "Audrey Windsor", "61422617", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7120) }, + { 21, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7122), "charles jagger@google.com", "Charles Jagger", "39291620", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7122) }, + { 22, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7123), "jimi obama@gov.us", "Jimi Obama", "41054703", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7123) }, + { 23, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7124), "barack jagger@theworld.ca", "Barack Jagger", "81454823", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7125) }, + { 24, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7126), "oprah winfrey@bbc.co.uk", "Oprah Winfrey", "84236288", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7126) }, + { 25, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7127), "donald obama@tesla.com", "Donald Obama", "11106320", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7128) }, + { 26, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7129), "charles winfrey@something.com", "Charles Winfrey", "98425086", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7129) }, + { 27, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7130), "mick winfrey@bbc.co.uk", "Mick Winfrey", "70070854", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7130) }, + { 28, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7131), "kate presley@nasa.org.us", "Kate Presley", "88125635", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7132) }, + { 29, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7133), "oprah winslet@gov.ru", "Oprah Winslet", "55589125", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7133) }, + { 30, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7134), "audrey windsor@something.com", "Audrey Windsor", "87967846", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7134) }, + { 31, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7135), "elvis middleton@gov.ru", "Elvis Middleton", "77889124", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7136) }, + { 32, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7137), "charles hepburn@bbc.co.uk", "Charles Hepburn", "41980562", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7137) }, + { 33, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7138), "mick windsor@tesla.com", "Mick Windsor", "46573335", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7138) }, + { 34, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7147), "audrey winfrey@tesla.com", "Audrey Winfrey", "14297485", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7148) }, + { 35, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7149), "donald jagger@something.com", "Donald Jagger", "76653793", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7149) }, + { 36, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7151), "oprah winfrey@theworld.ca", "Oprah Winfrey", "27250815", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7151) }, + { 37, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7152), "charles jagger@tesla.com", "Charles Jagger", "22683147", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7152) }, + { 38, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7153), "elvis winslet@bbc.co.uk", "Elvis Winslet", "61709303", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7153) }, + { 39, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7154), "mick jagger@tesla.com", "Mick Jagger", "38151327", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7155) }, + { 40, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7156), "audrey windsor@something.com", "Audrey Windsor", "27011355", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7156) }, + { 41, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7157), "kate winfrey@theworld.ca", "Kate Winfrey", "37145318", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7157) }, + { 42, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7158), "audrey winfrey@something.com", "Audrey Winfrey", "38519203", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7159) }, + { 43, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7160), "charles middleton@gov.us", "Charles Middleton", "77133526", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7160) }, + { 44, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7161), "donald hepburn@nasa.org.us", "Donald Hepburn", "48194121", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7162) }, + { 45, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7163), "barack presley@nasa.org.us", "Barack Presley", "18488203", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7163) }, + { 46, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7164), "charles trump@theworld.ca", "Charles Trump", "13162166", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7165) }, + { 47, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7166), "jimi hepburn@google.com", "Jimi Hepburn", "23226421", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7166) }, + { 48, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7167), "audrey jagger@gov.gr", "Audrey Jagger", "61420949", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7167) }, + { 49, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7168), "kate obama@gov.us", "Kate Obama", "59125783", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7168) } + }); + + migrationBuilder.InsertData( + table: "movie", + columns: new[] { "movie_id", "CreatedAt", "description", "rating", "runtime_mins", "title", "UpdatedAt" }, + values: new object[,] + { + { 1, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7525), "Very funny", "years 11+", 146, "Several Rose Smelling Buildings", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7643) }, + { 2, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8153), "Very funny", "years 16+", 91, "Fifteen Microscopic Leopards", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8153) }, + { 3, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8157), "Very funny", "years 6+", 90, "Fifteen Microscopic Leopards", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8157) }, + { 4, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8159), "Very funny", "All", 137, "Two Transparent Cars", new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8159) } + }); + + migrationBuilder.InsertData( + table: "screenings", + columns: new[] { "screening_id", "capacity", "CreatedAt", "movie_id", "screen_number", "starts_at", "UpdatedAt" }, + values: new object[,] + { + { 1, 89, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8777), 3, 1, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8892) }, + { 2, 88, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9799), 2, 0, new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9800) }, + { 3, 34, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9802), 3, 2, new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9802) }, + { 4, 55, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9803), 2, 0, new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9803) }, + { 5, 61, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9804), 3, 1, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9804) }, + { 6, 84, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9807), 2, 2, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9807) }, + { 7, 78, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9808), 1, 4, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9808) }, + { 8, 56, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9809), 2, 0, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9809) }, + { 9, 50, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9810), 1, 2, new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9810) }, + { 10, 63, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9811), 4, 3, new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9812) }, + { 11, 70, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9812), 1, 4, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9813) }, + { 12, 62, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9813), 4, 1, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9813) }, + { 13, 43, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9814), 4, 4, new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9814) }, + { 14, 26, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9815), 3, 4, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9815) }, + { 15, 66, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9816), 1, 1, new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9816) }, + { 16, 66, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9823), 2, 2, new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9823) }, + { 17, 86, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9824), 2, 4, new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9824) }, + { 18, 54, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9826), 4, 4, new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9826) }, + { 19, 65, new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9826), 1, 1, new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9827) } + }); + + migrationBuilder.InsertData( + table: "tickets", + columns: new[] { "ticket_id", "CreatedAt", "customer_id", "screening_id", "UpdatedAt", "numSeats" }, + values: new object[,] + { + { 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 25, 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 7, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 10, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 12, 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 6, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 34, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 12, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 43, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 33, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 10, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 12, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 11, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 49, 13, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 9, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 13, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 10, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 7, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 35, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 48, 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 18, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 16, 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 20, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 9, 6, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 21, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 11, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 22, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 32, 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 23, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 8, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 24, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 36, 11, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 25, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 9, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 26, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 32, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 27, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 35, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 28, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 27, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 29, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 22, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 30, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 33, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 31, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 26, 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 32, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 4, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 33, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 22, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 34, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 35, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 30, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 36, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 29, 13, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 37, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 24, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 38, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 24, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 39, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 18, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 40, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 46, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 41, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 10, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 42, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 29, 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 43, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 38, 13, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 44, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 18, 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 45, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 25, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 46, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 17, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 47, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 16, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 48, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 23, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 49, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 38, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 50, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 23, 11, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 51, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 10, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 52, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 12, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 53, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 39, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 54, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 4, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 55, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 28, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 56, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 9, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 57, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 36, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 58, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, 13, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 59, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 29, 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 60, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 31, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 61, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 3, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 62, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 45, 13, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 63, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 34, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 64, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 25, 6, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 65, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 9, 6, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 66, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 17, 6, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 67, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 6, 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 68, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 35, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 69, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 27, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 70, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 36, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 71, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 23, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 72, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 8, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 73, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, 10, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 74, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 25, 11, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 75, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 37, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 76, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 42, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 77, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 40, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 78, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 21, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 79, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 35, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 80, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 7, 11, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 81, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 35, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 82, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 39, 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 83, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 47, 13, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 84, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 85, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 14, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 86, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 39, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 87, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 39, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 88, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 36, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 89, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 3, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 90, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 20, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 91, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 41, 10, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 92, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 19, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 93, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 47, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 94, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 37, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 95, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 19, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 96, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 43, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 97, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 48, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 98, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 22, 13, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 99, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 30, 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 100, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 15, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 101, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 38, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 102, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 36, 11, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 103, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 20, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 104, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 49, 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 105, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 7, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 106, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 14, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 107, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 45, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 108, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 20, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 109, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 35, 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 110, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 9, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 111, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 12, 11, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 112, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 113, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 15, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 114, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 49, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 115, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 33, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 116, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 23, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 117, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 24, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 118, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 48, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 119, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 18, 13, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 120, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 46, 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 121, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 40, 10, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 122, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 35, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 123, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 20, 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 124, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 19, 11, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 125, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 49, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 126, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 42, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 127, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 40, 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 128, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 11, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 129, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 10, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 130, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 42, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 131, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 27, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 132, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 29, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 133, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 17, 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 134, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 33, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 135, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 41, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 136, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 35, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 137, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 10, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 138, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 39, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 139, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 17, 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 140, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 141, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 41, 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 142, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 47, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 143, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 34, 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 144, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2, 6, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 145, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, 6, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 146, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 7, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 147, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 148, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 11, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 149, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 17, 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 150, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2, 6, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 151, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 31, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 152, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 16, 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 153, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 16, 13, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 154, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 39, 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 155, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 4, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 156, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 30, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 157, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 6, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 158, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 159, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 45, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 160, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 44, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 161, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 25, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 162, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 40, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 163, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 12, 6, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 164, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 8, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 165, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 27, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 166, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 24, 11, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 167, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 168, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 169, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 4, 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 170, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 17, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 171, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 9, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 172, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 30, 12, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 173, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 48, 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 174, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 23, 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 175, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 6, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 176, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 40, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 177, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 8, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 178, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 9, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 179, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 41, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 180, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 35, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 181, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 24, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 182, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 48, 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 183, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 3, 7, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 184, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 42, 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 185, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 30, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 186, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 39, 17, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 187, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 29, 16, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 188, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 45, 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 189, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 30, 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 190, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 4, 6, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 191, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 11, 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 192, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 24, 14, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 193, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 41, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 194, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 24, 10, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 195, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 47, 9, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 196, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 8, 18, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 }, + { 197, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 35, 19, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 198, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 37, 15, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1 }, + { 199, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 44, 8, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 2 } + }); + + migrationBuilder.CreateIndex( + name: "IX_screenings_movie_id", + table: "screenings", + column: "movie_id"); + + migrationBuilder.CreateIndex( + name: "IX_tickets_customer_id", + table: "tickets", + column: "customer_id"); + + migrationBuilder.CreateIndex( + name: "IX_tickets_screening_id", + table: "tickets", + column: "screening_id"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "ApplicationUsers"); + + migrationBuilder.DropTable( + name: "tickets"); + + migrationBuilder.DropTable( + name: "Customers"); + + migrationBuilder.DropTable( + name: "screenings"); + + migrationBuilder.DropTable( + name: "movie"); + } + } +} diff --git a/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs b/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs index ab3f22ee..217fd1f8 100644 --- a/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs +++ b/api-cinema-challenge/api-cinema-challenge/Migrations/CinemaContextModelSnapshot.cs @@ -115,443 +115,443 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2035), - Email = "audrey hepburn@gov.gr", - Name = "Audrey Hepburn", - Phone = "24634684", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(2268) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(5796), + Email = "oprah winslet@nasa.org.us", + Name = "Oprah Winslet", + Phone = "38597758", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(5997) }, new { Id = 2, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3539), - Email = "kate hepburn@bbc.co.uk", - Name = "Kate Hepburn", - Phone = "49646097", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3540) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7059), + Email = "donald hendrix@nasa.org.us", + Name = "Donald Hendrix", + Phone = "31294393", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7060) }, new { Id = 3, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563), - Email = "charles presley@gov.nl", - Name = "Charles Presley", - Phone = "26639659", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3563) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7077), + Email = "oprah winfrey@gov.ru", + Name = "Oprah Winfrey", + Phone = "12461023", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7077) }, new { Id = 4, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3565), - Email = "donald hendrix@gov.ru", - Name = "Donald Hendrix", - Phone = "65109755", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3566) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7079), + Email = "kate windsor@nasa.org.us", + Name = "Kate Windsor", + Phone = "60877520", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7080) }, new { Id = 5, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568), - Email = "oprah middleton@gov.us", - Name = "Oprah Middleton", - Phone = "43044406", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3568) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7081), + Email = "kate trump@gov.gr", + Name = "Kate Trump", + Phone = "28214601", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7082) }, new { Id = 6, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579), - Email = "kate trump@bbc.co.uk", - Name = "Kate Trump", - Phone = "52083056", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3579) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7087), + Email = "donald winslet@theworld.ca", + Name = "Donald Winslet", + Phone = "99090594", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7087) }, new { Id = 7, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581), - Email = "charles winfrey@google.com", - Name = "Charles Winfrey", - Phone = "85242581", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3581) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7089), + Email = "jimi winslet@google.com", + Name = "Jimi Winslet", + Phone = "51342584", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7090) }, new { Id = 8, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3604), - Email = "donald windsor@gov.us", - Name = "Donald Windsor", - Phone = "57665393", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3605) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7092), + Email = "kate presley@google.com", + Name = "Kate Presley", + Phone = "24606771", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7093) }, new { Id = 9, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3606), - Email = "kate obama@google.com", - Name = "Kate Obama", - Phone = "22385849", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3607) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7094), + Email = "audrey winslet@tesla.com", + Name = "Audrey Winslet", + Phone = "35122566", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7094) }, new { Id = 10, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609), - Email = "donald windsor@something.com", - Name = "Donald Windsor", - Phone = "62639816", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3609) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7096), + Email = "barack jagger@bbc.co.uk", + Name = "Barack Jagger", + Phone = "30581375", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7096) }, new { Id = 11, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611), - Email = "charles hepburn@gov.ru", - Name = "Charles Hepburn", - Phone = "62276921", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3611) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7098), + Email = "jimi trump@gov.nl", + Name = "Jimi Trump", + Phone = "29071711", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7098) }, new { Id = 12, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613), - Email = "elvis winfrey@tesla.com", - Name = "Elvis Winfrey", - Phone = "35293476", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3613) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7107), + Email = "mick jagger@something.com", + Name = "Mick Jagger", + Phone = "71722749", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7108) }, new { Id = 13, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3614), - Email = "elvis hepburn@gov.us", - Name = "Elvis Hepburn", - Phone = "84876191", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3615) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7109), + Email = "barack middleton@gov.gr", + Name = "Barack Middleton", + Phone = "28169066", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7109) }, new { Id = 14, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616), - Email = "charles jagger@gov.ru", - Name = "Charles Jagger", - Phone = "54864917", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3616) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7111), + Email = "mick hepburn@gov.nl", + Name = "Mick Hepburn", + Phone = "46074000", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7111) }, new { Id = 15, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618), - Email = "barack winfrey@gov.ru", - Name = "Barack Winfrey", - Phone = "34106523", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3618) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7113), + Email = "barack winslet@tesla.com", + Name = "Barack Winslet", + Phone = "66728315", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7113) }, new { Id = 16, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619), - Email = "mick windsor@gov.gr", - Name = "Mick Windsor", - Phone = "52226638", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3619) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7114), + Email = "jimi middleton@theworld.ca", + Name = "Jimi Middleton", + Phone = "29909156", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7114) }, new { Id = 17, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621), - Email = "elvis hepburn@nasa.org.us", - Name = "Elvis Hepburn", - Phone = "50058133", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3621) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7115), + Email = "donald hepburn@gov.nl", + Name = "Donald Hepburn", + Phone = "24603305", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7116) }, new { Id = 18, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623), - Email = "jimi jagger@gov.us", - Name = "Jimi Jagger", - Phone = "30126005", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3623) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7117), + Email = "kate jagger@google.com", + Name = "Kate Jagger", + Phone = "90412194", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7118) }, new { Id = 19, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3624), - Email = "kate jagger@nasa.org.us", - Name = "Kate Jagger", - Phone = "28409903", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3625) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7119), + Email = "kate winfrey@gov.us", + Name = "Kate Winfrey", + Phone = "58591549", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7119) }, new { Id = 20, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626), - Email = "kate jagger@something.com", - Name = "Kate Jagger", - Phone = "27803251", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3626) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7120), + Email = "audrey windsor@gov.nl", + Name = "Audrey Windsor", + Phone = "61422617", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7120) }, new { Id = 21, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3627), - Email = "barack winslet@bbc.co.uk", - Name = "Barack Winslet", - Phone = "56314127", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3628) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7122), + Email = "charles jagger@google.com", + Name = "Charles Jagger", + Phone = "39291620", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7122) }, new { Id = 22, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629), - Email = "jimi presley@tesla.com", - Name = "Jimi Presley", - Phone = "51246437", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3629) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7123), + Email = "jimi obama@gov.us", + Name = "Jimi Obama", + Phone = "41054703", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7123) }, new { Id = 23, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3630), - Email = "kate winslet@something.com", - Name = "Kate Winslet", - Phone = "12062719", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3631) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7124), + Email = "barack jagger@theworld.ca", + Name = "Barack Jagger", + Phone = "81454823", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7125) }, new { Id = 24, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3632), - Email = "mick presley@gov.ru", - Name = "Mick Presley", - Phone = "84330792", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3633) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7126), + Email = "oprah winfrey@bbc.co.uk", + Name = "Oprah Winfrey", + Phone = "84236288", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7126) }, new { Id = 25, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634), - Email = "kate hepburn@tesla.com", - Name = "Kate Hepburn", - Phone = "60705909", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3634) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7127), + Email = "donald obama@tesla.com", + Name = "Donald Obama", + Phone = "11106320", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7128) }, new { Id = 26, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3635), - Email = "kate winslet@nasa.org.us", - Name = "Kate Winslet", - Phone = "47374763", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3636) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7129), + Email = "charles winfrey@something.com", + Name = "Charles Winfrey", + Phone = "98425086", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7129) }, new { Id = 27, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637), - Email = "audrey presley@gov.us", - Name = "Audrey Presley", - Phone = "89646824", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3637) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7130), + Email = "mick winfrey@bbc.co.uk", + Name = "Mick Winfrey", + Phone = "70070854", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7130) }, new { Id = 28, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3638), - Email = "jimi hepburn@gov.gr", - Name = "Jimi Hepburn", - Phone = "70843563", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3639) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7131), + Email = "kate presley@nasa.org.us", + Name = "Kate Presley", + Phone = "88125635", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7132) }, new { Id = 29, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640), - Email = "mick windsor@nasa.org.us", - Name = "Mick Windsor", - Phone = "21891104", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3640) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7133), + Email = "oprah winslet@gov.ru", + Name = "Oprah Winslet", + Phone = "55589125", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7133) }, new { Id = 30, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3641), - Email = "donald trump@nasa.org.us", - Name = "Donald Trump", - Phone = "77180744", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3642) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7134), + Email = "audrey windsor@something.com", + Name = "Audrey Windsor", + Phone = "87967846", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7134) }, new { Id = 31, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3648), - Email = "kate presley@gov.nl", - Name = "Kate Presley", - Phone = "18549554", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3649) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7135), + Email = "elvis middleton@gov.ru", + Name = "Elvis Middleton", + Phone = "77889124", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7136) }, new { Id = 32, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651), - Email = "kate winslet@tesla.com", - Name = "Kate Winslet", - Phone = "22886454", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3651) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7137), + Email = "charles hepburn@bbc.co.uk", + Name = "Charles Hepburn", + Phone = "41980562", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7137) }, new { Id = 33, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3652), - Email = "elvis winfrey@something.com", - Name = "Elvis Winfrey", - Phone = "44923720", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3653) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7138), + Email = "mick windsor@tesla.com", + Name = "Mick Windsor", + Phone = "46573335", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7138) }, new { Id = 34, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655), - Email = "kate winfrey@gov.nl", - Name = "Kate Winfrey", - Phone = "52713833", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3655) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7147), + Email = "audrey winfrey@tesla.com", + Name = "Audrey Winfrey", + Phone = "14297485", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7148) }, new { Id = 35, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656), - Email = "jimi hendrix@gov.nl", - Name = "Jimi Hendrix", - Phone = "69254646", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3656) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7149), + Email = "donald jagger@something.com", + Name = "Donald Jagger", + Phone = "76653793", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7149) }, new { Id = 36, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658), - Email = "barack trump@tesla.com", - Name = "Barack Trump", - Phone = "18571321", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3658) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7151), + Email = "oprah winfrey@theworld.ca", + Name = "Oprah Winfrey", + Phone = "27250815", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7151) }, new { Id = 37, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659), - Email = "elvis middleton@bbc.co.uk", - Name = "Elvis Middleton", - Phone = "66441056", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3659) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7152), + Email = "charles jagger@tesla.com", + Name = "Charles Jagger", + Phone = "22683147", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7152) }, new { Id = 38, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661), - Email = "jimi middleton@bbc.co.uk", - Name = "Jimi Middleton", - Phone = "31023577", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3661) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7153), + Email = "elvis winslet@bbc.co.uk", + Name = "Elvis Winslet", + Phone = "61709303", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7153) }, new { Id = 39, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663), - Email = "kate hendrix@gov.ru", - Name = "Kate Hendrix", - Phone = "22668985", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3663) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7154), + Email = "mick jagger@tesla.com", + Name = "Mick Jagger", + Phone = "38151327", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7155) }, new { Id = 40, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664), - Email = "kate hepburn@theworld.ca", - Name = "Kate Hepburn", - Phone = "54717904", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3664) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7156), + Email = "audrey windsor@something.com", + Name = "Audrey Windsor", + Phone = "27011355", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7156) }, new { Id = 41, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666), - Email = "elvis jagger@tesla.com", - Name = "Elvis Jagger", - Phone = "72683693", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3666) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7157), + Email = "kate winfrey@theworld.ca", + Name = "Kate Winfrey", + Phone = "37145318", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7157) }, new { Id = 42, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667), - Email = "barack middleton@nasa.org.us", - Name = "Barack Middleton", - Phone = "23610983", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3667) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7158), + Email = "audrey winfrey@something.com", + Name = "Audrey Winfrey", + Phone = "38519203", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7159) }, new { Id = 43, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669), - Email = "kate obama@bbc.co.uk", - Name = "Kate Obama", - Phone = "28499438", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3669) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7160), + Email = "charles middleton@gov.us", + Name = "Charles Middleton", + Phone = "77133526", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7160) }, new { Id = 44, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3670), - Email = "elvis middleton@gov.ru", - Name = "Elvis Middleton", - Phone = "39411817", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3671) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7161), + Email = "donald hepburn@nasa.org.us", + Name = "Donald Hepburn", + Phone = "48194121", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7162) }, new { Id = 45, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672), - Email = "jimi jagger@gov.us", - Name = "Jimi Jagger", - Phone = "54613053", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3672) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7163), + Email = "barack presley@nasa.org.us", + Name = "Barack Presley", + Phone = "18488203", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7163) }, new { Id = 46, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674), - Email = "oprah presley@bbc.co.uk", - Name = "Oprah Presley", - Phone = "80862726", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3674) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7164), + Email = "charles trump@theworld.ca", + Name = "Charles Trump", + Phone = "13162166", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7165) }, new { Id = 47, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675), - Email = "jimi obama@nasa.org.us", - Name = "Jimi Obama", - Phone = "20418161", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3675) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7166), + Email = "jimi hepburn@google.com", + Name = "Jimi Hepburn", + Phone = "23226421", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7166) }, new { Id = 48, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677), - Email = "charles hepburn@theworld.ca", - Name = "Charles Hepburn", - Phone = "17586489", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3677) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7167), + Email = "audrey jagger@gov.gr", + Name = "Audrey Jagger", + Phone = "61420949", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7167) }, new { Id = 49, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678), - Email = "oprah middleton@google.com", - Name = "Oprah Middleton", - Phone = "48095329", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(3678) + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7168), + Email = "kate obama@gov.us", + Name = "Kate Obama", + Phone = "59125783", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7168) }); }); @@ -597,42 +597,42 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4071), + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7525), Description = "Very funny", Rating = "years 11+", - RunTimeMins = 129, - Title = "A bunch of Large Flowers", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4202) + RunTimeMins = 146, + Title = "Several Rose Smelling Buildings", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(7643) }, new { Id = 2, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4757), + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8153), Description = "Very funny", - Rating = "All", - RunTimeMins = 118, - Title = "Several Green Flowers", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4758) + Rating = "years 16+", + RunTimeMins = 91, + Title = "Fifteen Microscopic Leopards", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8153) }, new { Id = 3, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762), + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8157), Description = "Very funny", - Rating = "years 16+", - RunTimeMins = 123, - Title = "Several Purple Buildings", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4762) + Rating = "years 6+", + RunTimeMins = 90, + Title = "Fifteen Microscopic Leopards", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8157) }, new { Id = 4, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4764), + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8159), Description = "Very funny", - Rating = "years 6+", - RunTimeMins = 72, - Title = "The Bitter Houses", - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(4765) + Rating = "All", + RunTimeMins = 137, + Title = "Two Transparent Cars", + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8159) }); }); @@ -677,192 +677,192 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - Capacity = 77, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5046), - MovieId = 1, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(5157) + Capacity = 89, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8777), + MovieId = 3, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(8892) }, new { Id = 2, - Capacity = 25, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6485), - MovieId = 3, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6487) + Capacity = 88, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9799), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9800) }, new { Id = 3, - Capacity = 27, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490), - MovieId = 4, + Capacity = 34, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9802), + MovieId = 3, ScreenNumber = 2, - StartsAt = new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6490) + StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9802) }, new { Id = 4, - Capacity = 84, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491), - MovieId = 4, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6491) + Capacity = 55, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9803), + MovieId = 2, + ScreenNumber = 0, + StartsAt = new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9803) }, new { Id = 5, - Capacity = 63, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492), - MovieId = 2, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6492) + Capacity = 61, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9804), + MovieId = 3, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9804) }, new { Id = 6, - Capacity = 25, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503), + Capacity = 84, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9807), MovieId = 2, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6503) + ScreenNumber = 2, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9807) }, new { Id = 7, - Capacity = 65, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504), - MovieId = 4, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6504) + Capacity = 78, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9808), + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9808) }, new { Id = 8, - Capacity = 48, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505), - MovieId = 3, + Capacity = 56, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9809), + MovieId = 2, ScreenNumber = 0, - StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6505) + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9809) }, new { Id = 9, - Capacity = 77, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506), - MovieId = 2, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6506) + Capacity = 50, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9810), + MovieId = 1, + ScreenNumber = 2, + StartsAt = new DateTime(2025, 3, 25, 15, 50, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9810) }, new { Id = 10, - Capacity = 59, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), - MovieId = 3, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508) + Capacity = 63, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9811), + MovieId = 4, + ScreenNumber = 3, + StartsAt = new DateTime(2025, 5, 1, 8, 10, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9812) }, new { Id = 11, - Capacity = 87, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6508), - MovieId = 3, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 1, 5, 8, 15, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509) + Capacity = 70, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9812), + MovieId = 1, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9813) }, new { Id = 12, - Capacity = 99, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6509), - MovieId = 2, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) + Capacity = 62, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9813), + MovieId = 4, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9813) }, new { Id = 13, - Capacity = 45, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510), - MovieId = 2, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6510) + Capacity = 43, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9814), + MovieId = 4, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9814) }, new { Id = 14, - Capacity = 38, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511), - MovieId = 2, - ScreenNumber = 1, - StartsAt = new DateTime(2025, 8, 1, 11, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6511) + Capacity = 26, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9815), + MovieId = 3, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9815) }, new { Id = 15, - Capacity = 26, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), - MovieId = 2, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512) + Capacity = 66, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9816), + MovieId = 1, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 5, 14, 16, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9816) }, new { Id = 16, - Capacity = 51, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6512), + Capacity = 66, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9823), MovieId = 2, - ScreenNumber = 4, - StartsAt = new DateTime(2025, 4, 2, 10, 5, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513) + ScreenNumber = 2, + StartsAt = new DateTime(2025, 2, 3, 7, 45, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9823) }, new { Id = 17, - Capacity = 74, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6513), - MovieId = 3, - ScreenNumber = 3, - StartsAt = new DateTime(2025, 6, 22, 13, 40, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6514) + Capacity = 86, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9824), + MovieId = 2, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 6, 7, 4, 25, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9824) }, new { Id = 18, - Capacity = 79, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515), - MovieId = 2, - ScreenNumber = 0, - StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6515) + Capacity = 54, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9826), + MovieId = 4, + ScreenNumber = 4, + StartsAt = new DateTime(2025, 2, 21, 18, 0, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9826) }, new { Id = 19, - Capacity = 40, - CreatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516), - MovieId = 2, - ScreenNumber = 2, - StartsAt = new DateTime(2025, 1, 12, 13, 30, 0, 0, DateTimeKind.Utc), - UpdatedAt = new DateTime(2025, 8, 25, 13, 15, 2, 535, DateTimeKind.Utc).AddTicks(6516) + Capacity = 65, + CreatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9826), + MovieId = 1, + ScreenNumber = 1, + StartsAt = new DateTime(2025, 7, 3, 9, 55, 0, 0, DateTimeKind.Utc), + UpdatedAt = new DateTime(2025, 8, 26, 10, 6, 24, 726, DateTimeKind.Utc).AddTicks(9827) }); }); @@ -875,6 +875,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + b.Property("CreatedAt") + .HasColumnType("timestamp with time zone"); + b.Property("CustomerId") .HasColumnType("integer") .HasColumnName("customer_id"); @@ -883,6 +886,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("integer") .HasColumnName("screening_id"); + b.Property("UpdatedAt") + .HasColumnType("timestamp with time zone"); + + b.Property("numSeats") + .HasColumnType("integer"); + b.HasKey("Id"); b.HasIndex("CustomerId"); @@ -895,1196 +904,1793 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - CustomerId = 33, - ScreeningId = 14 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 25, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 2, - CustomerId = 28, - ScreeningId = 12 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 7, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 3, - CustomerId = 17, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 5, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 4, - CustomerId = 2, - ScreeningId = 6 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 5, - CustomerId = 41, - ScreeningId = 6 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 6, - CustomerId = 42, - ScreeningId = 6 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 34, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 7, - CustomerId = 27, - ScreeningId = 13 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 8, - CustomerId = 39, - ScreeningId = 11 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 43, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 9, - CustomerId = 17, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 33, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 10, - CustomerId = 25, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 11, - CustomerId = 9, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 49, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 12, - CustomerId = 30, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 13, - CustomerId = 36, - ScreeningId = 6 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 14, - CustomerId = 41, - ScreeningId = 8 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 15, - CustomerId = 6, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 7, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 16, - CustomerId = 30, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 17, - CustomerId = 46, - ScreeningId = 16 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 48, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 18, - CustomerId = 21, - ScreeningId = 8 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 18, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 19, - CustomerId = 6, - ScreeningId = 3 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 16, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 20, - CustomerId = 47, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 21, - CustomerId = 40, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 11, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 22, - CustomerId = 28, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 32, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 23, - CustomerId = 32, - ScreeningId = 4 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 8, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 24, - CustomerId = 23, - ScreeningId = 12 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 36, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 25, - CustomerId = 12, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 26, - CustomerId = 17, - ScreeningId = 11 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 32, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 27, - CustomerId = 18, - ScreeningId = 3 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 28, - CustomerId = 34, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 27, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 29, - CustomerId = 49, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 22, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 30, - CustomerId = 7, - ScreeningId = 13 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 33, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 31, - CustomerId = 42, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 26, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 32, - CustomerId = 14, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 4, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 33, - CustomerId = 26, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 22, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 34, - CustomerId = 33, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 35, - CustomerId = 21, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 36, - CustomerId = 44, - ScreeningId = 12 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 29, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 37, - CustomerId = 28, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 38, - CustomerId = 1, - ScreeningId = 12 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 39, - CustomerId = 14, - ScreeningId = 4 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 18, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 40, - CustomerId = 1, - ScreeningId = 14 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 46, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 41, - CustomerId = 44, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 42, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), CustomerId = 29, - ScreeningId = 6 + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 43, - CustomerId = 45, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 38, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 44, - CustomerId = 37, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 18, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 45, - CustomerId = 35, - ScreeningId = 19 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 25, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 46, - CustomerId = 12, - ScreeningId = 16 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 47, - CustomerId = 44, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 16, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 48, - CustomerId = 42, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 23, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 49, - CustomerId = 28, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 38, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 50, - CustomerId = 43, - ScreeningId = 8 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 23, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 51, - CustomerId = 26, - ScreeningId = 8 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 52, - CustomerId = 44, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 53, - CustomerId = 4, - ScreeningId = 19 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 54, - CustomerId = 22, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 4, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 55, - CustomerId = 15, - ScreeningId = 3 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 28, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 56, - CustomerId = 43, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 57, - CustomerId = 43, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 36, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 58, - CustomerId = 9, - ScreeningId = 4 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 5, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 59, - CustomerId = 15, - ScreeningId = 6 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 29, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 60, - CustomerId = 22, - ScreeningId = 14 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 31, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 61, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), CustomerId = 3, - ScreeningId = 7 + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 62, - CustomerId = 43, - ScreeningId = 16 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 45, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 63, - CustomerId = 7, - ScreeningId = 4 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 34, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 64, - CustomerId = 27, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 25, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 65, - CustomerId = 13, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 66, - CustomerId = 39, - ScreeningId = 4 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 67, - CustomerId = 47, - ScreeningId = 4 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 6, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 68, - CustomerId = 21, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 69, - CustomerId = 46, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 27, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 70, - CustomerId = 14, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 36, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 71, - CustomerId = 28, - ScreeningId = 4 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 23, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 72, - CustomerId = 47, - ScreeningId = 6 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 8, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 73, - CustomerId = 5, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 10, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 74, - CustomerId = 11, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 25, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 75, - CustomerId = 46, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 37, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 76, - CustomerId = 45, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 42, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 77, - CustomerId = 6, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 40, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 78, - CustomerId = 16, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 21, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 79, - CustomerId = 36, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 80, - CustomerId = 43, - ScreeningId = 14 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 7, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 81, - CustomerId = 12, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 82, - CustomerId = 40, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 83, - CustomerId = 5, - ScreeningId = 4 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 47, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 84, - CustomerId = 36, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 5, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 85, - CustomerId = 21, - ScreeningId = 13 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 14, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 86, - CustomerId = 4, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 87, - CustomerId = 42, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 88, - CustomerId = 1, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 36, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 89, - CustomerId = 5, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 3, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 90, - CustomerId = 34, - ScreeningId = 12 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 20, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 91, - CustomerId = 35, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 41, + ScreeningId = 10, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 92, - CustomerId = 47, - ScreeningId = 8 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 19, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 93, - CustomerId = 35, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 47, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 94, - CustomerId = 5, - ScreeningId = 12 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 37, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 95, - CustomerId = 43, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 19, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 96, - CustomerId = 36, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 43, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 97, - CustomerId = 4, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 48, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 98, - CustomerId = 31, - ScreeningId = 14 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 22, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 99, - CustomerId = 25, - ScreeningId = 19 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 100, - CustomerId = 49, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 15, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 101, - CustomerId = 4, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 38, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 102, - CustomerId = 34, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 36, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 103, - CustomerId = 14, - ScreeningId = 8 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 20, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 104, - CustomerId = 28, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 49, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 105, - CustomerId = 38, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 7, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 106, - CustomerId = 7, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 14, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 107, - CustomerId = 40, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 45, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 108, - CustomerId = 22, - ScreeningId = 3 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 20, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 109, - CustomerId = 4, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 110, - CustomerId = 34, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 111, - CustomerId = 6, - ScreeningId = 6 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 112, - CustomerId = 9, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 5, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 113, - CustomerId = 39, - ScreeningId = 8 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 15, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 114, - CustomerId = 22, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 49, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 115, - CustomerId = 26, - ScreeningId = 12 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 33, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 116, - CustomerId = 34, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 23, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 117, - CustomerId = 15, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 118, - CustomerId = 41, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 48, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 119, - CustomerId = 39, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 18, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 120, - CustomerId = 14, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 46, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 121, - CustomerId = 10, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 40, + ScreeningId = 10, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 122, - CustomerId = 3, - ScreeningId = 14 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 123, - CustomerId = 16, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 20, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 124, - CustomerId = 3, - ScreeningId = 13 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 19, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 125, - CustomerId = 43, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 49, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 126, - CustomerId = 39, - ScreeningId = 16 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 42, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 127, - CustomerId = 6, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 40, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 128, - CustomerId = 20, - ScreeningId = 3 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 11, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 129, - CustomerId = 29, - ScreeningId = 12 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 130, - CustomerId = 31, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 42, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 131, - CustomerId = 10, - ScreeningId = 6 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 27, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 132, - CustomerId = 16, - ScreeningId = 3 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 29, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 133, - CustomerId = 13, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 134, - CustomerId = 17, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 33, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 135, - CustomerId = 18, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 41, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 136, - CustomerId = 41, - ScreeningId = 19 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 137, - CustomerId = 41, - ScreeningId = 13 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 10, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 138, - CustomerId = 23, - ScreeningId = 3 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 139, - CustomerId = 40, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 140, - CustomerId = 38, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 141, - CustomerId = 7, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 41, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 142, - CustomerId = 45, - ScreeningId = 6 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 47, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 143, - CustomerId = 30, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 34, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 144, - CustomerId = 14, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 2, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 145, - CustomerId = 14, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 146, - CustomerId = 23, - ScreeningId = 16 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 7, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 147, - CustomerId = 31, - ScreeningId = 16 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 2, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 148, - CustomerId = 45, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 11, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 149, - CustomerId = 3, - ScreeningId = 6 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 150, - CustomerId = 1, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 2, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 151, - CustomerId = 35, - ScreeningId = 3 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 31, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 152, - CustomerId = 1, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 16, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 153, - CustomerId = 4, - ScreeningId = 8 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 16, + ScreeningId = 13, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 154, - CustomerId = 25, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 155, - CustomerId = 32, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 4, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 156, - CustomerId = 34, - ScreeningId = 13 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 157, - CustomerId = 33, - ScreeningId = 4 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 6, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 158, - CustomerId = 24, - ScreeningId = 5 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 5, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 159, - CustomerId = 31, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 45, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 160, + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), CustomerId = 44, - ScreeningId = 15 + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 161, - CustomerId = 37, - ScreeningId = 8 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 25, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 162, - CustomerId = 3, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 40, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 163, - CustomerId = 27, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 12, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 164, - CustomerId = 40, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 8, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 165, - CustomerId = 16, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 27, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 166, - CustomerId = 26, - ScreeningId = 16 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 11, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 167, - CustomerId = 31, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 1, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 168, - CustomerId = 18, - ScreeningId = 11 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 2, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 169, - CustomerId = 30, - ScreeningId = 16 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 4, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 170, - CustomerId = 48, - ScreeningId = 11 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 17, + ScreeningId = 3, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 171, - CustomerId = 30, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 172, - CustomerId = 17, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 12, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 173, - CustomerId = 24, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 48, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 174, - CustomerId = 3, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 23, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 175, - CustomerId = 32, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 6, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 176, - CustomerId = 33, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 40, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 177, - CustomerId = 48, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 8, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 178, - CustomerId = 36, - ScreeningId = 14 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 9, + ScreeningId = 4, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 179, - CustomerId = 47, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 41, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 180, - CustomerId = 43, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 181, - CustomerId = 13, - ScreeningId = 1 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 182, - CustomerId = 19, - ScreeningId = 12 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 48, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 183, - CustomerId = 35, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 3, + ScreeningId = 7, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 184, - CustomerId = 37, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 42, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 185, - CustomerId = 28, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 5, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 186, - CustomerId = 11, - ScreeningId = 8 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 39, + ScreeningId = 17, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 187, - CustomerId = 43, - ScreeningId = 18 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 29, + ScreeningId = 16, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 188, - CustomerId = 36, - ScreeningId = 9 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 45, + ScreeningId = 1, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 189, - CustomerId = 25, - ScreeningId = 19 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 30, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 190, - CustomerId = 40, - ScreeningId = 16 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 4, + ScreeningId = 6, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 191, - CustomerId = 8, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 11, + ScreeningId = 2, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 192, - CustomerId = 23, - ScreeningId = 17 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 14, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 193, - CustomerId = 49, - ScreeningId = 7 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 41, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 194, - CustomerId = 6, - ScreeningId = 12 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 24, + ScreeningId = 10, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 195, - CustomerId = 31, - ScreeningId = 3 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 47, + ScreeningId = 9, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 196, - CustomerId = 16, - ScreeningId = 10 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 8, + ScreeningId = 18, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }, new { Id = 197, - CustomerId = 41, - ScreeningId = 4 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 35, + ScreeningId = 19, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 198, - CustomerId = 1, - ScreeningId = 2 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 37, + ScreeningId = 15, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 1 }, new { Id = 199, - CustomerId = 11, - ScreeningId = 15 + CreatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + CustomerId = 44, + ScreeningId = 8, + UpdatedAt = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + numSeats = 2 }); }); diff --git a/api-cinema-challenge/api-cinema-challenge/Models/Ticket.cs b/api-cinema-challenge/api-cinema-challenge/Models/Ticket.cs index 091bda2b..64113177 100644 --- a/api-cinema-challenge/api-cinema-challenge/Models/Ticket.cs +++ b/api-cinema-challenge/api-cinema-challenge/Models/Ticket.cs @@ -1,4 +1,5 @@ -using api_cinema_challenge.Repository; +using api_cinema_challenge.DOTs.TicketDTO; +using api_cinema_challenge.Repository; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Reflection; @@ -20,6 +21,20 @@ public class Ticket [Column("ticket_customer")] public Customer Customer { get; set; } + public int numSeats { get; set; } + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } + + public Ticket(TicketPost ticket, int screeningId, int customerId) + { + ScreeningId = screeningId; + CustomerId = customerId; + numSeats = ticket.numSeats; + } + public Ticket() + { + + } } } diff --git a/api-cinema-challenge/api-cinema-challenge/Program.cs b/api-cinema-challenge/api-cinema-challenge/Program.cs index 5ff88588..f13d155c 100644 --- a/api-cinema-challenge/api-cinema-challenge/Program.cs +++ b/api-cinema-challenge/api-cinema-challenge/Program.cs @@ -63,6 +63,7 @@ builder.Services.AddScoped, GenericRepository>(); builder.Services.AddScoped, GenericRepository>(); builder.Services.AddScoped, GenericRepository>(); +builder.Services.AddScoped, GenericRepository>(); builder.Services.AddScoped(); @@ -130,4 +131,5 @@ app.ConfigueMovie(); app.ConfigueCustomer(); app.MapControllers(); + app.Run(); diff --git a/api-cinema-challenge/api-cinema-challenge/Repository/TicketRepository.cs b/api-cinema-challenge/api-cinema-challenge/Repository/TicketRepository.cs new file mode 100644 index 00000000..744e39b5 --- /dev/null +++ b/api-cinema-challenge/api-cinema-challenge/Repository/TicketRepository.cs @@ -0,0 +1,25 @@ +using api_cinema_challenge.Data; +using api_cinema_challenge.DOTs.TicketDTO; +using api_cinema_challenge.Models; +using Microsoft.EntityFrameworkCore; + +namespace api_cinema_challenge.Repository +{ + public class TicketRepository + { + private CinemaContext _db; + public TicketRepository(CinemaContext context) + { + _db = context; + + } + + public async Task Book(TicketPost ticketPost, int customerId, int screeningId) + { + Ticket ticket = new Ticket(ticketPost, customerId, screeningId); + _db.Tickets.Add(ticket); + await _db.SaveChangesAsync(); + return ticket; + } + } +}