24 lines
467 B
JavaScript
24 lines
467 B
JavaScript
"use strict";
|
|
const {
|
|
Model
|
|
} = require("sequelize");
|
|
module.exports = (sequelize, DataTypes) => {
|
|
class Data extends Model {
|
|
static associate(models) {
|
|
}
|
|
}
|
|
Data.init({
|
|
key: {
|
|
type: DataTypes.STRING,
|
|
primaryKey: true
|
|
},
|
|
value: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false
|
|
}
|
|
}, {
|
|
sequelize,
|
|
modelName: "Data",
|
|
});
|
|
return Data;
|
|
};
|