25 lines
467 B
JavaScript
25 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;
|
||
|
};
|