chore(backend): add roslynator and fix diagnostics
This commit is contained in:
parent
649988db25
commit
f8e6032449
20 changed files with 60 additions and 38 deletions
|
@ -44,18 +44,18 @@ public class DatabaseContext(DbContextOptions options) : DbContext(options)
|
|||
.UseSnakeCaseNamingConvention()
|
||||
.UseExceptionProcessor();
|
||||
|
||||
public DbSet<User> Users { get; init; }
|
||||
public DbSet<Member> Members { get; init; }
|
||||
public DbSet<AuthMethod> AuthMethods { get; init; }
|
||||
public DbSet<FediverseApplication> FediverseApplications { get; init; }
|
||||
public DbSet<Token> Tokens { get; init; }
|
||||
public DbSet<Application> Applications { get; init; }
|
||||
public DbSet<TemporaryKey> TemporaryKeys { get; init; }
|
||||
public DbSet<DataExport> DataExports { get; init; }
|
||||
public DbSet<User> Users { get; init; } = null!;
|
||||
public DbSet<Member> Members { get; init; } = null!;
|
||||
public DbSet<AuthMethod> AuthMethods { get; init; } = null!;
|
||||
public DbSet<FediverseApplication> FediverseApplications { get; init; } = null!;
|
||||
public DbSet<Token> Tokens { get; init; } = null!;
|
||||
public DbSet<Application> Applications { get; init; } = null!;
|
||||
public DbSet<TemporaryKey> TemporaryKeys { get; init; } = null!;
|
||||
public DbSet<DataExport> DataExports { get; init; } = null!;
|
||||
|
||||
public DbSet<PrideFlag> PrideFlags { get; init; }
|
||||
public DbSet<UserFlag> UserFlags { get; init; }
|
||||
public DbSet<MemberFlag> MemberFlags { get; init; }
|
||||
public DbSet<PrideFlag> PrideFlags { get; init; } = null!;
|
||||
public DbSet<UserFlag> UserFlags { get; init; } = null!;
|
||||
public DbSet<MemberFlag> MemberFlags { get; init; } = null!;
|
||||
|
||||
protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder)
|
||||
{
|
||||
|
|
|
@ -24,10 +24,7 @@ namespace Foxnouns.Backend.Database.Migrations
|
|||
client_secret = table.Column<string>(type: "text", nullable: false),
|
||||
instance_type = table.Column<int>(type: "integer", nullable: false),
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("pk_fediverse_applications", x => x.id);
|
||||
}
|
||||
constraints: table => table.PrimaryKey("pk_fediverse_applications", x => x.id)
|
||||
);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
|
@ -46,10 +43,7 @@ namespace Foxnouns.Backend.Database.Migrations
|
|||
names = table.Column<string>(type: "jsonb", nullable: false),
|
||||
pronouns = table.Column<string>(type: "jsonb", nullable: false),
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("pk_users", x => x.id);
|
||||
}
|
||||
constraints: table => table.PrimaryKey("pk_users", x => x.id)
|
||||
);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace Foxnouns.Backend.Database.Migrations
|
|||
table: "tokens",
|
||||
type: "bytea",
|
||||
nullable: false,
|
||||
defaultValue: new byte[0]
|
||||
defaultValue: Array.Empty<byte>()
|
||||
);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
|
@ -40,10 +40,7 @@ namespace Foxnouns.Backend.Database.Migrations
|
|||
scopes = table.Column<string[]>(type: "text[]", nullable: false),
|
||||
redirect_uris = table.Column<string[]>(type: "text[]", nullable: false),
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("pk_applications", x => x.id);
|
||||
}
|
||||
constraints: table => table.PrimaryKey("pk_applications", x => x.id)
|
||||
);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
|
|
|
@ -32,10 +32,7 @@ namespace Foxnouns.Backend.Database.Migrations
|
|||
nullable: false
|
||||
),
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("pk_temporary_keys", x => x.id);
|
||||
}
|
||||
constraints: table => table.PrimaryKey("pk_temporary_keys", x => x.id)
|
||||
);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue