Zeichen's app for both server and client.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import * as ColumnTypes from '../utilities/ColumnTypes'
  2. const Folder: ColumnTypes.Model = {
  3. modelName: 'Folder',
  4. tableName: 'folders',
  5. options: {
  6. timestamps: true,
  7. paranoid: true,
  8. createdAt: 'createdAt',
  9. updatedAt: 'updatedAt',
  10. deletedAt: 'deletedAt',
  11. },
  12. attributes: {
  13. id: {
  14. allowNull: true,
  15. primaryKey: true,
  16. type: ColumnTypes.UUIDV4,
  17. },
  18. name: {
  19. allowNull: false,
  20. type: ColumnTypes.STRING,
  21. },
  22. parentId: {
  23. allowNull: true,
  24. type: ColumnTypes.UUIDV4,
  25. },
  26. createdAt: {
  27. allowNull: false,
  28. type: ColumnTypes.DATE,
  29. },
  30. updatedAt: {
  31. allowNull: false,
  32. type: ColumnTypes.DATE,
  33. },
  34. deletedAt: {
  35. allowNull: true,
  36. type: ColumnTypes.DATE,
  37. },
  38. }
  39. }
  40. export default Folder