forked from tsai/budibase
14 changed files with 164 additions and 103 deletions
@ -1,29 +1,28 @@ |
|||||
|
|
||||
export interface Table { |
export interface Table { |
||||
_id: string, |
_id: string |
||||
_rev?: string, |
_rev?: string |
||||
type?: string, |
type?: string |
||||
views?: {}, |
views?: {} |
||||
name?: string, |
name?: string |
||||
primary?: string[], |
primary?: string[] |
||||
schema: { |
schema: { |
||||
[key: string]: { |
[key: string]: { |
||||
// TODO: replace with field types enum when done
|
// TODO: replace with field types enum when done
|
||||
type: string, |
type: string |
||||
fieldName?: string, |
fieldName?: string |
||||
name: string, |
name: string |
||||
constraints?: { |
constraints?: { |
||||
type?: string, |
type?: string |
||||
email?: boolean, |
email?: boolean |
||||
inclusion?: string[], |
inclusion?: string[] |
||||
length?: { |
length?: { |
||||
minimum?: string | number, |
minimum?: string | number |
||||
maximum?: string | number, |
maximum?: string | number |
||||
}, |
} |
||||
presence?: boolean, |
presence?: boolean |
||||
}, |
} |
||||
} |
} |
||||
}, |
} |
||||
primaryDisplay?: string, |
primaryDisplay?: string |
||||
sourceId?: string, |
sourceId?: string |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue