'use strict' const Sequelize = require('sequelize') module.exports = (sequelize, DataTypes) => { class web_information extends Sequelize.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 } } web_information.init( { id: { type: DataTypes.INTEGER, primaryKey: true }, title: { type: DataTypes.STRING }, sub_title: { type: DataTypes.STRING }, delivery_time: { type: DataTypes.DATE }, lang: { type: DataTypes.STRING }, content: { type: DataTypes.STRING }, add_time: { type: DataTypes.DATE }, add_user: { type: DataTypes.STRING }, add_ip: { type: DataTypes.STRING }, cover_image: { type: DataTypes.STRING }, }, { sequelize, freezeTableName: true, modelName: 'web_information' } ) return web_information }