20230330034906_init.cs 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace BaseService.Migrations
  5. {
  6. public partial class init : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.CreateTable(
  11. name: "AbpAuditLogs",
  12. columns: table => new
  13. {
  14. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  15. ApplicationName = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true),
  16. UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  17. UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  18. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  19. TenantName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  20. ImpersonatorUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  21. ImpersonatorUserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  22. ImpersonatorTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  23. ImpersonatorTenantName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  24. ExecutionTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  25. ExecutionDuration = table.Column<int>(type: "int", nullable: false),
  26. ClientIpAddress = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  27. ClientName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
  28. ClientId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  29. CorrelationId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  30. BrowserInfo = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
  31. HttpMethod = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true),
  32. Url = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  33. Exceptions = table.Column<string>(type: "nvarchar(max)", nullable: true),
  34. Comments = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  35. HttpStatusCode = table.Column<int>(type: "int", nullable: true),
  36. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  37. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
  38. },
  39. constraints: table =>
  40. {
  41. table.PrimaryKey("PK_AbpAuditLogs", x => x.Id);
  42. });
  43. migrationBuilder.CreateTable(
  44. name: "AbpClaimTypes",
  45. columns: table => new
  46. {
  47. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  48. Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  49. Required = table.Column<bool>(type: "bit", nullable: false),
  50. IsStatic = table.Column<bool>(type: "bit", nullable: false),
  51. Regex = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
  52. RegexDescription = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
  53. Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  54. ValueType = table.Column<int>(type: "int", nullable: false),
  55. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  56. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
  57. },
  58. constraints: table =>
  59. {
  60. table.PrimaryKey("PK_AbpClaimTypes", x => x.Id);
  61. });
  62. migrationBuilder.CreateTable(
  63. name: "AbpLinkUsers",
  64. columns: table => new
  65. {
  66. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  67. SourceUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  68. SourceTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  69. TargetUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  70. TargetTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  71. },
  72. constraints: table =>
  73. {
  74. table.PrimaryKey("PK_AbpLinkUsers", x => x.Id);
  75. });
  76. migrationBuilder.CreateTable(
  77. name: "AbpOrganizationUnits",
  78. columns: table => new
  79. {
  80. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  81. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  82. ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  83. Code = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: false),
  84. DisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  85. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  86. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
  87. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  88. CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  89. LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
  90. LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  91. IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  92. DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  93. DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
  94. },
  95. constraints: table =>
  96. {
  97. table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id);
  98. table.ForeignKey(
  99. name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId",
  100. column: x => x.ParentId,
  101. principalTable: "AbpOrganizationUnits",
  102. principalColumn: "Id");
  103. });
  104. migrationBuilder.CreateTable(
  105. name: "AbpPermissionGrants",
  106. columns: table => new
  107. {
  108. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  109. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  110. Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  111. ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
  112. ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false)
  113. },
  114. constraints: table =>
  115. {
  116. table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id);
  117. });
  118. migrationBuilder.CreateTable(
  119. name: "AbpRoles",
  120. columns: table => new
  121. {
  122. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  123. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  124. Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  125. NormalizedName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  126. IsDefault = table.Column<bool>(type: "bit", nullable: false),
  127. IsStatic = table.Column<bool>(type: "bit", nullable: false),
  128. IsPublic = table.Column<bool>(type: "bit", nullable: false),
  129. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  130. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
  131. },
  132. constraints: table =>
  133. {
  134. table.PrimaryKey("PK_AbpRoles", x => x.Id);
  135. });
  136. migrationBuilder.CreateTable(
  137. name: "AbpSecurityLogs",
  138. columns: table => new
  139. {
  140. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  141. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  142. ApplicationName = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true),
  143. Identity = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true),
  144. Action = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true),
  145. UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  146. UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  147. TenantName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  148. ClientId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  149. CorrelationId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  150. ClientIpAddress = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  151. BrowserInfo = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
  152. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  153. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  154. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
  155. },
  156. constraints: table =>
  157. {
  158. table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id);
  159. });
  160. migrationBuilder.CreateTable(
  161. name: "AbpSettings",
  162. columns: table => new
  163. {
  164. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  165. Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  166. Value = table.Column<string>(type: "nvarchar(2048)", maxLength: 2048, nullable: false),
  167. ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  168. ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true)
  169. },
  170. constraints: table =>
  171. {
  172. table.PrimaryKey("PK_AbpSettings", x => x.Id);
  173. });
  174. migrationBuilder.CreateTable(
  175. name: "AbpTenants",
  176. columns: table => new
  177. {
  178. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  179. Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
  180. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  181. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
  182. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  183. CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  184. LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
  185. LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  186. IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  187. DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  188. DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
  189. },
  190. constraints: table =>
  191. {
  192. table.PrimaryKey("PK_AbpTenants", x => x.Id);
  193. });
  194. migrationBuilder.CreateTable(
  195. name: "AbpUsers",
  196. columns: table => new
  197. {
  198. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  199. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  200. UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  201. NormalizedUserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  202. Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  203. Surname = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
  204. Email = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  205. NormalizedEmail = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  206. EmailConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  207. PasswordHash = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  208. SecurityStamp = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  209. IsExternal = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  210. PhoneNumber = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true),
  211. PhoneNumberConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  212. IsActive = table.Column<bool>(type: "bit", nullable: false),
  213. TwoFactorEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  214. LockoutEnd = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true),
  215. LockoutEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  216. AccessFailedCount = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
  217. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  218. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
  219. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  220. CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  221. LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
  222. LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  223. IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  224. DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  225. DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
  226. },
  227. constraints: table =>
  228. {
  229. table.PrimaryKey("PK_AbpUsers", x => x.Id);
  230. });
  231. migrationBuilder.CreateTable(
  232. name: "base_dict",
  233. columns: table => new
  234. {
  235. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  236. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  237. Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  238. Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  239. IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  240. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  241. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
  242. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  243. CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  244. LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
  245. LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  246. },
  247. constraints: table =>
  248. {
  249. table.PrimaryKey("PK_base_dict", x => x.Id);
  250. });
  251. migrationBuilder.CreateTable(
  252. name: "base_dict_details",
  253. columns: table => new
  254. {
  255. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  256. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  257. Pid = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  258. Label = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  259. Value = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  260. Sort = table.Column<short>(type: "smallint", nullable: false),
  261. IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  262. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  263. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
  264. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  265. CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  266. LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
  267. LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  268. },
  269. constraints: table =>
  270. {
  271. table.PrimaryKey("PK_base_dict_details", x => x.Id);
  272. });
  273. migrationBuilder.CreateTable(
  274. name: "base_jobs",
  275. columns: table => new
  276. {
  277. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  278. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  279. Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  280. Enabled = table.Column<bool>(type: "bit", nullable: false),
  281. Sort = table.Column<int>(type: "int", nullable: false),
  282. Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  283. IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  284. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  285. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
  286. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  287. CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  288. LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
  289. LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  290. },
  291. constraints: table =>
  292. {
  293. table.PrimaryKey("PK_base_jobs", x => x.Id);
  294. });
  295. migrationBuilder.CreateTable(
  296. name: "base_menu",
  297. columns: table => new
  298. {
  299. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  300. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  301. FormId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  302. Pid = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  303. CategoryId = table.Column<int>(type: "int", nullable: false),
  304. Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  305. Label = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  306. Sort = table.Column<int>(type: "int", nullable: false),
  307. Path = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  308. Component = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  309. Permission = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  310. Icon = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
  311. Hidden = table.Column<bool>(type: "bit", nullable: false),
  312. AlwaysShow = table.Column<bool>(type: "bit", nullable: false),
  313. IsHost = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  314. IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  315. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  316. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
  317. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  318. CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  319. LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
  320. LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  321. },
  322. constraints: table =>
  323. {
  324. table.PrimaryKey("PK_base_menu", x => x.Id);
  325. });
  326. migrationBuilder.CreateTable(
  327. name: "base_orgs",
  328. columns: table => new
  329. {
  330. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  331. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  332. CategoryId = table.Column<short>(type: "smallint", nullable: false),
  333. Pid = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  334. Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  335. FullName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  336. Sort = table.Column<int>(type: "int", nullable: false),
  337. Leaf = table.Column<bool>(type: "bit", nullable: false),
  338. CascadeId = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  339. Enabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  340. IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
  341. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
  342. ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
  343. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  344. CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  345. LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
  346. LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  347. },
  348. constraints: table =>
  349. {
  350. table.PrimaryKey("PK_base_orgs", x => x.Id);
  351. });
  352. migrationBuilder.CreateTable(
  353. name: "base_role_menu",
  354. columns: table => new
  355. {
  356. RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  357. MenuId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  358. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  359. },
  360. constraints: table =>
  361. {
  362. table.PrimaryKey("PK_base_role_menu", x => new { x.RoleId, x.MenuId });
  363. });
  364. migrationBuilder.CreateTable(
  365. name: "base_user_jobs",
  366. columns: table => new
  367. {
  368. UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  369. JobId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  370. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  371. },
  372. constraints: table =>
  373. {
  374. table.PrimaryKey("PK_base_user_jobs", x => new { x.UserId, x.JobId });
  375. });
  376. migrationBuilder.CreateTable(
  377. name: "base_user_orgs",
  378. columns: table => new
  379. {
  380. UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  381. OrganizationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  382. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  383. },
  384. constraints: table =>
  385. {
  386. table.PrimaryKey("PK_base_user_orgs", x => new { x.UserId, x.OrganizationId });
  387. });
  388. migrationBuilder.CreateTable(
  389. name: "AbpAuditLogActions",
  390. columns: table => new
  391. {
  392. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  393. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  394. AuditLogId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  395. ServiceName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  396. MethodName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
  397. Parameters = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
  398. ExecutionTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  399. ExecutionDuration = table.Column<int>(type: "int", nullable: false),
  400. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true)
  401. },
  402. constraints: table =>
  403. {
  404. table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id);
  405. table.ForeignKey(
  406. name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId",
  407. column: x => x.AuditLogId,
  408. principalTable: "AbpAuditLogs",
  409. principalColumn: "Id",
  410. onDelete: ReferentialAction.Cascade);
  411. });
  412. migrationBuilder.CreateTable(
  413. name: "AbpEntityChanges",
  414. columns: table => new
  415. {
  416. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  417. AuditLogId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  418. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  419. ChangeTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  420. ChangeType = table.Column<byte>(type: "tinyint", nullable: false),
  421. EntityTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  422. EntityId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  423. EntityTypeFullName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  424. ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true)
  425. },
  426. constraints: table =>
  427. {
  428. table.PrimaryKey("PK_AbpEntityChanges", x => x.Id);
  429. table.ForeignKey(
  430. name: "FK_AbpEntityChanges_AbpAuditLogs_AuditLogId",
  431. column: x => x.AuditLogId,
  432. principalTable: "AbpAuditLogs",
  433. principalColumn: "Id",
  434. onDelete: ReferentialAction.Cascade);
  435. });
  436. migrationBuilder.CreateTable(
  437. name: "AbpOrganizationUnitRoles",
  438. columns: table => new
  439. {
  440. RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  441. OrganizationUnitId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  442. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  443. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  444. CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  445. },
  446. constraints: table =>
  447. {
  448. table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId });
  449. table.ForeignKey(
  450. name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId",
  451. column: x => x.OrganizationUnitId,
  452. principalTable: "AbpOrganizationUnits",
  453. principalColumn: "Id",
  454. onDelete: ReferentialAction.Cascade);
  455. table.ForeignKey(
  456. name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId",
  457. column: x => x.RoleId,
  458. principalTable: "AbpRoles",
  459. principalColumn: "Id",
  460. onDelete: ReferentialAction.Cascade);
  461. });
  462. migrationBuilder.CreateTable(
  463. name: "AbpRoleClaims",
  464. columns: table => new
  465. {
  466. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  467. RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  468. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  469. ClaimType = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  470. ClaimValue = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true)
  471. },
  472. constraints: table =>
  473. {
  474. table.PrimaryKey("PK_AbpRoleClaims", x => x.Id);
  475. table.ForeignKey(
  476. name: "FK_AbpRoleClaims_AbpRoles_RoleId",
  477. column: x => x.RoleId,
  478. principalTable: "AbpRoles",
  479. principalColumn: "Id",
  480. onDelete: ReferentialAction.Cascade);
  481. });
  482. migrationBuilder.CreateTable(
  483. name: "AbpTenantConnectionStrings",
  484. columns: table => new
  485. {
  486. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  487. Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
  488. Value = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: false)
  489. },
  490. constraints: table =>
  491. {
  492. table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name });
  493. table.ForeignKey(
  494. name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId",
  495. column: x => x.TenantId,
  496. principalTable: "AbpTenants",
  497. principalColumn: "Id",
  498. onDelete: ReferentialAction.Cascade);
  499. });
  500. migrationBuilder.CreateTable(
  501. name: "AbpUserClaims",
  502. columns: table => new
  503. {
  504. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  505. UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  506. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  507. ClaimType = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
  508. ClaimValue = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true)
  509. },
  510. constraints: table =>
  511. {
  512. table.PrimaryKey("PK_AbpUserClaims", x => x.Id);
  513. table.ForeignKey(
  514. name: "FK_AbpUserClaims_AbpUsers_UserId",
  515. column: x => x.UserId,
  516. principalTable: "AbpUsers",
  517. principalColumn: "Id",
  518. onDelete: ReferentialAction.Cascade);
  519. });
  520. migrationBuilder.CreateTable(
  521. name: "AbpUserLogins",
  522. columns: table => new
  523. {
  524. UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  525. LoginProvider = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
  526. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  527. ProviderKey = table.Column<string>(type: "nvarchar(196)", maxLength: 196, nullable: false),
  528. ProviderDisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true)
  529. },
  530. constraints: table =>
  531. {
  532. table.PrimaryKey("PK_AbpUserLogins", x => new { x.UserId, x.LoginProvider });
  533. table.ForeignKey(
  534. name: "FK_AbpUserLogins_AbpUsers_UserId",
  535. column: x => x.UserId,
  536. principalTable: "AbpUsers",
  537. principalColumn: "Id",
  538. onDelete: ReferentialAction.Cascade);
  539. });
  540. migrationBuilder.CreateTable(
  541. name: "AbpUserOrganizationUnits",
  542. columns: table => new
  543. {
  544. UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  545. OrganizationUnitId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  546. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  547. CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  548. CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  549. },
  550. constraints: table =>
  551. {
  552. table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId });
  553. table.ForeignKey(
  554. name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId",
  555. column: x => x.OrganizationUnitId,
  556. principalTable: "AbpOrganizationUnits",
  557. principalColumn: "Id",
  558. onDelete: ReferentialAction.Cascade);
  559. table.ForeignKey(
  560. name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId",
  561. column: x => x.UserId,
  562. principalTable: "AbpUsers",
  563. principalColumn: "Id",
  564. onDelete: ReferentialAction.Cascade);
  565. });
  566. migrationBuilder.CreateTable(
  567. name: "AbpUserRoles",
  568. columns: table => new
  569. {
  570. UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  571. RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  572. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
  573. },
  574. constraints: table =>
  575. {
  576. table.PrimaryKey("PK_AbpUserRoles", x => new { x.UserId, x.RoleId });
  577. table.ForeignKey(
  578. name: "FK_AbpUserRoles_AbpRoles_RoleId",
  579. column: x => x.RoleId,
  580. principalTable: "AbpRoles",
  581. principalColumn: "Id",
  582. onDelete: ReferentialAction.Cascade);
  583. table.ForeignKey(
  584. name: "FK_AbpUserRoles_AbpUsers_UserId",
  585. column: x => x.UserId,
  586. principalTable: "AbpUsers",
  587. principalColumn: "Id",
  588. onDelete: ReferentialAction.Cascade);
  589. });
  590. migrationBuilder.CreateTable(
  591. name: "AbpUserTokens",
  592. columns: table => new
  593. {
  594. UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  595. LoginProvider = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
  596. Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  597. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  598. Value = table.Column<string>(type: "nvarchar(max)", nullable: true)
  599. },
  600. constraints: table =>
  601. {
  602. table.PrimaryKey("PK_AbpUserTokens", x => new { x.UserId, x.LoginProvider, x.Name });
  603. table.ForeignKey(
  604. name: "FK_AbpUserTokens_AbpUsers_UserId",
  605. column: x => x.UserId,
  606. principalTable: "AbpUsers",
  607. principalColumn: "Id",
  608. onDelete: ReferentialAction.Cascade);
  609. });
  610. migrationBuilder.CreateTable(
  611. name: "AbpEntityPropertyChanges",
  612. columns: table => new
  613. {
  614. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  615. TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
  616. EntityChangeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  617. NewValue = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
  618. OriginalValue = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
  619. PropertyName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  620. PropertyTypeFullName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false)
  621. },
  622. constraints: table =>
  623. {
  624. table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id);
  625. table.ForeignKey(
  626. name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId",
  627. column: x => x.EntityChangeId,
  628. principalTable: "AbpEntityChanges",
  629. principalColumn: "Id",
  630. onDelete: ReferentialAction.Cascade);
  631. });
  632. migrationBuilder.CreateIndex(
  633. name: "IX_AbpAuditLogActions_AuditLogId",
  634. table: "AbpAuditLogActions",
  635. column: "AuditLogId");
  636. migrationBuilder.CreateIndex(
  637. name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime",
  638. table: "AbpAuditLogActions",
  639. columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" });
  640. migrationBuilder.CreateIndex(
  641. name: "IX_AbpAuditLogs_TenantId_ExecutionTime",
  642. table: "AbpAuditLogs",
  643. columns: new[] { "TenantId", "ExecutionTime" });
  644. migrationBuilder.CreateIndex(
  645. name: "IX_AbpAuditLogs_TenantId_UserId_ExecutionTime",
  646. table: "AbpAuditLogs",
  647. columns: new[] { "TenantId", "UserId", "ExecutionTime" });
  648. migrationBuilder.CreateIndex(
  649. name: "IX_AbpEntityChanges_AuditLogId",
  650. table: "AbpEntityChanges",
  651. column: "AuditLogId");
  652. migrationBuilder.CreateIndex(
  653. name: "IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId",
  654. table: "AbpEntityChanges",
  655. columns: new[] { "TenantId", "EntityTypeFullName", "EntityId" });
  656. migrationBuilder.CreateIndex(
  657. name: "IX_AbpEntityPropertyChanges_EntityChangeId",
  658. table: "AbpEntityPropertyChanges",
  659. column: "EntityChangeId");
  660. migrationBuilder.CreateIndex(
  661. name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId",
  662. table: "AbpLinkUsers",
  663. columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" },
  664. unique: true,
  665. filter: "[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL");
  666. migrationBuilder.CreateIndex(
  667. name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId",
  668. table: "AbpOrganizationUnitRoles",
  669. columns: new[] { "RoleId", "OrganizationUnitId" });
  670. migrationBuilder.CreateIndex(
  671. name: "IX_AbpOrganizationUnits_Code",
  672. table: "AbpOrganizationUnits",
  673. column: "Code");
  674. migrationBuilder.CreateIndex(
  675. name: "IX_AbpOrganizationUnits_ParentId",
  676. table: "AbpOrganizationUnits",
  677. column: "ParentId");
  678. migrationBuilder.CreateIndex(
  679. name: "IX_AbpPermissionGrants_TenantId_Name_ProviderName_ProviderKey",
  680. table: "AbpPermissionGrants",
  681. columns: new[] { "TenantId", "Name", "ProviderName", "ProviderKey" },
  682. unique: true,
  683. filter: "[TenantId] IS NOT NULL");
  684. migrationBuilder.CreateIndex(
  685. name: "IX_AbpRoleClaims_RoleId",
  686. table: "AbpRoleClaims",
  687. column: "RoleId");
  688. migrationBuilder.CreateIndex(
  689. name: "IX_AbpRoles_NormalizedName",
  690. table: "AbpRoles",
  691. column: "NormalizedName");
  692. migrationBuilder.CreateIndex(
  693. name: "IX_AbpSecurityLogs_TenantId_Action",
  694. table: "AbpSecurityLogs",
  695. columns: new[] { "TenantId", "Action" });
  696. migrationBuilder.CreateIndex(
  697. name: "IX_AbpSecurityLogs_TenantId_ApplicationName",
  698. table: "AbpSecurityLogs",
  699. columns: new[] { "TenantId", "ApplicationName" });
  700. migrationBuilder.CreateIndex(
  701. name: "IX_AbpSecurityLogs_TenantId_Identity",
  702. table: "AbpSecurityLogs",
  703. columns: new[] { "TenantId", "Identity" });
  704. migrationBuilder.CreateIndex(
  705. name: "IX_AbpSecurityLogs_TenantId_UserId",
  706. table: "AbpSecurityLogs",
  707. columns: new[] { "TenantId", "UserId" });
  708. migrationBuilder.CreateIndex(
  709. name: "IX_AbpSettings_Name_ProviderName_ProviderKey",
  710. table: "AbpSettings",
  711. columns: new[] { "Name", "ProviderName", "ProviderKey" },
  712. unique: true,
  713. filter: "[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL");
  714. migrationBuilder.CreateIndex(
  715. name: "IX_AbpTenants_Name",
  716. table: "AbpTenants",
  717. column: "Name");
  718. migrationBuilder.CreateIndex(
  719. name: "IX_AbpUserClaims_UserId",
  720. table: "AbpUserClaims",
  721. column: "UserId");
  722. migrationBuilder.CreateIndex(
  723. name: "IX_AbpUserLogins_LoginProvider_ProviderKey",
  724. table: "AbpUserLogins",
  725. columns: new[] { "LoginProvider", "ProviderKey" });
  726. migrationBuilder.CreateIndex(
  727. name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId",
  728. table: "AbpUserOrganizationUnits",
  729. columns: new[] { "UserId", "OrganizationUnitId" });
  730. migrationBuilder.CreateIndex(
  731. name: "IX_AbpUserRoles_RoleId_UserId",
  732. table: "AbpUserRoles",
  733. columns: new[] { "RoleId", "UserId" });
  734. migrationBuilder.CreateIndex(
  735. name: "IX_AbpUsers_Email",
  736. table: "AbpUsers",
  737. column: "Email");
  738. migrationBuilder.CreateIndex(
  739. name: "IX_AbpUsers_NormalizedEmail",
  740. table: "AbpUsers",
  741. column: "NormalizedEmail");
  742. migrationBuilder.CreateIndex(
  743. name: "IX_AbpUsers_NormalizedUserName",
  744. table: "AbpUsers",
  745. column: "NormalizedUserName");
  746. migrationBuilder.CreateIndex(
  747. name: "IX_AbpUsers_UserName",
  748. table: "AbpUsers",
  749. column: "UserName");
  750. migrationBuilder.CreateIndex(
  751. name: "IX_base_dict_Name",
  752. table: "base_dict",
  753. column: "Name");
  754. migrationBuilder.CreateIndex(
  755. name: "IX_base_dict_details_Pid",
  756. table: "base_dict_details",
  757. column: "Pid");
  758. migrationBuilder.CreateIndex(
  759. name: "IX_base_orgs_Pid",
  760. table: "base_orgs",
  761. column: "Pid");
  762. }
  763. protected override void Down(MigrationBuilder migrationBuilder)
  764. {
  765. migrationBuilder.DropTable(
  766. name: "AbpAuditLogActions");
  767. migrationBuilder.DropTable(
  768. name: "AbpClaimTypes");
  769. migrationBuilder.DropTable(
  770. name: "AbpEntityPropertyChanges");
  771. migrationBuilder.DropTable(
  772. name: "AbpLinkUsers");
  773. migrationBuilder.DropTable(
  774. name: "AbpOrganizationUnitRoles");
  775. migrationBuilder.DropTable(
  776. name: "AbpPermissionGrants");
  777. migrationBuilder.DropTable(
  778. name: "AbpRoleClaims");
  779. migrationBuilder.DropTable(
  780. name: "AbpSecurityLogs");
  781. migrationBuilder.DropTable(
  782. name: "AbpSettings");
  783. migrationBuilder.DropTable(
  784. name: "AbpTenantConnectionStrings");
  785. migrationBuilder.DropTable(
  786. name: "AbpUserClaims");
  787. migrationBuilder.DropTable(
  788. name: "AbpUserLogins");
  789. migrationBuilder.DropTable(
  790. name: "AbpUserOrganizationUnits");
  791. migrationBuilder.DropTable(
  792. name: "AbpUserRoles");
  793. migrationBuilder.DropTable(
  794. name: "AbpUserTokens");
  795. migrationBuilder.DropTable(
  796. name: "base_dict");
  797. migrationBuilder.DropTable(
  798. name: "base_dict_details");
  799. migrationBuilder.DropTable(
  800. name: "base_jobs");
  801. migrationBuilder.DropTable(
  802. name: "base_menu");
  803. migrationBuilder.DropTable(
  804. name: "base_orgs");
  805. migrationBuilder.DropTable(
  806. name: "base_role_menu");
  807. migrationBuilder.DropTable(
  808. name: "base_user_jobs");
  809. migrationBuilder.DropTable(
  810. name: "base_user_orgs");
  811. migrationBuilder.DropTable(
  812. name: "AbpEntityChanges");
  813. migrationBuilder.DropTable(
  814. name: "AbpTenants");
  815. migrationBuilder.DropTable(
  816. name: "AbpOrganizationUnits");
  817. migrationBuilder.DropTable(
  818. name: "AbpRoles");
  819. migrationBuilder.DropTable(
  820. name: "AbpUsers");
  821. migrationBuilder.DropTable(
  822. name: "AbpAuditLogs");
  823. }
  824. }
  825. }