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.

26 lines
429 B

  1. /**
  2. * Settings schema
  3. */
  4. module.exports = (sequelize, DataTypes) => {
  5. let settingSchema = sequelize.define('setting', {
  6. key: {
  7. type: DataTypes.STRING,
  8. allowNull: false
  9. },
  10. config: {
  11. type: DataTypes.JSONB,
  12. allowNull: false
  13. }
  14. }, {
  15. timestamps: true,
  16. version: true,
  17. indexes: [
  18. {
  19. unique: true,
  20. fields: ['key']
  21. }
  22. ]
  23. })
  24. return settingSchema
  25. }