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

31 lines
596 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
},
give: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false
}
}, {
sequelize,
modelName: "SandwichOrder",
});
return SandwichOrder;
};