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/sandwichCommand.js

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