add user model

This commit is contained in:
D. Scott Boggs 2024-06-06 08:15:24 -04:00
parent 5049509c17
commit c023319fd1
2 changed files with 51 additions and 0 deletions

23
models/user.js Normal file
View file

@ -0,0 +1,23 @@
'use strict';
const {
Model
} = require('sequelize');
module.exports = (sequelize, DataTypes) => {
class user 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(models) {
// define association here
}
}
user.init({
name: DataTypes.STRING
}, {
sequelize,
modelName: 'user',
});
return user;
};