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.

18 lines
278 B

  1. 'use strict'
  2. /**
  3. * Group schema
  4. */
  5. module.exports = (sequelize, DataTypes) => {
  6. let groupSchema = sequelize.define('group', {
  7. name: {
  8. type: DataTypes.STRING,
  9. allowNull: false
  10. }
  11. }, {
  12. timestamps: true,
  13. version: true
  14. })
  15. return groupSchema
  16. }