|
@@ -0,0 +1,951 @@
|
|
1
|
+// <auto-generated />
|
|
2
|
+using System;
|
|
3
|
+using Microsoft.EntityFrameworkCore;
|
|
4
|
+using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
5
|
+using Microsoft.EntityFrameworkCore.Migrations;
|
|
6
|
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
7
|
+using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
8
|
+using UnivateProperties_API.Context;
|
|
9
|
+
|
|
10
|
+namespace UnivateProperties_API.Migrations
|
|
11
|
+{
|
|
12
|
+ [DbContext(typeof(DataContext))]
|
|
13
|
+ [Migration("20190905133540_BanksAddresses")]
|
|
14
|
+ partial class BanksAddresses
|
|
15
|
+ {
|
|
16
|
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
17
|
+ {
|
|
18
|
+#pragma warning disable 612, 618
|
|
19
|
+ modelBuilder
|
|
20
|
+ .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn)
|
|
21
|
+ .HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
|
|
22
|
+ .HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
23
|
+
|
|
24
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Bank.Bank", b =>
|
|
25
|
+ {
|
|
26
|
+ b.Property<int>("Id")
|
|
27
|
+ .ValueGeneratedOnAdd();
|
|
28
|
+
|
|
29
|
+ b.Property<DateTime>("Created");
|
|
30
|
+
|
|
31
|
+ b.Property<DateTime>("Modified");
|
|
32
|
+
|
|
33
|
+ b.Property<string>("ModifiedBy");
|
|
34
|
+
|
|
35
|
+ b.Property<string>("Name");
|
|
36
|
+
|
|
37
|
+ b.Property<string>("UniversalBranchCode");
|
|
38
|
+
|
|
39
|
+ b.HasKey("Id");
|
|
40
|
+
|
|
41
|
+ b.ToTable("Banks");
|
|
42
|
+ });
|
|
43
|
+
|
|
44
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Bank.BankAccount", b =>
|
|
45
|
+ {
|
|
46
|
+ b.Property<int>("Id")
|
|
47
|
+ .ValueGeneratedOnAdd();
|
|
48
|
+
|
|
49
|
+ b.Property<string>("AccountHolder");
|
|
50
|
+
|
|
51
|
+ b.Property<string>("AccountNumber");
|
|
52
|
+
|
|
53
|
+ b.Property<int>("BankId");
|
|
54
|
+
|
|
55
|
+ b.Property<DateTime>("Created");
|
|
56
|
+
|
|
57
|
+ b.Property<DateTime>("Modified");
|
|
58
|
+
|
|
59
|
+ b.Property<string>("ModifiedBy");
|
|
60
|
+
|
|
61
|
+ b.Property<int?>("OwnerId");
|
|
62
|
+
|
|
63
|
+ b.HasKey("Id");
|
|
64
|
+
|
|
65
|
+ b.HasIndex("BankId");
|
|
66
|
+
|
|
67
|
+ b.HasIndex("OwnerId");
|
|
68
|
+
|
|
69
|
+ b.ToTable("BankAccounts");
|
|
70
|
+ });
|
|
71
|
+
|
|
72
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
|
|
73
|
+ {
|
|
74
|
+ b.Property<int>("Id")
|
|
75
|
+ .ValueGeneratedOnAdd();
|
|
76
|
+
|
|
77
|
+ b.Property<string>("BCC");
|
|
78
|
+
|
|
79
|
+ b.Property<string>("Body");
|
|
80
|
+
|
|
81
|
+ b.Property<string>("CC");
|
|
82
|
+
|
|
83
|
+ b.Property<string>("Comment");
|
|
84
|
+
|
|
85
|
+ b.Property<DateTime>("Created");
|
|
86
|
+
|
|
87
|
+ b.Property<bool>("IsBodyHtml");
|
|
88
|
+
|
|
89
|
+ b.Property<DateTime>("Modified");
|
|
90
|
+
|
|
91
|
+ b.Property<string>("ModifiedBy");
|
|
92
|
+
|
|
93
|
+ b.Property<int>("SenderId");
|
|
94
|
+
|
|
95
|
+ b.Property<string>("Subject");
|
|
96
|
+
|
|
97
|
+ b.Property<string>("To");
|
|
98
|
+
|
|
99
|
+ b.Property<string>("ToDisplay");
|
|
100
|
+
|
|
101
|
+ b.HasKey("Id");
|
|
102
|
+
|
|
103
|
+ b.HasIndex("SenderId");
|
|
104
|
+
|
|
105
|
+ b.ToTable("Emails");
|
|
106
|
+ });
|
|
107
|
+
|
|
108
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
|
|
109
|
+ {
|
|
110
|
+ b.Property<int>("Id")
|
|
111
|
+ .ValueGeneratedOnAdd();
|
|
112
|
+
|
|
113
|
+ b.Property<string>("Address");
|
|
114
|
+
|
|
115
|
+ b.Property<DateTime>("Created");
|
|
116
|
+
|
|
117
|
+ b.Property<string>("DisplayName");
|
|
118
|
+
|
|
119
|
+ b.Property<DateTime>("Modified");
|
|
120
|
+
|
|
121
|
+ b.Property<string>("ModifiedBy");
|
|
122
|
+
|
|
123
|
+ b.Property<int>("SMTPHostId");
|
|
124
|
+
|
|
125
|
+ b.HasKey("Id");
|
|
126
|
+
|
|
127
|
+ b.HasIndex("SMTPHostId");
|
|
128
|
+
|
|
129
|
+ b.ToTable("Accounts");
|
|
130
|
+ });
|
|
131
|
+
|
|
132
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPHost", b =>
|
|
133
|
+ {
|
|
134
|
+ b.Property<int>("Id")
|
|
135
|
+ .ValueGeneratedOnAdd();
|
|
136
|
+
|
|
137
|
+ b.Property<DateTime>("Created");
|
|
138
|
+
|
|
139
|
+ b.Property<string>("Host");
|
|
140
|
+
|
|
141
|
+ b.Property<DateTime>("Modified");
|
|
142
|
+
|
|
143
|
+ b.Property<string>("ModifiedBy");
|
|
144
|
+
|
|
145
|
+ b.Property<bool>("NeedsAuthorize");
|
|
146
|
+
|
|
147
|
+ b.Property<string>("Password");
|
|
148
|
+
|
|
149
|
+ b.Property<bool>("UseSSL");
|
|
150
|
+
|
|
151
|
+ b.Property<string>("User");
|
|
152
|
+
|
|
153
|
+ b.HasKey("Id");
|
|
154
|
+
|
|
155
|
+ b.ToTable("Hosts");
|
|
156
|
+ });
|
|
157
|
+
|
|
158
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
|
|
159
|
+ {
|
|
160
|
+ b.Property<int>("Id")
|
|
161
|
+ .ValueGeneratedOnAdd();
|
|
162
|
+
|
|
163
|
+ b.Property<string>("City");
|
|
164
|
+
|
|
165
|
+ b.Property<DateTime>("Created");
|
|
166
|
+
|
|
167
|
+ b.Property<DateTime>("Modified");
|
|
168
|
+
|
|
169
|
+ b.Property<string>("ModifiedBy");
|
|
170
|
+
|
|
171
|
+ b.Property<string>("PostalCode");
|
|
172
|
+
|
|
173
|
+ b.Property<string>("Street");
|
|
174
|
+
|
|
175
|
+ b.Property<string>("StreetNumber");
|
|
176
|
+
|
|
177
|
+ b.Property<string>("Suburb");
|
|
178
|
+
|
|
179
|
+ b.HasKey("Id");
|
|
180
|
+
|
|
181
|
+ b.ToTable("Addresses");
|
|
182
|
+ });
|
|
183
|
+
|
|
184
|
+ modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
|
|
185
|
+ {
|
|
186
|
+ b.Property<int>("Id")
|
|
187
|
+ .ValueGeneratedOnAdd();
|
|
188
|
+
|
|
189
|
+ b.Property<DateTime>("Created");
|
|
190
|
+
|
|
191
|
+ b.Property<DateTime>("Modified");
|
|
192
|
+
|
|
193
|
+ b.Property<string>("ModifiedBy");
|
|
194
|
+
|
|
195
|
+ b.Property<int?>("PropertyID");
|
|
196
|
+
|
|
197
|
+ b.Property<int>("StatusID");
|
|
198
|
+
|
|
199
|
+ b.Property<int?>("TimeshareID");
|
|
200
|
+
|
|
201
|
+ b.HasKey("Id");
|
|
202
|
+
|
|
203
|
+ b.HasIndex("PropertyID");
|
|
204
|
+
|
|
205
|
+ b.HasIndex("StatusID");
|
|
206
|
+
|
|
207
|
+ b.HasIndex("TimeshareID");
|
|
208
|
+
|
|
209
|
+ b.ToTable("ProcessFlows");
|
|
210
|
+ });
|
|
211
|
+
|
|
212
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
|
|
213
|
+ {
|
|
214
|
+ b.Property<int>("Id")
|
|
215
|
+ .ValueGeneratedOnAdd();
|
|
216
|
+
|
|
217
|
+ b.Property<string>("AddressLine1");
|
|
218
|
+
|
|
219
|
+ b.Property<string>("AddressLine2");
|
|
220
|
+
|
|
221
|
+ b.Property<string>("AddressLine3");
|
|
222
|
+
|
|
223
|
+ b.Property<int?>("AgencyId");
|
|
224
|
+
|
|
225
|
+ b.Property<int?>("AgentId");
|
|
226
|
+
|
|
227
|
+ b.Property<int>("CityId");
|
|
228
|
+
|
|
229
|
+ b.Property<DateTime>("Created");
|
|
230
|
+
|
|
231
|
+ b.Property<string>("CreatedBy");
|
|
232
|
+
|
|
233
|
+ b.Property<string>("Description");
|
|
234
|
+
|
|
235
|
+ b.Property<bool>("IsSale");
|
|
236
|
+
|
|
237
|
+ b.Property<DateTime>("Modified");
|
|
238
|
+
|
|
239
|
+ b.Property<string>("ModifiedBy");
|
|
240
|
+
|
|
241
|
+ b.Property<decimal>("OperationalCosts");
|
|
242
|
+
|
|
243
|
+ b.Property<int?>("OwnerId");
|
|
244
|
+
|
|
245
|
+ b.Property<decimal>("Price");
|
|
246
|
+
|
|
247
|
+ b.Property<string>("PricePer");
|
|
248
|
+
|
|
249
|
+ b.Property<string>("PropertyName");
|
|
250
|
+
|
|
251
|
+ b.Property<int>("PropertyTypeId");
|
|
252
|
+
|
|
253
|
+ b.Property<int>("ProvinceId");
|
|
254
|
+
|
|
255
|
+ b.Property<bool>("Published");
|
|
256
|
+
|
|
257
|
+ b.Property<string>("ShortDescription");
|
|
258
|
+
|
|
259
|
+ b.Property<int?>("StatusId");
|
|
260
|
+
|
|
261
|
+ b.Property<int>("SuburbId");
|
|
262
|
+
|
|
263
|
+ b.Property<string>("Unit");
|
|
264
|
+
|
|
265
|
+ b.HasKey("Id");
|
|
266
|
+
|
|
267
|
+ b.HasIndex("AgencyId");
|
|
268
|
+
|
|
269
|
+ b.HasIndex("AgentId");
|
|
270
|
+
|
|
271
|
+ b.HasIndex("CityId");
|
|
272
|
+
|
|
273
|
+ b.HasIndex("OwnerId");
|
|
274
|
+
|
|
275
|
+ b.HasIndex("PropertyTypeId");
|
|
276
|
+
|
|
277
|
+ b.HasIndex("ProvinceId");
|
|
278
|
+
|
|
279
|
+ b.HasIndex("StatusId");
|
|
280
|
+
|
|
281
|
+ b.HasIndex("SuburbId");
|
|
282
|
+
|
|
283
|
+ b.ToTable("Properties");
|
|
284
|
+ });
|
|
285
|
+
|
|
286
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
|
|
287
|
+ {
|
|
288
|
+ b.Property<int>("Id")
|
|
289
|
+ .ValueGeneratedOnAdd();
|
|
290
|
+
|
|
291
|
+ b.Property<DateTime>("Created");
|
|
292
|
+
|
|
293
|
+ b.Property<string>("Image");
|
|
294
|
+
|
|
295
|
+ b.Property<bool>("IsDefault");
|
|
296
|
+
|
|
297
|
+ b.Property<DateTime>("Modified");
|
|
298
|
+
|
|
299
|
+ b.Property<string>("ModifiedBy");
|
|
300
|
+
|
|
301
|
+ b.Property<int>("PropertyId");
|
|
302
|
+
|
|
303
|
+ b.HasKey("Id");
|
|
304
|
+
|
|
305
|
+ b.HasIndex("PropertyId");
|
|
306
|
+
|
|
307
|
+ b.ToTable("PropertyImages");
|
|
308
|
+ });
|
|
309
|
+
|
|
310
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
|
|
311
|
+ {
|
|
312
|
+ b.Property<int>("Id")
|
|
313
|
+ .ValueGeneratedOnAdd();
|
|
314
|
+
|
|
315
|
+ b.Property<DateTime>("Created");
|
|
316
|
+
|
|
317
|
+ b.Property<string>("Description");
|
|
318
|
+
|
|
319
|
+ b.Property<DateTime>("Modified");
|
|
320
|
+
|
|
321
|
+ b.Property<string>("ModifiedBy");
|
|
322
|
+
|
|
323
|
+ b.Property<int>("UsageType");
|
|
324
|
+
|
|
325
|
+ b.HasKey("Id");
|
|
326
|
+
|
|
327
|
+ b.ToTable("PropertyTypes");
|
|
328
|
+ });
|
|
329
|
+
|
|
330
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
|
|
331
|
+ {
|
|
332
|
+ b.Property<int>("Id")
|
|
333
|
+ .ValueGeneratedOnAdd();
|
|
334
|
+
|
|
335
|
+ b.Property<DateTime>("Created");
|
|
336
|
+
|
|
337
|
+ b.Property<string>("Description");
|
|
338
|
+
|
|
339
|
+ b.Property<DateTime>("Modified");
|
|
340
|
+
|
|
341
|
+ b.Property<string>("ModifiedBy");
|
|
342
|
+
|
|
343
|
+ b.Property<int>("PropertyId");
|
|
344
|
+
|
|
345
|
+ b.Property<int>("UserDefinedFieldId");
|
|
346
|
+
|
|
347
|
+ b.Property<string>("Value");
|
|
348
|
+
|
|
349
|
+ b.HasKey("Id");
|
|
350
|
+
|
|
351
|
+ b.HasIndex("PropertyId");
|
|
352
|
+
|
|
353
|
+ b.HasIndex("UserDefinedFieldId");
|
|
354
|
+
|
|
355
|
+ b.ToTable("PropertyUserFields");
|
|
356
|
+ });
|
|
357
|
+
|
|
358
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
|
|
359
|
+ {
|
|
360
|
+ b.Property<int>("Id")
|
|
361
|
+ .ValueGeneratedOnAdd();
|
|
362
|
+
|
|
363
|
+ b.Property<DateTime>("Created");
|
|
364
|
+
|
|
365
|
+ b.Property<string>("FieldName");
|
|
366
|
+
|
|
367
|
+ b.Property<string>("FieldType");
|
|
368
|
+
|
|
369
|
+ b.Property<int>("GroupId");
|
|
370
|
+
|
|
371
|
+ b.Property<DateTime>("Modified");
|
|
372
|
+
|
|
373
|
+ b.Property<string>("ModifiedBy");
|
|
374
|
+
|
|
375
|
+ b.Property<int>("Rank");
|
|
376
|
+
|
|
377
|
+ b.HasKey("Id");
|
|
378
|
+
|
|
379
|
+ b.HasIndex("GroupId");
|
|
380
|
+
|
|
381
|
+ b.ToTable("UserDefinedFields");
|
|
382
|
+ });
|
|
383
|
+
|
|
384
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
|
|
385
|
+ {
|
|
386
|
+ b.Property<int>("Id")
|
|
387
|
+ .ValueGeneratedOnAdd();
|
|
388
|
+
|
|
389
|
+ b.Property<DateTime>("Created");
|
|
390
|
+
|
|
391
|
+ b.Property<string>("Description");
|
|
392
|
+
|
|
393
|
+ b.Property<DateTime>("Modified");
|
|
394
|
+
|
|
395
|
+ b.Property<string>("ModifiedBy");
|
|
396
|
+
|
|
397
|
+ b.Property<int>("Rank");
|
|
398
|
+
|
|
399
|
+ b.Property<int>("UsageType");
|
|
400
|
+
|
|
401
|
+ b.HasKey("Id");
|
|
402
|
+
|
|
403
|
+ b.ToTable("UserDefinedGroups");
|
|
404
|
+ });
|
|
405
|
+
|
|
406
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
|
|
407
|
+ {
|
|
408
|
+ b.Property<int>("Id")
|
|
409
|
+ .ValueGeneratedOnAdd();
|
|
410
|
+
|
|
411
|
+ b.Property<string>("Code");
|
|
412
|
+
|
|
413
|
+ b.Property<DateTime>("Created");
|
|
414
|
+
|
|
415
|
+ b.Property<string>("Description");
|
|
416
|
+
|
|
417
|
+ b.Property<DateTime>("Modified");
|
|
418
|
+
|
|
419
|
+ b.Property<string>("ModifiedBy");
|
|
420
|
+
|
|
421
|
+ b.Property<int>("ProvinceId");
|
|
422
|
+
|
|
423
|
+ b.HasKey("Id");
|
|
424
|
+
|
|
425
|
+ b.HasIndex("ProvinceId");
|
|
426
|
+
|
|
427
|
+ b.ToTable("Cities");
|
|
428
|
+ });
|
|
429
|
+
|
|
430
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
|
|
431
|
+ {
|
|
432
|
+ b.Property<int>("Id")
|
|
433
|
+ .ValueGeneratedOnAdd();
|
|
434
|
+
|
|
435
|
+ b.Property<string>("Code");
|
|
436
|
+
|
|
437
|
+ b.Property<DateTime>("Created");
|
|
438
|
+
|
|
439
|
+ b.Property<string>("Description");
|
|
440
|
+
|
|
441
|
+ b.Property<DateTime>("Modified");
|
|
442
|
+
|
|
443
|
+ b.Property<string>("ModifiedBy");
|
|
444
|
+
|
|
445
|
+ b.HasKey("Id");
|
|
446
|
+
|
|
447
|
+ b.ToTable("Provinces");
|
|
448
|
+ });
|
|
449
|
+
|
|
450
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
|
|
451
|
+ {
|
|
452
|
+ b.Property<int>("Id")
|
|
453
|
+ .ValueGeneratedOnAdd();
|
|
454
|
+
|
|
455
|
+ b.Property<int>("CityId");
|
|
456
|
+
|
|
457
|
+ b.Property<DateTime>("Created");
|
|
458
|
+
|
|
459
|
+ b.Property<string>("Description");
|
|
460
|
+
|
|
461
|
+ b.Property<DateTime>("Modified");
|
|
462
|
+
|
|
463
|
+ b.Property<string>("ModifiedBy");
|
|
464
|
+
|
|
465
|
+ b.Property<string>("PostalCode");
|
|
466
|
+
|
|
467
|
+ b.HasKey("Id");
|
|
468
|
+
|
|
469
|
+ b.HasIndex("CityId");
|
|
470
|
+
|
|
471
|
+ b.ToTable("Suburbs");
|
|
472
|
+ });
|
|
473
|
+
|
|
474
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
|
|
475
|
+ {
|
|
476
|
+ b.Property<int>("Id")
|
|
477
|
+ .ValueGeneratedOnAdd();
|
|
478
|
+
|
|
479
|
+ b.Property<DateTime>("Created");
|
|
480
|
+
|
|
481
|
+ b.Property<DateTime>("Modified");
|
|
482
|
+
|
|
483
|
+ b.Property<string>("ModifiedBy");
|
|
484
|
+
|
|
485
|
+ b.Property<string>("Name");
|
|
486
|
+
|
|
487
|
+ b.HasKey("Id");
|
|
488
|
+
|
|
489
|
+ b.ToTable("Seasons");
|
|
490
|
+ });
|
|
491
|
+
|
|
492
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
|
|
493
|
+ {
|
|
494
|
+ b.Property<int>("Id")
|
|
495
|
+ .ValueGeneratedOnAdd();
|
|
496
|
+
|
|
497
|
+ b.Property<string>("Code");
|
|
498
|
+
|
|
499
|
+ b.Property<DateTime>("Created");
|
|
500
|
+
|
|
501
|
+ b.Property<string>("Description");
|
|
502
|
+
|
|
503
|
+ b.Property<DateTime>("Modified");
|
|
504
|
+
|
|
505
|
+ b.Property<string>("ModifiedBy");
|
|
506
|
+
|
|
507
|
+ b.Property<int>("StatusType");
|
|
508
|
+
|
|
509
|
+ b.HasKey("Id");
|
|
510
|
+
|
|
511
|
+ b.ToTable("Status");
|
|
512
|
+ });
|
|
513
|
+
|
|
514
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
|
|
515
|
+ {
|
|
516
|
+ b.Property<int>("Id")
|
|
517
|
+ .ValueGeneratedOnAdd();
|
|
518
|
+
|
|
519
|
+ b.Property<int?>("AgencyId");
|
|
520
|
+
|
|
521
|
+ b.Property<bool>("AgentAsRep");
|
|
522
|
+
|
|
523
|
+ b.Property<int?>("AgentId");
|
|
524
|
+
|
|
525
|
+ b.Property<DateTime>("ArrivalDate");
|
|
526
|
+
|
|
527
|
+ b.Property<string>("BankedWith");
|
|
528
|
+
|
|
529
|
+ b.Property<int>("Bedrooms");
|
|
530
|
+
|
|
531
|
+ b.Property<DateTime>("Created");
|
|
532
|
+
|
|
533
|
+ b.Property<bool>("CurrentYearBanked");
|
|
534
|
+
|
|
535
|
+ b.Property<DateTime>("DepartureDate");
|
|
536
|
+
|
|
537
|
+ b.Property<bool>("LeviesPaidInFull");
|
|
538
|
+
|
|
539
|
+ b.Property<double>("LevyAmount");
|
|
540
|
+
|
|
541
|
+ b.Property<int>("MaxSleep");
|
|
542
|
+
|
|
543
|
+ b.Property<DateTime>("Modified");
|
|
544
|
+
|
|
545
|
+ b.Property<string>("ModifiedBy");
|
|
546
|
+
|
|
547
|
+ b.Property<string>("Module");
|
|
548
|
+
|
|
549
|
+ b.Property<DateTime>("OriginalPurchaseDate");
|
|
550
|
+
|
|
551
|
+ b.Property<double>("OriginalPurchasePrice");
|
|
552
|
+
|
|
553
|
+ b.Property<bool>("OtherResort");
|
|
554
|
+
|
|
555
|
+ b.Property<int>("OwnerId");
|
|
556
|
+
|
|
557
|
+ b.Property<bool>("ReferedByAgent");
|
|
558
|
+
|
|
559
|
+ b.Property<int>("RegionId");
|
|
560
|
+
|
|
561
|
+ b.Property<string>("ResortCode");
|
|
562
|
+
|
|
563
|
+ b.Property<string>("ResortName");
|
|
564
|
+
|
|
565
|
+ b.Property<string>("Season");
|
|
566
|
+
|
|
567
|
+ b.Property<double>("SellPrice");
|
|
568
|
+
|
|
569
|
+ b.Property<int>("StatusId");
|
|
570
|
+
|
|
571
|
+ b.Property<string>("WeekNumber");
|
|
572
|
+
|
|
573
|
+ b.Property<bool>("WeekPlacedForRental");
|
|
574
|
+
|
|
575
|
+ b.HasKey("Id");
|
|
576
|
+
|
|
577
|
+ b.HasIndex("AgencyId");
|
|
578
|
+
|
|
579
|
+ b.HasIndex("AgentId");
|
|
580
|
+
|
|
581
|
+ b.HasIndex("OwnerId");
|
|
582
|
+
|
|
583
|
+ b.HasIndex("RegionId");
|
|
584
|
+
|
|
585
|
+ b.HasIndex("StatusId");
|
|
586
|
+
|
|
587
|
+ b.ToTable("Weeks");
|
|
588
|
+ });
|
|
589
|
+
|
|
590
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
|
|
591
|
+ {
|
|
592
|
+ b.Property<int>("Id")
|
|
593
|
+ .ValueGeneratedOnAdd();
|
|
594
|
+
|
|
595
|
+ b.Property<int>("Adults");
|
|
596
|
+
|
|
597
|
+ b.Property<int>("Bedrooms");
|
|
598
|
+
|
|
599
|
+ b.Property<int>("Children");
|
|
600
|
+
|
|
601
|
+ b.Property<string>("Code");
|
|
602
|
+
|
|
603
|
+ b.Property<DateTime>("Created");
|
|
604
|
+
|
|
605
|
+ b.Property<DateTime>("Modified");
|
|
606
|
+
|
|
607
|
+ b.Property<string>("ModifiedBy");
|
|
608
|
+
|
|
609
|
+ b.HasKey("Id");
|
|
610
|
+
|
|
611
|
+ b.HasIndex("Code")
|
|
612
|
+ .IsUnique();
|
|
613
|
+
|
|
614
|
+ b.ToTable("UnitConfigurations");
|
|
615
|
+ });
|
|
616
|
+
|
|
617
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
|
|
618
|
+ {
|
|
619
|
+ b.Property<int>("Id")
|
|
620
|
+ .ValueGeneratedOnAdd();
|
|
621
|
+
|
|
622
|
+ b.Property<DateTime>("Created");
|
|
623
|
+
|
|
624
|
+ b.Property<string>("Description");
|
|
625
|
+
|
|
626
|
+ b.Property<DateTime>("Modified");
|
|
627
|
+
|
|
628
|
+ b.Property<string>("ModifiedBy");
|
|
629
|
+
|
|
630
|
+ b.Property<int>("UnitConfigurationId");
|
|
631
|
+
|
|
632
|
+ b.HasKey("Id");
|
|
633
|
+
|
|
634
|
+ b.HasIndex("UnitConfigurationId");
|
|
635
|
+
|
|
636
|
+ b.ToTable("UnitConfigurationTypes");
|
|
637
|
+ });
|
|
638
|
+
|
|
639
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
|
|
640
|
+ {
|
|
641
|
+ b.Property<int>("Id")
|
|
642
|
+ .ValueGeneratedOnAdd();
|
|
643
|
+
|
|
644
|
+ b.Property<string>("AgencyName");
|
|
645
|
+
|
|
646
|
+ b.Property<string>("CompanyRegNumber");
|
|
647
|
+
|
|
648
|
+ b.Property<DateTime>("Created");
|
|
649
|
+
|
|
650
|
+ b.Property<string>("EAABEFFCNumber");
|
|
651
|
+
|
|
652
|
+ b.Property<DateTime>("Modified");
|
|
653
|
+
|
|
654
|
+ b.Property<string>("ModifiedBy");
|
|
655
|
+
|
|
656
|
+ b.HasKey("Id");
|
|
657
|
+
|
|
658
|
+ b.ToTable("Agencies");
|
|
659
|
+ });
|
|
660
|
+
|
|
661
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
|
|
662
|
+ {
|
|
663
|
+ b.Property<int>("Id")
|
|
664
|
+ .ValueGeneratedOnAdd();
|
|
665
|
+
|
|
666
|
+ b.Property<int?>("AgencyId");
|
|
667
|
+
|
|
668
|
+ b.Property<string>("CellNumber");
|
|
669
|
+
|
|
670
|
+ b.Property<DateTime>("Created");
|
|
671
|
+
|
|
672
|
+ b.Property<string>("Email");
|
|
673
|
+
|
|
674
|
+ b.Property<DateTime>("Modified");
|
|
675
|
+
|
|
676
|
+ b.Property<string>("ModifiedBy");
|
|
677
|
+
|
|
678
|
+ b.Property<string>("Name");
|
|
679
|
+
|
|
680
|
+ b.Property<string>("Surname");
|
|
681
|
+
|
|
682
|
+ b.Property<string>("Telephone");
|
|
683
|
+
|
|
684
|
+ b.Property<int?>("UserId");
|
|
685
|
+
|
|
686
|
+ b.HasKey("Id");
|
|
687
|
+
|
|
688
|
+ b.HasIndex("AgencyId");
|
|
689
|
+
|
|
690
|
+ b.HasIndex("UserId");
|
|
691
|
+
|
|
692
|
+ b.ToTable("Agents");
|
|
693
|
+ });
|
|
694
|
+
|
|
695
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
|
|
696
|
+ {
|
|
697
|
+ b.Property<int>("Id")
|
|
698
|
+ .ValueGeneratedOnAdd();
|
|
699
|
+
|
|
700
|
+ b.Property<int?>("AddressId");
|
|
701
|
+
|
|
702
|
+ b.Property<string>("CellNumber");
|
|
703
|
+
|
|
704
|
+ b.Property<string>("CompanyRegNumber");
|
|
705
|
+
|
|
706
|
+ b.Property<DateTime>("Created");
|
|
707
|
+
|
|
708
|
+ b.Property<string>("Email");
|
|
709
|
+
|
|
710
|
+ b.Property<string>("IdNumber");
|
|
711
|
+
|
|
712
|
+ b.Property<string>("IncomeTaxNumber");
|
|
713
|
+
|
|
714
|
+ b.Property<string>("MaritalStatus");
|
|
715
|
+
|
|
716
|
+ b.Property<DateTime>("Modified");
|
|
717
|
+
|
|
718
|
+ b.Property<string>("ModifiedBy");
|
|
719
|
+
|
|
720
|
+ b.Property<string>("Name");
|
|
721
|
+
|
|
722
|
+ b.Property<string>("Surname");
|
|
723
|
+
|
|
724
|
+ b.Property<string>("Telephone");
|
|
725
|
+
|
|
726
|
+ b.Property<int?>("UserId");
|
|
727
|
+
|
|
728
|
+ b.HasKey("Id");
|
|
729
|
+
|
|
730
|
+ b.HasIndex("AddressId");
|
|
731
|
+
|
|
732
|
+ b.HasIndex("UserId");
|
|
733
|
+
|
|
734
|
+ b.ToTable("Individuals");
|
|
735
|
+ });
|
|
736
|
+
|
|
737
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
|
|
738
|
+ {
|
|
739
|
+ b.Property<int>("Id")
|
|
740
|
+ .ValueGeneratedOnAdd();
|
|
741
|
+
|
|
742
|
+ b.Property<DateTime>("Created");
|
|
743
|
+
|
|
744
|
+ b.Property<DateTime>("Modified");
|
|
745
|
+
|
|
746
|
+ b.Property<string>("ModifiedBy");
|
|
747
|
+
|
|
748
|
+ b.Property<byte[]>("PasswordHash");
|
|
749
|
+
|
|
750
|
+ b.Property<byte[]>("PasswordSalt");
|
|
751
|
+
|
|
752
|
+ b.Property<string>("Role");
|
|
753
|
+
|
|
754
|
+ b.Property<string>("Token");
|
|
755
|
+
|
|
756
|
+ b.Property<string>("Username");
|
|
757
|
+
|
|
758
|
+ b.Property<bool>("Verified");
|
|
759
|
+
|
|
760
|
+ b.HasKey("Id");
|
|
761
|
+
|
|
762
|
+ b.ToTable("Users");
|
|
763
|
+ });
|
|
764
|
+
|
|
765
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Bank.BankAccount", b =>
|
|
766
|
+ {
|
|
767
|
+ b.HasOne("UnivateProperties_API.Model.Bank.Bank", "Bank")
|
|
768
|
+ .WithMany()
|
|
769
|
+ .HasForeignKey("BankId")
|
|
770
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
771
|
+
|
|
772
|
+ b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
|
|
773
|
+ .WithMany()
|
|
774
|
+ .HasForeignKey("OwnerId");
|
|
775
|
+ });
|
|
776
|
+
|
|
777
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
|
|
778
|
+ {
|
|
779
|
+ b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
|
|
780
|
+ .WithMany("Emails")
|
|
781
|
+ .HasForeignKey("SenderId")
|
|
782
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
783
|
+ });
|
|
784
|
+
|
|
785
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
|
|
786
|
+ {
|
|
787
|
+ b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
|
|
788
|
+ .WithMany("SMTPAccounts")
|
|
789
|
+ .HasForeignKey("SMTPHostId")
|
|
790
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
791
|
+ });
|
|
792
|
+
|
|
793
|
+ modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
|
|
794
|
+ {
|
|
795
|
+ b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
|
|
796
|
+ .WithMany()
|
|
797
|
+ .HasForeignKey("PropertyID");
|
|
798
|
+
|
|
799
|
+ b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
|
|
800
|
+ .WithMany()
|
|
801
|
+ .HasForeignKey("StatusID")
|
|
802
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
803
|
+
|
|
804
|
+ b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
|
|
805
|
+ .WithMany()
|
|
806
|
+ .HasForeignKey("TimeshareID");
|
|
807
|
+ });
|
|
808
|
+
|
|
809
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
|
|
810
|
+ {
|
|
811
|
+ b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
|
|
812
|
+ .WithMany("Properties")
|
|
813
|
+ .HasForeignKey("AgencyId");
|
|
814
|
+
|
|
815
|
+ b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
|
|
816
|
+ .WithMany("Properties")
|
|
817
|
+ .HasForeignKey("AgentId");
|
|
818
|
+
|
|
819
|
+ b.HasOne("UnivateProperties_API.Model.Region.City", "City")
|
|
820
|
+ .WithMany()
|
|
821
|
+ .HasForeignKey("CityId")
|
|
822
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
823
|
+
|
|
824
|
+ b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
|
|
825
|
+ .WithMany("Properties")
|
|
826
|
+ .HasForeignKey("OwnerId");
|
|
827
|
+
|
|
828
|
+ b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
|
|
829
|
+ .WithMany()
|
|
830
|
+ .HasForeignKey("PropertyTypeId")
|
|
831
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
832
|
+
|
|
833
|
+ b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
|
|
834
|
+ .WithMany()
|
|
835
|
+ .HasForeignKey("ProvinceId")
|
|
836
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
837
|
+
|
|
838
|
+ b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
|
|
839
|
+ .WithMany()
|
|
840
|
+ .HasForeignKey("StatusId");
|
|
841
|
+
|
|
842
|
+ b.HasOne("UnivateProperties_API.Model.Region.Suburb", "Suburb")
|
|
843
|
+ .WithMany()
|
|
844
|
+ .HasForeignKey("SuburbId")
|
|
845
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
846
|
+ });
|
|
847
|
+
|
|
848
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
|
|
849
|
+ {
|
|
850
|
+ b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
|
|
851
|
+ .WithMany("PropertyImages")
|
|
852
|
+ .HasForeignKey("PropertyId")
|
|
853
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
854
|
+ });
|
|
855
|
+
|
|
856
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
|
|
857
|
+ {
|
|
858
|
+ b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
|
|
859
|
+ .WithMany("PropertyUserFields")
|
|
860
|
+ .HasForeignKey("PropertyId")
|
|
861
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
862
|
+
|
|
863
|
+ b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
|
|
864
|
+ .WithMany()
|
|
865
|
+ .HasForeignKey("UserDefinedFieldId")
|
|
866
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
867
|
+ });
|
|
868
|
+
|
|
869
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
|
|
870
|
+ {
|
|
871
|
+ b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
|
|
872
|
+ .WithMany("Fields")
|
|
873
|
+ .HasForeignKey("GroupId")
|
|
874
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
875
|
+ });
|
|
876
|
+
|
|
877
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
|
|
878
|
+ {
|
|
879
|
+ b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
|
|
880
|
+ .WithMany()
|
|
881
|
+ .HasForeignKey("ProvinceId")
|
|
882
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
883
|
+ });
|
|
884
|
+
|
|
885
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
|
|
886
|
+ {
|
|
887
|
+ b.HasOne("UnivateProperties_API.Model.Region.City", "City")
|
|
888
|
+ .WithMany()
|
|
889
|
+ .HasForeignKey("CityId")
|
|
890
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
891
|
+ });
|
|
892
|
+
|
|
893
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
|
|
894
|
+ {
|
|
895
|
+ b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
|
|
896
|
+ .WithMany()
|
|
897
|
+ .HasForeignKey("AgencyId");
|
|
898
|
+
|
|
899
|
+ b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
|
|
900
|
+ .WithMany()
|
|
901
|
+ .HasForeignKey("AgentId");
|
|
902
|
+
|
|
903
|
+ b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
|
|
904
|
+ .WithMany()
|
|
905
|
+ .HasForeignKey("OwnerId")
|
|
906
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
907
|
+
|
|
908
|
+ b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
|
|
909
|
+ .WithMany()
|
|
910
|
+ .HasForeignKey("RegionId")
|
|
911
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
912
|
+
|
|
913
|
+ b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
|
|
914
|
+ .WithMany()
|
|
915
|
+ .HasForeignKey("StatusId")
|
|
916
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
917
|
+ });
|
|
918
|
+
|
|
919
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
|
|
920
|
+ {
|
|
921
|
+ b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
|
|
922
|
+ .WithMany("Types")
|
|
923
|
+ .HasForeignKey("UnitConfigurationId")
|
|
924
|
+ .OnDelete(DeleteBehavior.Cascade);
|
|
925
|
+ });
|
|
926
|
+
|
|
927
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
|
|
928
|
+ {
|
|
929
|
+ b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
|
|
930
|
+ .WithMany("Agents")
|
|
931
|
+ .HasForeignKey("AgencyId");
|
|
932
|
+
|
|
933
|
+ b.HasOne("UnivateProperties_API.Model.Users.User", "User")
|
|
934
|
+ .WithMany()
|
|
935
|
+ .HasForeignKey("UserId");
|
|
936
|
+ });
|
|
937
|
+
|
|
938
|
+ modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
|
|
939
|
+ {
|
|
940
|
+ b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
|
|
941
|
+ .WithMany()
|
|
942
|
+ .HasForeignKey("AddressId");
|
|
943
|
+
|
|
944
|
+ b.HasOne("UnivateProperties_API.Model.Users.User", "User")
|
|
945
|
+ .WithMany()
|
|
946
|
+ .HasForeignKey("UserId");
|
|
947
|
+ });
|
|
948
|
+#pragma warning restore 612, 618
|
|
949
|
+ }
|
|
950
|
+ }
|
|
951
|
+}
|