1
0
Fork 0
mirror of synced 2024-06-17 01:44:53 +12:00
budibase/packages/types/src/documents/app/row.ts
2022-10-12 17:34:17 +01:00

32 lines
564 B
TypeScript

import { Document } from "../document"
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
}