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: {
|
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…
Reference in New Issue