UNPKG

spark-property-manager

Version:
29 lines 647 B
'use strict'; 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; };