obcon-scada / app /modules /groups /model.js
chanmin0723's picture
Initial obcon SCADA deploy
e4bf523
Raw
History Blame Contribute Delete
1.2 kB
'use strict'
/**
* Copyright (c) 2017~2020, OBCon Inc.
* All rights reserved.
*/
/**
* @file
* @copyright 2017~2020, OBCon Inc.
* @author gye hyun james kim [pnuskgh@gmail.com]
*/
//--- http://docs.sequelizejs.com/
let Sequelize = require('sequelize');
let Model = utils.getClass('include', 'model.js');
class GroupsModel extends Model {
constructor() {
super();
this._title = '그룹';
this._database = db.db_scada;
this._tableName = 'groups';
}
get fields() {
return Object.assign({
site: {
type: Sequelize.INTEGER(11),
allowNull: false,
defaultValue: 1,
validate: {
},
title: '사이트',
strType: 'integer'
},
role: {
type: Sequelize.INTEGER(11),
allowNull: true,
defaultValue: -1,
validate: {
},
title: '역할',
strType: 'integer'
}
}, super.fields);
}
}
module.exports = GroupsModel;