Row Value
Life Cycle
| Route | Create | Read | Update | Delete |
|---|---|---|---|---|
| /app/:tenant/:entity-slug | ||||
| /app/:tenant/:entity-slug/new | ||||
| /app/:tenant/:entity-slug/:id | ||||
| /api/:entity-slug | ||||
| /api/:entity-slug/:id |
Properties
| Name | Title | Type | Description |
|---|---|---|---|
| rowId * | Row | Row | Parent Row. |
| propertyId * | Property | Property | Parent Property. |
| textValue | Text Value | String | For properties.[type]=ENTITY |
| numberValue | Number Value | Decimal | For properties.[type]=NUMBER |
| dateValue | Date Value | DateTime | For properties.[type]=DATE |
| booleanValue | Bool Value | Boolean | |
| media | Media | Media[] | For properties.[type]=MEDIA. Contains the file title, name, type and content. |
Model
model RowValue {
id String @id @default(cuid())
rowId String
row Row @relation(fields: [rowId], references: [id], onDelete: Cascade)
propertyId String
property Property @relation(fields: [propertyId], references: [id], onDelete: Cascade)
textValue String?
numberValue Decimal?
dateValue DateTime?
media Media[]
}