CreateTableSheet.constants.ts26 lines · main
| 1 | export const NEW_NAMESPACE_MARKER = 'new-namespace' |
| 2 | |
| 3 | export const COLUMN_TYPES = [ |
| 4 | 'boolean', |
| 5 | 'int', |
| 6 | 'long', |
| 7 | 'float', |
| 8 | 'double', |
| 9 | 'string', |
| 10 | 'timestamp', |
| 11 | 'date', |
| 12 | 'time', |
| 13 | 'timestamptz', |
| 14 | 'uuid', |
| 15 | 'binary', |
| 16 | 'decimal', |
| 17 | 'fixed', |
| 18 | ] |
| 19 | |
| 20 | export const COLUMN_TYPE_FIELDS = { |
| 21 | decimal: [ |
| 22 | { name: 'precision', type: 'number' }, |
| 23 | { name: 'scale', type: 'number' }, |
| 24 | ], |
| 25 | fixed: [{ name: 'length', type: 'number' }], |
| 26 | } |