ExampleDbContextModelSnapshot.cs 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  6. using VCommonCoreExample.EntityFrameworkCore;
  7. namespace VCommonCoreExample.Migrations
  8. {
  9. [DbContext(typeof(ExampleDbContext))]
  10. partial class ExampleDbContextModelSnapshot : ModelSnapshot
  11. {
  12. protected override void BuildModel(ModelBuilder modelBuilder)
  13. {
  14. #pragma warning disable 612, 618
  15. modelBuilder
  16. .HasAnnotation("Relational:MaxIdentifierLength", 64)
  17. .HasAnnotation("ProductVersion", "5.0.7");
  18. modelBuilder.Entity("VCommonCoreExample.Entity.License", b =>
  19. {
  20. b.Property<Guid>("Id")
  21. .HasColumnType("char(36)");
  22. b.Property<DateTime>("CreationTime")
  23. .HasColumnType("datetime(6)");
  24. b.Property<Guid>("CreationUserId")
  25. .HasColumnType("char(36)");
  26. b.Property<bool>("IsAbolish")
  27. .HasColumnType("tinyint(1)");
  28. b.Property<DateTime?>("LastModificationTime")
  29. .HasColumnType("datetime(6)");
  30. b.Property<Guid?>("LastModificationUserId")
  31. .HasColumnType("char(36)");
  32. b.Property<string>("Name")
  33. .HasColumnType("longtext");
  34. b.Property<string>("PermissionSet")
  35. .HasColumnType("longtext");
  36. b.HasKey("Id");
  37. b.ToTable("Licenses");
  38. });
  39. modelBuilder.Entity("VCommonCoreExample.Entity.Organization", b =>
  40. {
  41. b.Property<Guid>("Id")
  42. .HasColumnType("char(36)");
  43. b.Property<DateTime>("CreationTime")
  44. .HasColumnType("datetime(6)");
  45. b.Property<Guid>("CreationUserId")
  46. .HasColumnType("char(36)");
  47. b.Property<bool>("IsAbolish")
  48. .HasColumnType("tinyint(1)");
  49. b.Property<bool>("IsEnable")
  50. .HasColumnType("tinyint(1)");
  51. b.Property<DateTime?>("LastModificationTime")
  52. .HasColumnType("datetime(6)");
  53. b.Property<Guid?>("LastModificationUserId")
  54. .HasColumnType("char(36)");
  55. b.Property<string>("Name")
  56. .HasColumnType("longtext");
  57. b.Property<Guid?>("ParentOrgId")
  58. .HasColumnType("char(36)");
  59. b.HasKey("Id");
  60. b.ToTable("Organizations");
  61. });
  62. modelBuilder.Entity("VCommonCoreExample.Entity.Role", b =>
  63. {
  64. b.Property<Guid>("Id")
  65. .HasColumnType("char(36)");
  66. b.Property<DateTime>("CreationTime")
  67. .HasColumnType("datetime(6)");
  68. b.Property<Guid>("CreationUserId")
  69. .HasColumnType("char(36)");
  70. b.Property<bool>("IsAbolish")
  71. .HasColumnType("tinyint(1)");
  72. b.Property<DateTime?>("LastModificationTime")
  73. .HasColumnType("datetime(6)");
  74. b.Property<Guid?>("LastModificationUserId")
  75. .HasColumnType("char(36)");
  76. b.Property<string>("Name")
  77. .HasColumnType("longtext");
  78. b.Property<string>("PermissionSet")
  79. .HasColumnType("longtext");
  80. b.Property<Guid?>("TenantId")
  81. .HasColumnType("char(36)");
  82. b.HasKey("Id");
  83. b.HasIndex("TenantId");
  84. b.ToTable("Roles");
  85. });
  86. modelBuilder.Entity("VCommonCoreExample.Entity.Tenant", b =>
  87. {
  88. b.Property<Guid>("Id")
  89. .HasColumnType("char(36)");
  90. b.Property<string>("Code")
  91. .HasColumnType("varchar(255)");
  92. b.Property<DateTime>("CreationTime")
  93. .HasColumnType("datetime(6)");
  94. b.Property<Guid>("CreationUserId")
  95. .HasColumnType("char(36)");
  96. b.Property<bool>("IsAbolish")
  97. .HasColumnType("tinyint(1)");
  98. b.Property<bool>("IsEnable")
  99. .HasColumnType("tinyint(1)");
  100. b.Property<DateTime?>("LastModificationTime")
  101. .HasColumnType("datetime(6)");
  102. b.Property<Guid?>("LastModificationUserId")
  103. .HasColumnType("char(36)");
  104. b.Property<string>("Name")
  105. .HasColumnType("longtext");
  106. b.HasKey("Id");
  107. b.HasIndex("Code")
  108. .IsUnique();
  109. b.ToTable("Tenants");
  110. });
  111. modelBuilder.Entity("VCommonCoreExample.Entity.User", b =>
  112. {
  113. b.Property<Guid>("Id")
  114. .HasColumnType("char(36)");
  115. b.Property<DateTime>("CreationTime")
  116. .HasColumnType("datetime(6)");
  117. b.Property<Guid>("CreationUserId")
  118. .HasColumnType("char(36)");
  119. b.Property<bool>("IsAbolish")
  120. .HasColumnType("tinyint(1)");
  121. b.Property<bool>("IsEnable")
  122. .HasColumnType("tinyint(1)");
  123. b.Property<bool>("IsStaticUser")
  124. .HasColumnType("tinyint(1)");
  125. b.Property<DateTime?>("LastModificationTime")
  126. .HasColumnType("datetime(6)");
  127. b.Property<Guid?>("LastModificationUserId")
  128. .HasColumnType("char(36)");
  129. b.Property<string>("LoginName")
  130. .IsRequired()
  131. .HasColumnType("varchar(255)");
  132. b.Property<string>("Name")
  133. .IsRequired()
  134. .HasColumnType("longtext");
  135. b.Property<string>("Password")
  136. .IsRequired()
  137. .HasColumnType("longtext");
  138. b.Property<string>("Roles")
  139. .IsRequired()
  140. .HasColumnType("longtext");
  141. b.Property<Guid?>("TenantId")
  142. .HasColumnType("char(36)");
  143. b.HasKey("Id");
  144. b.HasIndex("TenantId");
  145. b.HasIndex("TenantId", "LoginName")
  146. .IsUnique();
  147. b.ToTable("Users");
  148. b.HasData(
  149. new
  150. {
  151. Id = new Guid("00000001-0002-0003-0405-060708090a0b"),
  152. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  153. CreationUserId = new Guid("00000000-0000-0000-0000-000000000000"),
  154. IsAbolish = false,
  155. IsEnable = true,
  156. IsStaticUser = true,
  157. LoginName = "admin",
  158. Name = "admin",
  159. Password = "AIk0zKJKWH+8N9+hHWFFZ5U26GVyNG0V+9vNUDmuX6P6XnWeQXhd3cTV0jcM/DIi8A==",
  160. Roles = "[]"
  161. });
  162. });
  163. modelBuilder.Entity("VCommonCoreExample.Entity.UserInOrganization", b =>
  164. {
  165. b.Property<Guid>("Id")
  166. .HasColumnType("char(36)");
  167. b.Property<Guid>("OrgId")
  168. .HasColumnType("char(36)");
  169. b.Property<Guid>("UserId")
  170. .HasColumnType("char(36)");
  171. b.HasKey("Id");
  172. b.HasIndex("OrgId");
  173. b.HasIndex("UserId");
  174. b.ToTable("UserInOrganizations");
  175. });
  176. #pragma warning restore 612, 618
  177. }
  178. }
  179. }