chore: failed attempt at adding custom field labels

I have spent all day on it and for some reason, I can't figure it out
This commit is contained in:
Ephraim Atta-Duncan
2024-02-18 16:01:03 +00:00
parent 2815b1a809
commit 986030cc38
9 changed files with 101 additions and 26 deletions

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Field" ADD COLUMN "label" TEXT;

View File

@ -210,15 +210,15 @@ model DocumentData {
}
model DocumentMeta {
id String @id @default(cuid())
subject String?
message String?
timezone String? @default("Etc/UTC") @db.Text
password String?
dateFormat String? @default("yyyy-MM-dd hh:mm a") @db.Text
documentId Int @unique
document Document @relation(fields: [documentId], references: [id], onDelete: Cascade)
redirectUrl String?
id String @id @default(cuid())
subject String?
message String?
timezone String? @default("Etc/UTC") @db.Text
password String?
dateFormat String? @default("yyyy-MM-dd hh:mm a") @db.Text
documentId Int @unique
document Document @relation(fields: [documentId], references: [id], onDelete: Cascade)
redirectUrl String?
}
enum ReadStatus {
@ -283,6 +283,7 @@ model Field {
documentId Int?
templateId Int?
recipientId Int?
label String?
type FieldType
page Int
positionX Decimal @default(0)