message function
This commit is contained in:
@@ -2,11 +2,20 @@ const uniqueValidator = require('mongoose-unique-validator');
|
||||
module.exports = mongoose => {
|
||||
var schema = mongoose.Schema(
|
||||
{
|
||||
// Legacy fields
|
||||
message_name: String,
|
||||
message_group: Number,
|
||||
language: String,
|
||||
message_body: String,
|
||||
// New sent message fields
|
||||
title: String,
|
||||
language: String,
|
||||
sent_date: Date,
|
||||
message: String,
|
||||
recipient_name: String,
|
||||
recipient_id: String,
|
||||
message_title: String,
|
||||
create_by: String,
|
||||
create_date: Date,
|
||||
site: Number
|
||||
},
|
||||
{ collection: 'message_template', timestamps: true }
|
||||
|
||||
Reference in New Issue
Block a user