mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Added support for the 'comped' status for members
refs https://github.com/TryGhost/Team/issues/790 The schema validations are used at the model layer to validate inputs and need to be updated in order for us to reintroduce the 'comped' status.
This commit is contained in:
parent
8a87eb9e36
commit
fa137ed16e
1 changed files with 3 additions and 3 deletions
|
@ -348,7 +348,7 @@ module.exports = {
|
|||
email: {type: 'string', maxlength: 191, nullable: false, unique: true, validations: {isEmail: true}},
|
||||
status: {
|
||||
type: 'string', maxlength: 50, nullable: false, defaultTo: 'free', validations: {
|
||||
isIn: [['free', 'paid']]
|
||||
isIn: [['free', 'paid', 'comped']]
|
||||
}
|
||||
},
|
||||
name: {type: 'string', maxlength: 191, nullable: true},
|
||||
|
@ -417,12 +417,12 @@ module.exports = {
|
|||
member_id: {type: 'string', maxlength: 24, nullable: false, references: 'members.id', cascadeDelete: true},
|
||||
from_status: {
|
||||
type: 'string', maxlength: 50, nullable: true, validations: {
|
||||
isIn: [['free', 'paid']]
|
||||
isIn: [['free', 'paid', 'comped']]
|
||||
}
|
||||
},
|
||||
to_status: {
|
||||
type: 'string', maxlength: 50, nullable: true, validations: {
|
||||
isIn: [['free', 'paid']]
|
||||
isIn: [['free', 'paid', 'comped']]
|
||||
}
|
||||
},
|
||||
created_at: {type: 'dateTime', nullable: false}
|
||||
|
|
Loading…
Add table
Reference in a new issue