20240219082242_altrLogs.Designer.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. // <auto-generated />
  2. using System;
  3. using MTWorkHR.Infrastructure.Data;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Migrations;
  8. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  9. #nullable disable
  10. namespace MTWorkHR.Infrastructure.Migrations
  11. {
  12. [DbContext(typeof(HRDataContext))]
  13. [Migration("20240219082242_altrLogs")]
  14. partial class altrLogs
  15. {
  16. /// <inheritdoc />
  17. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  18. {
  19. #pragma warning disable 612, 618
  20. modelBuilder
  21. .HasAnnotation("ProductVersion", "8.0.1")
  22. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  23. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
  24. modelBuilder.Entity("MTWorkHR.Core.Entities.AuthLog", b =>
  25. {
  26. b.Property<long>("Id")
  27. .ValueGeneratedOnAdd()
  28. .HasColumnType("bigint")
  29. .HasColumnOrder(0);
  30. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  31. b.Property<string>("Channel")
  32. .HasColumnType("nvarchar(max)");
  33. b.Property<DateTime>("CreateDate")
  34. .HasColumnType("datetime2");
  35. b.Property<string>("CreateUser")
  36. .IsRequired()
  37. .HasColumnType("nvarchar(max)");
  38. b.Property<string>("ErrorCode")
  39. .IsRequired()
  40. .HasColumnType("nvarchar(max)");
  41. b.Property<string>("ErrorDescription")
  42. .IsRequired()
  43. .HasColumnType("nvarchar(max)");
  44. b.Property<string>("InnerException")
  45. .HasColumnType("nvarchar(max)");
  46. b.Property<string>("Input")
  47. .HasColumnType("nvarchar(max)");
  48. b.Property<string>("Method")
  49. .IsRequired()
  50. .HasColumnType("nvarchar(max)");
  51. b.Property<string>("QueryString")
  52. .HasColumnType("nvarchar(max)");
  53. b.Property<string>("ServerIP")
  54. .HasColumnType("nvarchar(max)");
  55. b.Property<string>("ServiceResponseTimeInSeconds")
  56. .IsRequired()
  57. .HasColumnType("nvarchar(max)");
  58. b.Property<string>("UserIP")
  59. .HasColumnType("nvarchar(max)");
  60. b.Property<string>("userAgent")
  61. .HasColumnType("nvarchar(max)");
  62. b.HasKey("Id");
  63. b.ToTable("AuthLogs");
  64. });
  65. modelBuilder.Entity("MTWorkHR.Core.Entities.Company", b =>
  66. {
  67. b.Property<long>("Id")
  68. .ValueGeneratedOnAdd()
  69. .HasColumnType("bigint")
  70. .HasColumnOrder(0);
  71. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  72. b.Property<string>("CRNumber")
  73. .IsRequired()
  74. .HasColumnType("nvarchar(max)");
  75. b.Property<string>("CompanyName")
  76. .IsRequired()
  77. .HasColumnType("nvarchar(max)");
  78. b.Property<DateTime>("CreateDate")
  79. .HasColumnType("datetime2")
  80. .HasColumnOrder(3);
  81. b.Property<string>("CreateUser")
  82. .HasMaxLength(450)
  83. .HasColumnType("nvarchar(450)")
  84. .HasColumnOrder(1);
  85. b.Property<bool>("IsDeleted")
  86. .HasColumnType("bit");
  87. b.Property<int>("TaxNumber")
  88. .HasColumnType("int");
  89. b.Property<DateTime?>("UpdateDate")
  90. .HasColumnType("datetime2")
  91. .HasColumnOrder(4);
  92. b.Property<string>("UpdateUser")
  93. .HasMaxLength(450)
  94. .HasColumnType("nvarchar(450)")
  95. .HasColumnOrder(2);
  96. b.Property<long>("UserId")
  97. .HasColumnType("bigint");
  98. b.HasKey("Id");
  99. b.ToTable("Companies");
  100. });
  101. modelBuilder.Entity("MTWorkHR.Core.Entities.FileLog", b =>
  102. {
  103. b.Property<long>("Id")
  104. .ValueGeneratedOnAdd()
  105. .HasColumnType("bigint")
  106. .HasColumnOrder(0);
  107. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  108. b.Property<string>("Channel")
  109. .HasColumnType("nvarchar(max)");
  110. b.Property<DateTime>("CreateDate")
  111. .HasColumnType("datetime2");
  112. b.Property<string>("CreateUser")
  113. .IsRequired()
  114. .HasColumnType("nvarchar(max)");
  115. b.Property<string>("ErrorCode")
  116. .IsRequired()
  117. .HasColumnType("nvarchar(max)");
  118. b.Property<string>("ErrorDescription")
  119. .IsRequired()
  120. .HasColumnType("nvarchar(max)");
  121. b.Property<string>("InnerException")
  122. .HasColumnType("nvarchar(max)");
  123. b.Property<string>("Input")
  124. .HasColumnType("nvarchar(max)");
  125. b.Property<string>("Method")
  126. .IsRequired()
  127. .HasColumnType("nvarchar(max)");
  128. b.Property<string>("QueryString")
  129. .HasColumnType("nvarchar(max)");
  130. b.Property<string>("ServerIP")
  131. .HasColumnType("nvarchar(max)");
  132. b.Property<string>("ServiceResponseTimeInSeconds")
  133. .IsRequired()
  134. .HasColumnType("nvarchar(max)");
  135. b.Property<string>("UserIP")
  136. .HasColumnType("nvarchar(max)");
  137. b.Property<string>("userAgent")
  138. .HasColumnType("nvarchar(max)");
  139. b.HasKey("Id");
  140. b.ToTable("FileLogs");
  141. });
  142. modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
  143. {
  144. b.Property<long>("Id")
  145. .ValueGeneratedOnAdd()
  146. .HasColumnType("bigint")
  147. .HasColumnOrder(0);
  148. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  149. b.Property<string>("Channel")
  150. .HasColumnType("nvarchar(max)");
  151. b.Property<DateTime>("CreateDate")
  152. .HasColumnType("datetime2");
  153. b.Property<string>("CreateUser")
  154. .IsRequired()
  155. .HasColumnType("nvarchar(max)");
  156. b.Property<string>("ErrorCode")
  157. .IsRequired()
  158. .HasColumnType("nvarchar(max)");
  159. b.Property<string>("ErrorDescription")
  160. .IsRequired()
  161. .HasColumnType("nvarchar(max)");
  162. b.Property<string>("InnerException")
  163. .HasColumnType("nvarchar(max)");
  164. b.Property<string>("Input")
  165. .HasColumnType("nvarchar(max)");
  166. b.Property<string>("Method")
  167. .IsRequired()
  168. .HasColumnType("nvarchar(max)");
  169. b.Property<string>("QueryString")
  170. .HasColumnType("nvarchar(max)");
  171. b.Property<string>("ServerIP")
  172. .HasColumnType("nvarchar(max)");
  173. b.Property<string>("ServiceResponseTimeInSeconds")
  174. .IsRequired()
  175. .HasColumnType("nvarchar(max)");
  176. b.Property<string>("UserIP")
  177. .HasColumnType("nvarchar(max)");
  178. b.Property<string>("userAgent")
  179. .HasColumnType("nvarchar(max)");
  180. b.HasKey("Id");
  181. b.ToTable("RoleLogs");
  182. });
  183. modelBuilder.Entity("MTWorkHR.Core.Entities.SettingLog", b =>
  184. {
  185. b.Property<long>("Id")
  186. .ValueGeneratedOnAdd()
  187. .HasColumnType("bigint")
  188. .HasColumnOrder(0);
  189. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  190. b.Property<string>("Channel")
  191. .HasColumnType("nvarchar(max)");
  192. b.Property<DateTime>("CreateDate")
  193. .HasColumnType("datetime2");
  194. b.Property<string>("CreateUser")
  195. .IsRequired()
  196. .HasColumnType("nvarchar(max)");
  197. b.Property<string>("ErrorCode")
  198. .IsRequired()
  199. .HasColumnType("nvarchar(max)");
  200. b.Property<string>("ErrorDescription")
  201. .IsRequired()
  202. .HasColumnType("nvarchar(max)");
  203. b.Property<string>("InnerException")
  204. .HasColumnType("nvarchar(max)");
  205. b.Property<string>("Input")
  206. .HasColumnType("nvarchar(max)");
  207. b.Property<string>("Method")
  208. .IsRequired()
  209. .HasColumnType("nvarchar(max)");
  210. b.Property<string>("QueryString")
  211. .HasColumnType("nvarchar(max)");
  212. b.Property<string>("ServerIP")
  213. .HasColumnType("nvarchar(max)");
  214. b.Property<string>("ServiceResponseTimeInSeconds")
  215. .IsRequired()
  216. .HasColumnType("nvarchar(max)");
  217. b.Property<string>("UserIP")
  218. .HasColumnType("nvarchar(max)");
  219. b.Property<string>("userAgent")
  220. .HasColumnType("nvarchar(max)");
  221. b.HasKey("Id");
  222. b.ToTable("SettingLogs");
  223. });
  224. modelBuilder.Entity("MTWorkHR.Core.Entities.UserLog", b =>
  225. {
  226. b.Property<long>("Id")
  227. .ValueGeneratedOnAdd()
  228. .HasColumnType("bigint")
  229. .HasColumnOrder(0);
  230. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  231. b.Property<string>("Channel")
  232. .HasColumnType("nvarchar(max)");
  233. b.Property<DateTime>("CreateDate")
  234. .HasColumnType("datetime2");
  235. b.Property<string>("CreateUser")
  236. .IsRequired()
  237. .HasColumnType("nvarchar(max)");
  238. b.Property<string>("ErrorCode")
  239. .IsRequired()
  240. .HasColumnType("nvarchar(max)");
  241. b.Property<string>("ErrorDescription")
  242. .IsRequired()
  243. .HasColumnType("nvarchar(max)");
  244. b.Property<string>("InnerException")
  245. .HasColumnType("nvarchar(max)");
  246. b.Property<string>("Input")
  247. .HasColumnType("nvarchar(max)");
  248. b.Property<string>("Method")
  249. .IsRequired()
  250. .HasColumnType("nvarchar(max)");
  251. b.Property<string>("QueryString")
  252. .HasColumnType("nvarchar(max)");
  253. b.Property<string>("ServerIP")
  254. .HasColumnType("nvarchar(max)");
  255. b.Property<string>("ServiceResponseTimeInSeconds")
  256. .IsRequired()
  257. .HasColumnType("nvarchar(max)");
  258. b.Property<string>("UserIP")
  259. .HasColumnType("nvarchar(max)");
  260. b.Property<string>("userAgent")
  261. .HasColumnType("nvarchar(max)");
  262. b.HasKey("Id");
  263. b.ToTable("UserLogs");
  264. });
  265. #pragma warning restore 612, 618
  266. }
  267. }
  268. }