mirror of
https://github.com/danbulant/ssps-bot
synced 2026-05-19 20:18:49 +00:00
29 lines
No EOL
704 B
JavaScript
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; |