'use strict'; module.exports = function (dc) { const Files = dc.orm.define( 'files', { id: { field: 'id', type: dc.ORM.INTEGER, primaryKey: true, autoIncrement: true, allowNull: false }, fId: { field: 'file_type', type: dc.ORM.INTEGER }, roadId: { field: 'road_id', type: dc.ORM.INTEGER }, uploaderId: { field: 'uploader_id', type: dc.ORM.INTEGER }, uploaderName: { field: 'uploader_name', type: dc.ORM.INTEGER }, startDate: { field: 'start_date', type: dc.ORM.DATE, }, endDate: { field: 'end_date', type: dc.ORM.DATE, }, createDate: { field: 'create_date', type: dc.ORM.DATE, }, fileSize: { field: 'file_size', type: dc.ORM.INTEGER, }, fileName: { field: 'file_name', type: dc.ORM.STRING, }, fileUrl: { field: 'file_url', type: dc.ORM.STRING, }, fileExt: { field: 'file_ext', type: dc.ORM.STRING, }, isDelete: { field: 'is_delete', type: dc.ORM.BOOLEAN, }, }, { tableName: 'files' } ); dc.models.Files = Files; return Files; };