diff options
Diffstat (limited to 'src/routers/vault/models/evol/global_acc_reg_num_db.js')
-rw-r--r-- | src/routers/vault/models/evol/global_acc_reg_num_db.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/routers/vault/models/evol/global_acc_reg_num_db.js b/src/routers/vault/models/evol/global_acc_reg_num_db.js new file mode 100644 index 0000000..2a77fdd --- /dev/null +++ b/src/routers/vault/models/evol/global_acc_reg_num_db.js @@ -0,0 +1,33 @@ +const { DataTypes } = require("sequelize"); // from npm registry + +module.exports = { + fields: { + accountId: { + type: DataTypes.INTEGER.UNSIGNED, + primaryKey: true, + allowNull: false, + }, + key: { + type: DataTypes.STRING.BINARY, + primaryKey: true, + allowNull: false, + }, + index: { + type: DataTypes.INTEGER.UNSIGNED, + primaryKey: true, + allowNull: false, + defaultValue: 0, + }, + value: { + type: DataTypes.INTEGER, + allowNull: false, + defaultValue: 0, + }, + }, + options: { + engine: "InnoDB", + indexes: [ + { fields: ["account_id"] }, + ], + } +}; |