blob: dd2dd232fe68041c800ec77afe0ff9cebee75f29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* jshint indent: 2 */
module.exports = function(sequelize, DataTypes) {
return sequelize.define('region', {
id: {
type: DataTypes.INTEGER(10).UNSIGNED,
allowNull: false,
primaryKey: true,
autoIncrement: true
},
name: {
type: DataTypes.STRING(191),
allowNull: false
}
}, {
tableName: 'region',
timestamps: false,
underscored: true,
freezeTableName: true
});
};
|