mirror of
https://gitlab.com/Alamantus/Readlebee.git
synced 2025-12-06 09:40:03 +01:00
21 lines
473 B
JavaScript
21 lines
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,
|
||
|
|
});
|