Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
SOD/models/data.js

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;
};