Add Tenant basics
This commit is contained in:
+6
-2
@@ -12,8 +12,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace Emergence.data.Migrations
|
||||
{
|
||||
[DbContext(typeof(AdminDbContext))]
|
||||
[Migration("20260401053644_test")]
|
||||
partial class test
|
||||
[Migration("20260407074950_CreateTenantTable")]
|
||||
partial class CreateTenantTable
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -35,6 +35,10 @@ namespace Emergence.data.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("ConnectionString")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<bool>("IsInactive")
|
||||
.HasColumnType("bit");
|
||||
|
||||
+2
-1
@@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
namespace Emergence.data.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class test : Migration
|
||||
public partial class CreateTenantTable : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
@@ -18,6 +18,7 @@ namespace Emergence.data.Migrations
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantCode = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
CompanyName = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
ConnectionString = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
IsInactive = table.Column<bool>(type: "bit", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
@@ -32,6 +32,10 @@ namespace Emergence.data.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("ConnectionString")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<bool>("IsInactive")
|
||||
.HasColumnType("bit");
|
||||
|
||||
|
||||
@@ -16,8 +16,11 @@ namespace Emergence.data.Models
|
||||
[Required]
|
||||
public required string CompanyName { get; set; }
|
||||
|
||||
[Required]
|
||||
public required string ConnectionString { get; set; }
|
||||
[Required]
|
||||
public required bool IsInactive { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user