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.

22 lines
340 B

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