diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-08-15 21:29:07 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-08-15 21:29:07 +0200 |
| commit | 32021ca861beab43f8252de903e38a76799d86ad (patch) | |
| tree | 40b3fc1a7a20af6f694c0595a84f85463c922b7d /models/participant_items.js | |
| parent | 9cb6f1f08c3c639457f2065835353f69294ec3c7 (diff) | |
| download | orm-32021ca861beab43f8252de903e38a76799d86ad.tar.gz orm-32021ca861beab43f8252de903e38a76799d86ad.zip | |
add new tables
Diffstat (limited to 'models/participant_items.js')
| -rw-r--r-- | models/participant_items.js | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/models/participant_items.js b/models/participant_items.js new file mode 100644 index 0000000..5d3c3b7 --- /dev/null +++ b/models/participant_items.js @@ -0,0 +1,42 @@ +/* jshint indent: 2 */ + +module.exports = function(sequelize, DataTypes) { + return sequelize.define('participant_items', { + id: { + type: DataTypes.INTEGER(10).UNSIGNED, + allowNull: false, + primaryKey: true, + autoIncrement: true + }, + shard_id: { + type: DataTypes.STRING(191), + allowNull: false + }, + participant_api_id: { + type: DataTypes.CHAR(36), + allowNull: false, + unique: true + }, + items: { + type: "BLOB", + allowNull: false + }, + item_grants: { + type: "BLOB", + allowNull: false + }, + item_uses: { + type: "BLOB", + allowNull: false + }, + item_sells: { + type: "BLOB", + allowNull: false + } + }, { + tableName: 'participant_items', + timestamps: false, + underscored: true, + freezeTableName: true + }); +}; |
