using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Hutopy.Web.Contents.Migrations { /// public partial class Initial : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.EnsureSchema( name: "Content"); migrationBuilder.CreateTable( name: "Contents", schema: "Content", columns: table => new { Id = table.Column(type: "uuid", nullable: false), CreatedBy = table.Column(type: "uuid", nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP"), Title = table.Column(type: "text", nullable: true), Description = table.Column(type: "text", nullable: true), Uri = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Contents", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Contents", schema: "Content"); } } }