using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Hutopy.Web.Features.Contents.Data.Migrations { /// public partial class AddPresentationInfos : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PresentationInfos", schema: "Content", columns: table => new { CreatorId = table.Column(type: "uuid", nullable: false), PhoneNumber = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), Email = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), Title = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), MainImageUrl = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), MainImageText = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), MainVideoText = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), ImagesSubtitle = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), Image1Url = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), Image2Url = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), Image3Url = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), Image4Url = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), ImagesText = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), VideoSubtitle = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), VideoSubtitleMain = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), VideoUrlMain = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), VideoUrl = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), VideoText = table.Column(type: "character varying(255)", maxLength: 255, nullable: false) }, constraints: table => { table.PrimaryKey("PK_PresentationInfos", x => x.CreatorId); table.ForeignKey( name: "FK_PresentationInfos_Creators_CreatorId", column: x => x.CreatorId, principalSchema: "Content", principalTable: "Creators", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PresentationInfos", schema: "Content"); } } }