- Timestamp:
- 02/07/21 16:25:56 (4 years ago)
- Branches:
- master
- Children:
- e0cdea2
- Parents:
- ac51326
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/Migrations/20210205174704_Initial-Migration.cs
rac51326 r0a694bb 15 15 Id = table.Column<int>(nullable: false) 16 16 .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn), 17 CreatedOn = table.Column<DateTime>(nullable: false, defaultValueSql: 17 CreatedOn = table.Column<DateTime>(nullable: false, defaultValueSql:"now()"), 18 18 DeletedOn = table.Column<DateTime>(nullable: true), 19 19 Name = table.Column<string>(nullable: false), … … 125 125 Name = table.Column<string>(nullable: false), 126 126 Password = table.Column<string>(nullable: false), 127 UserI d = table.Column<int>(nullable: true)127 UserID = table.Column<int>(nullable: false) 128 128 }, 129 129 constraints: table => … … 131 131 table.PrimaryKey("PK_PharmacyHeads", x => x.Id); 132 132 table.ForeignKey( 133 name: "FK_PharmacyHeads_Users_UserI d",134 column: x => x.UserI d,133 name: "FK_PharmacyHeads_Users_UserID", 134 column: x => x.UserID, 135 135 principalTable: "Users", 136 136 principalColumn: "Id", 137 onDelete: ReferentialAction. Restrict);137 onDelete: ReferentialAction.Cascade); 138 138 }); 139 139 … … 172 172 CreatedOn = table.Column<DateTime>(nullable: false, defaultValueSql: "now()"), 173 173 DeletedOn = table.Column<DateTime>(nullable: true), 174 PheadId = table.Column<int>(nullable: true),174 PheadId = table.Column<int>(nullable: false), 175 175 HeadId = table.Column<int>(nullable: true), 176 MedicineId = table.Column<int>(nullable: true)176 MedicineId = table.Column<int>(nullable: false) 177 177 }, 178 178 constraints: table => … … 242 242 243 243 migrationBuilder.CreateIndex( 244 name: "IX_PharmacyHeads_UserI d",244 name: "IX_PharmacyHeads_UserID", 245 245 table: "PharmacyHeads", 246 column: "UserI d");246 column: "UserID"); 247 247 248 248 migrationBuilder.CreateIndex(
Note:
See TracChangeset
for help on using the changeset viewer.