location.js 535 B

123456789101112131415161718192021222324252627
  1. // const Sequelize = require('sequelize')
  2. // const sequelize = require('./sequelize')
  3. // const Location = sequelize.define('location', {
  4. // id: {
  5. // type: Sequelize.UUID,
  6. // defaultValue: Sequelize.UUIDV1,
  7. // primaryKey: true
  8. // },
  9. // name: Sequelize.STRING,
  10. // address: Sequelize.STRING,
  11. // key: {
  12. // type: Sequelize.STRING,
  13. // unique: true
  14. // },
  15. // }, {
  16. // paranoid: true,
  17. // indexes: [
  18. // {
  19. // unique: true,
  20. // fields: ['key']
  21. // }
  22. // ]
  23. // })
  24. // module.exports = Location