ssps-bot/utils/models/supplementation.js
2021-10-23 22:38:06 +02:00

29 lines
No EOL
704 B
JavaScript

const { Sequelize, Op, Model, DataTypes } = require("sequelize");
const sequelize = require("../sequelize");
const Supplementation = sequelize.define(
"supplementation",
{
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
date: {
type: DataTypes.DATEONLY,
allowNull: false
},
type: {
type: DataTypes.ENUM,
values: ["substitutes", "move-src", "move-target", "join"]
},
hour: {
type: DataTypes.TINYINT
},
notes: {
type: DataTypes.STRING(255)
}
}
);
module.exports = Supplementation;