|
@@ -1,48 +0,0 @@
|
|
|
-'use strict';
|
|
|
-const Schema = require('mongoose').Schema;
|
|
|
-const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
-
|
|
|
-const ZhwlcarSchema = {
|
|
|
- car_onwer: { type: String, required: false, maxLength: 200 },
|
|
|
- it: { type: String, required: false, maxLength: 200 },
|
|
|
- it_member: { type: String, required: false, maxLength: 200 },
|
|
|
- ro: { type: String, required: false, maxLength: 200 },
|
|
|
- r_time: { type: String, required: false, maxLength: 200 },
|
|
|
- car_no: { type: String, required: false, maxLength: 200 },
|
|
|
- car_type: { type: String, required: false, maxLength: 200 },
|
|
|
- cc_no: { type: String, required: false, maxLength: 200 },
|
|
|
- cc_weight: { type: String, required: false, maxLength: 200 },
|
|
|
- cc_scrap_time: { type: String, required: false, maxLength: 200 },
|
|
|
- cc_examine_time: { type: String, required: false, maxLength: 200 },
|
|
|
- rc_no: { type: String, required: false, maxLength: 200 },
|
|
|
- rc_examine_time: { type: String, required: false, maxLength: 200 },
|
|
|
- bcc_no: { type: String, required: false, maxLength: 200 },
|
|
|
- fi_name: { type: String, required: false, maxLength: 200 },
|
|
|
- fi_tel: { type: String, required: false, maxLength: 200 },
|
|
|
- fi_no: { type: String, required: false, maxLength: 200 },
|
|
|
- fi_cost: { type: String, required: false, maxLength: 200 },
|
|
|
- fi_start_time: { type: String, required: false, maxLength: 200 },
|
|
|
- fi_end_time: { type: String, required: false, maxLength: 200 },
|
|
|
- fi_dw: { type: String, required: false, maxLength: 200 },
|
|
|
- fi_vt: { type: String, required: false, maxLength: 200 },
|
|
|
- fi_sign_time: { type: String, required: false, maxLength: 200 },
|
|
|
- bi_name: { type: String, required: false, maxLength: 200 },
|
|
|
- bi_tel: { type: String, required: false, maxLength: 200 },
|
|
|
- bi_no: { type: String, required: false, maxLength: 200 },
|
|
|
- bi_cost: { type: String, required: false, maxLength: 200 },
|
|
|
- bi_start_time: { type: String, required: false, maxLength: 200 },
|
|
|
- bi_end_time: { type: String, required: false, maxLength: 200 },
|
|
|
- bi_dw: { type: String, required: false, maxLength: 200 },
|
|
|
- bi_sign_time: { type: String, required: false, maxLength: 200 },
|
|
|
- remark: { type: String, required: false, maxLength: 200 },
|
|
|
- last_place: { type: String, required: false, maxLength: 200 },
|
|
|
-};
|
|
|
-
|
|
|
-const schema = new Schema(ZhwlcarSchema, { toJSON: { virtuals: true } });
|
|
|
-schema.index({ id: 1 });
|
|
|
-schema.plugin(metaPlugin);
|
|
|
-
|
|
|
-module.exports = app => {
|
|
|
- const { mongoose } = app;
|
|
|
- return mongoose.model('Zhwlcar', schema, 'zhwlcar');
|
|
|
-};
|