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.

35 lines
662 B

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