chg(tickets): change ticket table field prop

This commit is contained in:
OldHawk
2018-04-03 12:22:23 +08:00
parent 841c0a4d23
commit 2aa0a05b82
2 changed files with 6 additions and 4 deletions

View File

@@ -47,8 +47,9 @@ var MailTicketSchema = new Schema({
_replies: [this],
status: {
type: Number,
default: 0 //0 open(waiting handling), 1 wait(waiting reply), 2 solved
type: String,
enum: ['open', 'wait', 'solved'],
default: 'open'
},
createdAt: {
type: Date,

View File

@@ -40,8 +40,9 @@ var MessageTicketSchema = new Schema({
_replies: [this],
status: {
type: Number,
default: 0 //0 open(waiting handling), 1 wait(waiting reply), 2 solved
type: String,
enum: ['open', 'wait', 'solved'],
default: 'open'
},
createdAt: {
type: Date,