using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace NetinaShop.Repository.Migrations { /// public partial class AddNewsletterMember : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "NewsletterMembers", schema: "public", columns: table => new { Id = table.Column(type: "uuid", nullable: false), PhoneNumber = table.Column(type: "text", nullable: false), Email = table.Column(type: "text", nullable: false), RemovedAt = table.Column(type: "timestamp without time zone", nullable: false), CreatedAt = table.Column(type: "timestamp without time zone", nullable: false), CreatedBy = table.Column(type: "text", nullable: true), IsRemoved = table.Column(type: "boolean", nullable: false), RemovedBy = table.Column(type: "text", nullable: true), ModifiedAt = table.Column(type: "timestamp without time zone", nullable: false), ModifiedBy = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_NewsletterMembers", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "NewsletterMembers", schema: "public"); } } }