synt_backend
Version:
Synt light-weight node backend service
26 lines (25 loc) • 584 B
JavaScript
const { Model } = require("sequelize");
module.exports = (sequelize, DataTypes) => {
class DocumentType extends Model {
/**
* Helper method for defining associations.
* This method is not a part of Sequelize lifecycle.
* The `models/index` file will call this method automatically.
*/
static associate() {
// define association here
}
}
DocumentType.init(
{
name: DataTypes.STRING,
category: DataTypes.STRING,
},
{
sequelize,
modelName: "DocumentType",
}
);
return DocumentType;
};
;