You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
930 B

8 months ago
'use strict';
module.exports = app => {
const mongoose = app.mongoose;
const Schema = mongoose.Schema;
const DualFlowMotorSchema = new Schema({
username: {//数据所属人
type: String,
index: true
},
canName: {//can名称
type: String,
index: true
},
canId: { //canId
type: String,
index: true
},
sendRip: { //can发送的数据
type: String,
index: true
},
recieveRipArr: { //can接收的数据
type: Array,
index: true
},
delete: {
type: Number,
default: 0, //0代表未删除,1代表删除
index: true
},
create_at: {
type: Date,
default: Date.now,
index: true
},
update_at: {
type: Date,
default: Date.now,
index: true
},
}, {
strict: false
});
return mongoose.model('dualFlowMotor', DualFlowMotorSchema, "dualFlowMotor");
};