VberAdminDbContextModelSnapshot.cs 85 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Metadata;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. using VberAdmin.EntityFrameworkCore;
  8. #nullable disable
  9. namespace VberAdmin.Migrations
  10. {
  11. [DbContext(typeof(VberAdminDbContext))]
  12. partial class VberAdminDbContextModelSnapshot : ModelSnapshot
  13. {
  14. protected override void BuildModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("ProductVersion", "6.0.0")
  19. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  20. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
  21. modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b =>
  22. {
  23. b.Property<long>("Id")
  24. .ValueGeneratedOnAdd()
  25. .HasColumnType("bigint");
  26. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  27. b.Property<DateTime>("CreationTime")
  28. .HasColumnType("datetime2");
  29. b.Property<long?>("CreatorUserId")
  30. .HasColumnType("bigint");
  31. b.Property<bool>("IsAbandoned")
  32. .HasColumnType("bit");
  33. b.Property<string>("JobArgs")
  34. .IsRequired()
  35. .HasMaxLength(1048576)
  36. .HasColumnType("nvarchar(max)");
  37. b.Property<string>("JobType")
  38. .IsRequired()
  39. .HasMaxLength(512)
  40. .HasColumnType("nvarchar(512)");
  41. b.Property<DateTime?>("LastTryTime")
  42. .HasColumnType("datetime2");
  43. b.Property<DateTime>("NextTryTime")
  44. .HasColumnType("datetime2");
  45. b.Property<byte>("Priority")
  46. .HasColumnType("tinyint");
  47. b.Property<short>("TryCount")
  48. .HasColumnType("smallint");
  49. b.HasKey("Id");
  50. b.HasIndex("IsAbandoned", "NextTryTime");
  51. b.ToTable("Sys_BackgroundJobs", (string)null);
  52. });
  53. modelBuilder.Entity("Abp.Notifications.NotificationInfo", b =>
  54. {
  55. b.Property<Guid>("Id")
  56. .ValueGeneratedOnAdd()
  57. .HasColumnType("uniqueidentifier");
  58. b.Property<DateTime>("CreationTime")
  59. .HasColumnType("datetime2");
  60. b.Property<long?>("CreatorUserId")
  61. .HasColumnType("bigint");
  62. b.Property<string>("Data")
  63. .HasMaxLength(1048576)
  64. .HasColumnType("nvarchar(max)");
  65. b.Property<string>("DataTypeName")
  66. .HasMaxLength(512)
  67. .HasColumnType("nvarchar(512)");
  68. b.Property<string>("EntityId")
  69. .HasMaxLength(96)
  70. .HasColumnType("nvarchar(96)");
  71. b.Property<string>("EntityTypeAssemblyQualifiedName")
  72. .HasMaxLength(512)
  73. .HasColumnType("nvarchar(512)");
  74. b.Property<string>("EntityTypeName")
  75. .HasMaxLength(250)
  76. .HasColumnType("nvarchar(250)");
  77. b.Property<string>("ExcludedUserIds")
  78. .HasMaxLength(131072)
  79. .HasColumnType("nvarchar(max)");
  80. b.Property<string>("NotificationName")
  81. .IsRequired()
  82. .HasMaxLength(96)
  83. .HasColumnType("nvarchar(96)");
  84. b.Property<byte>("Severity")
  85. .HasColumnType("tinyint");
  86. b.Property<string>("TenantIds")
  87. .HasMaxLength(131072)
  88. .HasColumnType("nvarchar(max)");
  89. b.Property<string>("UserIds")
  90. .HasMaxLength(131072)
  91. .HasColumnType("nvarchar(max)");
  92. b.HasKey("Id");
  93. b.ToTable("Sys_Notifications", (string)null);
  94. });
  95. modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b =>
  96. {
  97. b.Property<Guid>("Id")
  98. .ValueGeneratedOnAdd()
  99. .HasColumnType("uniqueidentifier");
  100. b.Property<DateTime>("CreationTime")
  101. .HasColumnType("datetime2");
  102. b.Property<long?>("CreatorUserId")
  103. .HasColumnType("bigint");
  104. b.Property<string>("EntityId")
  105. .HasMaxLength(96)
  106. .HasColumnType("nvarchar(96)");
  107. b.Property<string>("EntityTypeAssemblyQualifiedName")
  108. .HasMaxLength(512)
  109. .HasColumnType("nvarchar(512)");
  110. b.Property<string>("EntityTypeName")
  111. .HasMaxLength(250)
  112. .HasColumnType("nvarchar(250)");
  113. b.Property<string>("NotificationName")
  114. .HasMaxLength(96)
  115. .HasColumnType("nvarchar(96)");
  116. b.Property<int?>("TenantId")
  117. .HasColumnType("int");
  118. b.Property<long>("UserId")
  119. .HasColumnType("bigint");
  120. b.HasKey("Id");
  121. b.HasIndex("UserId", "TenantId");
  122. b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId");
  123. b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId");
  124. b.ToTable("Sys_NotificationSubscriptions", (string)null);
  125. });
  126. modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b =>
  127. {
  128. b.Property<Guid>("Id")
  129. .ValueGeneratedOnAdd()
  130. .HasColumnType("uniqueidentifier");
  131. b.Property<DateTime>("CreationTime")
  132. .HasColumnType("datetime2");
  133. b.Property<long?>("CreatorUserId")
  134. .HasColumnType("bigint");
  135. b.Property<string>("Data")
  136. .HasMaxLength(1048576)
  137. .HasColumnType("nvarchar(max)");
  138. b.Property<string>("DataTypeName")
  139. .HasMaxLength(512)
  140. .HasColumnType("nvarchar(512)");
  141. b.Property<string>("EntityId")
  142. .HasMaxLength(96)
  143. .HasColumnType("nvarchar(96)");
  144. b.Property<string>("EntityTypeAssemblyQualifiedName")
  145. .HasMaxLength(512)
  146. .HasColumnType("nvarchar(512)");
  147. b.Property<string>("EntityTypeName")
  148. .HasMaxLength(250)
  149. .HasColumnType("nvarchar(250)");
  150. b.Property<string>("NotificationName")
  151. .IsRequired()
  152. .HasMaxLength(96)
  153. .HasColumnType("nvarchar(96)");
  154. b.Property<byte>("Severity")
  155. .HasColumnType("tinyint");
  156. b.Property<int?>("TenantId")
  157. .HasColumnType("int");
  158. b.HasKey("Id");
  159. b.HasIndex("TenantId");
  160. b.ToTable("Sys_TenantNotifications", (string)null);
  161. });
  162. modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b =>
  163. {
  164. b.Property<Guid>("Id")
  165. .ValueGeneratedOnAdd()
  166. .HasColumnType("uniqueidentifier");
  167. b.Property<DateTime>("CreationTime")
  168. .HasColumnType("datetime2");
  169. b.Property<int>("State")
  170. .HasColumnType("int");
  171. b.Property<int?>("TenantId")
  172. .HasColumnType("int");
  173. b.Property<Guid>("TenantNotificationId")
  174. .HasColumnType("uniqueidentifier");
  175. b.Property<long>("UserId")
  176. .HasColumnType("bigint");
  177. b.HasKey("Id");
  178. b.HasIndex("UserId", "TenantId");
  179. b.HasIndex("UserId", "State", "CreationTime");
  180. b.ToTable("Sys_UserNotifications", (string)null);
  181. });
  182. modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b =>
  183. {
  184. b.Property<Guid>("Id")
  185. .ValueGeneratedOnAdd()
  186. .HasColumnType("uniqueidentifier");
  187. b.Property<DateTime>("CreationTime")
  188. .HasColumnType("datetime2");
  189. b.Property<string>("Data")
  190. .HasColumnType("nvarchar(max)");
  191. b.Property<DateTime?>("DeletionTime")
  192. .HasColumnType("datetime2");
  193. b.Property<bool>("IsDeleted")
  194. .HasColumnType("bit");
  195. b.Property<int?>("TenantId")
  196. .HasColumnType("int");
  197. b.Property<string>("WebhookName")
  198. .IsRequired()
  199. .HasColumnType("nvarchar(max)");
  200. b.HasKey("Id");
  201. b.HasIndex("TenantId");
  202. b.ToTable("Sys_WebhookEvents", (string)null);
  203. });
  204. modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b =>
  205. {
  206. b.Property<Guid>("Id")
  207. .ValueGeneratedOnAdd()
  208. .HasColumnType("uniqueidentifier");
  209. b.Property<DateTime>("CreationTime")
  210. .HasColumnType("datetime2");
  211. b.Property<DateTime?>("LastModificationTime")
  212. .HasColumnType("datetime2");
  213. b.Property<string>("Response")
  214. .HasColumnType("nvarchar(max)");
  215. b.Property<int?>("ResponseStatusCode")
  216. .HasColumnType("int");
  217. b.Property<int?>("TenantId")
  218. .HasColumnType("int");
  219. b.Property<Guid>("WebhookEventId")
  220. .HasColumnType("uniqueidentifier");
  221. b.Property<Guid>("WebhookSubscriptionId")
  222. .HasColumnType("uniqueidentifier");
  223. b.HasKey("Id");
  224. b.HasIndex("TenantId");
  225. b.HasIndex("WebhookEventId");
  226. b.ToTable("Sys_WebhookSendAttempts", (string)null);
  227. });
  228. modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b =>
  229. {
  230. b.Property<Guid>("Id")
  231. .ValueGeneratedOnAdd()
  232. .HasColumnType("uniqueidentifier");
  233. b.Property<DateTime>("CreationTime")
  234. .HasColumnType("datetime2");
  235. b.Property<long?>("CreatorUserId")
  236. .HasColumnType("bigint");
  237. b.Property<string>("Headers")
  238. .HasColumnType("nvarchar(max)");
  239. b.Property<bool>("IsActive")
  240. .HasColumnType("bit");
  241. b.Property<string>("Secret")
  242. .IsRequired()
  243. .HasColumnType("nvarchar(max)");
  244. b.Property<int?>("TenantId")
  245. .HasColumnType("int");
  246. b.Property<string>("WebhookUri")
  247. .IsRequired()
  248. .HasColumnType("nvarchar(max)");
  249. b.Property<string>("Webhooks")
  250. .HasColumnType("nvarchar(max)");
  251. b.HasKey("Id");
  252. b.HasIndex("TenantId");
  253. b.ToTable("Sys_WebhookSubscriptions", (string)null);
  254. });
  255. modelBuilder.Entity("VberZero.BaseSystem.AuditLog", b =>
  256. {
  257. b.Property<long>("Id")
  258. .ValueGeneratedOnAdd()
  259. .HasColumnType("bigint");
  260. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  261. b.Property<string>("BrowserInfo")
  262. .HasMaxLength(512)
  263. .HasColumnType("nvarchar(512)");
  264. b.Property<string>("ClientIpAddress")
  265. .HasMaxLength(64)
  266. .HasColumnType("nvarchar(64)");
  267. b.Property<string>("ClientName")
  268. .HasMaxLength(128)
  269. .HasColumnType("nvarchar(128)");
  270. b.Property<string>("CustomData")
  271. .HasMaxLength(2000)
  272. .HasColumnType("nvarchar(2000)");
  273. b.Property<string>("Exception")
  274. .HasMaxLength(2000)
  275. .HasColumnType("nvarchar(2000)");
  276. b.Property<string>("ExceptionMessage")
  277. .HasMaxLength(1024)
  278. .HasColumnType("nvarchar(1024)");
  279. b.Property<int>("ExecutionDuration")
  280. .HasColumnType("int");
  281. b.Property<DateTime>("ExecutionTime")
  282. .HasColumnType("datetime2");
  283. b.Property<int?>("ImpersonatorTenantId")
  284. .HasColumnType("int");
  285. b.Property<long?>("ImpersonatorUserId")
  286. .HasColumnType("bigint");
  287. b.Property<int>("LogType")
  288. .HasColumnType("int");
  289. b.Property<string>("MethodName")
  290. .HasMaxLength(256)
  291. .HasColumnType("nvarchar(256)");
  292. b.Property<string>("MethodNameLang")
  293. .HasColumnType("nvarchar(max)");
  294. b.Property<string>("Parameters")
  295. .HasMaxLength(1024)
  296. .HasColumnType("nvarchar(1024)");
  297. b.Property<string>("ReturnValue")
  298. .HasColumnType("nvarchar(max)");
  299. b.Property<string>("ServiceName")
  300. .HasMaxLength(256)
  301. .HasColumnType("nvarchar(256)");
  302. b.Property<string>("ServiceNameLang")
  303. .HasColumnType("nvarchar(max)");
  304. b.Property<int?>("TenantId")
  305. .HasColumnType("int");
  306. b.Property<long?>("UserId")
  307. .HasColumnType("bigint");
  308. b.HasKey("Id");
  309. b.HasIndex("TenantId", "ExecutionDuration");
  310. b.HasIndex("TenantId", "ExecutionTime");
  311. b.HasIndex("TenantId", "UserId");
  312. b.HasIndex("UserId", "TenantId");
  313. b.ToTable("Sys_AuditLogs", (string)null);
  314. });
  315. modelBuilder.Entity("VberZero.BaseSystem.CommonWorkflowAuditorInfo", b =>
  316. {
  317. b.Property<string>("Id")
  318. .HasMaxLength(32)
  319. .HasColumnType("nvarchar(32)");
  320. b.Property<DateTime?>("AuditTime")
  321. .HasColumnType("datetime2");
  322. b.Property<DateTime>("CreationTime")
  323. .HasColumnType("datetime2");
  324. b.Property<long?>("CreatorUserId")
  325. .HasColumnType("bigint");
  326. b.Property<string>("ExecutionPointerId")
  327. .HasMaxLength(32)
  328. .HasColumnType("nvarchar(32)");
  329. b.Property<string>("Remark")
  330. .HasMaxLength(500)
  331. .HasColumnType("nvarchar(500)");
  332. b.Property<int>("Status")
  333. .HasColumnType("int");
  334. b.Property<int?>("TenantId")
  335. .HasColumnType("int");
  336. b.Property<string>("UserHeadPhoto")
  337. .HasColumnType("nvarchar(max)");
  338. b.Property<long>("UserId")
  339. .HasColumnType("bigint");
  340. b.Property<string>("UserIdentityName")
  341. .HasColumnType("nvarchar(max)");
  342. b.Property<string>("WorkflowId")
  343. .HasMaxLength(32)
  344. .HasColumnType("nvarchar(32)");
  345. b.HasKey("Id");
  346. b.HasIndex("ExecutionPointerId");
  347. b.HasIndex("WorkflowId");
  348. b.HasIndex("UserId", "TenantId");
  349. b.ToTable("Sys_WorkflowAuditor");
  350. });
  351. modelBuilder.Entity("VberZero.BaseSystem.MultiTenancy.Tenant", b =>
  352. {
  353. b.Property<int>("Id")
  354. .ValueGeneratedOnAdd()
  355. .HasColumnType("int");
  356. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  357. b.Property<string>("ConnectionString")
  358. .HasMaxLength(1024)
  359. .HasColumnType("nvarchar(1024)");
  360. b.Property<DateTime>("CreationTime")
  361. .HasColumnType("datetime2");
  362. b.Property<long?>("CreatorUserId")
  363. .HasColumnType("bigint");
  364. b.Property<long?>("DeleterUserId")
  365. .HasColumnType("bigint");
  366. b.Property<DateTime?>("DeletionTime")
  367. .HasColumnType("datetime2");
  368. b.Property<bool>("IsActive")
  369. .HasColumnType("bit");
  370. b.Property<bool>("IsDeleted")
  371. .HasColumnType("bit");
  372. b.Property<DateTime?>("LastModificationTime")
  373. .HasColumnType("datetime2");
  374. b.Property<long?>("LastModifierUserId")
  375. .HasColumnType("bigint");
  376. b.Property<string>("Name")
  377. .IsRequired()
  378. .HasMaxLength(128)
  379. .HasColumnType("nvarchar(128)");
  380. b.Property<string>("TenancyName")
  381. .IsRequired()
  382. .HasMaxLength(64)
  383. .HasColumnType("nvarchar(64)");
  384. b.HasKey("Id");
  385. b.HasIndex("CreatorUserId");
  386. b.HasIndex("DeleterUserId");
  387. b.HasIndex("LastModifierUserId");
  388. b.HasIndex("TenancyName");
  389. b.ToTable("Sys_Tenants", (string)null);
  390. });
  391. modelBuilder.Entity("VberZero.BaseSystem.Organizations.OrganizationUnit", b =>
  392. {
  393. b.Property<long>("Id")
  394. .ValueGeneratedOnAdd()
  395. .HasColumnType("bigint");
  396. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  397. b.Property<string>("Code")
  398. .IsRequired()
  399. .HasMaxLength(95)
  400. .HasColumnType("nvarchar(95)");
  401. b.Property<DateTime>("CreationTime")
  402. .HasColumnType("datetime2");
  403. b.Property<long?>("CreatorUserId")
  404. .HasColumnType("bigint");
  405. b.Property<long?>("DeleterUserId")
  406. .HasColumnType("bigint");
  407. b.Property<DateTime?>("DeletionTime")
  408. .HasColumnType("datetime2");
  409. b.Property<string>("DisplayName")
  410. .IsRequired()
  411. .HasMaxLength(128)
  412. .HasColumnType("nvarchar(128)");
  413. b.Property<bool>("IsDeleted")
  414. .HasColumnType("bit");
  415. b.Property<bool>("IsLeaf")
  416. .HasColumnType("bit");
  417. b.Property<DateTime?>("LastModificationTime")
  418. .HasColumnType("datetime2");
  419. b.Property<long?>("LastModifierUserId")
  420. .HasColumnType("bigint");
  421. b.Property<long?>("ParentId")
  422. .HasColumnType("bigint");
  423. b.Property<string>("Path")
  424. .HasColumnType("nvarchar(max)");
  425. b.Property<int?>("TenantId")
  426. .HasColumnType("int");
  427. b.HasKey("Id");
  428. b.HasIndex("ParentId");
  429. b.HasIndex("TenantId");
  430. b.HasIndex("TenantId", "Code");
  431. b.ToTable("Sys_OrganizationUnits", (string)null);
  432. });
  433. modelBuilder.Entity("VberZero.BaseSystem.Organizations.OrganizationUnitRole", b =>
  434. {
  435. b.Property<long>("Id")
  436. .ValueGeneratedOnAdd()
  437. .HasColumnType("bigint");
  438. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  439. b.Property<DateTime>("CreationTime")
  440. .HasColumnType("datetime2");
  441. b.Property<long?>("CreatorUserId")
  442. .HasColumnType("bigint");
  443. b.Property<bool>("IsDeleted")
  444. .HasColumnType("bit");
  445. b.Property<long>("OrganizationUnitId")
  446. .HasColumnType("bigint");
  447. b.Property<int>("RoleId")
  448. .HasColumnType("int");
  449. b.Property<int?>("TenantId")
  450. .HasColumnType("int");
  451. b.HasKey("Id");
  452. b.HasIndex("TenantId");
  453. b.HasIndex("TenantId", "OrganizationUnitId");
  454. b.HasIndex("TenantId", "RoleId");
  455. b.ToTable("Sys_OrganizationUnitRoles", (string)null);
  456. });
  457. modelBuilder.Entity("VberZero.BaseSystem.PermissionSetting", b =>
  458. {
  459. b.Property<long>("Id")
  460. .ValueGeneratedOnAdd()
  461. .HasColumnType("bigint");
  462. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  463. b.Property<int?>("Access")
  464. .HasColumnType("int");
  465. b.Property<string>("AccessValue")
  466. .HasMaxLength(500)
  467. .HasColumnType("nvarchar(500)");
  468. b.Property<DateTime>("CreationTime")
  469. .HasColumnType("datetime2");
  470. b.Property<long?>("CreatorUserId")
  471. .HasColumnType("bigint");
  472. b.Property<string>("Discriminator")
  473. .IsRequired()
  474. .HasColumnType("nvarchar(max)");
  475. b.Property<bool>("IsGranted")
  476. .HasColumnType("bit");
  477. b.Property<int?>("Master")
  478. .HasColumnType("int");
  479. b.Property<string>("MasterValue")
  480. .HasMaxLength(100)
  481. .HasColumnType("nvarchar(100)");
  482. b.Property<string>("Name")
  483. .IsRequired()
  484. .HasMaxLength(128)
  485. .HasColumnType("nvarchar(128)");
  486. b.Property<int?>("TenantId")
  487. .HasColumnType("int");
  488. b.HasKey("Id");
  489. b.HasIndex("TenantId");
  490. b.HasIndex("TenantId", "Name");
  491. b.ToTable("Sys_Permissions", (string)null);
  492. b.HasDiscriminator<string>("Discriminator").HasValue("PermissionSetting");
  493. });
  494. modelBuilder.Entity("VberZero.BaseSystem.Roles.Role", b =>
  495. {
  496. b.Property<int>("Id")
  497. .ValueGeneratedOnAdd()
  498. .HasColumnType("int");
  499. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  500. b.Property<int>("AccountType")
  501. .HasColumnType("int");
  502. b.Property<string>("ConcurrencyStamp")
  503. .IsConcurrencyToken()
  504. .HasMaxLength(128)
  505. .HasColumnType("nvarchar(128)");
  506. b.Property<DateTime>("CreationTime")
  507. .HasColumnType("datetime2");
  508. b.Property<long?>("CreatorUserId")
  509. .HasColumnType("bigint");
  510. b.Property<long?>("DeleterUserId")
  511. .HasColumnType("bigint");
  512. b.Property<DateTime?>("DeletionTime")
  513. .HasColumnType("datetime2");
  514. b.Property<string>("Description")
  515. .HasMaxLength(5000)
  516. .HasColumnType("nvarchar(max)");
  517. b.Property<string>("DisplayName")
  518. .IsRequired()
  519. .HasMaxLength(64)
  520. .HasColumnType("nvarchar(64)");
  521. b.Property<bool>("IsDefault")
  522. .HasColumnType("bit");
  523. b.Property<bool>("IsDeleted")
  524. .HasColumnType("bit");
  525. b.Property<bool>("IsStatic")
  526. .HasColumnType("bit");
  527. b.Property<DateTime?>("LastModificationTime")
  528. .HasColumnType("datetime2");
  529. b.Property<long?>("LastModifierUserId")
  530. .HasColumnType("bigint");
  531. b.Property<string>("Name")
  532. .IsRequired()
  533. .HasMaxLength(32)
  534. .HasColumnType("nvarchar(32)");
  535. b.Property<string>("NormalizedName")
  536. .IsRequired()
  537. .HasMaxLength(32)
  538. .HasColumnType("nvarchar(32)");
  539. b.Property<int?>("TenantId")
  540. .HasColumnType("int");
  541. b.Property<int>("UserType")
  542. .HasColumnType("int");
  543. b.HasKey("Id");
  544. b.HasIndex("CreatorUserId");
  545. b.HasIndex("DeleterUserId");
  546. b.HasIndex("LastModifierUserId");
  547. b.HasIndex("TenantId");
  548. b.HasIndex("TenantId", "NormalizedName");
  549. b.ToTable("Sys_Roles", (string)null);
  550. });
  551. modelBuilder.Entity("VberZero.BaseSystem.Roles.RoleClaim", b =>
  552. {
  553. b.Property<long>("Id")
  554. .ValueGeneratedOnAdd()
  555. .HasColumnType("bigint");
  556. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  557. b.Property<string>("ClaimType")
  558. .HasMaxLength(256)
  559. .HasColumnType("nvarchar(256)");
  560. b.Property<string>("ClaimValue")
  561. .HasColumnType("nvarchar(max)");
  562. b.Property<DateTime>("CreationTime")
  563. .HasColumnType("datetime2");
  564. b.Property<long?>("CreatorUserId")
  565. .HasColumnType("bigint");
  566. b.Property<int>("RoleId")
  567. .HasColumnType("int");
  568. b.Property<int?>("TenantId")
  569. .HasColumnType("int");
  570. b.HasKey("Id");
  571. b.HasIndex("RoleId");
  572. b.HasIndex("TenantId");
  573. b.HasIndex("TenantId", "ClaimType");
  574. b.ToTable("Sys_RoleClaims", (string)null);
  575. });
  576. modelBuilder.Entity("VberZero.BaseSystem.SysAttach", b =>
  577. {
  578. b.Property<int>("Id")
  579. .ValueGeneratedOnAdd()
  580. .HasColumnType("int");
  581. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  582. b.Property<string>("CodeKey")
  583. .HasMaxLength(100)
  584. .HasColumnType("nvarchar(100)");
  585. b.Property<DateTime>("CreationTime")
  586. .HasColumnType("datetime2");
  587. b.Property<long?>("CreatorUserId")
  588. .HasColumnType("bigint");
  589. b.Property<string>("Description")
  590. .HasMaxLength(500)
  591. .HasColumnType("nvarchar(500)");
  592. b.Property<string>("FileExt")
  593. .HasMaxLength(10)
  594. .HasColumnType("nvarchar(10)");
  595. b.Property<string>("FileName")
  596. .HasMaxLength(200)
  597. .HasColumnType("nvarchar(200)");
  598. b.Property<string>("FilePath")
  599. .HasMaxLength(1000)
  600. .HasColumnType("nvarchar(1000)");
  601. b.Property<string>("FileTitle")
  602. .HasMaxLength(200)
  603. .HasColumnType("nvarchar(200)");
  604. b.Property<int>("FileType")
  605. .HasColumnType("int");
  606. b.Property<string>("SourceKey")
  607. .HasMaxLength(100)
  608. .HasColumnType("nvarchar(100)");
  609. b.Property<int?>("TenantId")
  610. .HasColumnType("int");
  611. b.HasKey("Id");
  612. b.HasIndex("CreatorUserId");
  613. b.HasIndex("TenantId");
  614. b.ToTable("Sys_Attaches", (string)null);
  615. });
  616. modelBuilder.Entity("VberZero.BaseSystem.SysAutoCompleteQuery", b =>
  617. {
  618. b.Property<int>("Id")
  619. .ValueGeneratedOnAdd()
  620. .HasColumnType("int");
  621. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  622. b.Property<string>("CodeKey")
  623. .HasMaxLength(100)
  624. .HasColumnType("nvarchar(100)");
  625. b.Property<string>("ExtensionData")
  626. .HasColumnType("nvarchar(max)");
  627. b.Property<DateTime>("LastUseDate")
  628. .HasColumnType("datetime2");
  629. b.Property<string>("NameKey")
  630. .HasMaxLength(100)
  631. .HasColumnType("nvarchar(100)");
  632. b.Property<string>("Remark")
  633. .HasMaxLength(500)
  634. .HasColumnType("nvarchar(500)");
  635. b.Property<int>("UseCount")
  636. .HasColumnType("int");
  637. b.Property<string>("ValueKey")
  638. .HasMaxLength(100)
  639. .HasColumnType("nvarchar(100)");
  640. b.HasKey("Id");
  641. b.ToTable("Sys_AutoCompleteQueries", (string)null);
  642. });
  643. modelBuilder.Entity("VberZero.BaseSystem.SysCalendar", b =>
  644. {
  645. b.Property<int>("Id")
  646. .ValueGeneratedOnAdd()
  647. .HasColumnType("int");
  648. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  649. b.Property<bool>("AllDay")
  650. .HasColumnType("bit");
  651. b.Property<string>("Colors")
  652. .HasMaxLength(100)
  653. .HasColumnType("nvarchar(100)");
  654. b.Property<DateTime>("CreationTime")
  655. .HasColumnType("datetime2");
  656. b.Property<long?>("CreatorUserId")
  657. .HasColumnType("bigint");
  658. b.Property<string>("Description")
  659. .HasMaxLength(1000)
  660. .HasColumnType("nvarchar(1000)");
  661. b.Property<DateTime?>("End")
  662. .HasColumnType("datetime2");
  663. b.Property<bool>("IsNotify")
  664. .HasColumnType("bit");
  665. b.Property<string>("JobId")
  666. .HasMaxLength(20)
  667. .HasColumnType("nvarchar(20)");
  668. b.Property<DateTime?>("LastModificationTime")
  669. .HasColumnType("datetime2");
  670. b.Property<long?>("LastModifierUserId")
  671. .HasColumnType("bigint");
  672. b.Property<string>("NotifyType")
  673. .HasMaxLength(20)
  674. .HasColumnType("nvarchar(20)");
  675. b.Property<long?>("OwnerId")
  676. .HasColumnType("bigint");
  677. b.Property<DateTime?>("Start")
  678. .HasColumnType("datetime2");
  679. b.Property<string>("Title")
  680. .HasMaxLength(500)
  681. .HasColumnType("nvarchar(500)");
  682. b.HasKey("Id");
  683. b.HasIndex("CreatorUserId");
  684. b.HasIndex("LastModifierUserId");
  685. b.HasIndex("OwnerId");
  686. b.ToTable("Sys_Calendars", (string)null);
  687. });
  688. modelBuilder.Entity("VberZero.BaseSystem.SysFunction", b =>
  689. {
  690. b.Property<int?>("Id")
  691. .ValueGeneratedOnAdd()
  692. .HasColumnType("int");
  693. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int?>("Id"), 1L, 1);
  694. b.Property<string>("Class")
  695. .HasMaxLength(100)
  696. .HasColumnType("nvarchar(100)");
  697. b.Property<DateTime>("CreationTime")
  698. .HasColumnType("datetime2");
  699. b.Property<long?>("CreatorUserId")
  700. .HasColumnType("bigint");
  701. b.Property<int>("Depth")
  702. .HasColumnType("int");
  703. b.Property<string>("DisplayName")
  704. .HasMaxLength(100)
  705. .HasColumnType("nvarchar(100)");
  706. b.Property<int>("FunctionType")
  707. .HasColumnType("int");
  708. b.Property<string>("Icon")
  709. .HasMaxLength(50)
  710. .HasColumnType("nvarchar(50)");
  711. b.Property<bool>("IsLeaf")
  712. .HasColumnType("bit");
  713. b.Property<DateTime?>("LastModificationTime")
  714. .HasColumnType("datetime2");
  715. b.Property<long?>("LastModifierUserId")
  716. .HasColumnType("bigint");
  717. b.Property<int>("MultiTenancySides")
  718. .HasColumnType("int");
  719. b.Property<string>("Name")
  720. .HasMaxLength(50)
  721. .HasColumnType("nvarchar(50)");
  722. b.Property<bool>("NeedAuth")
  723. .HasColumnType("bit");
  724. b.Property<int?>("ParentNo")
  725. .HasColumnType("int");
  726. b.Property<string>("Path")
  727. .IsRequired()
  728. .HasMaxLength(300)
  729. .HasColumnType("nvarchar(300)");
  730. b.Property<string>("PermissionName")
  731. .HasMaxLength(500)
  732. .HasColumnType("nvarchar(500)");
  733. b.Property<string>("Script")
  734. .HasMaxLength(100)
  735. .HasColumnType("nvarchar(100)");
  736. b.Property<int>("Sort")
  737. .HasColumnType("int");
  738. b.Property<string>("Url")
  739. .HasMaxLength(1000)
  740. .HasColumnType("nvarchar(1000)");
  741. b.HasKey("Id");
  742. b.HasIndex("CreatorUserId");
  743. b.HasIndex("LastModifierUserId");
  744. b.HasIndex("ParentNo");
  745. b.ToTable("Sys_Functions", (string)null);
  746. });
  747. modelBuilder.Entity("VberZero.BaseSystem.SysHelp", b =>
  748. {
  749. b.Property<int>("Id")
  750. .ValueGeneratedOnAdd()
  751. .HasColumnType("int");
  752. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  753. b.Property<string>("Content")
  754. .HasMaxLength(2147483647)
  755. .HasColumnType("nvarchar(max)");
  756. b.Property<DateTime>("CreationTime")
  757. .HasColumnType("datetime2");
  758. b.Property<long?>("CreatorUserId")
  759. .HasColumnType("bigint");
  760. b.Property<long?>("DeleterUserId")
  761. .HasColumnType("bigint");
  762. b.Property<DateTime?>("DeletionTime")
  763. .HasColumnType("datetime2");
  764. b.Property<int?>("FunctionNo")
  765. .HasColumnType("int");
  766. b.Property<int>("HelpType")
  767. .HasColumnType("int");
  768. b.Property<bool>("IsDeleted")
  769. .HasColumnType("bit");
  770. b.Property<string>("KeyWords")
  771. .HasMaxLength(50)
  772. .HasColumnType("nvarchar(50)");
  773. b.Property<DateTime?>("LastModificationTime")
  774. .HasColumnType("datetime2");
  775. b.Property<long?>("LastModifierUserId")
  776. .HasColumnType("bigint");
  777. b.Property<string>("Remark")
  778. .HasMaxLength(1000)
  779. .HasColumnType("nvarchar(1000)");
  780. b.Property<int>("Sequence")
  781. .HasColumnType("int");
  782. b.Property<string>("Title")
  783. .IsRequired()
  784. .HasMaxLength(50)
  785. .HasColumnType("nvarchar(50)");
  786. b.HasKey("Id");
  787. b.HasIndex("CreatorUserId");
  788. b.HasIndex("DeleterUserId");
  789. b.HasIndex("FunctionNo");
  790. b.HasIndex("LastModifierUserId");
  791. b.ToTable("Sys_Helps", (string)null);
  792. });
  793. modelBuilder.Entity("VberZero.BaseSystem.SysSetting", b =>
  794. {
  795. b.Property<long>("Id")
  796. .ValueGeneratedOnAdd()
  797. .HasColumnType("bigint");
  798. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  799. b.Property<DateTime>("CreationTime")
  800. .HasColumnType("datetime2");
  801. b.Property<long?>("CreatorUserId")
  802. .HasColumnType("bigint");
  803. b.Property<DateTime?>("LastModificationTime")
  804. .HasColumnType("datetime2");
  805. b.Property<long?>("LastModifierUserId")
  806. .HasColumnType("bigint");
  807. b.Property<string>("Name")
  808. .IsRequired()
  809. .HasMaxLength(256)
  810. .HasColumnType("nvarchar(256)");
  811. b.Property<int?>("TenantId")
  812. .HasColumnType("int");
  813. b.Property<long?>("UserId")
  814. .HasColumnType("bigint");
  815. b.Property<string>("Value")
  816. .HasColumnType("nvarchar(max)");
  817. b.HasKey("Id");
  818. b.HasIndex("UserId", "TenantId");
  819. b.HasIndex("TenantId", "Name", "UserId")
  820. .IsUnique();
  821. b.ToTable("Sys_Settings", (string)null);
  822. });
  823. modelBuilder.Entity("VberZero.BaseSystem.SysState", b =>
  824. {
  825. b.Property<int>("Id")
  826. .ValueGeneratedOnAdd()
  827. .HasColumnType("int");
  828. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  829. b.Property<string>("CodeKey")
  830. .IsRequired()
  831. .HasMaxLength(50)
  832. .HasColumnType("nvarchar(50)");
  833. b.Property<string>("CodeValue")
  834. .IsRequired()
  835. .HasMaxLength(100)
  836. .HasColumnType("nvarchar(100)");
  837. b.Property<DateTime>("CreationTime")
  838. .HasColumnType("datetime2");
  839. b.Property<long?>("CreatorUserId")
  840. .HasColumnType("bigint");
  841. b.Property<string>("DisplayValue")
  842. .IsRequired()
  843. .HasMaxLength(100)
  844. .HasColumnType("nvarchar(100)");
  845. b.Property<DateTime?>("LastModificationTime")
  846. .HasColumnType("datetime2");
  847. b.Property<long?>("LastModifierUserId")
  848. .HasColumnType("bigint");
  849. b.Property<string>("Name")
  850. .HasMaxLength(50)
  851. .HasColumnType("nvarchar(50)");
  852. b.HasKey("Id");
  853. b.HasIndex("CreatorUserId");
  854. b.HasIndex("LastModifierUserId");
  855. b.ToTable("Sys_States", (string)null);
  856. });
  857. modelBuilder.Entity("VberZero.BaseSystem.Users.User", b =>
  858. {
  859. b.Property<long>("Id")
  860. .ValueGeneratedOnAdd()
  861. .HasColumnType("bigint");
  862. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  863. b.Property<int>("AccessFailedCount")
  864. .HasColumnType("int");
  865. b.Property<string>("AccountNo")
  866. .HasMaxLength(32)
  867. .HasColumnType("nvarchar(32)");
  868. b.Property<int>("AccountType")
  869. .HasColumnType("int");
  870. b.Property<string>("AuthenticationSource")
  871. .HasMaxLength(64)
  872. .HasColumnType("nvarchar(64)");
  873. b.Property<string>("AvatarPath")
  874. .HasMaxLength(500)
  875. .HasColumnType("nvarchar(500)");
  876. b.Property<string>("ConcurrencyStamp")
  877. .IsConcurrencyToken()
  878. .HasMaxLength(128)
  879. .HasColumnType("nvarchar(128)");
  880. b.Property<DateTime>("CreationTime")
  881. .HasColumnType("datetime2");
  882. b.Property<long?>("CreatorUserId")
  883. .HasColumnType("bigint");
  884. b.Property<long?>("DeleterUserId")
  885. .HasColumnType("bigint");
  886. b.Property<DateTime?>("DeletionTime")
  887. .HasColumnType("datetime2");
  888. b.Property<string>("EmailAddress")
  889. .IsRequired()
  890. .HasMaxLength(256)
  891. .HasColumnType("nvarchar(256)");
  892. b.Property<string>("EmailConfirmationCode")
  893. .HasMaxLength(328)
  894. .HasColumnType("nvarchar(328)");
  895. b.Property<int>("Gender")
  896. .HasColumnType("int");
  897. b.Property<bool>("IsActive")
  898. .HasColumnType("bit");
  899. b.Property<bool>("IsDeleted")
  900. .HasColumnType("bit");
  901. b.Property<bool>("IsEmailConfirmed")
  902. .HasColumnType("bit");
  903. b.Property<bool>("IsLockoutEnabled")
  904. .HasColumnType("bit");
  905. b.Property<bool>("IsPhoneNumberConfirmed")
  906. .HasColumnType("bit");
  907. b.Property<bool>("IsTwoFactorEnabled")
  908. .HasColumnType("bit");
  909. b.Property<DateTime?>("LastModificationTime")
  910. .HasColumnType("datetime2");
  911. b.Property<long?>("LastModifierUserId")
  912. .HasColumnType("bigint");
  913. b.Property<DateTime?>("LockoutEndDateUtc")
  914. .HasColumnType("datetime2");
  915. b.Property<string>("Name")
  916. .IsRequired()
  917. .HasMaxLength(64)
  918. .HasColumnType("nvarchar(64)");
  919. b.Property<string>("NormalizedEmailAddress")
  920. .IsRequired()
  921. .HasMaxLength(256)
  922. .HasColumnType("nvarchar(256)");
  923. b.Property<string>("NormalizedUserName")
  924. .IsRequired()
  925. .HasMaxLength(256)
  926. .HasColumnType("nvarchar(256)");
  927. b.Property<string>("Password")
  928. .IsRequired()
  929. .HasMaxLength(128)
  930. .HasColumnType("nvarchar(128)");
  931. b.Property<string>("PasswordResetCode")
  932. .HasMaxLength(328)
  933. .HasColumnType("nvarchar(328)");
  934. b.Property<string>("PhoneNumber")
  935. .HasMaxLength(32)
  936. .HasColumnType("nvarchar(32)");
  937. b.Property<string>("SecurityStamp")
  938. .HasMaxLength(128)
  939. .HasColumnType("nvarchar(128)");
  940. b.Property<string>("Surname")
  941. .IsRequired()
  942. .HasMaxLength(64)
  943. .HasColumnType("nvarchar(64)");
  944. b.Property<int?>("TenantId")
  945. .HasColumnType("int");
  946. b.Property<string>("UserName")
  947. .IsRequired()
  948. .HasMaxLength(256)
  949. .HasColumnType("nvarchar(256)");
  950. b.Property<int>("UserType")
  951. .HasColumnType("int");
  952. b.HasKey("Id");
  953. b.HasIndex("CreatorUserId");
  954. b.HasIndex("DeleterUserId");
  955. b.HasIndex("LastModifierUserId");
  956. b.HasIndex("TenantId");
  957. b.HasIndex("TenantId", "NormalizedEmailAddress");
  958. b.HasIndex("TenantId", "NormalizedUserName");
  959. b.ToTable("Sys_Users", (string)null);
  960. });
  961. modelBuilder.Entity("VberZero.BaseSystem.Users.UserAccount", b =>
  962. {
  963. b.Property<long>("Id")
  964. .ValueGeneratedOnAdd()
  965. .HasColumnType("bigint");
  966. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  967. b.Property<DateTime>("CreationTime")
  968. .HasColumnType("datetime2");
  969. b.Property<long?>("CreatorUserId")
  970. .HasColumnType("bigint");
  971. b.Property<long?>("DeleterUserId")
  972. .HasColumnType("bigint");
  973. b.Property<DateTime?>("DeletionTime")
  974. .HasColumnType("datetime2");
  975. b.Property<string>("EmailAddress")
  976. .HasMaxLength(256)
  977. .HasColumnType("nvarchar(256)");
  978. b.Property<bool>("IsDeleted")
  979. .HasColumnType("bit");
  980. b.Property<DateTime?>("LastModificationTime")
  981. .HasColumnType("datetime2");
  982. b.Property<long?>("LastModifierUserId")
  983. .HasColumnType("bigint");
  984. b.Property<string>("PhoneNumber")
  985. .HasMaxLength(32)
  986. .HasColumnType("nvarchar(32)");
  987. b.Property<int?>("TenantId")
  988. .HasColumnType("int");
  989. b.Property<long>("UserId")
  990. .HasColumnType("bigint");
  991. b.Property<long?>("UserLinkId")
  992. .HasColumnType("bigint");
  993. b.Property<string>("UserName")
  994. .HasMaxLength(256)
  995. .HasColumnType("nvarchar(256)");
  996. b.HasKey("Id");
  997. b.HasIndex("EmailAddress");
  998. b.HasIndex("UserName");
  999. b.HasIndex("TenantId", "EmailAddress");
  1000. b.HasIndex("TenantId", "UserId");
  1001. b.HasIndex("TenantId", "UserName");
  1002. b.HasIndex("UserId", "TenantId");
  1003. b.ToTable("Sys_UserAccounts", (string)null);
  1004. });
  1005. modelBuilder.Entity("VberZero.BaseSystem.Users.UserClaim", b =>
  1006. {
  1007. b.Property<long>("Id")
  1008. .ValueGeneratedOnAdd()
  1009. .HasColumnType("bigint");
  1010. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  1011. b.Property<string>("ClaimType")
  1012. .HasMaxLength(256)
  1013. .HasColumnType("nvarchar(256)");
  1014. b.Property<string>("ClaimValue")
  1015. .HasColumnType("nvarchar(max)");
  1016. b.Property<DateTime>("CreationTime")
  1017. .HasColumnType("datetime2");
  1018. b.Property<long?>("CreatorUserId")
  1019. .HasColumnType("bigint");
  1020. b.Property<int?>("TenantId")
  1021. .HasColumnType("int");
  1022. b.Property<long>("UserId")
  1023. .HasColumnType("bigint");
  1024. b.HasKey("Id");
  1025. b.HasIndex("TenantId", "ClaimType");
  1026. b.HasIndex("UserId", "TenantId");
  1027. b.ToTable("Sys_UserClaims", (string)null);
  1028. });
  1029. modelBuilder.Entity("VberZero.BaseSystem.Users.UserLogin", b =>
  1030. {
  1031. b.Property<long>("Id")
  1032. .ValueGeneratedOnAdd()
  1033. .HasColumnType("bigint");
  1034. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  1035. b.Property<string>("LoginProvider")
  1036. .IsRequired()
  1037. .HasMaxLength(128)
  1038. .HasColumnType("nvarchar(128)");
  1039. b.Property<string>("ProviderKey")
  1040. .IsRequired()
  1041. .HasMaxLength(256)
  1042. .HasColumnType("nvarchar(256)");
  1043. b.Property<int?>("TenantId")
  1044. .HasColumnType("int");
  1045. b.Property<long>("UserId")
  1046. .HasColumnType("bigint");
  1047. b.HasKey("Id");
  1048. b.HasIndex("ProviderKey", "TenantId")
  1049. .IsUnique()
  1050. .HasFilter("[TenantId] IS NOT NULL");
  1051. b.HasIndex("TenantId", "UserId");
  1052. b.HasIndex("UserId", "TenantId");
  1053. b.HasIndex("TenantId", "LoginProvider", "ProviderKey");
  1054. b.ToTable("Sys_UserLogins", (string)null);
  1055. });
  1056. modelBuilder.Entity("VberZero.BaseSystem.Users.UserLoginAttempt", b =>
  1057. {
  1058. b.Property<long>("Id")
  1059. .ValueGeneratedOnAdd()
  1060. .HasColumnType("bigint");
  1061. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  1062. b.Property<string>("BrowserInfo")
  1063. .HasMaxLength(512)
  1064. .HasColumnType("nvarchar(512)");
  1065. b.Property<string>("ClientIpAddress")
  1066. .HasMaxLength(64)
  1067. .HasColumnType("nvarchar(64)");
  1068. b.Property<string>("ClientName")
  1069. .HasMaxLength(128)
  1070. .HasColumnType("nvarchar(128)");
  1071. b.Property<DateTime>("CreationTime")
  1072. .HasColumnType("datetime2");
  1073. b.Property<byte>("Result")
  1074. .HasColumnType("tinyint");
  1075. b.Property<string>("TenancyName")
  1076. .HasMaxLength(64)
  1077. .HasColumnType("nvarchar(64)");
  1078. b.Property<int?>("TenantId")
  1079. .HasColumnType("int");
  1080. b.Property<long?>("UserId")
  1081. .HasColumnType("bigint");
  1082. b.Property<string>("UserNameOrEmailOrPhone")
  1083. .HasMaxLength(256)
  1084. .HasColumnType("nvarchar(256)");
  1085. b.HasKey("Id");
  1086. b.HasIndex("UserId", "TenantId");
  1087. b.HasIndex("TenancyName", "UserNameOrEmailOrPhone", "Result");
  1088. b.ToTable("Sys_UserLoginAttempts", (string)null);
  1089. });
  1090. modelBuilder.Entity("VberZero.BaseSystem.Users.UserOrganizationUnit", b =>
  1091. {
  1092. b.Property<long>("Id")
  1093. .ValueGeneratedOnAdd()
  1094. .HasColumnType("bigint");
  1095. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  1096. b.Property<DateTime>("CreationTime")
  1097. .HasColumnType("datetime2");
  1098. b.Property<long?>("CreatorUserId")
  1099. .HasColumnType("bigint");
  1100. b.Property<bool>("IsDeleted")
  1101. .HasColumnType("bit");
  1102. b.Property<long>("OrganizationUnitId")
  1103. .HasColumnType("bigint");
  1104. b.Property<int?>("TenantId")
  1105. .HasColumnType("int");
  1106. b.Property<long>("UserId")
  1107. .HasColumnType("bigint");
  1108. b.HasKey("Id");
  1109. b.HasIndex("TenantId", "OrganizationUnitId");
  1110. b.HasIndex("TenantId", "UserId");
  1111. b.HasIndex("UserId", "TenantId");
  1112. b.ToTable("Sys_UserOrganizationUnits", (string)null);
  1113. });
  1114. modelBuilder.Entity("VberZero.BaseSystem.Users.UserRole", b =>
  1115. {
  1116. b.Property<long>("Id")
  1117. .ValueGeneratedOnAdd()
  1118. .HasColumnType("bigint");
  1119. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  1120. b.Property<DateTime>("CreationTime")
  1121. .HasColumnType("datetime2");
  1122. b.Property<long?>("CreatorUserId")
  1123. .HasColumnType("bigint");
  1124. b.Property<int>("RoleId")
  1125. .HasColumnType("int");
  1126. b.Property<int?>("TenantId")
  1127. .HasColumnType("int");
  1128. b.Property<long>("UserId")
  1129. .HasColumnType("bigint");
  1130. b.HasKey("Id");
  1131. b.HasIndex("TenantId", "RoleId");
  1132. b.HasIndex("TenantId", "UserId");
  1133. b.HasIndex("UserId", "TenantId");
  1134. b.ToTable("Sys_UserRoles", (string)null);
  1135. });
  1136. modelBuilder.Entity("VberZero.BaseSystem.Users.UserToken", b =>
  1137. {
  1138. b.Property<long>("Id")
  1139. .ValueGeneratedOnAdd()
  1140. .HasColumnType("bigint");
  1141. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  1142. b.Property<DateTime?>("ExpireDate")
  1143. .HasColumnType("datetime2");
  1144. b.Property<string>("LoginProvider")
  1145. .HasMaxLength(128)
  1146. .HasColumnType("nvarchar(128)");
  1147. b.Property<string>("Name")
  1148. .HasMaxLength(128)
  1149. .HasColumnType("nvarchar(128)");
  1150. b.Property<int?>("TenantId")
  1151. .HasColumnType("int");
  1152. b.Property<long>("UserId")
  1153. .HasColumnType("bigint");
  1154. b.Property<string>("Value")
  1155. .HasMaxLength(512)
  1156. .HasColumnType("nvarchar(512)");
  1157. b.HasKey("Id");
  1158. b.HasIndex("TenantId", "UserId");
  1159. b.HasIndex("UserId", "TenantId");
  1160. b.ToTable("Sys_UserTokens", (string)null);
  1161. });
  1162. modelBuilder.Entity("VberZero.Workflow.DesignInfo.WorkflowDefinitionInfo", b =>
  1163. {
  1164. b.Property<string>("Id")
  1165. .HasMaxLength(50)
  1166. .HasColumnType("nvarchar(50)")
  1167. .HasColumnName("Id");
  1168. b.Property<int>("Version")
  1169. .ValueGeneratedOnAdd()
  1170. .HasColumnType("int")
  1171. .HasDefaultValue(1)
  1172. .HasColumnName("Version");
  1173. b.Property<string>("Color")
  1174. .HasMaxLength(50)
  1175. .HasColumnType("nvarchar(50)")
  1176. .HasColumnName("Color");
  1177. b.Property<DateTime>("CreationTime")
  1178. .HasColumnType("datetime2");
  1179. b.Property<long?>("CreatorUserId")
  1180. .HasColumnType("bigint");
  1181. b.Property<long?>("DeleterUserId")
  1182. .HasColumnType("bigint");
  1183. b.Property<DateTime?>("DeletionTime")
  1184. .HasColumnType("datetime2");
  1185. b.Property<string>("Description")
  1186. .HasColumnType("nvarchar(max)");
  1187. b.Property<string>("Group")
  1188. .HasMaxLength(100)
  1189. .HasColumnType("nvarchar(100)")
  1190. .HasColumnName("Group");
  1191. b.Property<string>("Icon")
  1192. .HasMaxLength(50)
  1193. .HasColumnType("nvarchar(50)")
  1194. .HasColumnName("Icon");
  1195. b.Property<string>("Inputs")
  1196. .HasColumnType("nvarchar(max)")
  1197. .HasColumnName("Inputs");
  1198. b.Property<bool>("IsDeleted")
  1199. .HasColumnType("bit");
  1200. b.Property<DateTime?>("LastModificationTime")
  1201. .HasColumnType("datetime2");
  1202. b.Property<long?>("LastModifierUserId")
  1203. .HasColumnType("bigint");
  1204. b.Property<string>("Nodes")
  1205. .HasColumnType("nvarchar(max)")
  1206. .HasColumnName("Nodes");
  1207. b.Property<int?>("TenantId")
  1208. .HasColumnType("int");
  1209. b.Property<string>("Title")
  1210. .HasMaxLength(256)
  1211. .HasColumnType("nvarchar(256)")
  1212. .HasColumnName("Title");
  1213. b.HasKey("Id", "Version");
  1214. b.HasIndex("TenantId");
  1215. b.ToTable("Sys_WorkflowDefinitions");
  1216. });
  1217. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowEventInfo", b =>
  1218. {
  1219. b.Property<string>("Id")
  1220. .HasMaxLength(32)
  1221. .HasColumnType("nvarchar(32)");
  1222. b.Property<DateTime>("CreationTime")
  1223. .HasColumnType("datetime2");
  1224. b.Property<long?>("CreatorUserId")
  1225. .HasColumnType("bigint");
  1226. b.Property<string>("EventData")
  1227. .HasColumnType("nvarchar(max)");
  1228. b.Property<string>("EventKey")
  1229. .HasMaxLength(200)
  1230. .HasColumnType("nvarchar(200)");
  1231. b.Property<string>("EventName")
  1232. .HasMaxLength(200)
  1233. .HasColumnType("nvarchar(200)");
  1234. b.Property<DateTime>("EventTime")
  1235. .HasColumnType("datetime2");
  1236. b.Property<bool>("IsProcessed")
  1237. .HasColumnType("bit");
  1238. b.Property<int?>("TenantId")
  1239. .HasColumnType("int");
  1240. b.HasKey("Id");
  1241. b.HasIndex("TenantId");
  1242. b.ToTable("Sys_Wf_Events");
  1243. });
  1244. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExecutionErrorInfo", b =>
  1245. {
  1246. b.Property<string>("Id")
  1247. .HasMaxLength(32)
  1248. .HasColumnType("nvarchar(32)");
  1249. b.Property<DateTime>("ErrorTime")
  1250. .HasColumnType("datetime2");
  1251. b.Property<string>("ExecutionPointerId")
  1252. .HasMaxLength(100)
  1253. .HasColumnType("nvarchar(100)");
  1254. b.Property<string>("Message")
  1255. .HasColumnType("nvarchar(max)");
  1256. b.Property<string>("WorkflowId")
  1257. .HasMaxLength(100)
  1258. .HasColumnType("nvarchar(100)");
  1259. b.HasKey("Id");
  1260. b.ToTable("Sys_Wf_ExecutionErrors");
  1261. });
  1262. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExecutionPointerInfo", b =>
  1263. {
  1264. b.Property<string>("Id")
  1265. .HasMaxLength(32)
  1266. .HasColumnType("nvarchar(32)");
  1267. b.Property<bool>("Active")
  1268. .HasColumnType("bit");
  1269. b.Property<string>("Children")
  1270. .HasColumnType("nvarchar(max)");
  1271. b.Property<string>("ContextItem")
  1272. .HasColumnType("nvarchar(max)");
  1273. b.Property<DateTime?>("EndTime")
  1274. .HasColumnType("datetime2");
  1275. b.Property<string>("EventData")
  1276. .HasColumnType("nvarchar(max)");
  1277. b.Property<string>("EventKey")
  1278. .HasMaxLength(100)
  1279. .HasColumnType("nvarchar(100)");
  1280. b.Property<string>("EventName")
  1281. .HasMaxLength(100)
  1282. .HasColumnType("nvarchar(100)");
  1283. b.Property<bool>("EventPublished")
  1284. .HasColumnType("bit");
  1285. b.Property<string>("Outcome")
  1286. .HasColumnType("nvarchar(max)");
  1287. b.Property<string>("PersistenceData")
  1288. .HasColumnType("nvarchar(max)");
  1289. b.Property<string>("PredecessorId")
  1290. .HasMaxLength(100)
  1291. .HasColumnType("nvarchar(100)");
  1292. b.Property<int>("RetryCount")
  1293. .HasColumnType("int");
  1294. b.Property<string>("Scope")
  1295. .HasColumnType("nvarchar(max)");
  1296. b.Property<DateTime?>("SleepUntil")
  1297. .HasColumnType("datetime2");
  1298. b.Property<DateTime?>("StartTime")
  1299. .HasColumnType("datetime2");
  1300. b.Property<int>("Status")
  1301. .HasColumnType("int");
  1302. b.Property<int>("StepId")
  1303. .HasColumnType("int");
  1304. b.Property<string>("StepName")
  1305. .HasMaxLength(100)
  1306. .HasColumnType("nvarchar(100)");
  1307. b.Property<string>("WorkflowId")
  1308. .HasMaxLength(32)
  1309. .HasColumnType("nvarchar(32)");
  1310. b.HasKey("Id");
  1311. b.HasIndex("WorkflowId");
  1312. b.ToTable("Sys_Wf_ExecutionPointers");
  1313. });
  1314. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExtensionAttributeInfo", b =>
  1315. {
  1316. b.Property<string>("Id")
  1317. .HasMaxLength(32)
  1318. .HasColumnType("nvarchar(32)");
  1319. b.Property<string>("AttributeKey")
  1320. .HasMaxLength(100)
  1321. .HasColumnType("nvarchar(100)");
  1322. b.Property<string>("AttributeValue")
  1323. .HasColumnType("nvarchar(max)");
  1324. b.Property<string>("ExecutionPointerId")
  1325. .HasMaxLength(32)
  1326. .HasColumnType("nvarchar(32)");
  1327. b.HasKey("Id");
  1328. b.HasIndex("ExecutionPointerId");
  1329. b.ToTable("Sys_Wf_ExtensionAttributes");
  1330. });
  1331. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowInfo", b =>
  1332. {
  1333. b.Property<string>("Id")
  1334. .HasMaxLength(32)
  1335. .HasColumnType("nvarchar(32)");
  1336. b.Property<DateTime?>("CompleteTime")
  1337. .HasColumnType("datetime2")
  1338. .HasColumnName("CompleteTime");
  1339. b.Property<DateTime>("CreateTime")
  1340. .HasColumnType("datetime2")
  1341. .HasColumnName("CreateTime");
  1342. b.Property<string>("CreateUserIdentityName")
  1343. .HasColumnType("nvarchar(max)");
  1344. b.Property<DateTime>("CreationTime")
  1345. .HasColumnType("datetime2");
  1346. b.Property<long?>("CreatorUserId")
  1347. .HasColumnType("bigint");
  1348. b.Property<string>("Data")
  1349. .HasMaxLength(2147483647)
  1350. .HasColumnType("nvarchar(max)")
  1351. .HasColumnName("Data");
  1352. b.Property<long?>("DeleterUserId")
  1353. .HasColumnType("bigint");
  1354. b.Property<DateTime?>("DeletionTime")
  1355. .HasColumnType("datetime2");
  1356. b.Property<string>("Description")
  1357. .HasMaxLength(500)
  1358. .HasColumnType("nvarchar(500)")
  1359. .HasColumnName("Description");
  1360. b.Property<bool>("IsDeleted")
  1361. .HasColumnType("bit");
  1362. b.Property<DateTime?>("LastModificationTime")
  1363. .HasColumnType("datetime2");
  1364. b.Property<long?>("LastModifierUserId")
  1365. .HasColumnType("bigint");
  1366. b.Property<long?>("NextExecution")
  1367. .HasColumnType("bigint")
  1368. .HasColumnName("NextExecution");
  1369. b.Property<string>("Reference")
  1370. .HasMaxLength(200)
  1371. .HasColumnType("nvarchar(200)")
  1372. .HasColumnName("Reference");
  1373. b.Property<int>("Status")
  1374. .HasColumnType("int")
  1375. .HasColumnName("Status");
  1376. b.Property<int?>("TenantId")
  1377. .HasColumnType("int")
  1378. .HasColumnName("TenantId");
  1379. b.Property<int>("Version")
  1380. .HasColumnType("int")
  1381. .HasColumnName("Version");
  1382. b.Property<string>("WorkflowDefinitionId")
  1383. .HasMaxLength(50)
  1384. .HasColumnType("nvarchar(50)")
  1385. .HasColumnName("WorkflowDefinitionId");
  1386. b.HasKey("Id");
  1387. b.HasIndex("TenantId");
  1388. b.HasIndex("WorkflowDefinitionId", "Version");
  1389. b.ToTable("Sys_Wf_Workflows");
  1390. });
  1391. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowSubscriptionInfo", b =>
  1392. {
  1393. b.Property<string>("Id")
  1394. .HasMaxLength(32)
  1395. .HasColumnType("nvarchar(32)");
  1396. b.Property<string>("EventKey")
  1397. .HasMaxLength(200)
  1398. .HasColumnType("nvarchar(200)");
  1399. b.Property<string>("EventName")
  1400. .HasMaxLength(200)
  1401. .HasColumnType("nvarchar(200)");
  1402. b.Property<string>("ExecutionPointerId")
  1403. .HasMaxLength(200)
  1404. .HasColumnType("nvarchar(200)");
  1405. b.Property<string>("ExternalToken")
  1406. .HasMaxLength(200)
  1407. .HasColumnType("nvarchar(200)");
  1408. b.Property<DateTime?>("ExternalTokenExpiry")
  1409. .HasColumnType("datetime2");
  1410. b.Property<string>("ExternalWorkerId")
  1411. .HasMaxLength(200)
  1412. .HasColumnType("nvarchar(200)");
  1413. b.Property<int>("StepId")
  1414. .HasColumnType("int");
  1415. b.Property<DateTime>("SubscribeAsOf")
  1416. .HasColumnType("datetime2");
  1417. b.Property<string>("SubscriptionData")
  1418. .HasColumnType("nvarchar(max)");
  1419. b.Property<string>("WorkflowId")
  1420. .HasMaxLength(200)
  1421. .HasColumnType("nvarchar(200)");
  1422. b.HasKey("Id");
  1423. b.ToTable("Sys_Wf_Subscriptions");
  1424. });
  1425. modelBuilder.Entity("VberZero.BaseSystem.Roles.RolePermissionSetting", b =>
  1426. {
  1427. b.HasBaseType("VberZero.BaseSystem.PermissionSetting");
  1428. b.Property<int>("RoleId")
  1429. .HasColumnType("int");
  1430. b.HasIndex("RoleId");
  1431. b.ToTable("Sys_Permissions", (string)null);
  1432. b.HasDiscriminator().HasValue("RolePermissionSetting");
  1433. });
  1434. modelBuilder.Entity("VberZero.BaseSystem.Users.UserPermissionSetting", b =>
  1435. {
  1436. b.HasBaseType("VberZero.BaseSystem.PermissionSetting");
  1437. b.Property<long>("UserId")
  1438. .HasColumnType("bigint");
  1439. b.HasIndex("UserId");
  1440. b.ToTable("Sys_Permissions", (string)null);
  1441. b.HasDiscriminator().HasValue("UserPermissionSetting");
  1442. });
  1443. modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b =>
  1444. {
  1445. b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent")
  1446. .WithMany()
  1447. .HasForeignKey("WebhookEventId")
  1448. .OnDelete(DeleteBehavior.Restrict)
  1449. .IsRequired();
  1450. b.Navigation("WebhookEvent");
  1451. });
  1452. modelBuilder.Entity("VberZero.BaseSystem.CommonWorkflowAuditorInfo", b =>
  1453. {
  1454. b.HasOne("VberZero.Workflow.Persistence.WorkflowExecutionPointerInfo", "ExecutionPointer")
  1455. .WithMany()
  1456. .HasForeignKey("ExecutionPointerId");
  1457. b.HasOne("VberZero.Workflow.Persistence.WorkflowInfo", "Workflow")
  1458. .WithMany()
  1459. .HasForeignKey("WorkflowId");
  1460. b.Navigation("ExecutionPointer");
  1461. b.Navigation("Workflow");
  1462. });
  1463. modelBuilder.Entity("VberZero.BaseSystem.MultiTenancy.Tenant", b =>
  1464. {
  1465. b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser")
  1466. .WithMany()
  1467. .HasForeignKey("CreatorUserId");
  1468. b.HasOne("VberZero.BaseSystem.Users.User", "DeleterUser")
  1469. .WithMany()
  1470. .HasForeignKey("DeleterUserId");
  1471. b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser")
  1472. .WithMany()
  1473. .HasForeignKey("LastModifierUserId");
  1474. b.Navigation("CreatorUser");
  1475. b.Navigation("DeleterUser");
  1476. b.Navigation("LastModifierUser");
  1477. });
  1478. modelBuilder.Entity("VberZero.BaseSystem.Organizations.OrganizationUnit", b =>
  1479. {
  1480. b.HasOne("VberZero.BaseSystem.Organizations.OrganizationUnit", "Parent")
  1481. .WithMany("Children")
  1482. .HasForeignKey("ParentId");
  1483. b.Navigation("Parent");
  1484. });
  1485. modelBuilder.Entity("VberZero.BaseSystem.Roles.Role", b =>
  1486. {
  1487. b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser")
  1488. .WithMany()
  1489. .HasForeignKey("CreatorUserId");
  1490. b.HasOne("VberZero.BaseSystem.Users.User", "DeleterUser")
  1491. .WithMany()
  1492. .HasForeignKey("DeleterUserId");
  1493. b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser")
  1494. .WithMany()
  1495. .HasForeignKey("LastModifierUserId");
  1496. b.Navigation("CreatorUser");
  1497. b.Navigation("DeleterUser");
  1498. b.Navigation("LastModifierUser");
  1499. });
  1500. modelBuilder.Entity("VberZero.BaseSystem.Roles.RoleClaim", b =>
  1501. {
  1502. b.HasOne("VberZero.BaseSystem.Roles.Role", null)
  1503. .WithMany("Claims")
  1504. .HasForeignKey("RoleId")
  1505. .OnDelete(DeleteBehavior.Restrict)
  1506. .IsRequired();
  1507. });
  1508. modelBuilder.Entity("VberZero.BaseSystem.SysAttach", b =>
  1509. {
  1510. b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser")
  1511. .WithMany()
  1512. .HasForeignKey("CreatorUserId");
  1513. b.Navigation("CreatorUser");
  1514. });
  1515. modelBuilder.Entity("VberZero.BaseSystem.SysCalendar", b =>
  1516. {
  1517. b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser")
  1518. .WithMany()
  1519. .HasForeignKey("CreatorUserId");
  1520. b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser")
  1521. .WithMany()
  1522. .HasForeignKey("LastModifierUserId");
  1523. b.HasOne("VberZero.BaseSystem.Users.User", "Owner")
  1524. .WithMany()
  1525. .HasForeignKey("OwnerId");
  1526. b.Navigation("CreatorUser");
  1527. b.Navigation("LastModifierUser");
  1528. b.Navigation("Owner");
  1529. });
  1530. modelBuilder.Entity("VberZero.BaseSystem.SysFunction", b =>
  1531. {
  1532. b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser")
  1533. .WithMany()
  1534. .HasForeignKey("CreatorUserId");
  1535. b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser")
  1536. .WithMany()
  1537. .HasForeignKey("LastModifierUserId");
  1538. b.HasOne("VberZero.BaseSystem.SysFunction", "Parent")
  1539. .WithMany()
  1540. .HasForeignKey("ParentNo");
  1541. b.Navigation("CreatorUser");
  1542. b.Navigation("LastModifierUser");
  1543. b.Navigation("Parent");
  1544. });
  1545. modelBuilder.Entity("VberZero.BaseSystem.SysHelp", b =>
  1546. {
  1547. b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser")
  1548. .WithMany()
  1549. .HasForeignKey("CreatorUserId");
  1550. b.HasOne("VberZero.BaseSystem.Users.User", "DeleterUser")
  1551. .WithMany()
  1552. .HasForeignKey("DeleterUserId");
  1553. b.HasOne("VberZero.BaseSystem.SysFunction", "Function")
  1554. .WithMany()
  1555. .HasForeignKey("FunctionNo");
  1556. b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser")
  1557. .WithMany()
  1558. .HasForeignKey("LastModifierUserId");
  1559. b.Navigation("CreatorUser");
  1560. b.Navigation("DeleterUser");
  1561. b.Navigation("Function");
  1562. b.Navigation("LastModifierUser");
  1563. });
  1564. modelBuilder.Entity("VberZero.BaseSystem.SysSetting", b =>
  1565. {
  1566. b.HasOne("VberZero.BaseSystem.Users.User", null)
  1567. .WithMany("Settings")
  1568. .HasForeignKey("UserId");
  1569. });
  1570. modelBuilder.Entity("VberZero.BaseSystem.SysState", b =>
  1571. {
  1572. b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser")
  1573. .WithMany()
  1574. .HasForeignKey("CreatorUserId");
  1575. b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser")
  1576. .WithMany()
  1577. .HasForeignKey("LastModifierUserId");
  1578. b.Navigation("CreatorUser");
  1579. b.Navigation("LastModifierUser");
  1580. });
  1581. modelBuilder.Entity("VberZero.BaseSystem.Users.User", b =>
  1582. {
  1583. b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser")
  1584. .WithMany()
  1585. .HasForeignKey("CreatorUserId")
  1586. .OnDelete(DeleteBehavior.Restrict);
  1587. b.HasOne("VberZero.BaseSystem.Users.User", "DeleterUser")
  1588. .WithMany()
  1589. .HasForeignKey("DeleterUserId")
  1590. .OnDelete(DeleteBehavior.Restrict);
  1591. b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser")
  1592. .WithMany()
  1593. .HasForeignKey("LastModifierUserId")
  1594. .OnDelete(DeleteBehavior.Restrict);
  1595. b.Navigation("CreatorUser");
  1596. b.Navigation("DeleterUser");
  1597. b.Navigation("LastModifierUser");
  1598. });
  1599. modelBuilder.Entity("VberZero.BaseSystem.Users.UserClaim", b =>
  1600. {
  1601. b.HasOne("VberZero.BaseSystem.Users.User", null)
  1602. .WithMany("Claims")
  1603. .HasForeignKey("UserId")
  1604. .OnDelete(DeleteBehavior.Restrict)
  1605. .IsRequired();
  1606. });
  1607. modelBuilder.Entity("VberZero.BaseSystem.Users.UserLogin", b =>
  1608. {
  1609. b.HasOne("VberZero.BaseSystem.Users.User", null)
  1610. .WithMany("Logins")
  1611. .HasForeignKey("UserId")
  1612. .OnDelete(DeleteBehavior.Restrict)
  1613. .IsRequired();
  1614. });
  1615. modelBuilder.Entity("VberZero.BaseSystem.Users.UserRole", b =>
  1616. {
  1617. b.HasOne("VberZero.BaseSystem.Users.User", null)
  1618. .WithMany("Roles")
  1619. .HasForeignKey("UserId")
  1620. .OnDelete(DeleteBehavior.Restrict)
  1621. .IsRequired();
  1622. });
  1623. modelBuilder.Entity("VberZero.BaseSystem.Users.UserToken", b =>
  1624. {
  1625. b.HasOne("VberZero.BaseSystem.Users.User", null)
  1626. .WithMany("Tokens")
  1627. .HasForeignKey("UserId")
  1628. .OnDelete(DeleteBehavior.Restrict)
  1629. .IsRequired();
  1630. });
  1631. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExecutionPointerInfo", b =>
  1632. {
  1633. b.HasOne("VberZero.Workflow.Persistence.WorkflowInfo", "WorkflowInfo")
  1634. .WithMany("ExecutionPointers")
  1635. .HasForeignKey("WorkflowId");
  1636. b.Navigation("WorkflowInfo");
  1637. });
  1638. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExtensionAttributeInfo", b =>
  1639. {
  1640. b.HasOne("VberZero.Workflow.Persistence.WorkflowExecutionPointerInfo", "ExecutionPointer")
  1641. .WithMany("ExtensionAttributes")
  1642. .HasForeignKey("ExecutionPointerId");
  1643. b.Navigation("ExecutionPointer");
  1644. });
  1645. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowInfo", b =>
  1646. {
  1647. b.HasOne("VberZero.Workflow.DesignInfo.WorkflowDefinitionInfo", "WorkflowDefinitionInfo")
  1648. .WithMany()
  1649. .HasForeignKey("WorkflowDefinitionId", "Version");
  1650. b.Navigation("WorkflowDefinitionInfo");
  1651. });
  1652. modelBuilder.Entity("VberZero.BaseSystem.Roles.RolePermissionSetting", b =>
  1653. {
  1654. b.HasOne("VberZero.BaseSystem.Roles.Role", null)
  1655. .WithMany("Permissions")
  1656. .HasForeignKey("RoleId")
  1657. .OnDelete(DeleteBehavior.Restrict)
  1658. .IsRequired();
  1659. });
  1660. modelBuilder.Entity("VberZero.BaseSystem.Users.UserPermissionSetting", b =>
  1661. {
  1662. b.HasOne("VberZero.BaseSystem.Users.User", null)
  1663. .WithMany("Permissions")
  1664. .HasForeignKey("UserId")
  1665. .OnDelete(DeleteBehavior.Restrict)
  1666. .IsRequired();
  1667. });
  1668. modelBuilder.Entity("VberZero.BaseSystem.Organizations.OrganizationUnit", b =>
  1669. {
  1670. b.Navigation("Children");
  1671. });
  1672. modelBuilder.Entity("VberZero.BaseSystem.Roles.Role", b =>
  1673. {
  1674. b.Navigation("Claims");
  1675. b.Navigation("Permissions");
  1676. });
  1677. modelBuilder.Entity("VberZero.BaseSystem.Users.User", b =>
  1678. {
  1679. b.Navigation("Claims");
  1680. b.Navigation("Logins");
  1681. b.Navigation("Permissions");
  1682. b.Navigation("Roles");
  1683. b.Navigation("Settings");
  1684. b.Navigation("Tokens");
  1685. });
  1686. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExecutionPointerInfo", b =>
  1687. {
  1688. b.Navigation("ExtensionAttributes");
  1689. });
  1690. modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowInfo", b =>
  1691. {
  1692. b.Navigation("ExecutionPointers");
  1693. });
  1694. #pragma warning restore 612, 618
  1695. }
  1696. }
  1697. }