|
|
|
@ -1,5 +1,4 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
@ -16,7 +15,7 @@ namespace UserSvc.Data.Migrations
|
|
|
|
|
name: "Users",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
|
|
|
Id = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
Name = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
Surname = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
Age = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
@ -25,11 +24,11 @@ namespace UserSvc.Data.Migrations
|
|
|
|
|
Sexe = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
ProfilePict = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
NbSessionWeek = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
Goal = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
SleepLevel = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
SportLevel = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
Sports = table.Column<List<string>>(type: "text[]", nullable: false),
|
|
|
|
|
HealthProblems = table.Column<List<string>>(type: "text[]", nullable: false),
|
|
|
|
|
Goal = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
SleepLevel = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
SportLevel = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
Sports = table.Column<int[]>(type: "integer[]", nullable: false),
|
|
|
|
|
HealthProblems = table.Column<int[]>(type: "integer[]", nullable: false),
|
|
|
|
|
CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
|
|
|
UpdatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
|
|
|
|
},
|
|
|
|
@ -37,6 +36,12 @@ namespace UserSvc.Data.Migrations
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("PK_Users", x => x.Id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "IX_Users_Name_Surname",
|
|
|
|
|
table: "Users",
|
|
|
|
|
columns: new[] { "Name", "Surname" },
|
|
|
|
|
unique: true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|