Run code clean and fix messages (#45)
All checks were successful
Game Ideas deploy / build-test-deploy (push) Successful in 1m13s
All checks were successful
Game Ideas deploy / build-test-deploy (push) Successful in 1m13s
Reviewed-on: #45
This commit was merged in pull request #45.
This commit is contained in:
@@ -6,7 +6,7 @@ namespace GameIdeas.WebAPI.Context;
|
||||
|
||||
public class GameIdeasContext : IdentityDbContext<User>
|
||||
{
|
||||
public GameIdeasContext(DbContextOptions<GameIdeasContext> option)
|
||||
public GameIdeasContext(DbContextOptions<GameIdeasContext> option)
|
||||
: base(option)
|
||||
{
|
||||
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||
@@ -25,14 +25,16 @@ public class GameIdeasContext : IdentityDbContext<User>
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Developer>(entity => {
|
||||
modelBuilder.Entity<Developer>(entity =>
|
||||
{
|
||||
entity.ToTable("Developer");
|
||||
|
||||
entity.HasIndex(e => e.Name)
|
||||
.IsUnique();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Platform>(entity => {
|
||||
modelBuilder.Entity<Platform>(entity =>
|
||||
{
|
||||
entity.ToTable("Platform");
|
||||
|
||||
entity.HasIndex(e => e.Label)
|
||||
@@ -41,18 +43,18 @@ public class GameIdeasContext : IdentityDbContext<User>
|
||||
|
||||
modelBuilder.Entity<Property>(entity =>
|
||||
{
|
||||
entity.ToTable("Property");
|
||||
|
||||
entity.ToTable("Property");
|
||||
|
||||
entity.HasIndex(e => e.Label)
|
||||
.IsUnique();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Publisher>(entity =>
|
||||
{
|
||||
entity.ToTable("Publisher");
|
||||
modelBuilder.Entity<Publisher>(entity =>
|
||||
{
|
||||
entity.ToTable("Publisher");
|
||||
|
||||
entity.HasIndex(e => e.Name)
|
||||
.IsUnique();
|
||||
.IsUnique();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Tag>(entity =>
|
||||
|
||||
Reference in New Issue
Block a user