remove default deleted_at

This commit is contained in:
Francis Cao 2024-02-07 14:01:25 -08:00
parent c302939043
commit bc73410dba
2 changed files with 3 additions and 5 deletions

View File

@ -5,7 +5,7 @@
*/
-- AlterTable
ALTER TABLE "team" ADD COLUMN "deleted_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,
ALTER TABLE "team" ADD COLUMN "deleted_at" TIMESTAMPTZ(6),
ADD COLUMN "logo_url" VARCHAR(2183);
-- AlterTable
@ -26,6 +26,4 @@ DROP TABLE "team_website";
CREATE INDEX "website_team_id_idx" ON "website"("team_id");
-- CreateIndex
CREATE INDEX "website_created_by_idx" ON "website"("created_by");
CREATE INDEX "website_created_by_idx" ON "website"("created_by");

View File

@ -168,7 +168,7 @@ model Team {
logoUrl String? @map("logo_url") @db.VarChar(2183)
createdAt DateTime? @default(now()) @map("created_at") @db.Timestamptz(6)
updatedAt DateTime? @updatedAt @map("updated_at") @db.Timestamptz(6)
deletedAt DateTime? @default(now()) @map("deleted_at") @db.Timestamptz(6)
deletedAt DateTime? @map("deleted_at") @db.Timestamptz(6)
website Website[]
teamUser TeamUser[]