27 lines
504 B
JavaScript
27 lines
504 B
JavaScript
|
"use strict";
|
||
|
const {
|
||
|
Model
|
||
|
} = require("sequelize");
|
||
|
module.exports = (sequelize, DataTypes) => {
|
||
|
class SandwichCommand extends Model {
|
||
|
static associate(models) {
|
||
|
}
|
||
|
}
|
||
|
SandwichCommand.init({
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
primaryKey: true,
|
||
|
autoIncrement: true
|
||
|
},
|
||
|
date: {
|
||
|
type: DataTypes.DATEONLY,
|
||
|
defaultValue: DataTypes.NOW,
|
||
|
allowNull: false
|
||
|
}
|
||
|
}, {
|
||
|
sequelize,
|
||
|
modelName: "SandwichCommand",
|
||
|
});
|
||
|
return SandwichCommand;
|
||
|
};
|