Giải pháp chuyển đổi số trọn gói cho doanh nghiệp Việt

Tạo model carcategory.js - Xây dựng API frontend quản lý Car bằng server nodejs

Xây dựng API frontend quản lý Car bằng server nodejs

← Toàn bộ tài liệu


Bước 8.3: Tạo model carcategory.js

Bài 12/20 Xem dạng sách

Tại thư mục apps/ecommerce/models

tạo file carcategory.js

Nội dung file

var modelfrontenditem = require(`${path_root}/lib/mvc/models/modelfrontenditem`);
const model = require(`${path_root}/lib/mvc/models/model`);
const express = require('express');
class carcategory extends modelfrontenditem {

tableName() {
return "carcategories";
}

}
module.exports = carcategory;

Sơ đồ quan hệ các bảng

Table Name: {{table.name}}
Num Name Type
{{field_index+1}}
{{field.name}} {{field.type}}

Hỏi đáp

Gửi với tên {{comment_full_name}}

Chưa có câu hỏi nào cho bài này.

Zalo 0936.006.058 Hotline 0936.006.058