summaryrefslogtreecommitdiff
path: root/src/routers/vault/models/vault/claimed_game_accounts.js
blob: 743376dc771a9ff535f2c83ee70c8e6918e92978 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const Sequelize = require("sequelize"); // from npm registry

module.exports = {
    fields: {
        accountId: {
            type: Sequelize.INTEGER.UNSIGNED,
            allowNull: false,
            primaryKey: true,
        },
        vaultId: {
            type: Sequelize.INTEGER.UNSIGNED,
            allowNull: false,
        },
    },
    options: {
        indexes: [
            {
                fields: ["vault_id"], // BUG: {underscored: true} does not work on indexes
            },
        ]
    }
};