using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace JOBot.Backend.Data.Migrations
{
///
public partial class Initial : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Users",
columns: table => new
{
Id = table.Column(type: "uuid", nullable: false),
UserId = table.Column(type: "bigint", nullable: false),
Username = table.Column(type: "character varying(255)", maxLength: 255, nullable: true),
CreatedAt = table.Column(type: "timestamp with time zone", nullable: false),
AccessToken = table.Column(type: "character varying(255)", maxLength: 255, nullable: true),
RefreshToken = table.Column(type: "character varying(255)", maxLength: 255, nullable: true),
Eula = table.Column(type: "boolean", nullable: false),
CvUrl = table.Column(type: "character varying(255)", maxLength: 255, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Users", x => x.Id);
table.UniqueConstraint("AK_Users_UserId", x => x.UserId);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Users");
}
}
}