/**
 * Data_type.js
 *
 * @description :: TODO: You might write a short summary of how this model works and what it represents here.
 * @docs        :: http://sailsjs.org/documentation/concepts/models-and-orm/models
 */

module.exports = {
    tableName: 'data_types',
    attributes: {
        id: {
            type: 'integer',
            unique: true,
            autoIncrement: true,
            primaryKey: true
        },
        data_type: {
            type: 'string',
            unique: true
        },
        plc_type:{
            type: 'string'
        }
    },
    seedData:[
        {
            data_type: "Floating Point",
            plc_type: "REAL"
        },
        {
            data_type: "Integer",
            plc_type: "INT"
        },
        {
            data_type: "Boolean",
            plc_type: "BOOL"
        },
    ]
};
