blob: bc79414ceeae78b2893873bd0192539c395f9146 (
plain) (
tree)
|
|
const { DataTypes } = require("sequelize"); // from npm registry
module.exports = {
fields: {
charId: {
type: DataTypes.INTEGER.UNSIGNED,
primaryKey: true,
allowNull: false,
},
name: {
type: DataTypes.STRING,
primaryKey: true,
allowNull: false,
},
value: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0,
},
},
options: {
engine: "InnoDB",
indexes: [
{ fields: ["char_id"] },
],
}
};
|