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
|
@ -18,6 +18,7 @@ module.exports = sequelize => sequelize.define('Review', {
|
|||
permissionLevel: {
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: false,
|
||||
defaultValue: 0,
|
||||
references: {
|
||||
model: sequelize.models.PermissionLevel,
|
||||
key: 'id',
|
||||
|
|
|
@ -25,6 +25,7 @@ module.exports = sequelize => sequelize.define('Shelf', {
|
|||
permissionLevel: {
|
||||
type: Sequelize.NUMBER,
|
||||
allowNull: false,
|
||||
defaultValue: 0,
|
||||
references: {
|
||||
model: sequelize.models.PermissionLevel,
|
||||
key: 'id',
|
||||
|
|
|
@ -18,6 +18,7 @@ module.exports = sequelize => sequelize.define('Status', {
|
|||
permissionLevel: {
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: false,
|
||||
defaultValue: 0,
|
||||
references: {
|
||||
model: sequelize.models.PermissionLevel,
|
||||
key: 'id',
|
||||
|
|
|
@ -34,6 +34,7 @@ module.exports = sequelize => sequelize.define('User', {
|
|||
permissionLevel: {
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: false,
|
||||
defaultValue: 0,
|
||||
references: {
|
||||
model: sequelize.models.PermissionLevel,
|
||||
key: 'id',
|
||||
|
|
Loading…
Reference in New Issue