1
0

20241111170112_ModernHwid.Designer.cs 80 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072
  1. // <auto-generated />
  2. using System;
  3. using System.Net;
  4. using System.Text.Json;
  5. using Content.Server.Database;
  6. using Microsoft.EntityFrameworkCore;
  7. using Microsoft.EntityFrameworkCore.Infrastructure;
  8. using Microsoft.EntityFrameworkCore.Migrations;
  9. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  10. using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
  11. using NpgsqlTypes;
  12. #nullable disable
  13. namespace Content.Server.Database.Migrations.Postgres
  14. {
  15. [DbContext(typeof(PostgresServerDbContext))]
  16. [Migration("20241111170112_ModernHwid")]
  17. partial class ModernHwid
  18. {
  19. /// <inheritdoc />
  20. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  21. {
  22. #pragma warning disable 612, 618
  23. modelBuilder
  24. .HasAnnotation("ProductVersion", "8.0.0")
  25. .HasAnnotation("Relational:MaxIdentifierLength", 63);
  26. NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
  27. modelBuilder.Entity("Content.Server.Database.Admin", b =>
  28. {
  29. b.Property<Guid>("UserId")
  30. .ValueGeneratedOnAdd()
  31. .HasColumnType("uuid")
  32. .HasColumnName("user_id");
  33. b.Property<int?>("AdminRankId")
  34. .HasColumnType("integer")
  35. .HasColumnName("admin_rank_id");
  36. b.Property<string>("Title")
  37. .HasColumnType("text")
  38. .HasColumnName("title");
  39. b.HasKey("UserId")
  40. .HasName("PK_admin");
  41. b.HasIndex("AdminRankId")
  42. .HasDatabaseName("IX_admin_admin_rank_id");
  43. b.ToTable("admin", (string)null);
  44. });
  45. modelBuilder.Entity("Content.Server.Database.AdminFlag", b =>
  46. {
  47. b.Property<int>("Id")
  48. .ValueGeneratedOnAdd()
  49. .HasColumnType("integer")
  50. .HasColumnName("admin_flag_id");
  51. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  52. b.Property<Guid>("AdminId")
  53. .HasColumnType("uuid")
  54. .HasColumnName("admin_id");
  55. b.Property<string>("Flag")
  56. .IsRequired()
  57. .HasColumnType("text")
  58. .HasColumnName("flag");
  59. b.Property<bool>("Negative")
  60. .HasColumnType("boolean")
  61. .HasColumnName("negative");
  62. b.HasKey("Id")
  63. .HasName("PK_admin_flag");
  64. b.HasIndex("AdminId")
  65. .HasDatabaseName("IX_admin_flag_admin_id");
  66. b.HasIndex("Flag", "AdminId")
  67. .IsUnique();
  68. b.ToTable("admin_flag", (string)null);
  69. });
  70. modelBuilder.Entity("Content.Server.Database.AdminLog", b =>
  71. {
  72. b.Property<int>("RoundId")
  73. .HasColumnType("integer")
  74. .HasColumnName("round_id");
  75. b.Property<int>("Id")
  76. .HasColumnType("integer")
  77. .HasColumnName("admin_log_id");
  78. b.Property<DateTime>("Date")
  79. .HasColumnType("timestamp with time zone")
  80. .HasColumnName("date");
  81. b.Property<short>("Impact")
  82. .HasColumnType("smallint")
  83. .HasColumnName("impact");
  84. b.Property<JsonDocument>("Json")
  85. .IsRequired()
  86. .HasColumnType("jsonb")
  87. .HasColumnName("json");
  88. b.Property<string>("Message")
  89. .IsRequired()
  90. .HasColumnType("text")
  91. .HasColumnName("message");
  92. b.Property<int>("Type")
  93. .HasColumnType("integer")
  94. .HasColumnName("type");
  95. b.HasKey("RoundId", "Id")
  96. .HasName("PK_admin_log");
  97. b.HasIndex("Date");
  98. b.HasIndex("Message")
  99. .HasAnnotation("Npgsql:TsVectorConfig", "english");
  100. NpgsqlIndexBuilderExtensions.HasMethod(b.HasIndex("Message"), "GIN");
  101. b.HasIndex("Type")
  102. .HasDatabaseName("IX_admin_log_type");
  103. b.ToTable("admin_log", (string)null);
  104. });
  105. modelBuilder.Entity("Content.Server.Database.AdminLogPlayer", b =>
  106. {
  107. b.Property<int>("RoundId")
  108. .HasColumnType("integer")
  109. .HasColumnName("round_id");
  110. b.Property<int>("LogId")
  111. .HasColumnType("integer")
  112. .HasColumnName("log_id");
  113. b.Property<Guid>("PlayerUserId")
  114. .HasColumnType("uuid")
  115. .HasColumnName("player_user_id");
  116. b.HasKey("RoundId", "LogId", "PlayerUserId")
  117. .HasName("PK_admin_log_player");
  118. b.HasIndex("PlayerUserId")
  119. .HasDatabaseName("IX_admin_log_player_player_user_id");
  120. b.ToTable("admin_log_player", (string)null);
  121. });
  122. modelBuilder.Entity("Content.Server.Database.AdminMessage", b =>
  123. {
  124. b.Property<int>("Id")
  125. .ValueGeneratedOnAdd()
  126. .HasColumnType("integer")
  127. .HasColumnName("admin_messages_id");
  128. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  129. b.Property<DateTime>("CreatedAt")
  130. .HasColumnType("timestamp with time zone")
  131. .HasColumnName("created_at");
  132. b.Property<Guid?>("CreatedById")
  133. .HasColumnType("uuid")
  134. .HasColumnName("created_by_id");
  135. b.Property<bool>("Deleted")
  136. .HasColumnType("boolean")
  137. .HasColumnName("deleted");
  138. b.Property<DateTime?>("DeletedAt")
  139. .HasColumnType("timestamp with time zone")
  140. .HasColumnName("deleted_at");
  141. b.Property<Guid?>("DeletedById")
  142. .HasColumnType("uuid")
  143. .HasColumnName("deleted_by_id");
  144. b.Property<bool>("Dismissed")
  145. .HasColumnType("boolean")
  146. .HasColumnName("dismissed");
  147. b.Property<DateTime?>("ExpirationTime")
  148. .HasColumnType("timestamp with time zone")
  149. .HasColumnName("expiration_time");
  150. b.Property<DateTime?>("LastEditedAt")
  151. .HasColumnType("timestamp with time zone")
  152. .HasColumnName("last_edited_at");
  153. b.Property<Guid?>("LastEditedById")
  154. .HasColumnType("uuid")
  155. .HasColumnName("last_edited_by_id");
  156. b.Property<string>("Message")
  157. .IsRequired()
  158. .HasMaxLength(4096)
  159. .HasColumnType("character varying(4096)")
  160. .HasColumnName("message");
  161. b.Property<Guid?>("PlayerUserId")
  162. .HasColumnType("uuid")
  163. .HasColumnName("player_user_id");
  164. b.Property<TimeSpan>("PlaytimeAtNote")
  165. .HasColumnType("interval")
  166. .HasColumnName("playtime_at_note");
  167. b.Property<int?>("RoundId")
  168. .HasColumnType("integer")
  169. .HasColumnName("round_id");
  170. b.Property<bool>("Seen")
  171. .HasColumnType("boolean")
  172. .HasColumnName("seen");
  173. b.HasKey("Id")
  174. .HasName("PK_admin_messages");
  175. b.HasIndex("CreatedById");
  176. b.HasIndex("DeletedById");
  177. b.HasIndex("LastEditedById");
  178. b.HasIndex("PlayerUserId")
  179. .HasDatabaseName("IX_admin_messages_player_user_id");
  180. b.HasIndex("RoundId")
  181. .HasDatabaseName("IX_admin_messages_round_id");
  182. b.ToTable("admin_messages", null, t =>
  183. {
  184. t.HasCheckConstraint("NotDismissedAndSeen", "NOT dismissed OR seen");
  185. });
  186. });
  187. modelBuilder.Entity("Content.Server.Database.AdminNote", b =>
  188. {
  189. b.Property<int>("Id")
  190. .ValueGeneratedOnAdd()
  191. .HasColumnType("integer")
  192. .HasColumnName("admin_notes_id");
  193. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  194. b.Property<DateTime>("CreatedAt")
  195. .HasColumnType("timestamp with time zone")
  196. .HasColumnName("created_at");
  197. b.Property<Guid?>("CreatedById")
  198. .HasColumnType("uuid")
  199. .HasColumnName("created_by_id");
  200. b.Property<bool>("Deleted")
  201. .HasColumnType("boolean")
  202. .HasColumnName("deleted");
  203. b.Property<DateTime?>("DeletedAt")
  204. .HasColumnType("timestamp with time zone")
  205. .HasColumnName("deleted_at");
  206. b.Property<Guid?>("DeletedById")
  207. .HasColumnType("uuid")
  208. .HasColumnName("deleted_by_id");
  209. b.Property<DateTime?>("ExpirationTime")
  210. .HasColumnType("timestamp with time zone")
  211. .HasColumnName("expiration_time");
  212. b.Property<DateTime?>("LastEditedAt")
  213. .IsRequired()
  214. .HasColumnType("timestamp with time zone")
  215. .HasColumnName("last_edited_at");
  216. b.Property<Guid?>("LastEditedById")
  217. .HasColumnType("uuid")
  218. .HasColumnName("last_edited_by_id");
  219. b.Property<string>("Message")
  220. .IsRequired()
  221. .HasMaxLength(4096)
  222. .HasColumnType("character varying(4096)")
  223. .HasColumnName("message");
  224. b.Property<Guid?>("PlayerUserId")
  225. .HasColumnType("uuid")
  226. .HasColumnName("player_user_id");
  227. b.Property<TimeSpan>("PlaytimeAtNote")
  228. .HasColumnType("interval")
  229. .HasColumnName("playtime_at_note");
  230. b.Property<int?>("RoundId")
  231. .HasColumnType("integer")
  232. .HasColumnName("round_id");
  233. b.Property<bool>("Secret")
  234. .HasColumnType("boolean")
  235. .HasColumnName("secret");
  236. b.Property<int>("Severity")
  237. .HasColumnType("integer")
  238. .HasColumnName("severity");
  239. b.HasKey("Id")
  240. .HasName("PK_admin_notes");
  241. b.HasIndex("CreatedById");
  242. b.HasIndex("DeletedById");
  243. b.HasIndex("LastEditedById");
  244. b.HasIndex("PlayerUserId")
  245. .HasDatabaseName("IX_admin_notes_player_user_id");
  246. b.HasIndex("RoundId")
  247. .HasDatabaseName("IX_admin_notes_round_id");
  248. b.ToTable("admin_notes", (string)null);
  249. });
  250. modelBuilder.Entity("Content.Server.Database.AdminRank", b =>
  251. {
  252. b.Property<int>("Id")
  253. .ValueGeneratedOnAdd()
  254. .HasColumnType("integer")
  255. .HasColumnName("admin_rank_id");
  256. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  257. b.Property<string>("Name")
  258. .IsRequired()
  259. .HasColumnType("text")
  260. .HasColumnName("name");
  261. b.HasKey("Id")
  262. .HasName("PK_admin_rank");
  263. b.ToTable("admin_rank", (string)null);
  264. });
  265. modelBuilder.Entity("Content.Server.Database.AdminRankFlag", b =>
  266. {
  267. b.Property<int>("Id")
  268. .ValueGeneratedOnAdd()
  269. .HasColumnType("integer")
  270. .HasColumnName("admin_rank_flag_id");
  271. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  272. b.Property<int>("AdminRankId")
  273. .HasColumnType("integer")
  274. .HasColumnName("admin_rank_id");
  275. b.Property<string>("Flag")
  276. .IsRequired()
  277. .HasColumnType("text")
  278. .HasColumnName("flag");
  279. b.HasKey("Id")
  280. .HasName("PK_admin_rank_flag");
  281. b.HasIndex("AdminRankId");
  282. b.HasIndex("Flag", "AdminRankId")
  283. .IsUnique();
  284. b.ToTable("admin_rank_flag", (string)null);
  285. });
  286. modelBuilder.Entity("Content.Server.Database.AdminWatchlist", b =>
  287. {
  288. b.Property<int>("Id")
  289. .ValueGeneratedOnAdd()
  290. .HasColumnType("integer")
  291. .HasColumnName("admin_watchlists_id");
  292. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  293. b.Property<DateTime>("CreatedAt")
  294. .HasColumnType("timestamp with time zone")
  295. .HasColumnName("created_at");
  296. b.Property<Guid?>("CreatedById")
  297. .HasColumnType("uuid")
  298. .HasColumnName("created_by_id");
  299. b.Property<bool>("Deleted")
  300. .HasColumnType("boolean")
  301. .HasColumnName("deleted");
  302. b.Property<DateTime?>("DeletedAt")
  303. .HasColumnType("timestamp with time zone")
  304. .HasColumnName("deleted_at");
  305. b.Property<Guid?>("DeletedById")
  306. .HasColumnType("uuid")
  307. .HasColumnName("deleted_by_id");
  308. b.Property<DateTime?>("ExpirationTime")
  309. .HasColumnType("timestamp with time zone")
  310. .HasColumnName("expiration_time");
  311. b.Property<DateTime?>("LastEditedAt")
  312. .IsRequired()
  313. .HasColumnType("timestamp with time zone")
  314. .HasColumnName("last_edited_at");
  315. b.Property<Guid?>("LastEditedById")
  316. .HasColumnType("uuid")
  317. .HasColumnName("last_edited_by_id");
  318. b.Property<string>("Message")
  319. .IsRequired()
  320. .HasMaxLength(4096)
  321. .HasColumnType("character varying(4096)")
  322. .HasColumnName("message");
  323. b.Property<Guid?>("PlayerUserId")
  324. .HasColumnType("uuid")
  325. .HasColumnName("player_user_id");
  326. b.Property<TimeSpan>("PlaytimeAtNote")
  327. .HasColumnType("interval")
  328. .HasColumnName("playtime_at_note");
  329. b.Property<int?>("RoundId")
  330. .HasColumnType("integer")
  331. .HasColumnName("round_id");
  332. b.HasKey("Id")
  333. .HasName("PK_admin_watchlists");
  334. b.HasIndex("CreatedById");
  335. b.HasIndex("DeletedById");
  336. b.HasIndex("LastEditedById");
  337. b.HasIndex("PlayerUserId")
  338. .HasDatabaseName("IX_admin_watchlists_player_user_id");
  339. b.HasIndex("RoundId")
  340. .HasDatabaseName("IX_admin_watchlists_round_id");
  341. b.ToTable("admin_watchlists", (string)null);
  342. });
  343. modelBuilder.Entity("Content.Server.Database.Antag", b =>
  344. {
  345. b.Property<int>("Id")
  346. .ValueGeneratedOnAdd()
  347. .HasColumnType("integer")
  348. .HasColumnName("antag_id");
  349. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  350. b.Property<string>("AntagName")
  351. .IsRequired()
  352. .HasColumnType("text")
  353. .HasColumnName("antag_name");
  354. b.Property<int>("ProfileId")
  355. .HasColumnType("integer")
  356. .HasColumnName("profile_id");
  357. b.HasKey("Id")
  358. .HasName("PK_antag");
  359. b.HasIndex("ProfileId", "AntagName")
  360. .IsUnique();
  361. b.ToTable("antag", (string)null);
  362. });
  363. modelBuilder.Entity("Content.Server.Database.AssignedUserId", b =>
  364. {
  365. b.Property<int>("Id")
  366. .ValueGeneratedOnAdd()
  367. .HasColumnType("integer")
  368. .HasColumnName("assigned_user_id_id");
  369. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  370. b.Property<Guid>("UserId")
  371. .HasColumnType("uuid")
  372. .HasColumnName("user_id");
  373. b.Property<string>("UserName")
  374. .IsRequired()
  375. .HasColumnType("text")
  376. .HasColumnName("user_name");
  377. b.HasKey("Id")
  378. .HasName("PK_assigned_user_id");
  379. b.HasIndex("UserId")
  380. .IsUnique();
  381. b.HasIndex("UserName")
  382. .IsUnique();
  383. b.ToTable("assigned_user_id", (string)null);
  384. });
  385. modelBuilder.Entity("Content.Server.Database.BanTemplate", b =>
  386. {
  387. b.Property<int>("Id")
  388. .ValueGeneratedOnAdd()
  389. .HasColumnType("integer")
  390. .HasColumnName("ban_template_id");
  391. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  392. b.Property<bool>("AutoDelete")
  393. .HasColumnType("boolean")
  394. .HasColumnName("auto_delete");
  395. b.Property<int>("ExemptFlags")
  396. .HasColumnType("integer")
  397. .HasColumnName("exempt_flags");
  398. b.Property<bool>("Hidden")
  399. .HasColumnType("boolean")
  400. .HasColumnName("hidden");
  401. b.Property<TimeSpan>("Length")
  402. .HasColumnType("interval")
  403. .HasColumnName("length");
  404. b.Property<string>("Reason")
  405. .IsRequired()
  406. .HasColumnType("text")
  407. .HasColumnName("reason");
  408. b.Property<int>("Severity")
  409. .HasColumnType("integer")
  410. .HasColumnName("severity");
  411. b.Property<string>("Title")
  412. .IsRequired()
  413. .HasColumnType("text")
  414. .HasColumnName("title");
  415. b.HasKey("Id")
  416. .HasName("PK_ban_template");
  417. b.ToTable("ban_template", (string)null);
  418. });
  419. modelBuilder.Entity("Content.Server.Database.Blacklist", b =>
  420. {
  421. b.Property<Guid>("UserId")
  422. .ValueGeneratedOnAdd()
  423. .HasColumnType("uuid")
  424. .HasColumnName("user_id");
  425. b.HasKey("UserId")
  426. .HasName("PK_blacklist");
  427. b.ToTable("blacklist", (string)null);
  428. });
  429. modelBuilder.Entity("Content.Server.Database.ConnectionLog", b =>
  430. {
  431. b.Property<int>("Id")
  432. .ValueGeneratedOnAdd()
  433. .HasColumnType("integer")
  434. .HasColumnName("connection_log_id");
  435. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  436. b.Property<IPAddress>("Address")
  437. .IsRequired()
  438. .HasColumnType("inet")
  439. .HasColumnName("address");
  440. b.Property<byte?>("Denied")
  441. .HasColumnType("smallint")
  442. .HasColumnName("denied");
  443. b.Property<int>("ServerId")
  444. .ValueGeneratedOnAdd()
  445. .HasColumnType("integer")
  446. .HasDefaultValue(0)
  447. .HasColumnName("server_id");
  448. b.Property<DateTime>("Time")
  449. .HasColumnType("timestamp with time zone")
  450. .HasColumnName("time");
  451. b.Property<Guid>("UserId")
  452. .HasColumnType("uuid")
  453. .HasColumnName("user_id");
  454. b.Property<string>("UserName")
  455. .IsRequired()
  456. .HasColumnType("text")
  457. .HasColumnName("user_name");
  458. b.HasKey("Id")
  459. .HasName("PK_connection_log");
  460. b.HasIndex("ServerId")
  461. .HasDatabaseName("IX_connection_log_server_id");
  462. b.HasIndex("Time");
  463. b.HasIndex("UserId");
  464. b.ToTable("connection_log", null, t =>
  465. {
  466. t.HasCheckConstraint("AddressNotIPv6MappedIPv4", "NOT inet '::ffff:0.0.0.0/96' >>= address");
  467. });
  468. });
  469. modelBuilder.Entity("Content.Server.Database.Job", b =>
  470. {
  471. b.Property<int>("Id")
  472. .ValueGeneratedOnAdd()
  473. .HasColumnType("integer")
  474. .HasColumnName("job_id");
  475. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  476. b.Property<string>("JobName")
  477. .IsRequired()
  478. .HasColumnType("text")
  479. .HasColumnName("job_name");
  480. b.Property<int>("Priority")
  481. .HasColumnType("integer")
  482. .HasColumnName("priority");
  483. b.Property<int>("ProfileId")
  484. .HasColumnType("integer")
  485. .HasColumnName("profile_id");
  486. b.HasKey("Id")
  487. .HasName("PK_job");
  488. b.HasIndex("ProfileId");
  489. b.HasIndex("ProfileId", "JobName")
  490. .IsUnique();
  491. b.HasIndex(new[] { "ProfileId" }, "IX_job_one_high_priority")
  492. .IsUnique()
  493. .HasFilter("priority = 3");
  494. b.ToTable("job", (string)null);
  495. });
  496. modelBuilder.Entity("Content.Server.Database.PlayTime", b =>
  497. {
  498. b.Property<int>("Id")
  499. .ValueGeneratedOnAdd()
  500. .HasColumnType("integer")
  501. .HasColumnName("play_time_id");
  502. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  503. b.Property<Guid>("PlayerId")
  504. .HasColumnType("uuid")
  505. .HasColumnName("player_id");
  506. b.Property<TimeSpan>("TimeSpent")
  507. .HasColumnType("interval")
  508. .HasColumnName("time_spent");
  509. b.Property<string>("Tracker")
  510. .IsRequired()
  511. .HasColumnType("text")
  512. .HasColumnName("tracker");
  513. b.HasKey("Id")
  514. .HasName("PK_play_time");
  515. b.HasIndex("PlayerId", "Tracker")
  516. .IsUnique();
  517. b.ToTable("play_time", (string)null);
  518. });
  519. modelBuilder.Entity("Content.Server.Database.Player", b =>
  520. {
  521. b.Property<int>("Id")
  522. .ValueGeneratedOnAdd()
  523. .HasColumnType("integer")
  524. .HasColumnName("player_id");
  525. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  526. b.Property<DateTime>("FirstSeenTime")
  527. .HasColumnType("timestamp with time zone")
  528. .HasColumnName("first_seen_time");
  529. b.Property<DateTime?>("LastReadRules")
  530. .HasColumnType("timestamp with time zone")
  531. .HasColumnName("last_read_rules");
  532. b.Property<IPAddress>("LastSeenAddress")
  533. .IsRequired()
  534. .HasColumnType("inet")
  535. .HasColumnName("last_seen_address");
  536. b.Property<DateTime>("LastSeenTime")
  537. .HasColumnType("timestamp with time zone")
  538. .HasColumnName("last_seen_time");
  539. b.Property<string>("LastSeenUserName")
  540. .IsRequired()
  541. .HasColumnType("text")
  542. .HasColumnName("last_seen_user_name");
  543. b.Property<Guid>("UserId")
  544. .HasColumnType("uuid")
  545. .HasColumnName("user_id");
  546. b.HasKey("Id")
  547. .HasName("PK_player");
  548. b.HasAlternateKey("UserId")
  549. .HasName("ak_player_user_id");
  550. b.HasIndex("LastSeenUserName");
  551. b.HasIndex("UserId")
  552. .IsUnique();
  553. b.ToTable("player", null, t =>
  554. {
  555. t.HasCheckConstraint("LastSeenAddressNotIPv6MappedIPv4", "NOT inet '::ffff:0.0.0.0/96' >>= last_seen_address");
  556. });
  557. });
  558. modelBuilder.Entity("Content.Server.Database.Preference", b =>
  559. {
  560. b.Property<int>("Id")
  561. .ValueGeneratedOnAdd()
  562. .HasColumnType("integer")
  563. .HasColumnName("preference_id");
  564. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  565. b.Property<string>("AdminOOCColor")
  566. .IsRequired()
  567. .HasColumnType("text")
  568. .HasColumnName("admin_ooc_color");
  569. b.Property<int>("SelectedCharacterSlot")
  570. .HasColumnType("integer")
  571. .HasColumnName("selected_character_slot");
  572. b.Property<Guid>("UserId")
  573. .HasColumnType("uuid")
  574. .HasColumnName("user_id");
  575. b.HasKey("Id")
  576. .HasName("PK_preference");
  577. b.HasIndex("UserId")
  578. .IsUnique();
  579. b.ToTable("preference", (string)null);
  580. });
  581. modelBuilder.Entity("Content.Server.Database.Profile", b =>
  582. {
  583. b.Property<int>("Id")
  584. .ValueGeneratedOnAdd()
  585. .HasColumnType("integer")
  586. .HasColumnName("profile_id");
  587. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  588. b.Property<int>("Age")
  589. .HasColumnType("integer")
  590. .HasColumnName("age");
  591. b.Property<string>("CharacterName")
  592. .IsRequired()
  593. .HasColumnType("text")
  594. .HasColumnName("char_name");
  595. b.Property<string>("EyeColor")
  596. .IsRequired()
  597. .HasColumnType("text")
  598. .HasColumnName("eye_color");
  599. b.Property<string>("FacialHairColor")
  600. .IsRequired()
  601. .HasColumnType("text")
  602. .HasColumnName("facial_hair_color");
  603. b.Property<string>("FacialHairName")
  604. .IsRequired()
  605. .HasColumnType("text")
  606. .HasColumnName("facial_hair_name");
  607. b.Property<string>("FlavorText")
  608. .IsRequired()
  609. .HasColumnType("text")
  610. .HasColumnName("flavor_text");
  611. b.Property<string>("Gender")
  612. .IsRequired()
  613. .HasColumnType("text")
  614. .HasColumnName("gender");
  615. b.Property<string>("HairColor")
  616. .IsRequired()
  617. .HasColumnType("text")
  618. .HasColumnName("hair_color");
  619. b.Property<string>("HairName")
  620. .IsRequired()
  621. .HasColumnType("text")
  622. .HasColumnName("hair_name");
  623. b.Property<JsonDocument>("Markings")
  624. .HasColumnType("jsonb")
  625. .HasColumnName("markings");
  626. b.Property<int>("PreferenceId")
  627. .HasColumnType("integer")
  628. .HasColumnName("preference_id");
  629. b.Property<int>("PreferenceUnavailable")
  630. .HasColumnType("integer")
  631. .HasColumnName("pref_unavailable");
  632. b.Property<string>("Sex")
  633. .IsRequired()
  634. .HasColumnType("text")
  635. .HasColumnName("sex");
  636. b.Property<string>("SkinColor")
  637. .IsRequired()
  638. .HasColumnType("text")
  639. .HasColumnName("skin_color");
  640. b.Property<int>("Slot")
  641. .HasColumnType("integer")
  642. .HasColumnName("slot");
  643. b.Property<int>("SpawnPriority")
  644. .HasColumnType("integer")
  645. .HasColumnName("spawn_priority");
  646. b.Property<string>("Species")
  647. .IsRequired()
  648. .HasColumnType("text")
  649. .HasColumnName("species");
  650. b.HasKey("Id")
  651. .HasName("PK_profile");
  652. b.HasIndex("PreferenceId")
  653. .HasDatabaseName("IX_profile_preference_id");
  654. b.HasIndex("Slot", "PreferenceId")
  655. .IsUnique();
  656. b.ToTable("profile", (string)null);
  657. });
  658. modelBuilder.Entity("Content.Server.Database.ProfileLoadout", b =>
  659. {
  660. b.Property<int>("Id")
  661. .ValueGeneratedOnAdd()
  662. .HasColumnType("integer")
  663. .HasColumnName("profile_loadout_id");
  664. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  665. b.Property<string>("LoadoutName")
  666. .IsRequired()
  667. .HasColumnType("text")
  668. .HasColumnName("loadout_name");
  669. b.Property<int>("ProfileLoadoutGroupId")
  670. .HasColumnType("integer")
  671. .HasColumnName("profile_loadout_group_id");
  672. b.HasKey("Id")
  673. .HasName("PK_profile_loadout");
  674. b.HasIndex("ProfileLoadoutGroupId");
  675. b.ToTable("profile_loadout", (string)null);
  676. });
  677. modelBuilder.Entity("Content.Server.Database.ProfileLoadoutGroup", b =>
  678. {
  679. b.Property<int>("Id")
  680. .ValueGeneratedOnAdd()
  681. .HasColumnType("integer")
  682. .HasColumnName("profile_loadout_group_id");
  683. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  684. b.Property<string>("GroupName")
  685. .IsRequired()
  686. .HasColumnType("text")
  687. .HasColumnName("group_name");
  688. b.Property<int>("ProfileRoleLoadoutId")
  689. .HasColumnType("integer")
  690. .HasColumnName("profile_role_loadout_id");
  691. b.HasKey("Id")
  692. .HasName("PK_profile_loadout_group");
  693. b.HasIndex("ProfileRoleLoadoutId");
  694. b.ToTable("profile_loadout_group", (string)null);
  695. });
  696. modelBuilder.Entity("Content.Server.Database.ProfileRoleLoadout", b =>
  697. {
  698. b.Property<int>("Id")
  699. .ValueGeneratedOnAdd()
  700. .HasColumnType("integer")
  701. .HasColumnName("profile_role_loadout_id");
  702. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  703. b.Property<int>("ProfileId")
  704. .HasColumnType("integer")
  705. .HasColumnName("profile_id");
  706. b.Property<string>("RoleName")
  707. .IsRequired()
  708. .HasColumnType("text")
  709. .HasColumnName("role_name");
  710. b.HasKey("Id")
  711. .HasName("PK_profile_role_loadout");
  712. b.HasIndex("ProfileId");
  713. b.ToTable("profile_role_loadout", (string)null);
  714. });
  715. modelBuilder.Entity("Content.Server.Database.RoleWhitelist", b =>
  716. {
  717. b.Property<Guid>("PlayerUserId")
  718. .HasColumnType("uuid")
  719. .HasColumnName("player_user_id");
  720. b.Property<string>("RoleId")
  721. .HasColumnType("text")
  722. .HasColumnName("role_id");
  723. b.HasKey("PlayerUserId", "RoleId")
  724. .HasName("PK_role_whitelists");
  725. b.ToTable("role_whitelists", (string)null);
  726. });
  727. modelBuilder.Entity("Content.Server.Database.Round", b =>
  728. {
  729. b.Property<int>("Id")
  730. .ValueGeneratedOnAdd()
  731. .HasColumnType("integer")
  732. .HasColumnName("round_id");
  733. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  734. b.Property<int>("ServerId")
  735. .HasColumnType("integer")
  736. .HasColumnName("server_id");
  737. b.Property<DateTime?>("StartDate")
  738. .HasColumnType("timestamp with time zone")
  739. .HasColumnName("start_date");
  740. b.HasKey("Id")
  741. .HasName("PK_round");
  742. b.HasIndex("ServerId")
  743. .HasDatabaseName("IX_round_server_id");
  744. b.HasIndex("StartDate");
  745. b.ToTable("round", (string)null);
  746. });
  747. modelBuilder.Entity("Content.Server.Database.Server", b =>
  748. {
  749. b.Property<int>("Id")
  750. .ValueGeneratedOnAdd()
  751. .HasColumnType("integer")
  752. .HasColumnName("server_id");
  753. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  754. b.Property<string>("Name")
  755. .IsRequired()
  756. .HasColumnType("text")
  757. .HasColumnName("name");
  758. b.HasKey("Id")
  759. .HasName("PK_server");
  760. b.ToTable("server", (string)null);
  761. });
  762. modelBuilder.Entity("Content.Server.Database.ServerBan", b =>
  763. {
  764. b.Property<int>("Id")
  765. .ValueGeneratedOnAdd()
  766. .HasColumnType("integer")
  767. .HasColumnName("server_ban_id");
  768. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  769. b.Property<NpgsqlInet?>("Address")
  770. .HasColumnType("inet")
  771. .HasColumnName("address");
  772. b.Property<bool>("AutoDelete")
  773. .HasColumnType("boolean")
  774. .HasColumnName("auto_delete");
  775. b.Property<DateTime>("BanTime")
  776. .HasColumnType("timestamp with time zone")
  777. .HasColumnName("ban_time");
  778. b.Property<Guid?>("BanningAdmin")
  779. .HasColumnType("uuid")
  780. .HasColumnName("banning_admin");
  781. b.Property<int>("ExemptFlags")
  782. .HasColumnType("integer")
  783. .HasColumnName("exempt_flags");
  784. b.Property<DateTime?>("ExpirationTime")
  785. .HasColumnType("timestamp with time zone")
  786. .HasColumnName("expiration_time");
  787. b.Property<bool>("Hidden")
  788. .HasColumnType("boolean")
  789. .HasColumnName("hidden");
  790. b.Property<DateTime?>("LastEditedAt")
  791. .HasColumnType("timestamp with time zone")
  792. .HasColumnName("last_edited_at");
  793. b.Property<Guid?>("LastEditedById")
  794. .HasColumnType("uuid")
  795. .HasColumnName("last_edited_by_id");
  796. b.Property<Guid?>("PlayerUserId")
  797. .HasColumnType("uuid")
  798. .HasColumnName("player_user_id");
  799. b.Property<TimeSpan>("PlaytimeAtNote")
  800. .HasColumnType("interval")
  801. .HasColumnName("playtime_at_note");
  802. b.Property<string>("Reason")
  803. .IsRequired()
  804. .HasColumnType("text")
  805. .HasColumnName("reason");
  806. b.Property<int?>("RoundId")
  807. .HasColumnType("integer")
  808. .HasColumnName("round_id");
  809. b.Property<int>("Severity")
  810. .HasColumnType("integer")
  811. .HasColumnName("severity");
  812. b.HasKey("Id")
  813. .HasName("PK_server_ban");
  814. b.HasIndex("Address");
  815. b.HasIndex("BanningAdmin");
  816. b.HasIndex("LastEditedById");
  817. b.HasIndex("PlayerUserId")
  818. .HasDatabaseName("IX_server_ban_player_user_id");
  819. b.HasIndex("RoundId")
  820. .HasDatabaseName("IX_server_ban_round_id");
  821. b.ToTable("server_ban", null, t =>
  822. {
  823. t.HasCheckConstraint("AddressNotIPv6MappedIPv4", "NOT inet '::ffff:0.0.0.0/96' >>= address");
  824. t.HasCheckConstraint("HaveEitherAddressOrUserIdOrHWId", "address IS NOT NULL OR player_user_id IS NOT NULL OR hwid IS NOT NULL");
  825. });
  826. });
  827. modelBuilder.Entity("Content.Server.Database.ServerBanExemption", b =>
  828. {
  829. b.Property<Guid>("UserId")
  830. .ValueGeneratedOnAdd()
  831. .HasColumnType("uuid")
  832. .HasColumnName("user_id");
  833. b.Property<int>("Flags")
  834. .HasColumnType("integer")
  835. .HasColumnName("flags");
  836. b.HasKey("UserId")
  837. .HasName("PK_server_ban_exemption");
  838. b.ToTable("server_ban_exemption", null, t =>
  839. {
  840. t.HasCheckConstraint("FlagsNotZero", "flags != 0");
  841. });
  842. });
  843. modelBuilder.Entity("Content.Server.Database.ServerBanHit", b =>
  844. {
  845. b.Property<int>("Id")
  846. .ValueGeneratedOnAdd()
  847. .HasColumnType("integer")
  848. .HasColumnName("server_ban_hit_id");
  849. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  850. b.Property<int>("BanId")
  851. .HasColumnType("integer")
  852. .HasColumnName("ban_id");
  853. b.Property<int>("ConnectionId")
  854. .HasColumnType("integer")
  855. .HasColumnName("connection_id");
  856. b.HasKey("Id")
  857. .HasName("PK_server_ban_hit");
  858. b.HasIndex("BanId")
  859. .HasDatabaseName("IX_server_ban_hit_ban_id");
  860. b.HasIndex("ConnectionId")
  861. .HasDatabaseName("IX_server_ban_hit_connection_id");
  862. b.ToTable("server_ban_hit", (string)null);
  863. });
  864. modelBuilder.Entity("Content.Server.Database.ServerRoleBan", b =>
  865. {
  866. b.Property<int>("Id")
  867. .ValueGeneratedOnAdd()
  868. .HasColumnType("integer")
  869. .HasColumnName("server_role_ban_id");
  870. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  871. b.Property<NpgsqlInet?>("Address")
  872. .HasColumnType("inet")
  873. .HasColumnName("address");
  874. b.Property<DateTime>("BanTime")
  875. .HasColumnType("timestamp with time zone")
  876. .HasColumnName("ban_time");
  877. b.Property<Guid?>("BanningAdmin")
  878. .HasColumnType("uuid")
  879. .HasColumnName("banning_admin");
  880. b.Property<DateTime?>("ExpirationTime")
  881. .HasColumnType("timestamp with time zone")
  882. .HasColumnName("expiration_time");
  883. b.Property<bool>("Hidden")
  884. .HasColumnType("boolean")
  885. .HasColumnName("hidden");
  886. b.Property<DateTime?>("LastEditedAt")
  887. .HasColumnType("timestamp with time zone")
  888. .HasColumnName("last_edited_at");
  889. b.Property<Guid?>("LastEditedById")
  890. .HasColumnType("uuid")
  891. .HasColumnName("last_edited_by_id");
  892. b.Property<Guid?>("PlayerUserId")
  893. .HasColumnType("uuid")
  894. .HasColumnName("player_user_id");
  895. b.Property<TimeSpan>("PlaytimeAtNote")
  896. .HasColumnType("interval")
  897. .HasColumnName("playtime_at_note");
  898. b.Property<string>("Reason")
  899. .IsRequired()
  900. .HasColumnType("text")
  901. .HasColumnName("reason");
  902. b.Property<string>("RoleId")
  903. .IsRequired()
  904. .HasColumnType("text")
  905. .HasColumnName("role_id");
  906. b.Property<int?>("RoundId")
  907. .HasColumnType("integer")
  908. .HasColumnName("round_id");
  909. b.Property<int>("Severity")
  910. .HasColumnType("integer")
  911. .HasColumnName("severity");
  912. b.HasKey("Id")
  913. .HasName("PK_server_role_ban");
  914. b.HasIndex("Address");
  915. b.HasIndex("BanningAdmin");
  916. b.HasIndex("LastEditedById");
  917. b.HasIndex("PlayerUserId")
  918. .HasDatabaseName("IX_server_role_ban_player_user_id");
  919. b.HasIndex("RoundId")
  920. .HasDatabaseName("IX_server_role_ban_round_id");
  921. b.ToTable("server_role_ban", null, t =>
  922. {
  923. t.HasCheckConstraint("AddressNotIPv6MappedIPv4", "NOT inet '::ffff:0.0.0.0/96' >>= address");
  924. t.HasCheckConstraint("HaveEitherAddressOrUserIdOrHWId", "address IS NOT NULL OR player_user_id IS NOT NULL OR hwid IS NOT NULL");
  925. });
  926. });
  927. modelBuilder.Entity("Content.Server.Database.ServerRoleUnban", b =>
  928. {
  929. b.Property<int>("Id")
  930. .ValueGeneratedOnAdd()
  931. .HasColumnType("integer")
  932. .HasColumnName("role_unban_id");
  933. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  934. b.Property<int>("BanId")
  935. .HasColumnType("integer")
  936. .HasColumnName("ban_id");
  937. b.Property<DateTime>("UnbanTime")
  938. .HasColumnType("timestamp with time zone")
  939. .HasColumnName("unban_time");
  940. b.Property<Guid?>("UnbanningAdmin")
  941. .HasColumnType("uuid")
  942. .HasColumnName("unbanning_admin");
  943. b.HasKey("Id")
  944. .HasName("PK_server_role_unban");
  945. b.HasIndex("BanId")
  946. .IsUnique();
  947. b.ToTable("server_role_unban", (string)null);
  948. });
  949. modelBuilder.Entity("Content.Server.Database.ServerUnban", b =>
  950. {
  951. b.Property<int>("Id")
  952. .ValueGeneratedOnAdd()
  953. .HasColumnType("integer")
  954. .HasColumnName("unban_id");
  955. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  956. b.Property<int>("BanId")
  957. .HasColumnType("integer")
  958. .HasColumnName("ban_id");
  959. b.Property<DateTime>("UnbanTime")
  960. .HasColumnType("timestamp with time zone")
  961. .HasColumnName("unban_time");
  962. b.Property<Guid?>("UnbanningAdmin")
  963. .HasColumnType("uuid")
  964. .HasColumnName("unbanning_admin");
  965. b.HasKey("Id")
  966. .HasName("PK_server_unban");
  967. b.HasIndex("BanId")
  968. .IsUnique();
  969. b.ToTable("server_unban", (string)null);
  970. });
  971. modelBuilder.Entity("Content.Server.Database.Trait", b =>
  972. {
  973. b.Property<int>("Id")
  974. .ValueGeneratedOnAdd()
  975. .HasColumnType("integer")
  976. .HasColumnName("trait_id");
  977. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  978. b.Property<int>("ProfileId")
  979. .HasColumnType("integer")
  980. .HasColumnName("profile_id");
  981. b.Property<string>("TraitName")
  982. .IsRequired()
  983. .HasColumnType("text")
  984. .HasColumnName("trait_name");
  985. b.HasKey("Id")
  986. .HasName("PK_trait");
  987. b.HasIndex("ProfileId", "TraitName")
  988. .IsUnique();
  989. b.ToTable("trait", (string)null);
  990. });
  991. modelBuilder.Entity("Content.Server.Database.UploadedResourceLog", b =>
  992. {
  993. b.Property<int>("Id")
  994. .ValueGeneratedOnAdd()
  995. .HasColumnType("integer")
  996. .HasColumnName("uploaded_resource_log_id");
  997. NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
  998. b.Property<byte[]>("Data")
  999. .IsRequired()
  1000. .HasColumnType("bytea")
  1001. .HasColumnName("data");
  1002. b.Property<DateTime>("Date")
  1003. .HasColumnType("timestamp with time zone")
  1004. .HasColumnName("date");
  1005. b.Property<string>("Path")
  1006. .IsRequired()
  1007. .HasColumnType("text")
  1008. .HasColumnName("path");
  1009. b.Property<Guid>("UserId")
  1010. .HasColumnType("uuid")
  1011. .HasColumnName("user_id");
  1012. b.HasKey("Id")
  1013. .HasName("PK_uploaded_resource_log");
  1014. b.ToTable("uploaded_resource_log", (string)null);
  1015. });
  1016. modelBuilder.Entity("Content.Server.Database.Whitelist", b =>
  1017. {
  1018. b.Property<Guid>("UserId")
  1019. .ValueGeneratedOnAdd()
  1020. .HasColumnType("uuid")
  1021. .HasColumnName("user_id");
  1022. b.HasKey("UserId")
  1023. .HasName("PK_whitelist");
  1024. b.ToTable("whitelist", (string)null);
  1025. });
  1026. modelBuilder.Entity("PlayerRound", b =>
  1027. {
  1028. b.Property<int>("PlayersId")
  1029. .HasColumnType("integer")
  1030. .HasColumnName("players_id");
  1031. b.Property<int>("RoundsId")
  1032. .HasColumnType("integer")
  1033. .HasColumnName("rounds_id");
  1034. b.HasKey("PlayersId", "RoundsId")
  1035. .HasName("PK_player_round");
  1036. b.HasIndex("RoundsId")
  1037. .HasDatabaseName("IX_player_round_rounds_id");
  1038. b.ToTable("player_round", (string)null);
  1039. });
  1040. modelBuilder.Entity("Content.Server.Database.Admin", b =>
  1041. {
  1042. b.HasOne("Content.Server.Database.AdminRank", "AdminRank")
  1043. .WithMany("Admins")
  1044. .HasForeignKey("AdminRankId")
  1045. .OnDelete(DeleteBehavior.SetNull)
  1046. .HasConstraintName("FK_admin_admin_rank_admin_rank_id");
  1047. b.Navigation("AdminRank");
  1048. });
  1049. modelBuilder.Entity("Content.Server.Database.AdminFlag", b =>
  1050. {
  1051. b.HasOne("Content.Server.Database.Admin", "Admin")
  1052. .WithMany("Flags")
  1053. .HasForeignKey("AdminId")
  1054. .OnDelete(DeleteBehavior.Cascade)
  1055. .IsRequired()
  1056. .HasConstraintName("FK_admin_flag_admin_admin_id");
  1057. b.Navigation("Admin");
  1058. });
  1059. modelBuilder.Entity("Content.Server.Database.AdminLog", b =>
  1060. {
  1061. b.HasOne("Content.Server.Database.Round", "Round")
  1062. .WithMany("AdminLogs")
  1063. .HasForeignKey("RoundId")
  1064. .OnDelete(DeleteBehavior.Cascade)
  1065. .IsRequired()
  1066. .HasConstraintName("FK_admin_log_round_round_id");
  1067. b.Navigation("Round");
  1068. });
  1069. modelBuilder.Entity("Content.Server.Database.AdminLogPlayer", b =>
  1070. {
  1071. b.HasOne("Content.Server.Database.Player", "Player")
  1072. .WithMany("AdminLogs")
  1073. .HasForeignKey("PlayerUserId")
  1074. .HasPrincipalKey("UserId")
  1075. .OnDelete(DeleteBehavior.Cascade)
  1076. .IsRequired()
  1077. .HasConstraintName("FK_admin_log_player_player_player_user_id");
  1078. b.HasOne("Content.Server.Database.AdminLog", "Log")
  1079. .WithMany("Players")
  1080. .HasForeignKey("RoundId", "LogId")
  1081. .OnDelete(DeleteBehavior.Cascade)
  1082. .IsRequired()
  1083. .HasConstraintName("FK_admin_log_player_admin_log_round_id_log_id");
  1084. b.Navigation("Log");
  1085. b.Navigation("Player");
  1086. });
  1087. modelBuilder.Entity("Content.Server.Database.AdminMessage", b =>
  1088. {
  1089. b.HasOne("Content.Server.Database.Player", "CreatedBy")
  1090. .WithMany("AdminMessagesCreated")
  1091. .HasForeignKey("CreatedById")
  1092. .HasPrincipalKey("UserId")
  1093. .OnDelete(DeleteBehavior.SetNull)
  1094. .HasConstraintName("FK_admin_messages_player_created_by_id");
  1095. b.HasOne("Content.Server.Database.Player", "DeletedBy")
  1096. .WithMany("AdminMessagesDeleted")
  1097. .HasForeignKey("DeletedById")
  1098. .HasPrincipalKey("UserId")
  1099. .OnDelete(DeleteBehavior.SetNull)
  1100. .HasConstraintName("FK_admin_messages_player_deleted_by_id");
  1101. b.HasOne("Content.Server.Database.Player", "LastEditedBy")
  1102. .WithMany("AdminMessagesLastEdited")
  1103. .HasForeignKey("LastEditedById")
  1104. .HasPrincipalKey("UserId")
  1105. .OnDelete(DeleteBehavior.SetNull)
  1106. .HasConstraintName("FK_admin_messages_player_last_edited_by_id");
  1107. b.HasOne("Content.Server.Database.Player", "Player")
  1108. .WithMany("AdminMessagesReceived")
  1109. .HasForeignKey("PlayerUserId")
  1110. .HasPrincipalKey("UserId")
  1111. .OnDelete(DeleteBehavior.Cascade)
  1112. .HasConstraintName("FK_admin_messages_player_player_user_id");
  1113. b.HasOne("Content.Server.Database.Round", "Round")
  1114. .WithMany()
  1115. .HasForeignKey("RoundId")
  1116. .HasConstraintName("FK_admin_messages_round_round_id");
  1117. b.Navigation("CreatedBy");
  1118. b.Navigation("DeletedBy");
  1119. b.Navigation("LastEditedBy");
  1120. b.Navigation("Player");
  1121. b.Navigation("Round");
  1122. });
  1123. modelBuilder.Entity("Content.Server.Database.AdminNote", b =>
  1124. {
  1125. b.HasOne("Content.Server.Database.Player", "CreatedBy")
  1126. .WithMany("AdminNotesCreated")
  1127. .HasForeignKey("CreatedById")
  1128. .HasPrincipalKey("UserId")
  1129. .OnDelete(DeleteBehavior.SetNull)
  1130. .HasConstraintName("FK_admin_notes_player_created_by_id");
  1131. b.HasOne("Content.Server.Database.Player", "DeletedBy")
  1132. .WithMany("AdminNotesDeleted")
  1133. .HasForeignKey("DeletedById")
  1134. .HasPrincipalKey("UserId")
  1135. .OnDelete(DeleteBehavior.SetNull)
  1136. .HasConstraintName("FK_admin_notes_player_deleted_by_id");
  1137. b.HasOne("Content.Server.Database.Player", "LastEditedBy")
  1138. .WithMany("AdminNotesLastEdited")
  1139. .HasForeignKey("LastEditedById")
  1140. .HasPrincipalKey("UserId")
  1141. .OnDelete(DeleteBehavior.SetNull)
  1142. .HasConstraintName("FK_admin_notes_player_last_edited_by_id");
  1143. b.HasOne("Content.Server.Database.Player", "Player")
  1144. .WithMany("AdminNotesReceived")
  1145. .HasForeignKey("PlayerUserId")
  1146. .HasPrincipalKey("UserId")
  1147. .OnDelete(DeleteBehavior.Cascade)
  1148. .HasConstraintName("FK_admin_notes_player_player_user_id");
  1149. b.HasOne("Content.Server.Database.Round", "Round")
  1150. .WithMany()
  1151. .HasForeignKey("RoundId")
  1152. .HasConstraintName("FK_admin_notes_round_round_id");
  1153. b.Navigation("CreatedBy");
  1154. b.Navigation("DeletedBy");
  1155. b.Navigation("LastEditedBy");
  1156. b.Navigation("Player");
  1157. b.Navigation("Round");
  1158. });
  1159. modelBuilder.Entity("Content.Server.Database.AdminRankFlag", b =>
  1160. {
  1161. b.HasOne("Content.Server.Database.AdminRank", "Rank")
  1162. .WithMany("Flags")
  1163. .HasForeignKey("AdminRankId")
  1164. .OnDelete(DeleteBehavior.Cascade)
  1165. .IsRequired()
  1166. .HasConstraintName("FK_admin_rank_flag_admin_rank_admin_rank_id");
  1167. b.Navigation("Rank");
  1168. });
  1169. modelBuilder.Entity("Content.Server.Database.AdminWatchlist", b =>
  1170. {
  1171. b.HasOne("Content.Server.Database.Player", "CreatedBy")
  1172. .WithMany("AdminWatchlistsCreated")
  1173. .HasForeignKey("CreatedById")
  1174. .HasPrincipalKey("UserId")
  1175. .OnDelete(DeleteBehavior.SetNull)
  1176. .HasConstraintName("FK_admin_watchlists_player_created_by_id");
  1177. b.HasOne("Content.Server.Database.Player", "DeletedBy")
  1178. .WithMany("AdminWatchlistsDeleted")
  1179. .HasForeignKey("DeletedById")
  1180. .HasPrincipalKey("UserId")
  1181. .OnDelete(DeleteBehavior.SetNull)
  1182. .HasConstraintName("FK_admin_watchlists_player_deleted_by_id");
  1183. b.HasOne("Content.Server.Database.Player", "LastEditedBy")
  1184. .WithMany("AdminWatchlistsLastEdited")
  1185. .HasForeignKey("LastEditedById")
  1186. .HasPrincipalKey("UserId")
  1187. .OnDelete(DeleteBehavior.SetNull)
  1188. .HasConstraintName("FK_admin_watchlists_player_last_edited_by_id");
  1189. b.HasOne("Content.Server.Database.Player", "Player")
  1190. .WithMany("AdminWatchlistsReceived")
  1191. .HasForeignKey("PlayerUserId")
  1192. .HasPrincipalKey("UserId")
  1193. .OnDelete(DeleteBehavior.Cascade)
  1194. .HasConstraintName("FK_admin_watchlists_player_player_user_id");
  1195. b.HasOne("Content.Server.Database.Round", "Round")
  1196. .WithMany()
  1197. .HasForeignKey("RoundId")
  1198. .HasConstraintName("FK_admin_watchlists_round_round_id");
  1199. b.Navigation("CreatedBy");
  1200. b.Navigation("DeletedBy");
  1201. b.Navigation("LastEditedBy");
  1202. b.Navigation("Player");
  1203. b.Navigation("Round");
  1204. });
  1205. modelBuilder.Entity("Content.Server.Database.Antag", b =>
  1206. {
  1207. b.HasOne("Content.Server.Database.Profile", "Profile")
  1208. .WithMany("Antags")
  1209. .HasForeignKey("ProfileId")
  1210. .OnDelete(DeleteBehavior.Cascade)
  1211. .IsRequired()
  1212. .HasConstraintName("FK_antag_profile_profile_id");
  1213. b.Navigation("Profile");
  1214. });
  1215. modelBuilder.Entity("Content.Server.Database.ConnectionLog", b =>
  1216. {
  1217. b.HasOne("Content.Server.Database.Server", "Server")
  1218. .WithMany("ConnectionLogs")
  1219. .HasForeignKey("ServerId")
  1220. .OnDelete(DeleteBehavior.SetNull)
  1221. .IsRequired()
  1222. .HasConstraintName("FK_connection_log_server_server_id");
  1223. b.OwnsOne("Content.Server.Database.TypedHwid", "HWId", b1 =>
  1224. {
  1225. b1.Property<int>("ConnectionLogId")
  1226. .HasColumnType("integer")
  1227. .HasColumnName("connection_log_id");
  1228. b1.Property<byte[]>("Hwid")
  1229. .IsRequired()
  1230. .HasColumnType("bytea")
  1231. .HasColumnName("hwid");
  1232. b1.Property<int>("Type")
  1233. .ValueGeneratedOnAdd()
  1234. .HasColumnType("integer")
  1235. .HasDefaultValue(0)
  1236. .HasColumnName("hwid_type");
  1237. b1.HasKey("ConnectionLogId");
  1238. b1.ToTable("connection_log");
  1239. b1.WithOwner()
  1240. .HasForeignKey("ConnectionLogId")
  1241. .HasConstraintName("FK_connection_log_connection_log_connection_log_id");
  1242. });
  1243. b.Navigation("HWId");
  1244. b.Navigation("Server");
  1245. });
  1246. modelBuilder.Entity("Content.Server.Database.Job", b =>
  1247. {
  1248. b.HasOne("Content.Server.Database.Profile", "Profile")
  1249. .WithMany("Jobs")
  1250. .HasForeignKey("ProfileId")
  1251. .OnDelete(DeleteBehavior.Cascade)
  1252. .IsRequired()
  1253. .HasConstraintName("FK_job_profile_profile_id");
  1254. b.Navigation("Profile");
  1255. });
  1256. modelBuilder.Entity("Content.Server.Database.Player", b =>
  1257. {
  1258. b.OwnsOne("Content.Server.Database.TypedHwid", "LastSeenHWId", b1 =>
  1259. {
  1260. b1.Property<int>("PlayerId")
  1261. .HasColumnType("integer")
  1262. .HasColumnName("player_id");
  1263. b1.Property<byte[]>("Hwid")
  1264. .IsRequired()
  1265. .HasColumnType("bytea")
  1266. .HasColumnName("last_seen_hwid");
  1267. b1.Property<int>("Type")
  1268. .ValueGeneratedOnAdd()
  1269. .HasColumnType("integer")
  1270. .HasDefaultValue(0)
  1271. .HasColumnName("last_seen_hwid_type");
  1272. b1.HasKey("PlayerId");
  1273. b1.ToTable("player");
  1274. b1.WithOwner()
  1275. .HasForeignKey("PlayerId")
  1276. .HasConstraintName("FK_player_player_player_id");
  1277. });
  1278. b.Navigation("LastSeenHWId");
  1279. });
  1280. modelBuilder.Entity("Content.Server.Database.Profile", b =>
  1281. {
  1282. b.HasOne("Content.Server.Database.Preference", "Preference")
  1283. .WithMany("Profiles")
  1284. .HasForeignKey("PreferenceId")
  1285. .OnDelete(DeleteBehavior.Cascade)
  1286. .IsRequired()
  1287. .HasConstraintName("FK_profile_preference_preference_id");
  1288. b.Navigation("Preference");
  1289. });
  1290. modelBuilder.Entity("Content.Server.Database.ProfileLoadout", b =>
  1291. {
  1292. b.HasOne("Content.Server.Database.ProfileLoadoutGroup", "ProfileLoadoutGroup")
  1293. .WithMany("Loadouts")
  1294. .HasForeignKey("ProfileLoadoutGroupId")
  1295. .OnDelete(DeleteBehavior.Cascade)
  1296. .IsRequired()
  1297. .HasConstraintName("FK_profile_loadout_profile_loadout_group_profile_loadout_group~");
  1298. b.Navigation("ProfileLoadoutGroup");
  1299. });
  1300. modelBuilder.Entity("Content.Server.Database.ProfileLoadoutGroup", b =>
  1301. {
  1302. b.HasOne("Content.Server.Database.ProfileRoleLoadout", "ProfileRoleLoadout")
  1303. .WithMany("Groups")
  1304. .HasForeignKey("ProfileRoleLoadoutId")
  1305. .OnDelete(DeleteBehavior.Cascade)
  1306. .IsRequired()
  1307. .HasConstraintName("FK_profile_loadout_group_profile_role_loadout_profile_role_loa~");
  1308. b.Navigation("ProfileRoleLoadout");
  1309. });
  1310. modelBuilder.Entity("Content.Server.Database.ProfileRoleLoadout", b =>
  1311. {
  1312. b.HasOne("Content.Server.Database.Profile", "Profile")
  1313. .WithMany("Loadouts")
  1314. .HasForeignKey("ProfileId")
  1315. .OnDelete(DeleteBehavior.Cascade)
  1316. .IsRequired()
  1317. .HasConstraintName("FK_profile_role_loadout_profile_profile_id");
  1318. b.Navigation("Profile");
  1319. });
  1320. modelBuilder.Entity("Content.Server.Database.RoleWhitelist", b =>
  1321. {
  1322. b.HasOne("Content.Server.Database.Player", "Player")
  1323. .WithMany("JobWhitelists")
  1324. .HasForeignKey("PlayerUserId")
  1325. .HasPrincipalKey("UserId")
  1326. .OnDelete(DeleteBehavior.Cascade)
  1327. .IsRequired()
  1328. .HasConstraintName("FK_role_whitelists_player_player_user_id");
  1329. b.Navigation("Player");
  1330. });
  1331. modelBuilder.Entity("Content.Server.Database.Round", b =>
  1332. {
  1333. b.HasOne("Content.Server.Database.Server", "Server")
  1334. .WithMany("Rounds")
  1335. .HasForeignKey("ServerId")
  1336. .OnDelete(DeleteBehavior.Cascade)
  1337. .IsRequired()
  1338. .HasConstraintName("FK_round_server_server_id");
  1339. b.Navigation("Server");
  1340. });
  1341. modelBuilder.Entity("Content.Server.Database.ServerBan", b =>
  1342. {
  1343. b.HasOne("Content.Server.Database.Player", "CreatedBy")
  1344. .WithMany("AdminServerBansCreated")
  1345. .HasForeignKey("BanningAdmin")
  1346. .HasPrincipalKey("UserId")
  1347. .OnDelete(DeleteBehavior.SetNull)
  1348. .HasConstraintName("FK_server_ban_player_banning_admin");
  1349. b.HasOne("Content.Server.Database.Player", "LastEditedBy")
  1350. .WithMany("AdminServerBansLastEdited")
  1351. .HasForeignKey("LastEditedById")
  1352. .HasPrincipalKey("UserId")
  1353. .OnDelete(DeleteBehavior.SetNull)
  1354. .HasConstraintName("FK_server_ban_player_last_edited_by_id");
  1355. b.HasOne("Content.Server.Database.Round", "Round")
  1356. .WithMany()
  1357. .HasForeignKey("RoundId")
  1358. .HasConstraintName("FK_server_ban_round_round_id");
  1359. b.OwnsOne("Content.Server.Database.TypedHwid", "HWId", b1 =>
  1360. {
  1361. b1.Property<int>("ServerBanId")
  1362. .HasColumnType("integer")
  1363. .HasColumnName("server_ban_id");
  1364. b1.Property<byte[]>("Hwid")
  1365. .IsRequired()
  1366. .HasColumnType("bytea")
  1367. .HasColumnName("hwid");
  1368. b1.Property<int>("Type")
  1369. .ValueGeneratedOnAdd()
  1370. .HasColumnType("integer")
  1371. .HasDefaultValue(0)
  1372. .HasColumnName("hwid_type");
  1373. b1.HasKey("ServerBanId");
  1374. b1.ToTable("server_ban");
  1375. b1.WithOwner()
  1376. .HasForeignKey("ServerBanId")
  1377. .HasConstraintName("FK_server_ban_server_ban_server_ban_id");
  1378. });
  1379. b.Navigation("CreatedBy");
  1380. b.Navigation("HWId");
  1381. b.Navigation("LastEditedBy");
  1382. b.Navigation("Round");
  1383. });
  1384. modelBuilder.Entity("Content.Server.Database.ServerBanHit", b =>
  1385. {
  1386. b.HasOne("Content.Server.Database.ServerBan", "Ban")
  1387. .WithMany("BanHits")
  1388. .HasForeignKey("BanId")
  1389. .OnDelete(DeleteBehavior.Cascade)
  1390. .IsRequired()
  1391. .HasConstraintName("FK_server_ban_hit_server_ban_ban_id");
  1392. b.HasOne("Content.Server.Database.ConnectionLog", "Connection")
  1393. .WithMany("BanHits")
  1394. .HasForeignKey("ConnectionId")
  1395. .OnDelete(DeleteBehavior.Cascade)
  1396. .IsRequired()
  1397. .HasConstraintName("FK_server_ban_hit_connection_log_connection_id");
  1398. b.Navigation("Ban");
  1399. b.Navigation("Connection");
  1400. });
  1401. modelBuilder.Entity("Content.Server.Database.ServerRoleBan", b =>
  1402. {
  1403. b.HasOne("Content.Server.Database.Player", "CreatedBy")
  1404. .WithMany("AdminServerRoleBansCreated")
  1405. .HasForeignKey("BanningAdmin")
  1406. .HasPrincipalKey("UserId")
  1407. .OnDelete(DeleteBehavior.SetNull)
  1408. .HasConstraintName("FK_server_role_ban_player_banning_admin");
  1409. b.HasOne("Content.Server.Database.Player", "LastEditedBy")
  1410. .WithMany("AdminServerRoleBansLastEdited")
  1411. .HasForeignKey("LastEditedById")
  1412. .HasPrincipalKey("UserId")
  1413. .OnDelete(DeleteBehavior.SetNull)
  1414. .HasConstraintName("FK_server_role_ban_player_last_edited_by_id");
  1415. b.HasOne("Content.Server.Database.Round", "Round")
  1416. .WithMany()
  1417. .HasForeignKey("RoundId")
  1418. .HasConstraintName("FK_server_role_ban_round_round_id");
  1419. b.OwnsOne("Content.Server.Database.TypedHwid", "HWId", b1 =>
  1420. {
  1421. b1.Property<int>("ServerRoleBanId")
  1422. .HasColumnType("integer")
  1423. .HasColumnName("server_role_ban_id");
  1424. b1.Property<byte[]>("Hwid")
  1425. .IsRequired()
  1426. .HasColumnType("bytea")
  1427. .HasColumnName("hwid");
  1428. b1.Property<int>("Type")
  1429. .ValueGeneratedOnAdd()
  1430. .HasColumnType("integer")
  1431. .HasDefaultValue(0)
  1432. .HasColumnName("hwid_type");
  1433. b1.HasKey("ServerRoleBanId");
  1434. b1.ToTable("server_role_ban");
  1435. b1.WithOwner()
  1436. .HasForeignKey("ServerRoleBanId")
  1437. .HasConstraintName("FK_server_role_ban_server_role_ban_server_role_ban_id");
  1438. });
  1439. b.Navigation("CreatedBy");
  1440. b.Navigation("HWId");
  1441. b.Navigation("LastEditedBy");
  1442. b.Navigation("Round");
  1443. });
  1444. modelBuilder.Entity("Content.Server.Database.ServerRoleUnban", b =>
  1445. {
  1446. b.HasOne("Content.Server.Database.ServerRoleBan", "Ban")
  1447. .WithOne("Unban")
  1448. .HasForeignKey("Content.Server.Database.ServerRoleUnban", "BanId")
  1449. .OnDelete(DeleteBehavior.Cascade)
  1450. .IsRequired()
  1451. .HasConstraintName("FK_server_role_unban_server_role_ban_ban_id");
  1452. b.Navigation("Ban");
  1453. });
  1454. modelBuilder.Entity("Content.Server.Database.ServerUnban", b =>
  1455. {
  1456. b.HasOne("Content.Server.Database.ServerBan", "Ban")
  1457. .WithOne("Unban")
  1458. .HasForeignKey("Content.Server.Database.ServerUnban", "BanId")
  1459. .OnDelete(DeleteBehavior.Cascade)
  1460. .IsRequired()
  1461. .HasConstraintName("FK_server_unban_server_ban_ban_id");
  1462. b.Navigation("Ban");
  1463. });
  1464. modelBuilder.Entity("Content.Server.Database.Trait", b =>
  1465. {
  1466. b.HasOne("Content.Server.Database.Profile", "Profile")
  1467. .WithMany("Traits")
  1468. .HasForeignKey("ProfileId")
  1469. .OnDelete(DeleteBehavior.Cascade)
  1470. .IsRequired()
  1471. .HasConstraintName("FK_trait_profile_profile_id");
  1472. b.Navigation("Profile");
  1473. });
  1474. modelBuilder.Entity("PlayerRound", b =>
  1475. {
  1476. b.HasOne("Content.Server.Database.Player", null)
  1477. .WithMany()
  1478. .HasForeignKey("PlayersId")
  1479. .OnDelete(DeleteBehavior.Cascade)
  1480. .IsRequired()
  1481. .HasConstraintName("FK_player_round_player_players_id");
  1482. b.HasOne("Content.Server.Database.Round", null)
  1483. .WithMany()
  1484. .HasForeignKey("RoundsId")
  1485. .OnDelete(DeleteBehavior.Cascade)
  1486. .IsRequired()
  1487. .HasConstraintName("FK_player_round_round_rounds_id");
  1488. });
  1489. modelBuilder.Entity("Content.Server.Database.Admin", b =>
  1490. {
  1491. b.Navigation("Flags");
  1492. });
  1493. modelBuilder.Entity("Content.Server.Database.AdminLog", b =>
  1494. {
  1495. b.Navigation("Players");
  1496. });
  1497. modelBuilder.Entity("Content.Server.Database.AdminRank", b =>
  1498. {
  1499. b.Navigation("Admins");
  1500. b.Navigation("Flags");
  1501. });
  1502. modelBuilder.Entity("Content.Server.Database.ConnectionLog", b =>
  1503. {
  1504. b.Navigation("BanHits");
  1505. });
  1506. modelBuilder.Entity("Content.Server.Database.Player", b =>
  1507. {
  1508. b.Navigation("AdminLogs");
  1509. b.Navigation("AdminMessagesCreated");
  1510. b.Navigation("AdminMessagesDeleted");
  1511. b.Navigation("AdminMessagesLastEdited");
  1512. b.Navigation("AdminMessagesReceived");
  1513. b.Navigation("AdminNotesCreated");
  1514. b.Navigation("AdminNotesDeleted");
  1515. b.Navigation("AdminNotesLastEdited");
  1516. b.Navigation("AdminNotesReceived");
  1517. b.Navigation("AdminServerBansCreated");
  1518. b.Navigation("AdminServerBansLastEdited");
  1519. b.Navigation("AdminServerRoleBansCreated");
  1520. b.Navigation("AdminServerRoleBansLastEdited");
  1521. b.Navigation("AdminWatchlistsCreated");
  1522. b.Navigation("AdminWatchlistsDeleted");
  1523. b.Navigation("AdminWatchlistsLastEdited");
  1524. b.Navigation("AdminWatchlistsReceived");
  1525. b.Navigation("JobWhitelists");
  1526. });
  1527. modelBuilder.Entity("Content.Server.Database.Preference", b =>
  1528. {
  1529. b.Navigation("Profiles");
  1530. });
  1531. modelBuilder.Entity("Content.Server.Database.Profile", b =>
  1532. {
  1533. b.Navigation("Antags");
  1534. b.Navigation("Jobs");
  1535. b.Navigation("Loadouts");
  1536. b.Navigation("Traits");
  1537. });
  1538. modelBuilder.Entity("Content.Server.Database.ProfileLoadoutGroup", b =>
  1539. {
  1540. b.Navigation("Loadouts");
  1541. });
  1542. modelBuilder.Entity("Content.Server.Database.ProfileRoleLoadout", b =>
  1543. {
  1544. b.Navigation("Groups");
  1545. });
  1546. modelBuilder.Entity("Content.Server.Database.Round", b =>
  1547. {
  1548. b.Navigation("AdminLogs");
  1549. });
  1550. modelBuilder.Entity("Content.Server.Database.Server", b =>
  1551. {
  1552. b.Navigation("ConnectionLogs");
  1553. b.Navigation("Rounds");
  1554. });
  1555. modelBuilder.Entity("Content.Server.Database.ServerBan", b =>
  1556. {
  1557. b.Navigation("BanHits");
  1558. b.Navigation("Unban");
  1559. });
  1560. modelBuilder.Entity("Content.Server.Database.ServerRoleBan", b =>
  1561. {
  1562. b.Navigation("Unban");
  1563. });
  1564. #pragma warning restore 612, 618
  1565. }
  1566. }
  1567. }