Giải pháp chuyển đổi số trọn gói cho doanh nghiệp Việt
Tại thư mục apps/ecommerce/tables
Tạo file cars.js
Nội dung file
var table = require(`${path_root}/lib/mvc/tables/Table`);
class cars extends table{
constructor(req, res, next){
super(req, res, next);
this._id="";
this.name="";
this.year=0;
this.image="";
this.category_id="";
this.status="";
this.is_feature=0;
this.note="";
this.start_date=new Date();
this.end_date=new Date();
}
}
module.exports = cars;
Chưa có câu hỏi nào cho bài này.