| 1234567891011121314151617181920212223242526272829303132333435363738 |
- const Sequelize = require('sequelize');
- module.exports = function(sequelize, DataTypes) {
- return sequelize.define('wp_term_taxonomy', {
- term_taxonomy_id: {
- autoIncrement: true,
- type: DataTypes.BIGINT.UNSIGNED,
- allowNull: false,
- primaryKey: true
- },
- term_id: {
- type: DataTypes.BIGINT.UNSIGNED,
- allowNull: false,
- defaultValue: 0
- },
- taxonomy: {
- type: DataTypes.STRING(32),
- allowNull: false,
- defaultValue: ""
- },
- description: {
- type: DataTypes.TEXT,
- allowNull: false
- },
- parent: {
- type: DataTypes.BIGINT.UNSIGNED,
- allowNull: false,
- defaultValue: 0
- },
- count: {
- type: DataTypes.BIGINT,
- allowNull: false,
- defaultValue: 0
- }
- }, {
- sequelize,
- timestamps: false,
- });
- };
|