|
14 | 14 | } |
15 | 15 | }, |
16 | 16 | "nbformat": 4, |
17 | | - "nbformat_minor": 8, |
| 17 | + "nbformat_minor": 5, |
18 | 18 | "cells": [ |
19 | 19 | { |
20 | 20 | "cell_type": "markdown", |
|
37 | 37 | { |
38 | 38 | "cell_type": "code", |
39 | 39 | "source": [ |
40 | | - "[Migration(\"20230208105811_InitialTypes\")]", |
| 40 | + "[Migration(\"20230425145745_InitialTypes\")]", |
41 | 41 | "\npublic class InitialTypes : Migration", |
42 | 42 | "\n{", |
43 | 43 | "\n protected override void Up(MigrationBuilder migrationBuilder)", |
|
160 | 160 | "\n Discriminator = table.Column<string>(type: \"nvarchar(max)\", nullable: false),", |
161 | 161 | "\n LinkedDataNode = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
162 | 162 | "\n ReinsuranceCoverage = table.Column<double>(type: \"float\", nullable: true),", |
163 | | - "\n PremiumAllocation = table.Column<double>(type: \"float\", nullable: true)", |
| 163 | + "\n PremiumAllocation = table.Column<double>(type: \"float\", nullable: true),", |
| 164 | + "\n CashFlowPeriodicity = table.Column<int>(type: \"int\", nullable: true),", |
| 165 | + "\n InterpolationMethod = table.Column<int>(type: \"int\", nullable: true)", |
164 | 166 | "\n },", |
165 | 167 | "\n constraints: table =>", |
166 | 168 | "\n {", |
|
231 | 233 | "\n });", |
232 | 234 | "\n", |
233 | 235 | "\n migrationBuilder.CreateTable(", |
234 | | - "\n name: \"ExportFile\",", |
235 | | - "\n columns: table => new", |
236 | | - "\n {", |
237 | | - "\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),", |
238 | | - "\n Name = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
239 | | - "\n ContentType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
240 | | - "\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),", |
241 | | - "\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),", |
242 | | - "\n Length = table.Column<long>(type: \"bigint\", nullable: true),", |
243 | | - "\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true)", |
244 | | - "\n },", |
245 | | - "\n constraints: table =>", |
246 | | - "\n {", |
247 | | - "\n table.PrimaryKey(\"PK_ExportFile\", x => x.Id);", |
248 | | - "\n });", |
249 | | - "\n", |
250 | | - "\n migrationBuilder.CreateTable(", |
251 | 236 | "\n name: \"IfrsVariable\",", |
252 | 237 | "\n columns: table => new", |
253 | 238 | "\n {", |
254 | 239 | "\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),", |
255 | | - "\n Value = table.Column<double>(type: \"float\", nullable: false),", |
256 | | - "\n EstimateType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
257 | 240 | "\n EconomicBasis = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
258 | 241 | "\n DataNode = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
259 | 242 | "\n AocType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
260 | 243 | "\n Novelty = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
261 | 244 | "\n Partition = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),", |
| 245 | + "\n Values = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),", |
| 246 | + "\n EstimateType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
262 | 247 | "\n AmountType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
263 | 248 | "\n AccidentYear = table.Column<int>(type: \"int\", nullable: true)", |
264 | 249 | "\n },", |
|
268 | 253 | "\n });", |
269 | 254 | "\n", |
270 | 255 | "\n migrationBuilder.CreateTable(", |
271 | | - "\n name: \"ImportDataSet\",", |
272 | | - "\n columns: table => new", |
273 | | - "\n {", |
274 | | - "\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),", |
275 | | - "\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),", |
276 | | - "\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),", |
277 | | - "\n Length = table.Column<long>(type: \"bigint\", nullable: true),", |
278 | | - "\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true)", |
279 | | - "\n },", |
280 | | - "\n constraints: table =>", |
281 | | - "\n {", |
282 | | - "\n table.PrimaryKey(\"PK_ImportDataSet\", x => x.Id);", |
283 | | - "\n });", |
284 | | - "\n", |
285 | | - "\n migrationBuilder.CreateTable(", |
286 | | - "\n name: \"ImportExportActivity\",", |
| 256 | + "\n name: \"IOActivity\",", |
287 | 257 | "\n columns: table => new", |
288 | 258 | "\n {", |
289 | 259 | "\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),", |
|
300 | 270 | "\n },", |
301 | 271 | "\n constraints: table =>", |
302 | 272 | "\n {", |
303 | | - "\n table.PrimaryKey(\"PK_ImportExportActivity\", x => x.Id);", |
| 273 | + "\n table.PrimaryKey(\"PK_IOActivity\", x => x.Id);", |
304 | 274 | "\n });", |
305 | 275 | "\n", |
306 | 276 | "\n migrationBuilder.CreateTable(", |
307 | | - "\n name: \"ImportFile\",", |
| 277 | + "\n name: \"IOContent\",", |
308 | 278 | "\n columns: table => new", |
309 | 279 | "\n {", |
310 | 280 | "\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),", |
| 281 | + "\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),", |
| 282 | + "\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),", |
| 283 | + "\n Length = table.Column<long>(type: \"bigint\", nullable: true),", |
| 284 | + "\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
311 | 285 | "\n Name = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
312 | | - "\n Directory = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
313 | 286 | "\n ContentType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
| 287 | + "\n Discriminator = table.Column<string>(type: \"nvarchar(max)\", nullable: false),", |
| 288 | + "\n Directory = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
314 | 289 | "\n Partition = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
315 | 290 | "\n Source = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
316 | | - "\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),", |
317 | | - "\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),", |
318 | | - "\n Length = table.Column<long>(type: \"bigint\", nullable: true),", |
319 | | - "\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true)", |
| 291 | + "\n Content = table.Column<string>(type: \"nvarchar(max)\", nullable: true)", |
320 | 292 | "\n },", |
321 | 293 | "\n constraints: table =>", |
322 | 294 | "\n {", |
323 | | - "\n table.PrimaryKey(\"PK_ImportFile\", x => x.Id);", |
324 | | - "\n });", |
325 | | - "\n", |
326 | | - "\n migrationBuilder.CreateTable(", |
327 | | - "\n name: \"ImportStream\",", |
328 | | - "\n columns: table => new", |
329 | | - "\n {", |
330 | | - "\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),", |
331 | | - "\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),", |
332 | | - "\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),", |
333 | | - "\n Length = table.Column<long>(type: \"bigint\", nullable: true),", |
334 | | - "\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true)", |
335 | | - "\n },", |
336 | | - "\n constraints: table =>", |
337 | | - "\n {", |
338 | | - "\n table.PrimaryKey(\"PK_ImportStream\", x => x.Id);", |
339 | | - "\n });", |
340 | | - "\n", |
341 | | - "\n migrationBuilder.CreateTable(", |
342 | | - "\n name: \"ImportString\",", |
343 | | - "\n columns: table => new", |
344 | | - "\n {", |
345 | | - "\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),", |
346 | | - "\n Content = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
347 | | - "\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),", |
348 | | - "\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),", |
349 | | - "\n Length = table.Column<long>(type: \"bigint\", nullable: true),", |
350 | | - "\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true)", |
351 | | - "\n },", |
352 | | - "\n constraints: table =>", |
353 | | - "\n {", |
354 | | - "\n table.PrimaryKey(\"PK_ImportString\", x => x.Id);", |
| 295 | + "\n table.PrimaryKey(\"PK_IOContent\", x => x.Id);", |
355 | 296 | "\n });", |
356 | 297 | "\n", |
357 | 298 | "\n migrationBuilder.CreateTable(", |
|
492 | 433 | "\n columns: table => new", |
493 | 434 | "\n {", |
494 | 435 | "\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),", |
495 | | - "\n Values = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),", |
496 | | - "\n EstimateType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
497 | 436 | "\n DataNode = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
498 | 437 | "\n AocType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
499 | 438 | "\n Novelty = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
500 | 439 | "\n Partition = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),", |
| 440 | + "\n Values = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),", |
| 441 | + "\n EstimateType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
501 | 442 | "\n AmountType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),", |
502 | 443 | "\n AccidentYear = table.Column<int>(type: \"int\", nullable: true)", |
503 | 444 | "\n },", |
|
644 | 585 | "\n name: \"ExchangeRate\");", |
645 | 586 | "\n", |
646 | 587 | "\n migrationBuilder.DropTable(", |
647 | | - "\n name: \"ExportFile\");", |
648 | | - "\n", |
649 | | - "\n migrationBuilder.DropTable(", |
650 | 588 | "\n name: \"IfrsVariable\");", |
651 | 589 | "\n", |
652 | 590 | "\n migrationBuilder.DropTable(", |
653 | | - "\n name: \"ImportDataSet\");", |
654 | | - "\n", |
655 | | - "\n migrationBuilder.DropTable(", |
656 | | - "\n name: \"ImportExportActivity\");", |
657 | | - "\n", |
658 | | - "\n migrationBuilder.DropTable(", |
659 | | - "\n name: \"ImportFile\");", |
660 | | - "\n", |
661 | | - "\n migrationBuilder.DropTable(", |
662 | | - "\n name: \"ImportStream\");", |
| 591 | + "\n name: \"IOActivity\");", |
663 | 592 | "\n", |
664 | 593 | "\n migrationBuilder.DropTable(", |
665 | | - "\n name: \"ImportString\");", |
| 594 | + "\n name: \"IOContent\");", |
666 | 595 | "\n", |
667 | 596 | "\n migrationBuilder.DropTable(", |
668 | 597 | "\n name: \"LiabilityType\");", |
|
0 commit comments