diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-10 20:03:57 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-10 20:04:29 +0200 |
| commit | 6a951df4a98d808f970ecd290630a15456a66e16 (patch) | |
| tree | fe4bcf3eae43f3364fe5028f73d47c2f80152379 /models/build.js | |
| parent | b9383ef158929bdbb42a15bc48c43aef9bdb74aa (diff) | |
| download | orm-6a951df4a98d808f970ecd290630a15456a66e16.tar.gz orm-6a951df4a98d808f970ecd290630a15456a66e16.zip | |
add builds table
Diffstat (limited to 'models/build.js')
| -rw-r--r-- | models/build.js | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/models/build.js b/models/build.js new file mode 100644 index 0000000..b789606 --- /dev/null +++ b/models/build.js @@ -0,0 +1,45 @@ +/* jshint indent: 2 */ + +module.exports = function(sequelize, DataTypes) { + return sequelize.define('build', { + id: { + type: DataTypes.INTEGER(10).UNSIGNED, + allowNull: false, + primaryKey: true, + autoIncrement: true + }, + name: { + type: DataTypes.STRING(191), + allowNull: false + }, + item_1: { + type: DataTypes.STRING(191), + allowNull: true + }, + item_2: { + type: DataTypes.STRING(191), + allowNull: true + }, + item_3: { + type: DataTypes.STRING(191), + allowNull: true + }, + item_4: { + type: DataTypes.STRING(191), + allowNull: true + }, + item_5: { + type: DataTypes.STRING(191), + allowNull: true + }, + item_6: { + type: DataTypes.STRING(191), + allowNull: true + } + }, { + tableName: 'build', + timestamps: false, + underscored: true, + freezeTableName: true + }); +}; |
