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

27 lines
496 B
JavaScript
Raw Normal View History

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