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.

33 lines
556 B

  1. import { UUIDV4, STRING, DATE, INTEGER, } from 'sequelize'
  2. export default {
  3. options: {
  4. timestamps: false,
  5. },
  6. modelName: 'Transaction',
  7. tableName: 'transactions',
  8. rawAttributes: {
  9. id: {
  10. allowNull: true,
  11. primaryKey: true,
  12. type: UUIDV4,
  13. },
  14. deviceId: {
  15. allowNull: false,
  16. type: STRING,
  17. },
  18. operation: {
  19. allowNull: false,
  20. type: INTEGER,
  21. },
  22. objectId: {
  23. allowNull: false,
  24. type: STRING,
  25. },
  26. performedAt: {
  27. allowNull: false,
  28. type: DATE,
  29. },
  30. },
  31. }