1
0
Fork 0
mirror of synced 2024-09-28 23:31:43 +12:00
budibase/packages/server/src/constants/definitions.ts

43 lines
808 B
TypeScript
Raw Normal View History

export interface Table {
2021-06-25 05:17:26 +12:00
_id: string
_rev?: string
type?: string
views?: {}
name?: string
primary?: string[]
schema: {
[key: string]: {
// TODO: replace with field types enum when done
2021-06-25 05:17:26 +12:00
type: string
fieldName?: string
name: string
constraints?: {
2021-06-25 05:17:26 +12:00
type?: string
email?: boolean
inclusion?: string[]
length?: {
2021-06-25 05:17:26 +12:00
minimum?: string | number
maximum?: string | number
}
presence?: boolean
}
}
2021-06-25 05:17:26 +12:00
}
primaryDisplay?: string
sourceId?: string
}
2021-06-29 00:04:52 +12:00
export interface BudibaseAppMetadata {
_id: string
_rev?: string
appId: string
type: string
version: string
componentlibraries: string[]
name: string
url: string
instance: { _id: string }
updatedAt: Date
2021-06-29 00:04:52 +12:00
createdAt: Date
}