line-gestao-api/Migrations/20260106195112_AddUserDatas.cs

46 lines
1.9 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace line_gestao_api.Migrations
{
/// <inheritdoc />
public partial class AddUserDatas : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "UserDatas",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
Item = table.Column<int>(type: "integer", nullable: false),
Linha = table.Column<string>(type: "text", nullable: true),
Cliente = table.Column<string>(type: "text", nullable: true),
Cpf = table.Column<string>(type: "text", nullable: true),
Rg = table.Column<string>(type: "text", nullable: true),
DataNascimento = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
Email = table.Column<string>(type: "text", nullable: true),
Endereco = table.Column<string>(type: "text", nullable: true),
Celular = table.Column<string>(type: "text", nullable: true),
TelefoneFixo = table.Column<string>(type: "text", nullable: true),
CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
UpdatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_UserDatas", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "UserDatas");
}
}
}