Monorepo containing core modules of Zeichen.
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.

41 line
694 B

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