1
0
Fork 0
mirror of synced 2024-06-26 18:10:51 +12:00
budibase/packages/types/src/documents/app/row.ts

32 lines
564 B
TypeScript
Raw Normal View History

2022-05-21 08:16:29 +12:00
import { Document } from "../document"
2022-05-20 23:29:31 +12:00
export enum FieldType {
STRING = "string",
LONGFORM = "longform",
OPTIONS = "options",
NUMBER = "number",
BOOLEAN = "boolean",
ARRAY = "array",
DATETIME = "datetime",
ATTACHMENT = "attachment",
LINK = "link",
FORMULA = "formula",
AUTO = "auto",
JSON = "json",
INTERNAL = "internal",
}
export interface RowAttachment {
size: number
name: string
url: string
extension: string
key: string
}
export interface Row extends Document {
type?: string
tableId?: string
[key: string]: any
}