1
0
Fork 0
mirror of https://gitlab.com/Alamantus/Readlebee.git synced 2025-03-22 19:38:54 +01:00
Readlebee/server/sequelize/models/PermissionLevel.js
Robbie Antenesse 071e1e6586 Update sequelize & DB setup:
- Split models & associations into their own files
- Update columns and requirements
- Create PermissionLevel model & add to relevant models
2020-01-14 15:47:44 -07:00

21 lines
No EOL
473 B
JavaScript

const Sequelize = require('sequelize');
module.exports = sequelize => sequelize.define('PermissionLevel', {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: false,
comment: 'Represents the level number with 100 being the private and 0 being public',
},
name: {
type: Sequelize.STRING,
unique: true,
allowNull: false,
},
description: {
type: Sequelize.STRING,
allowNull: false,
},
}, {
timestamps: false,
});