'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;
};