mirror of
https://gitlab.com/Alamantus/Readlebee.git
synced 2025-06-23 09:46:39 +02:00
Give permissionLevel columns defaultValue of Private
If not included from UI or otherwise excluded, make it private
This commit is contained in:
parent
e0a8c21051
commit
f12f8b987a
4 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,7 @@ module.exports = sequelize => sequelize.define('Review', {
|
||||||
permissionLevel: {
|
permissionLevel: {
|
||||||
type: Sequelize.INTEGER,
|
type: Sequelize.INTEGER,
|
||||||
allowNull: false,
|
allowNull: false,
|
||||||
|
defaultValue: 0,
|
||||||
references: {
|
references: {
|
||||||
model: sequelize.models.PermissionLevel,
|
model: sequelize.models.PermissionLevel,
|
||||||
key: 'id',
|
key: 'id',
|
||||||
|
|
|
@ -25,6 +25,7 @@ module.exports = sequelize => sequelize.define('Shelf', {
|
||||||
permissionLevel: {
|
permissionLevel: {
|
||||||
type: Sequelize.NUMBER,
|
type: Sequelize.NUMBER,
|
||||||
allowNull: false,
|
allowNull: false,
|
||||||
|
defaultValue: 0,
|
||||||
references: {
|
references: {
|
||||||
model: sequelize.models.PermissionLevel,
|
model: sequelize.models.PermissionLevel,
|
||||||
key: 'id',
|
key: 'id',
|
||||||
|
|
|
@ -18,6 +18,7 @@ module.exports = sequelize => sequelize.define('Status', {
|
||||||
permissionLevel: {
|
permissionLevel: {
|
||||||
type: Sequelize.INTEGER,
|
type: Sequelize.INTEGER,
|
||||||
allowNull: false,
|
allowNull: false,
|
||||||
|
defaultValue: 0,
|
||||||
references: {
|
references: {
|
||||||
model: sequelize.models.PermissionLevel,
|
model: sequelize.models.PermissionLevel,
|
||||||
key: 'id',
|
key: 'id',
|
||||||
|
|
|
@ -34,6 +34,7 @@ module.exports = sequelize => sequelize.define('User', {
|
||||||
permissionLevel: {
|
permissionLevel: {
|
||||||
type: Sequelize.INTEGER,
|
type: Sequelize.INTEGER,
|
||||||
allowNull: false,
|
allowNull: false,
|
||||||
|
defaultValue: 0,
|
||||||
references: {
|
references: {
|
||||||
model: sequelize.models.PermissionLevel,
|
model: sequelize.models.PermissionLevel,
|
||||||
key: 'id',
|
key: 'id',
|
||||||
|
|
Loading…
Add table
Reference in a new issue