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.
31 lines
685 B
31 lines
685 B
'use strict';
|
|
|
|
module.exports = function (dc) {
|
|
const FileRoad = dc.orm.define(
|
|
'fileRoad',
|
|
{
|
|
rId: {
|
|
field: 'id',
|
|
type: dc.ORM.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true,
|
|
allowNull: false
|
|
},
|
|
roadName: {
|
|
field: 'road_name',
|
|
type: dc.ORM.STRING,
|
|
},
|
|
originalData: {
|
|
field: 'original_data',
|
|
type: dc.ORM.STRING,
|
|
},
|
|
},
|
|
{
|
|
tableName: 'file_road'
|
|
}
|
|
);
|
|
|
|
dc.models.FileRoad = FileRoad;
|
|
|
|
return FileRoad;
|
|
};
|
|
|