summaryrefslogtreecommitdiff
path: root/models/build.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/build.js')
-rw-r--r--models/build.js45
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
+ });
+};