This commit is contained in:
ryanwong
2022-02-06 20:17:46 -05:00
commit e0be825b70
33 changed files with 341 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
module.exports = (sequelize, DataTypes) => {
const location = sequelize.define(
"location",
{
name: DataTypes.STRING,
created_at: DataTypes.DATEONLY,
updated_at: DataTypes.DATE,
},
{
timestamps: true,
freezeTableName: true,
tableName: "location",
},
{
underscoredAll: false,
underscored: false,
}
);
return location;
};