♻️ refactored - removed ID from db
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
0fdc0e6af5
commit
f19dda9a42
6 changed files with 21 additions and 49 deletions
|
|
@ -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");
|
||||
});
|
||||
|
|
|
|||
Reference in a new issue