Skip to content

Instantly share code, notes, and snippets.

@soonsam123
Created December 6, 2020 23:39
Show Gist options
  • Save soonsam123/e7036cb20381abf65f76d6d4cc60834c to your computer and use it in GitHub Desktop.
Save soonsam123/e7036cb20381abf65f76d6d4cc60834c to your computer and use it in GitHub Desktop.
"use strict";
const { Model } = require("sequelize");
module.exports = (sequelize, DataTypes) => {
class Dojos extends Model {}
Dojos.init(
{
dojo_name: DataTypes.STRING,
teacher: DataTypes.STRING,
},
{
sequelize,
modelName: "dojos",
timestamps: false,
}
);
return Dojos;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment