Advertisement
kissarat

drupal.taxonomy.schema.json

Feb 8th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "taxonomy_term_data": {
  3.         "description": "Stores term information.",
  4.         "fields": {
  5.             "tid": {
  6.                 "type": "serial",
  7.                 "unsigned": true,
  8.                 "not null": true,
  9.                 "description": "Primary Key: Unique term ID."
  10.             },
  11.             "vid": {
  12.                 "type": "int",
  13.                 "unsigned": true,
  14.                 "not null": true,
  15.                 "default": 0,
  16.                 "description": "The {taxonomy_vocabulary}.vid of the vocabulary to which the term is assigned."
  17.             },
  18.             "name": {
  19.                 "type": "varchar",
  20.                 "length": 255,
  21.                 "not null": true,
  22.                 "default": "",
  23.                 "description": "The term name.",
  24.                 "translatable": true
  25.             },
  26.             "description": {
  27.                 "type": "text",
  28.                 "not null": false,
  29.                 "size": "big",
  30.                 "description": "A description of the term.",
  31.                 "translatable": true
  32.             },
  33.             "format": {
  34.                 "type": "varchar",
  35.                 "length": 255,
  36.                 "not null": false,
  37.                 "description": "The {filter_format}.format of the description."
  38.             },
  39.             "weight": {
  40.                 "type": "int",
  41.                 "not null": true,
  42.                 "default": 0,
  43.                 "description": "The weight of this term in relation to other terms."
  44.             }
  45.         },
  46.         "primary key": [
  47.             "tid"
  48.         ],
  49.         "foreign keys": {
  50.             "vocabulary": {
  51.                 "table": "taxonomy_vocabulary",
  52.                 "columns": {
  53.                     "vid": "vid"
  54.                 }
  55.             }
  56.         },
  57.         "indexes": {
  58.             "taxonomy_tree": [
  59.                 "vid",
  60.                 "weight",
  61.                 "name"
  62.             ],
  63.             "vid_name": [
  64.                 "vid",
  65.                 "name"
  66.             ],
  67.             "name": [
  68.                 "name"
  69.             ]
  70.         }
  71.     },
  72.     "taxonomy_term_hierarchy": {
  73.         "description": "Stores the hierarchical relationship between terms.",
  74.         "fields": {
  75.             "tid": {
  76.                 "type": "int",
  77.                 "unsigned": true,
  78.                 "not null": true,
  79.                 "default": 0,
  80.                 "description": "Primary Key: The {taxonomy_term_data}.tid of the term."
  81.             },
  82.             "parent": {
  83.                 "type": "int",
  84.                 "unsigned": true,
  85.                 "not null": true,
  86.                 "default": 0,
  87.                 "description": "Primary Key: The {taxonomy_term_data}.tid of the term's parent. 0 indicates no parent."
  88.             }
  89.         },
  90.         "indexes": {
  91.             "parent": [
  92.                 "parent"
  93.             ]
  94.         },
  95.         "foreign keys": {
  96.             "taxonomy_term_data": {
  97.                 "table": "taxonomy_term_data",
  98.                 "columns": {
  99.                     "tid": "tid"
  100.                 }
  101.             }
  102.         },
  103.         "primary key": [
  104.             "tid",
  105.             "parent"
  106.         ]
  107.     },
  108.     "taxonomy_vocabulary": {
  109.         "description": "Stores vocabulary information.",
  110.         "fields": {
  111.             "vid": {
  112.                 "type": "serial",
  113.                 "unsigned": true,
  114.                 "not null": true,
  115.                 "description": "Primary Key: Unique vocabulary ID."
  116.             },
  117.             "name": {
  118.                 "type": "varchar",
  119.                 "length": 255,
  120.                 "not null": true,
  121.                 "default": "",
  122.                 "description": "Name of the vocabulary.",
  123.                 "translatable": true
  124.             },
  125.             "machine_name": {
  126.                 "type": "varchar",
  127.                 "length": 255,
  128.                 "not null": true,
  129.                 "default": "",
  130.                 "description": "The vocabulary machine name."
  131.             },
  132.             "description": {
  133.                 "type": "text",
  134.                 "not null": false,
  135.                 "size": "big",
  136.                 "description": "Description of the vocabulary.",
  137.                 "translatable": true
  138.             },
  139.             "hierarchy": {
  140.                 "type": "int",
  141.                 "unsigned": true,
  142.                 "not null": true,
  143.                 "default": 0,
  144.                 "size": "tiny",
  145.                 "description": "The type of hierarchy allowed within the vocabulary. (0 = disabled, 1 = single, 2 = multiple)"
  146.             },
  147.             "module": {
  148.                 "type": "varchar",
  149.                 "length": 255,
  150.                 "not null": true,
  151.                 "default": "",
  152.                 "description": "The module which created the vocabulary."
  153.             },
  154.             "weight": {
  155.                 "type": "int",
  156.                 "not null": true,
  157.                 "default": 0,
  158.                 "description": "The weight of this vocabulary in relation to other vocabularies."
  159.             }
  160.         },
  161.         "primary key": [
  162.             "vid"
  163.         ],
  164.         "indexes": {
  165.             "list": [
  166.                 "weight",
  167.                 "name"
  168.             ]
  169.         },
  170.         "unique keys": {
  171.             "machine_name": [
  172.                 "machine_name"
  173.             ]
  174.         }
  175.     },
  176.     "taxonomy_index": {
  177.         "description": "Maintains denormalized information about node\/term relationships.",
  178.         "fields": {
  179.             "nid": {
  180.                 "description": "The {node}.nid this record tracks.",
  181.                 "type": "int",
  182.                 "unsigned": true,
  183.                 "not null": true,
  184.                 "default": 0
  185.             },
  186.             "tid": {
  187.                 "description": "The term ID.",
  188.                 "type": "int",
  189.                 "unsigned": true,
  190.                 "not null": true,
  191.                 "default": 0
  192.             },
  193.             "sticky": {
  194.                 "description": "Boolean indicating whether the node is sticky.",
  195.                 "type": "int",
  196.                 "not null": false,
  197.                 "default": 0,
  198.                 "size": "tiny"
  199.             },
  200.             "created": {
  201.                 "description": "The Unix timestamp when the node was created.",
  202.                 "type": "int",
  203.                 "not null": true,
  204.                 "default": 0
  205.             }
  206.         },
  207.         "indexes": {
  208.             "term_node": [
  209.                 "tid",
  210.                 "sticky",
  211.                 "created"
  212.             ],
  213.             "nid": [
  214.                 "nid"
  215.             ]
  216.         },
  217.         "foreign keys": {
  218.             "tracked_node": {
  219.                 "table": "node",
  220.                 "columns": {
  221.                     "nid": "nid"
  222.                 }
  223.             },
  224.             "term": {
  225.                 "table": "taxonomy_term_data",
  226.                 "columns": {
  227.                     "tid": "tid"
  228.                 }
  229.             }
  230.         }
  231.     }
  232. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement