♻️ refactored - removed ID from db

Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
haraldnilsen 2023-09-19 09:35:10 +02:00
parent 0fdc0e6af5
commit f19dda9a42
6 changed files with 21 additions and 49 deletions

View file

@ -22,11 +22,8 @@ namespace backend.Migrations
modelBuilder.Entity("backend.MovieDB", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("imdbID")
.HasColumnType("text");
b.Property<string>("Poster")
.HasColumnType("text");
@ -40,10 +37,7 @@ namespace backend.Migrations
b.Property<string>("Year")
.HasColumnType("text");
b.Property<string>("imdbID")
.HasColumnType("text");
b.HasKey("Id");
b.HasKey("imdbID");
b.ToTable("Movies");
});