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