const Sequelize = require('sequelize'); module.exports = (sequelize, DataTypes) => { return wp_commentmeta.init(sequelize, DataTypes); } class wp_commentmeta extends Sequelize.Model { static init(sequelize, DataTypes) { super.init({ meta_id: { autoIncrement: true, type: DataTypes.BIGINT.UNSIGNED, allowNull: false, primaryKey: true }, comment_id: { type: DataTypes.BIGINT.UNSIGNED, allowNull: false, defaultValue: 0 }, meta_key: { type: DataTypes.STRING(255), allowNull: true }, meta_value: { type: DataTypes.TEXT, allowNull: true } }, { sequelize, tableName: 'wp_commentmeta', timestamps: false, indexes: [ { name: "PRIMARY", unique: true, using: "BTREE", fields: [ { name: "meta_id" }, ] }, { name: "comment_id", using: "BTREE", fields: [ { name: "comment_id" }, ] }, { name: "meta_key", using: "BTREE", fields: [ { name: "meta_key", length: 191 }, ] }, ] }); return wp_commentmeta; } }