CreateTableSheet.constants.ts 436 B

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