123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- // <auto-generated />
- using System;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
- using VCommonCoreExample.EntityFrameworkCore;
- namespace VCommonCoreExample.Migrations
- {
- [DbContext(typeof(ExampleDbContext))]
- partial class ExampleDbContextModelSnapshot : ModelSnapshot
- {
- protected override void BuildModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("Relational:MaxIdentifierLength", 64)
- .HasAnnotation("ProductVersion", "5.0.7");
- modelBuilder.Entity("VCommonCoreExample.Entity.License", b =>
- {
- b.Property<Guid>("Id")
- .HasColumnType("char(36)");
- b.Property<DateTime>("CreationTime")
- .HasColumnType("datetime(6)");
- b.Property<Guid>("CreationUserId")
- .HasColumnType("char(36)");
- b.Property<bool>("IsAbolish")
- .HasColumnType("tinyint(1)");
- b.Property<DateTime?>("LastModificationTime")
- .HasColumnType("datetime(6)");
- b.Property<Guid?>("LastModificationUserId")
- .HasColumnType("char(36)");
- b.Property<string>("Name")
- .HasColumnType("longtext");
- b.Property<string>("PermissionSet")
- .HasColumnType("longtext");
- b.HasKey("Id");
- b.ToTable("Licenses");
- });
- modelBuilder.Entity("VCommonCoreExample.Entity.Organization", b =>
- {
- b.Property<Guid>("Id")
- .HasColumnType("char(36)");
- b.Property<DateTime>("CreationTime")
- .HasColumnType("datetime(6)");
- b.Property<Guid>("CreationUserId")
- .HasColumnType("char(36)");
- b.Property<bool>("IsAbolish")
- .HasColumnType("tinyint(1)");
- b.Property<bool>("IsEnable")
- .HasColumnType("tinyint(1)");
- b.Property<DateTime?>("LastModificationTime")
- .HasColumnType("datetime(6)");
- b.Property<Guid?>("LastModificationUserId")
- .HasColumnType("char(36)");
- b.Property<string>("Name")
- .HasColumnType("longtext");
- b.Property<Guid?>("ParentOrgId")
- .HasColumnType("char(36)");
- b.HasKey("Id");
- b.ToTable("Organizations");
- });
- modelBuilder.Entity("VCommonCoreExample.Entity.Role", b =>
- {
- b.Property<Guid>("Id")
- .HasColumnType("char(36)");
- b.Property<DateTime>("CreationTime")
- .HasColumnType("datetime(6)");
- b.Property<Guid>("CreationUserId")
- .HasColumnType("char(36)");
- b.Property<bool>("IsAbolish")
- .HasColumnType("tinyint(1)");
- b.Property<DateTime?>("LastModificationTime")
- .HasColumnType("datetime(6)");
- b.Property<Guid?>("LastModificationUserId")
- .HasColumnType("char(36)");
- b.Property<string>("Name")
- .HasColumnType("longtext");
- b.Property<string>("PermissionSet")
- .HasColumnType("longtext");
- b.Property<Guid?>("TenantId")
- .HasColumnType("char(36)");
- b.HasKey("Id");
- b.HasIndex("TenantId");
- b.ToTable("Roles");
- });
- modelBuilder.Entity("VCommonCoreExample.Entity.Tenant", b =>
- {
- b.Property<Guid>("Id")
- .HasColumnType("char(36)");
- b.Property<string>("Code")
- .HasColumnType("varchar(255)");
- b.Property<DateTime>("CreationTime")
- .HasColumnType("datetime(6)");
- b.Property<Guid>("CreationUserId")
- .HasColumnType("char(36)");
- b.Property<bool>("IsAbolish")
- .HasColumnType("tinyint(1)");
- b.Property<bool>("IsEnable")
- .HasColumnType("tinyint(1)");
- b.Property<DateTime?>("LastModificationTime")
- .HasColumnType("datetime(6)");
- b.Property<Guid?>("LastModificationUserId")
- .HasColumnType("char(36)");
- b.Property<string>("Name")
- .HasColumnType("longtext");
- b.HasKey("Id");
- b.HasIndex("Code")
- .IsUnique();
- b.ToTable("Tenants");
- });
- modelBuilder.Entity("VCommonCoreExample.Entity.User", b =>
- {
- b.Property<Guid>("Id")
- .HasColumnType("char(36)");
- b.Property<DateTime>("CreationTime")
- .HasColumnType("datetime(6)");
- b.Property<Guid>("CreationUserId")
- .HasColumnType("char(36)");
- b.Property<bool>("IsAbolish")
- .HasColumnType("tinyint(1)");
- b.Property<bool>("IsEnable")
- .HasColumnType("tinyint(1)");
- b.Property<bool>("IsStaticUser")
- .HasColumnType("tinyint(1)");
- b.Property<DateTime?>("LastModificationTime")
- .HasColumnType("datetime(6)");
- b.Property<Guid?>("LastModificationUserId")
- .HasColumnType("char(36)");
- b.Property<string>("LoginName")
- .IsRequired()
- .HasColumnType("varchar(255)");
- b.Property<string>("Name")
- .IsRequired()
- .HasColumnType("longtext");
- b.Property<string>("Password")
- .IsRequired()
- .HasColumnType("longtext");
- b.Property<string>("Roles")
- .IsRequired()
- .HasColumnType("longtext");
- b.Property<Guid?>("TenantId")
- .HasColumnType("char(36)");
- b.HasKey("Id");
- b.HasIndex("TenantId");
- b.HasIndex("TenantId", "LoginName")
- .IsUnique();
- b.ToTable("Users");
- b.HasData(
- new
- {
- Id = new Guid("00000001-0002-0003-0405-060708090a0b"),
- CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
- CreationUserId = new Guid("00000000-0000-0000-0000-000000000000"),
- IsAbolish = false,
- IsEnable = true,
- IsStaticUser = true,
- LoginName = "admin",
- Name = "admin",
- Password = "AIk0zKJKWH+8N9+hHWFFZ5U26GVyNG0V+9vNUDmuX6P6XnWeQXhd3cTV0jcM/DIi8A==",
- Roles = "[]"
- });
- });
- modelBuilder.Entity("VCommonCoreExample.Entity.UserInOrganization", b =>
- {
- b.Property<Guid>("Id")
- .HasColumnType("char(36)");
- b.Property<Guid>("OrgId")
- .HasColumnType("char(36)");
- b.Property<Guid>("UserId")
- .HasColumnType("char(36)");
- b.HasKey("Id");
- b.HasIndex("OrgId");
- b.HasIndex("UserId");
- b.ToTable("UserInOrganizations");
- });
- #pragma warning restore 612, 618
- }
- }
- }
|