| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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;
- }
- }
|