20250119103851_rolePermissions.cs 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. #pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
  4. namespace MTWorkHR.Infrastructure.Migrations
  5. {
  6. /// <inheritdoc />
  7. public partial class rolePermissions : Migration
  8. {
  9. /// <inheritdoc />
  10. protected override void Up(MigrationBuilder migrationBuilder)
  11. {
  12. migrationBuilder.UpdateData(
  13. table: "Permissions",
  14. keyColumn: "Id",
  15. keyValue: 21L,
  16. columns: new[] { "CategoryName", "Desc", "Name", "Show" },
  17. values: new object[] { "User", "Company.Suspend", "Company.Suspend", false });
  18. migrationBuilder.UpdateData(
  19. table: "Permissions",
  20. keyColumn: "Id",
  21. keyValue: 22L,
  22. columns: new[] { "Desc", "Name", "Show" },
  23. values: new object[] { "User", "User", true });
  24. migrationBuilder.UpdateData(
  25. table: "Permissions",
  26. keyColumn: "Id",
  27. keyValue: 23L,
  28. columns: new[] { "Desc", "Name" },
  29. values: new object[] { "User.Create", "User.Create" });
  30. migrationBuilder.UpdateData(
  31. table: "Permissions",
  32. keyColumn: "Id",
  33. keyValue: 24L,
  34. columns: new[] { "Desc", "Name" },
  35. values: new object[] { "User.Update", "User.Update" });
  36. migrationBuilder.UpdateData(
  37. table: "Permissions",
  38. keyColumn: "Id",
  39. keyValue: 25L,
  40. columns: new[] { "Desc", "Name", "Show" },
  41. values: new object[] { "User.Delete", "User.Delete", false });
  42. migrationBuilder.UpdateData(
  43. table: "Permissions",
  44. keyColumn: "Id",
  45. keyValue: 26L,
  46. columns: new[] { "Desc", "Name" },
  47. values: new object[] { "User.Suspend", "User.Suspend" });
  48. migrationBuilder.UpdateData(
  49. table: "Permissions",
  50. keyColumn: "Id",
  51. keyValue: 27L,
  52. columns: new[] { "Desc", "Name", "Show" },
  53. values: new object[] { "Role", "Role", true });
  54. migrationBuilder.UpdateData(
  55. table: "Permissions",
  56. keyColumn: "Id",
  57. keyValue: 28L,
  58. columns: new[] { "Desc", "Name" },
  59. values: new object[] { "Role.Create", "Role.Create" });
  60. migrationBuilder.InsertData(
  61. table: "Permissions",
  62. columns: new[] { "Id", "CategoryName", "Desc", "Name", "Show" },
  63. values: new object[,]
  64. {
  65. { 29L, "Adminstration", "Role.Update", "Role.Update", false },
  66. { 30L, "Adminstration", "Role.Delete", "Role.Delete", false },
  67. { 31L, "Adminstration", "Attendance", "Attendance", true },
  68. { 32L, "Adminstration", "Attendance.Create", "Attendance.Create", false },
  69. { 33L, "Adminstration", "Attendance.Update", "Attendance.Update", false },
  70. { 34L, "Adminstration", "Attendance.Delete", "Attendance.Delete", false },
  71. { 35L, "Adminstration", "Contract", "Contract", true },
  72. { 36L, "Adminstration", "Contract.Create", "Contract.Create", false },
  73. { 37L, "Adminstration", "Contract.Update", "Contract.Update", false },
  74. { 38L, "Adminstration", "Contract.Delete", "Contract.Delete", false },
  75. { 39L, "Adminstration", "OrderAllocation", "OrderAllocation", true },
  76. { 40L, "Adminstration", "OrderAllocation.Create", "OrderAllocation.Create", false },
  77. { 41L, "Adminstration", "OrderAllocation.Update", "OrderAllocation.Update", false },
  78. { 42L, "Adminstration", "OrderAllocation.Delete", "OrderAllocation.Delete", false },
  79. { 43L, "Adminstration", "OrderRequest", "OrderRequest", true },
  80. { 44L, "Adminstration", "OrderRequest.Create", "OrderRequest.Create", false },
  81. { 45L, "Adminstration", "OrderRequest.Update", "OrderRequest.Update", false },
  82. { 46L, "Adminstration", "OrderRequest.Delete", "OrderRequest.Delete", false }
  83. });
  84. migrationBuilder.InsertData(
  85. table: "RolePermissions",
  86. columns: new[] { "Id", "PermissionId", "PermissionName", "RoleId" },
  87. values: new object[,]
  88. {
  89. { 1L, 1L, "Project", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  90. { 2L, 2L, "Project.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  91. { 3L, 3L, "Project.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  92. { 4L, 4L, "Project.Delete", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  93. { 5L, 5L, "Meeting", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  94. { 6L, 6L, "Meeting.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  95. { 7L, 7L, "Meeting.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  96. { 8L, 8L, "Meeting.Delete", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  97. { 9L, 9L, "Team", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  98. { 10L, 10L, "Team.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  99. { 11L, 11L, "Team.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  100. { 12L, 12L, "Team.Delete", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  101. { 13L, 13L, "UserTask", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  102. { 14L, 14L, "UserTask.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  103. { 15L, 15L, "UserTask.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  104. { 16L, 16L, "UserTask.Delete", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  105. { 17L, 17L, "Company", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  106. { 18L, 18L, "Company.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  107. { 19L, 19L, "Company.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  108. { 20L, 22L, "User", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  109. { 21L, 23L, "User.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  110. { 22L, 24L, "User.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  111. { 23L, 27L, "Role", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  112. { 24L, 28L, "Role.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  113. { 43L, 17L, "Company.GetAll", "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A" },
  114. { 44L, 20L, "Company.Delete", "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A" },
  115. { 45L, 21L, "Company.Suspend", "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A" },
  116. { 46L, 22L, "User.GetAll", "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A" },
  117. { 47L, 25L, "User.Delete", "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A" },
  118. { 48L, 26L, "User.Suspend", "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A" },
  119. { 49L, 1L, "Project", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  120. { 50L, 2L, "Project.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  121. { 51L, 3L, "Project.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  122. { 52L, 4L, "Project.Delete", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  123. { 53L, 5L, "Meeting", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  124. { 54L, 6L, "Meeting.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  125. { 55L, 7L, "Meeting.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  126. { 56L, 8L, "Meeting.Delete", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  127. { 57L, 9L, "Team", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  128. { 58L, 10L, "Team.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  129. { 59L, 11L, "Team.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  130. { 60L, 12L, "Team.Delete", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  131. { 61L, 13L, "UserTask", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  132. { 62L, 14L, "UserTask.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  133. { 63L, 15L, "UserTask.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  134. { 64L, 16L, "UserTask.Delete", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  135. { 65L, 17L, "Company", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  136. { 66L, 18L, "Company.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  137. { 67L, 19L, "Company.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  138. { 68L, 22L, "User", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  139. { 69L, 23L, "User.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  140. { 70L, 24L, "User.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  141. { 71L, 27L, "Role", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  142. { 72L, 28L, "Role.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  143. { 91L, 1L, "Project", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  144. { 92L, 2L, "Project.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  145. { 93L, 3L, "Project.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  146. { 94L, 4L, "Project.Delete", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  147. { 95L, 5L, "Meeting", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  148. { 96L, 6L, "Meeting.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  149. { 97L, 7L, "Meeting.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  150. { 98L, 8L, "Meeting.Delete", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  151. { 99L, 9L, "Team", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  152. { 100L, 10L, "Team.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  153. { 101L, 11L, "Team.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  154. { 102L, 12L, "Team.Delete", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  155. { 103L, 13L, "UserTask", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  156. { 104L, 14L, "UserTask.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  157. { 105L, 15L, "UserTask.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  158. { 106L, 16L, "UserTask.Delete", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  159. { 107L, 17L, "Company", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  160. { 108L, 18L, "Company.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  161. { 109L, 19L, "Company.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  162. { 110L, 22L, "User", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  163. { 111L, 23L, "User.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  164. { 112L, 24L, "User.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  165. { 113L, 27L, "Role", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  166. { 114L, 28L, "Role.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  167. { 25L, 29L, "Role.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  168. { 26L, 30L, "Role.Delete", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  169. { 27L, 31L, "Attendance", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  170. { 28L, 32L, "Attendance.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  171. { 29L, 33L, "Attendance.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  172. { 30L, 34L, "Attendance.Delete", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  173. { 31L, 35L, "Contract", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  174. { 32L, 36L, "Contract.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  175. { 33L, 37L, "Contract.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  176. { 34L, 38L, "Contract.Delete", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  177. { 35L, 39L, "OrderAllocation", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  178. { 36L, 40L, "OrderAllocation.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  179. { 37L, 41L, "OrderAllocation.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  180. { 38L, 42L, "OrderAllocation.Delete", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  181. { 39L, 43L, "OrderRequest", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  182. { 40L, 44L, "OrderRequest.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  183. { 41L, 45L, "OrderRequest.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  184. { 42L, 46L, "OrderRequest.Delete", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
  185. { 73L, 29L, "Role.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  186. { 74L, 30L, "Role.Delete", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  187. { 75L, 31L, "Attendance", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  188. { 76L, 32L, "Attendance.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  189. { 77L, 33L, "Attendance.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  190. { 78L, 34L, "Attendance.Delete", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  191. { 79L, 35L, "Contract", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  192. { 80L, 36L, "Contract.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  193. { 81L, 37L, "Contract.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  194. { 82L, 38L, "Contract.Delete", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  195. { 83L, 39L, "OrderAllocation", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  196. { 84L, 40L, "OrderAllocation.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  197. { 85L, 41L, "OrderAllocation.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  198. { 86L, 42L, "OrderAllocation.Delete", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  199. { 87L, 43L, "OrderRequest", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  200. { 88L, 44L, "OrderRequest.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  201. { 89L, 45L, "OrderRequest.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  202. { 90L, 46L, "OrderRequest.Delete", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
  203. { 115L, 29L, "Role.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  204. { 116L, 30L, "Role.Delete", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  205. { 117L, 31L, "Attendance", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  206. { 118L, 32L, "Attendance.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  207. { 119L, 33L, "Attendance.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  208. { 120L, 34L, "Attendance.Delete", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  209. { 121L, 35L, "Contract", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  210. { 122L, 36L, "Contract.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  211. { 123L, 37L, "Contract.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  212. { 124L, 38L, "Contract.Delete", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  213. { 125L, 39L, "OrderAllocation", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  214. { 126L, 40L, "OrderAllocation.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  215. { 127L, 41L, "OrderAllocation.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  216. { 128L, 42L, "OrderAllocation.Delete", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  217. { 129L, 43L, "OrderRequest", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  218. { 130L, 44L, "OrderRequest.Create", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  219. { 131L, 45L, "OrderRequest.Update", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" },
  220. { 132L, 46L, "OrderRequest.Delete", "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110" }
  221. });
  222. }
  223. /// <inheritdoc />
  224. protected override void Down(MigrationBuilder migrationBuilder)
  225. {
  226. migrationBuilder.DeleteData(
  227. table: "RolePermissions",
  228. keyColumn: "Id",
  229. keyValue: 1L);
  230. migrationBuilder.DeleteData(
  231. table: "RolePermissions",
  232. keyColumn: "Id",
  233. keyValue: 2L);
  234. migrationBuilder.DeleteData(
  235. table: "RolePermissions",
  236. keyColumn: "Id",
  237. keyValue: 3L);
  238. migrationBuilder.DeleteData(
  239. table: "RolePermissions",
  240. keyColumn: "Id",
  241. keyValue: 4L);
  242. migrationBuilder.DeleteData(
  243. table: "RolePermissions",
  244. keyColumn: "Id",
  245. keyValue: 5L);
  246. migrationBuilder.DeleteData(
  247. table: "RolePermissions",
  248. keyColumn: "Id",
  249. keyValue: 6L);
  250. migrationBuilder.DeleteData(
  251. table: "RolePermissions",
  252. keyColumn: "Id",
  253. keyValue: 7L);
  254. migrationBuilder.DeleteData(
  255. table: "RolePermissions",
  256. keyColumn: "Id",
  257. keyValue: 8L);
  258. migrationBuilder.DeleteData(
  259. table: "RolePermissions",
  260. keyColumn: "Id",
  261. keyValue: 9L);
  262. migrationBuilder.DeleteData(
  263. table: "RolePermissions",
  264. keyColumn: "Id",
  265. keyValue: 10L);
  266. migrationBuilder.DeleteData(
  267. table: "RolePermissions",
  268. keyColumn: "Id",
  269. keyValue: 11L);
  270. migrationBuilder.DeleteData(
  271. table: "RolePermissions",
  272. keyColumn: "Id",
  273. keyValue: 12L);
  274. migrationBuilder.DeleteData(
  275. table: "RolePermissions",
  276. keyColumn: "Id",
  277. keyValue: 13L);
  278. migrationBuilder.DeleteData(
  279. table: "RolePermissions",
  280. keyColumn: "Id",
  281. keyValue: 14L);
  282. migrationBuilder.DeleteData(
  283. table: "RolePermissions",
  284. keyColumn: "Id",
  285. keyValue: 15L);
  286. migrationBuilder.DeleteData(
  287. table: "RolePermissions",
  288. keyColumn: "Id",
  289. keyValue: 16L);
  290. migrationBuilder.DeleteData(
  291. table: "RolePermissions",
  292. keyColumn: "Id",
  293. keyValue: 17L);
  294. migrationBuilder.DeleteData(
  295. table: "RolePermissions",
  296. keyColumn: "Id",
  297. keyValue: 18L);
  298. migrationBuilder.DeleteData(
  299. table: "RolePermissions",
  300. keyColumn: "Id",
  301. keyValue: 19L);
  302. migrationBuilder.DeleteData(
  303. table: "RolePermissions",
  304. keyColumn: "Id",
  305. keyValue: 20L);
  306. migrationBuilder.DeleteData(
  307. table: "RolePermissions",
  308. keyColumn: "Id",
  309. keyValue: 21L);
  310. migrationBuilder.DeleteData(
  311. table: "RolePermissions",
  312. keyColumn: "Id",
  313. keyValue: 22L);
  314. migrationBuilder.DeleteData(
  315. table: "RolePermissions",
  316. keyColumn: "Id",
  317. keyValue: 23L);
  318. migrationBuilder.DeleteData(
  319. table: "RolePermissions",
  320. keyColumn: "Id",
  321. keyValue: 24L);
  322. migrationBuilder.DeleteData(
  323. table: "RolePermissions",
  324. keyColumn: "Id",
  325. keyValue: 25L);
  326. migrationBuilder.DeleteData(
  327. table: "RolePermissions",
  328. keyColumn: "Id",
  329. keyValue: 26L);
  330. migrationBuilder.DeleteData(
  331. table: "RolePermissions",
  332. keyColumn: "Id",
  333. keyValue: 27L);
  334. migrationBuilder.DeleteData(
  335. table: "RolePermissions",
  336. keyColumn: "Id",
  337. keyValue: 28L);
  338. migrationBuilder.DeleteData(
  339. table: "RolePermissions",
  340. keyColumn: "Id",
  341. keyValue: 29L);
  342. migrationBuilder.DeleteData(
  343. table: "RolePermissions",
  344. keyColumn: "Id",
  345. keyValue: 30L);
  346. migrationBuilder.DeleteData(
  347. table: "RolePermissions",
  348. keyColumn: "Id",
  349. keyValue: 31L);
  350. migrationBuilder.DeleteData(
  351. table: "RolePermissions",
  352. keyColumn: "Id",
  353. keyValue: 32L);
  354. migrationBuilder.DeleteData(
  355. table: "RolePermissions",
  356. keyColumn: "Id",
  357. keyValue: 33L);
  358. migrationBuilder.DeleteData(
  359. table: "RolePermissions",
  360. keyColumn: "Id",
  361. keyValue: 34L);
  362. migrationBuilder.DeleteData(
  363. table: "RolePermissions",
  364. keyColumn: "Id",
  365. keyValue: 35L);
  366. migrationBuilder.DeleteData(
  367. table: "RolePermissions",
  368. keyColumn: "Id",
  369. keyValue: 36L);
  370. migrationBuilder.DeleteData(
  371. table: "RolePermissions",
  372. keyColumn: "Id",
  373. keyValue: 37L);
  374. migrationBuilder.DeleteData(
  375. table: "RolePermissions",
  376. keyColumn: "Id",
  377. keyValue: 38L);
  378. migrationBuilder.DeleteData(
  379. table: "RolePermissions",
  380. keyColumn: "Id",
  381. keyValue: 39L);
  382. migrationBuilder.DeleteData(
  383. table: "RolePermissions",
  384. keyColumn: "Id",
  385. keyValue: 40L);
  386. migrationBuilder.DeleteData(
  387. table: "RolePermissions",
  388. keyColumn: "Id",
  389. keyValue: 41L);
  390. migrationBuilder.DeleteData(
  391. table: "RolePermissions",
  392. keyColumn: "Id",
  393. keyValue: 42L);
  394. migrationBuilder.DeleteData(
  395. table: "RolePermissions",
  396. keyColumn: "Id",
  397. keyValue: 43L);
  398. migrationBuilder.DeleteData(
  399. table: "RolePermissions",
  400. keyColumn: "Id",
  401. keyValue: 44L);
  402. migrationBuilder.DeleteData(
  403. table: "RolePermissions",
  404. keyColumn: "Id",
  405. keyValue: 45L);
  406. migrationBuilder.DeleteData(
  407. table: "RolePermissions",
  408. keyColumn: "Id",
  409. keyValue: 46L);
  410. migrationBuilder.DeleteData(
  411. table: "RolePermissions",
  412. keyColumn: "Id",
  413. keyValue: 47L);
  414. migrationBuilder.DeleteData(
  415. table: "RolePermissions",
  416. keyColumn: "Id",
  417. keyValue: 48L);
  418. migrationBuilder.DeleteData(
  419. table: "RolePermissions",
  420. keyColumn: "Id",
  421. keyValue: 49L);
  422. migrationBuilder.DeleteData(
  423. table: "RolePermissions",
  424. keyColumn: "Id",
  425. keyValue: 50L);
  426. migrationBuilder.DeleteData(
  427. table: "RolePermissions",
  428. keyColumn: "Id",
  429. keyValue: 51L);
  430. migrationBuilder.DeleteData(
  431. table: "RolePermissions",
  432. keyColumn: "Id",
  433. keyValue: 52L);
  434. migrationBuilder.DeleteData(
  435. table: "RolePermissions",
  436. keyColumn: "Id",
  437. keyValue: 53L);
  438. migrationBuilder.DeleteData(
  439. table: "RolePermissions",
  440. keyColumn: "Id",
  441. keyValue: 54L);
  442. migrationBuilder.DeleteData(
  443. table: "RolePermissions",
  444. keyColumn: "Id",
  445. keyValue: 55L);
  446. migrationBuilder.DeleteData(
  447. table: "RolePermissions",
  448. keyColumn: "Id",
  449. keyValue: 56L);
  450. migrationBuilder.DeleteData(
  451. table: "RolePermissions",
  452. keyColumn: "Id",
  453. keyValue: 57L);
  454. migrationBuilder.DeleteData(
  455. table: "RolePermissions",
  456. keyColumn: "Id",
  457. keyValue: 58L);
  458. migrationBuilder.DeleteData(
  459. table: "RolePermissions",
  460. keyColumn: "Id",
  461. keyValue: 59L);
  462. migrationBuilder.DeleteData(
  463. table: "RolePermissions",
  464. keyColumn: "Id",
  465. keyValue: 60L);
  466. migrationBuilder.DeleteData(
  467. table: "RolePermissions",
  468. keyColumn: "Id",
  469. keyValue: 61L);
  470. migrationBuilder.DeleteData(
  471. table: "RolePermissions",
  472. keyColumn: "Id",
  473. keyValue: 62L);
  474. migrationBuilder.DeleteData(
  475. table: "RolePermissions",
  476. keyColumn: "Id",
  477. keyValue: 63L);
  478. migrationBuilder.DeleteData(
  479. table: "RolePermissions",
  480. keyColumn: "Id",
  481. keyValue: 64L);
  482. migrationBuilder.DeleteData(
  483. table: "RolePermissions",
  484. keyColumn: "Id",
  485. keyValue: 65L);
  486. migrationBuilder.DeleteData(
  487. table: "RolePermissions",
  488. keyColumn: "Id",
  489. keyValue: 66L);
  490. migrationBuilder.DeleteData(
  491. table: "RolePermissions",
  492. keyColumn: "Id",
  493. keyValue: 67L);
  494. migrationBuilder.DeleteData(
  495. table: "RolePermissions",
  496. keyColumn: "Id",
  497. keyValue: 68L);
  498. migrationBuilder.DeleteData(
  499. table: "RolePermissions",
  500. keyColumn: "Id",
  501. keyValue: 69L);
  502. migrationBuilder.DeleteData(
  503. table: "RolePermissions",
  504. keyColumn: "Id",
  505. keyValue: 70L);
  506. migrationBuilder.DeleteData(
  507. table: "RolePermissions",
  508. keyColumn: "Id",
  509. keyValue: 71L);
  510. migrationBuilder.DeleteData(
  511. table: "RolePermissions",
  512. keyColumn: "Id",
  513. keyValue: 72L);
  514. migrationBuilder.DeleteData(
  515. table: "RolePermissions",
  516. keyColumn: "Id",
  517. keyValue: 73L);
  518. migrationBuilder.DeleteData(
  519. table: "RolePermissions",
  520. keyColumn: "Id",
  521. keyValue: 74L);
  522. migrationBuilder.DeleteData(
  523. table: "RolePermissions",
  524. keyColumn: "Id",
  525. keyValue: 75L);
  526. migrationBuilder.DeleteData(
  527. table: "RolePermissions",
  528. keyColumn: "Id",
  529. keyValue: 76L);
  530. migrationBuilder.DeleteData(
  531. table: "RolePermissions",
  532. keyColumn: "Id",
  533. keyValue: 77L);
  534. migrationBuilder.DeleteData(
  535. table: "RolePermissions",
  536. keyColumn: "Id",
  537. keyValue: 78L);
  538. migrationBuilder.DeleteData(
  539. table: "RolePermissions",
  540. keyColumn: "Id",
  541. keyValue: 79L);
  542. migrationBuilder.DeleteData(
  543. table: "RolePermissions",
  544. keyColumn: "Id",
  545. keyValue: 80L);
  546. migrationBuilder.DeleteData(
  547. table: "RolePermissions",
  548. keyColumn: "Id",
  549. keyValue: 81L);
  550. migrationBuilder.DeleteData(
  551. table: "RolePermissions",
  552. keyColumn: "Id",
  553. keyValue: 82L);
  554. migrationBuilder.DeleteData(
  555. table: "RolePermissions",
  556. keyColumn: "Id",
  557. keyValue: 83L);
  558. migrationBuilder.DeleteData(
  559. table: "RolePermissions",
  560. keyColumn: "Id",
  561. keyValue: 84L);
  562. migrationBuilder.DeleteData(
  563. table: "RolePermissions",
  564. keyColumn: "Id",
  565. keyValue: 85L);
  566. migrationBuilder.DeleteData(
  567. table: "RolePermissions",
  568. keyColumn: "Id",
  569. keyValue: 86L);
  570. migrationBuilder.DeleteData(
  571. table: "RolePermissions",
  572. keyColumn: "Id",
  573. keyValue: 87L);
  574. migrationBuilder.DeleteData(
  575. table: "RolePermissions",
  576. keyColumn: "Id",
  577. keyValue: 88L);
  578. migrationBuilder.DeleteData(
  579. table: "RolePermissions",
  580. keyColumn: "Id",
  581. keyValue: 89L);
  582. migrationBuilder.DeleteData(
  583. table: "RolePermissions",
  584. keyColumn: "Id",
  585. keyValue: 90L);
  586. migrationBuilder.DeleteData(
  587. table: "RolePermissions",
  588. keyColumn: "Id",
  589. keyValue: 91L);
  590. migrationBuilder.DeleteData(
  591. table: "RolePermissions",
  592. keyColumn: "Id",
  593. keyValue: 92L);
  594. migrationBuilder.DeleteData(
  595. table: "RolePermissions",
  596. keyColumn: "Id",
  597. keyValue: 93L);
  598. migrationBuilder.DeleteData(
  599. table: "RolePermissions",
  600. keyColumn: "Id",
  601. keyValue: 94L);
  602. migrationBuilder.DeleteData(
  603. table: "RolePermissions",
  604. keyColumn: "Id",
  605. keyValue: 95L);
  606. migrationBuilder.DeleteData(
  607. table: "RolePermissions",
  608. keyColumn: "Id",
  609. keyValue: 96L);
  610. migrationBuilder.DeleteData(
  611. table: "RolePermissions",
  612. keyColumn: "Id",
  613. keyValue: 97L);
  614. migrationBuilder.DeleteData(
  615. table: "RolePermissions",
  616. keyColumn: "Id",
  617. keyValue: 98L);
  618. migrationBuilder.DeleteData(
  619. table: "RolePermissions",
  620. keyColumn: "Id",
  621. keyValue: 99L);
  622. migrationBuilder.DeleteData(
  623. table: "RolePermissions",
  624. keyColumn: "Id",
  625. keyValue: 100L);
  626. migrationBuilder.DeleteData(
  627. table: "RolePermissions",
  628. keyColumn: "Id",
  629. keyValue: 101L);
  630. migrationBuilder.DeleteData(
  631. table: "RolePermissions",
  632. keyColumn: "Id",
  633. keyValue: 102L);
  634. migrationBuilder.DeleteData(
  635. table: "RolePermissions",
  636. keyColumn: "Id",
  637. keyValue: 103L);
  638. migrationBuilder.DeleteData(
  639. table: "RolePermissions",
  640. keyColumn: "Id",
  641. keyValue: 104L);
  642. migrationBuilder.DeleteData(
  643. table: "RolePermissions",
  644. keyColumn: "Id",
  645. keyValue: 105L);
  646. migrationBuilder.DeleteData(
  647. table: "RolePermissions",
  648. keyColumn: "Id",
  649. keyValue: 106L);
  650. migrationBuilder.DeleteData(
  651. table: "RolePermissions",
  652. keyColumn: "Id",
  653. keyValue: 107L);
  654. migrationBuilder.DeleteData(
  655. table: "RolePermissions",
  656. keyColumn: "Id",
  657. keyValue: 108L);
  658. migrationBuilder.DeleteData(
  659. table: "RolePermissions",
  660. keyColumn: "Id",
  661. keyValue: 109L);
  662. migrationBuilder.DeleteData(
  663. table: "RolePermissions",
  664. keyColumn: "Id",
  665. keyValue: 110L);
  666. migrationBuilder.DeleteData(
  667. table: "RolePermissions",
  668. keyColumn: "Id",
  669. keyValue: 111L);
  670. migrationBuilder.DeleteData(
  671. table: "RolePermissions",
  672. keyColumn: "Id",
  673. keyValue: 112L);
  674. migrationBuilder.DeleteData(
  675. table: "RolePermissions",
  676. keyColumn: "Id",
  677. keyValue: 113L);
  678. migrationBuilder.DeleteData(
  679. table: "RolePermissions",
  680. keyColumn: "Id",
  681. keyValue: 114L);
  682. migrationBuilder.DeleteData(
  683. table: "RolePermissions",
  684. keyColumn: "Id",
  685. keyValue: 115L);
  686. migrationBuilder.DeleteData(
  687. table: "RolePermissions",
  688. keyColumn: "Id",
  689. keyValue: 116L);
  690. migrationBuilder.DeleteData(
  691. table: "RolePermissions",
  692. keyColumn: "Id",
  693. keyValue: 117L);
  694. migrationBuilder.DeleteData(
  695. table: "RolePermissions",
  696. keyColumn: "Id",
  697. keyValue: 118L);
  698. migrationBuilder.DeleteData(
  699. table: "RolePermissions",
  700. keyColumn: "Id",
  701. keyValue: 119L);
  702. migrationBuilder.DeleteData(
  703. table: "RolePermissions",
  704. keyColumn: "Id",
  705. keyValue: 120L);
  706. migrationBuilder.DeleteData(
  707. table: "RolePermissions",
  708. keyColumn: "Id",
  709. keyValue: 121L);
  710. migrationBuilder.DeleteData(
  711. table: "RolePermissions",
  712. keyColumn: "Id",
  713. keyValue: 122L);
  714. migrationBuilder.DeleteData(
  715. table: "RolePermissions",
  716. keyColumn: "Id",
  717. keyValue: 123L);
  718. migrationBuilder.DeleteData(
  719. table: "RolePermissions",
  720. keyColumn: "Id",
  721. keyValue: 124L);
  722. migrationBuilder.DeleteData(
  723. table: "RolePermissions",
  724. keyColumn: "Id",
  725. keyValue: 125L);
  726. migrationBuilder.DeleteData(
  727. table: "RolePermissions",
  728. keyColumn: "Id",
  729. keyValue: 126L);
  730. migrationBuilder.DeleteData(
  731. table: "RolePermissions",
  732. keyColumn: "Id",
  733. keyValue: 127L);
  734. migrationBuilder.DeleteData(
  735. table: "RolePermissions",
  736. keyColumn: "Id",
  737. keyValue: 128L);
  738. migrationBuilder.DeleteData(
  739. table: "RolePermissions",
  740. keyColumn: "Id",
  741. keyValue: 129L);
  742. migrationBuilder.DeleteData(
  743. table: "RolePermissions",
  744. keyColumn: "Id",
  745. keyValue: 130L);
  746. migrationBuilder.DeleteData(
  747. table: "RolePermissions",
  748. keyColumn: "Id",
  749. keyValue: 131L);
  750. migrationBuilder.DeleteData(
  751. table: "RolePermissions",
  752. keyColumn: "Id",
  753. keyValue: 132L);
  754. migrationBuilder.DeleteData(
  755. table: "Permissions",
  756. keyColumn: "Id",
  757. keyValue: 29L);
  758. migrationBuilder.DeleteData(
  759. table: "Permissions",
  760. keyColumn: "Id",
  761. keyValue: 30L);
  762. migrationBuilder.DeleteData(
  763. table: "Permissions",
  764. keyColumn: "Id",
  765. keyValue: 31L);
  766. migrationBuilder.DeleteData(
  767. table: "Permissions",
  768. keyColumn: "Id",
  769. keyValue: 32L);
  770. migrationBuilder.DeleteData(
  771. table: "Permissions",
  772. keyColumn: "Id",
  773. keyValue: 33L);
  774. migrationBuilder.DeleteData(
  775. table: "Permissions",
  776. keyColumn: "Id",
  777. keyValue: 34L);
  778. migrationBuilder.DeleteData(
  779. table: "Permissions",
  780. keyColumn: "Id",
  781. keyValue: 35L);
  782. migrationBuilder.DeleteData(
  783. table: "Permissions",
  784. keyColumn: "Id",
  785. keyValue: 36L);
  786. migrationBuilder.DeleteData(
  787. table: "Permissions",
  788. keyColumn: "Id",
  789. keyValue: 37L);
  790. migrationBuilder.DeleteData(
  791. table: "Permissions",
  792. keyColumn: "Id",
  793. keyValue: 38L);
  794. migrationBuilder.DeleteData(
  795. table: "Permissions",
  796. keyColumn: "Id",
  797. keyValue: 39L);
  798. migrationBuilder.DeleteData(
  799. table: "Permissions",
  800. keyColumn: "Id",
  801. keyValue: 40L);
  802. migrationBuilder.DeleteData(
  803. table: "Permissions",
  804. keyColumn: "Id",
  805. keyValue: 41L);
  806. migrationBuilder.DeleteData(
  807. table: "Permissions",
  808. keyColumn: "Id",
  809. keyValue: 42L);
  810. migrationBuilder.DeleteData(
  811. table: "Permissions",
  812. keyColumn: "Id",
  813. keyValue: 43L);
  814. migrationBuilder.DeleteData(
  815. table: "Permissions",
  816. keyColumn: "Id",
  817. keyValue: 44L);
  818. migrationBuilder.DeleteData(
  819. table: "Permissions",
  820. keyColumn: "Id",
  821. keyValue: 45L);
  822. migrationBuilder.DeleteData(
  823. table: "Permissions",
  824. keyColumn: "Id",
  825. keyValue: 46L);
  826. migrationBuilder.UpdateData(
  827. table: "Permissions",
  828. keyColumn: "Id",
  829. keyValue: 21L,
  830. columns: new[] { "CategoryName", "Desc", "Name", "Show" },
  831. values: new object[] { "Adminstration", "User", "User", true });
  832. migrationBuilder.UpdateData(
  833. table: "Permissions",
  834. keyColumn: "Id",
  835. keyValue: 22L,
  836. columns: new[] { "Desc", "Name", "Show" },
  837. values: new object[] { "User.Create", "User.Create", false });
  838. migrationBuilder.UpdateData(
  839. table: "Permissions",
  840. keyColumn: "Id",
  841. keyValue: 23L,
  842. columns: new[] { "Desc", "Name" },
  843. values: new object[] { "User.Update", "User.Update" });
  844. migrationBuilder.UpdateData(
  845. table: "Permissions",
  846. keyColumn: "Id",
  847. keyValue: 24L,
  848. columns: new[] { "Desc", "Name" },
  849. values: new object[] { "User.Delete", "User.Delete" });
  850. migrationBuilder.UpdateData(
  851. table: "Permissions",
  852. keyColumn: "Id",
  853. keyValue: 25L,
  854. columns: new[] { "Desc", "Name", "Show" },
  855. values: new object[] { "Role", "Role", true });
  856. migrationBuilder.UpdateData(
  857. table: "Permissions",
  858. keyColumn: "Id",
  859. keyValue: 26L,
  860. columns: new[] { "Desc", "Name" },
  861. values: new object[] { "Role.Create", "Role.Create" });
  862. migrationBuilder.UpdateData(
  863. table: "Permissions",
  864. keyColumn: "Id",
  865. keyValue: 27L,
  866. columns: new[] { "Desc", "Name", "Show" },
  867. values: new object[] { "Role.Update", "Role.Update", false });
  868. migrationBuilder.UpdateData(
  869. table: "Permissions",
  870. keyColumn: "Id",
  871. keyValue: 28L,
  872. columns: new[] { "Desc", "Name" },
  873. values: new object[] { "Role.Delete", "Role.Delete" });
  874. }
  875. }
  876. }