Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

wp_term_taxonomy.js 825B

1234567891011121314151617181920212223242526272829303132333435363738
  1. const Sequelize = require('sequelize');
  2. module.exports = function(sequelize, DataTypes) {
  3. return sequelize.define('wp_term_taxonomy', {
  4. term_taxonomy_id: {
  5. autoIncrement: true,
  6. type: DataTypes.BIGINT.UNSIGNED,
  7. allowNull: false,
  8. primaryKey: true
  9. },
  10. term_id: {
  11. type: DataTypes.BIGINT.UNSIGNED,
  12. allowNull: false,
  13. defaultValue: 0
  14. },
  15. taxonomy: {
  16. type: DataTypes.STRING(32),
  17. allowNull: false,
  18. defaultValue: ""
  19. },
  20. description: {
  21. type: DataTypes.TEXT,
  22. allowNull: false
  23. },
  24. parent: {
  25. type: DataTypes.BIGINT.UNSIGNED,
  26. allowNull: false,
  27. defaultValue: 0
  28. },
  29. count: {
  30. type: DataTypes.BIGINT,
  31. allowNull: false,
  32. defaultValue: 0
  33. }
  34. }, {
  35. sequelize,
  36. timestamps: false,
  37. });
  38. };