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

25 lines
467 B
JavaScript
Raw Normal View History

2020-08-24 23:23:46 +02:00
"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;
};