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
2020-08-18 17:54:00 +02:00

26 lines
496 B
JavaScript

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