mirror of
https://gitlab.com/Alamantus/Readlebee.git
synced 2025-03-22 19:38:54 +01:00
- Split models & associations into their own files - Update columns and requirements - Create PermissionLevel model & add to relevant models
21 lines
No EOL
473 B
JavaScript
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,
|
|
}); |