mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
feat: add completed at timestamp
This commit is contained in:
@ -0,0 +1,4 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Document" ADD COLUMN "completedAt" TIMESTAMP(3);
|
||||
|
||||
UPDATE "Document" SET "completedAt" = "updatedAt" WHERE "status" = 'COMPLETED';
|
||||
@ -120,6 +120,7 @@ model Document {
|
||||
documentMeta DocumentMeta?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
completedAt DateTime?
|
||||
|
||||
@@unique([documentDataId])
|
||||
@@index([userId])
|
||||
|
||||
Reference in New Issue
Block a user