spark-property-manager
Version:
Spark Real Estate Management Application
29 lines • 647 B
JavaScript
;
const {
Model
} = require('sequelize');
module.exports = (sequelize, DataTypes) => {
class Sessions 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
}
}
Sessions.init({
sid: {
type: DataTypes.STRING,
primaryKey: true
},
userId: DataTypes.STRING,
expires: DataTypes.DATE,
data: DataTypes.TEXT
}, {
sequelize,
modelName: 'Sessions',
});
return Sessions;
};