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