kissarat

drupal.node.schema.json

Feb 8th, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "node": {
  3.         "description": "The base table for nodes.",
  4.         "fields": {
  5.             "nid": {
  6.                 "description": "The primary identifier for a node.",
  7.                 "type": "serial",
  8.                 "unsigned": true,
  9.                 "not null": true
  10.             },
  11.             "vid": {
  12.                 "description": "The current {node_revision}.vid version identifier.",
  13.                 "type": "int",
  14.                 "unsigned": true,
  15.                 "not null": false,
  16.                 "default": null
  17.             },
  18.             "type": {
  19.                 "description": "The {node_type}.type of this node.",
  20.                 "type": "varchar",
  21.                 "length": 32,
  22.                 "not null": true,
  23.                 "default": ""
  24.             },
  25.             "language": {
  26.                 "description": "The {languages}.language of this node.",
  27.                 "type": "varchar",
  28.                 "length": 12,
  29.                 "not null": true,
  30.                 "default": ""
  31.             },
  32.             "title": {
  33.                 "description": "The title of this node, always treated as non-markup plain text.",
  34.                 "type": "varchar",
  35.                 "length": 255,
  36.                 "not null": true,
  37.                 "default": ""
  38.             },
  39.             "uid": {
  40.                 "description": "The {users}.uid that owns this node; initially, this is the user that created it.",
  41.                 "type": "int",
  42.                 "not null": true,
  43.                 "default": 0
  44.             },
  45.             "status": {
  46.                 "description": "Boolean indicating whether the node is published (visible to non-administrators).",
  47.                 "type": "int",
  48.                 "not null": true,
  49.                 "default": 1
  50.             },
  51.             "created": {
  52.                 "description": "The Unix timestamp when the node was created.",
  53.                 "type": "int",
  54.                 "not null": true,
  55.                 "default": 0
  56.             },
  57.             "changed": {
  58.                 "description": "The Unix timestamp when the node was most recently saved.",
  59.                 "type": "int",
  60.                 "not null": true,
  61.                 "default": 0
  62.             },
  63.             "comment": {
  64.                 "description": "Whether comments are allowed on this node: 0 = no, 1 = closed (read only), 2 = open (read\/write).",
  65.                 "type": "int",
  66.                 "not null": true,
  67.                 "default": 0
  68.             },
  69.             "promote": {
  70.                 "description": "Boolean indicating whether the node should be displayed on the front page.",
  71.                 "type": "int",
  72.                 "not null": true,
  73.                 "default": 0
  74.             },
  75.             "sticky": {
  76.                 "description": "Boolean indicating whether the node should be displayed at the top of lists in which it appears.",
  77.                 "type": "int",
  78.                 "not null": true,
  79.                 "default": 0
  80.             },
  81.             "tnid": {
  82.                 "description": "The translation set id for this node, which equals the node id of the source post in each set.",
  83.                 "type": "int",
  84.                 "unsigned": true,
  85.                 "not null": true,
  86.                 "default": 0
  87.             },
  88.             "translate": {
  89.                 "description": "A boolean indicating whether this translation page needs to be updated.",
  90.                 "type": "int",
  91.                 "not null": true,
  92.                 "default": 0
  93.             }
  94.         },
  95.         "indexes": {
  96.             "node_changed": [
  97.                 "changed"
  98.             ],
  99.             "node_created": [
  100.                 "created"
  101.             ],
  102.             "node_frontpage": [
  103.                 "promote",
  104.                 "status",
  105.                 "sticky",
  106.                 "created"
  107.             ],
  108.             "node_status_type": [
  109.                 "status",
  110.                 "type",
  111.                 "nid"
  112.             ],
  113.             "node_title_type": [
  114.                 "title",
  115.                 [
  116.                     "type",
  117.                     4
  118.                 ]
  119.             ],
  120.             "node_type": [
  121.                 [
  122.                     "type",
  123.                     4
  124.                 ]
  125.             ],
  126.             "uid": [
  127.                 "uid"
  128.             ],
  129.             "tnid": [
  130.                 "tnid"
  131.             ],
  132.             "translate": [
  133.                 "translate"
  134.             ]
  135.         },
  136.         "unique keys": {
  137.             "vid": [
  138.                 "vid"
  139.             ]
  140.         },
  141.         "foreign keys": {
  142.             "node_revision": {
  143.                 "table": "node_revision",
  144.                 "columns": {
  145.                     "vid": "vid"
  146.                 }
  147.             },
  148.             "node_author": {
  149.                 "table": "users",
  150.                 "columns": {
  151.                     "uid": "uid"
  152.                 }
  153.             }
  154.         },
  155.         "primary key": [
  156.             "nid"
  157.         ]
  158.     },
  159.     "node_access": {
  160.         "description": "Identifies which realm\/grant pairs a user must possess in order to view, update, or delete specific nodes.",
  161.         "fields": {
  162.             "nid": {
  163.                 "description": "The {node}.nid this record affects.",
  164.                 "type": "int",
  165.                 "unsigned": true,
  166.                 "not null": true,
  167.                 "default": 0
  168.             },
  169.             "gid": {
  170.                 "description": "The grant ID a user must possess in the specified realm to gain this row's privileges on the node.",
  171.                 "type": "int",
  172.                 "unsigned": true,
  173.                 "not null": true,
  174.                 "default": 0
  175.             },
  176.             "realm": {
  177.                 "description": "The realm in which the user must possess the grant ID. Each node access node can define one or more realms.",
  178.                 "type": "varchar",
  179.                 "length": 255,
  180.                 "not null": true,
  181.                 "default": ""
  182.             },
  183.             "grant_view": {
  184.                 "description": "Boolean indicating whether a user with the realm\/grant pair can view this node.",
  185.                 "type": "int",
  186.                 "unsigned": true,
  187.                 "not null": true,
  188.                 "default": 0,
  189.                 "size": "tiny"
  190.             },
  191.             "grant_update": {
  192.                 "description": "Boolean indicating whether a user with the realm\/grant pair can edit this node.",
  193.                 "type": "int",
  194.                 "unsigned": true,
  195.                 "not null": true,
  196.                 "default": 0,
  197.                 "size": "tiny"
  198.             },
  199.             "grant_delete": {
  200.                 "description": "Boolean indicating whether a user with the realm\/grant pair can delete this node.",
  201.                 "type": "int",
  202.                 "unsigned": true,
  203.                 "not null": true,
  204.                 "default": 0,
  205.                 "size": "tiny"
  206.             }
  207.         },
  208.         "primary key": [
  209.             "nid",
  210.             "gid",
  211.             "realm"
  212.         ],
  213.         "foreign keys": {
  214.             "affected_node": {
  215.                 "table": "node",
  216.                 "columns": {
  217.                     "nid": "nid"
  218.                 }
  219.             }
  220.         }
  221.     },
  222.     "node_revision": {
  223.         "description": "Stores information about each saved version of a {node}.",
  224.         "fields": {
  225.             "nid": {
  226.                 "description": "The {node} this version belongs to.",
  227.                 "type": "int",
  228.                 "unsigned": true,
  229.                 "not null": true,
  230.                 "default": 0
  231.             },
  232.             "vid": {
  233.                 "description": "The primary identifier for this version.",
  234.                 "type": "serial",
  235.                 "unsigned": true,
  236.                 "not null": true
  237.             },
  238.             "uid": {
  239.                 "description": "The {users}.uid that created this version.",
  240.                 "type": "int",
  241.                 "not null": true,
  242.                 "default": 0
  243.             },
  244.             "title": {
  245.                 "description": "The title of this version.",
  246.                 "type": "varchar",
  247.                 "length": 255,
  248.                 "not null": true,
  249.                 "default": ""
  250.             },
  251.             "log": {
  252.                 "description": "The log entry explaining the changes in this version.",
  253.                 "type": "text",
  254.                 "not null": true,
  255.                 "size": "big"
  256.             },
  257.             "timestamp": {
  258.                 "description": "A Unix timestamp indicating when this version was created.",
  259.                 "type": "int",
  260.                 "not null": true,
  261.                 "default": 0
  262.             },
  263.             "status": {
  264.                 "description": "Boolean indicating whether the node (at the time of this revision) is published (visible to non-administrators).",
  265.                 "type": "int",
  266.                 "not null": true,
  267.                 "default": 1
  268.             },
  269.             "comment": {
  270.                 "description": "Whether comments are allowed on this node (at the time of this revision): 0 = no, 1 = closed (read only), 2 = open (read\/write).",
  271.                 "type": "int",
  272.                 "not null": true,
  273.                 "default": 0
  274.             },
  275.             "promote": {
  276.                 "description": "Boolean indicating whether the node (at the time of this revision) should be displayed on the front page.",
  277.                 "type": "int",
  278.                 "not null": true,
  279.                 "default": 0
  280.             },
  281.             "sticky": {
  282.                 "description": "Boolean indicating whether the node (at the time of this revision) should be displayed at the top of lists in which it appears.",
  283.                 "type": "int",
  284.                 "not null": true,
  285.                 "default": 0
  286.             }
  287.         },
  288.         "indexes": {
  289.             "nid": [
  290.                 "nid"
  291.             ],
  292.             "uid": [
  293.                 "uid"
  294.             ]
  295.         },
  296.         "primary key": [
  297.             "vid"
  298.         ],
  299.         "foreign keys": {
  300.             "versioned_node": {
  301.                 "table": "node",
  302.                 "columns": {
  303.                     "nid": "nid"
  304.                 }
  305.             },
  306.             "version_author": {
  307.                 "table": "users",
  308.                 "columns": {
  309.                     "uid": "uid"
  310.                 }
  311.             }
  312.         }
  313.     },
  314.     "node_type": {
  315.         "description": "Stores information about all defined {node} types.",
  316.         "fields": {
  317.             "type": {
  318.                 "description": "The machine-readable name of this type.",
  319.                 "type": "varchar",
  320.                 "length": 32,
  321.                 "not null": true
  322.             },
  323.             "name": {
  324.                 "description": "The human-readable name of this type.",
  325.                 "type": "varchar",
  326.                 "length": 255,
  327.                 "not null": true,
  328.                 "default": "",
  329.                 "translatable": true
  330.             },
  331.             "base": {
  332.                 "description": "The base string used to construct callbacks corresponding to this node type.",
  333.                 "type": "varchar",
  334.                 "length": 255,
  335.                 "not null": true
  336.             },
  337.             "module": {
  338.                 "description": "The module defining this node type.",
  339.                 "type": "varchar",
  340.                 "length": 255,
  341.                 "not null": true
  342.             },
  343.             "description": {
  344.                 "description": "A brief description of this type.",
  345.                 "type": "text",
  346.                 "not null": true,
  347.                 "size": "medium",
  348.                 "translatable": true
  349.             },
  350.             "help": {
  351.                 "description": "Help information shown to the user when creating a {node} of this type.",
  352.                 "type": "text",
  353.                 "not null": true,
  354.                 "size": "medium",
  355.                 "translatable": true
  356.             },
  357.             "has_title": {
  358.                 "description": "Boolean indicating whether this type uses the {node}.title field.",
  359.                 "type": "int",
  360.                 "unsigned": true,
  361.                 "not null": true,
  362.                 "size": "tiny"
  363.             },
  364.             "title_label": {
  365.                 "description": "The label displayed for the title field on the edit form.",
  366.                 "type": "varchar",
  367.                 "length": 255,
  368.                 "not null": true,
  369.                 "default": "",
  370.                 "translatable": true
  371.             },
  372.             "custom": {
  373.                 "description": "A boolean indicating whether this type is defined by a module (FALSE) or by a user via Add content type (TRUE).",
  374.                 "type": "int",
  375.                 "not null": true,
  376.                 "default": 0,
  377.                 "size": "tiny"
  378.             },
  379.             "modified": {
  380.                 "description": "A boolean indicating whether this type has been modified by an administrator; currently not used in any way.",
  381.                 "type": "int",
  382.                 "not null": true,
  383.                 "default": 0,
  384.                 "size": "tiny"
  385.             },
  386.             "locked": {
  387.                 "description": "A boolean indicating whether the administrator can change the machine name of this type.",
  388.                 "type": "int",
  389.                 "not null": true,
  390.                 "default": 0,
  391.                 "size": "tiny"
  392.             },
  393.             "disabled": {
  394.                 "description": "A boolean indicating whether the node type is disabled.",
  395.                 "type": "int",
  396.                 "not null": true,
  397.                 "default": 0,
  398.                 "size": "tiny"
  399.             },
  400.             "orig_type": {
  401.                 "description": "The original machine-readable name of this node type. This may be different from the current type name if the locked field is 0.",
  402.                 "type": "varchar",
  403.                 "length": 255,
  404.                 "not null": true,
  405.                 "default": ""
  406.             }
  407.         },
  408.         "primary key": [
  409.             "type"
  410.         ]
  411.     },
  412.     "block_node_type": {
  413.         "description": "Sets up display criteria for blocks based on content types",
  414.         "fields": {
  415.             "module": {
  416.                 "type": "varchar",
  417.                 "length": 64,
  418.                 "not null": true,
  419.                 "description": "The block's origin module, from {block}.module."
  420.             },
  421.             "delta": {
  422.                 "type": "varchar",
  423.                 "length": 32,
  424.                 "not null": true,
  425.                 "description": "The block's unique delta within module, from {block}.delta."
  426.             },
  427.             "type": {
  428.                 "type": "varchar",
  429.                 "length": 32,
  430.                 "not null": true,
  431.                 "description": "The machine-readable name of this type from {node_type}.type."
  432.             }
  433.         },
  434.         "primary key": [
  435.             "module",
  436.             "delta",
  437.             "type"
  438.         ],
  439.         "indexes": {
  440.             "type": [
  441.                 "type"
  442.             ]
  443.         }
  444.     },
  445.     "history": {
  446.         "description": "A record of which {users} have read which {node}s.",
  447.         "fields": {
  448.             "uid": {
  449.                 "description": "The {users}.uid that read the {node} nid.",
  450.                 "type": "int",
  451.                 "not null": true,
  452.                 "default": 0
  453.             },
  454.             "nid": {
  455.                 "description": "The {node}.nid that was read.",
  456.                 "type": "int",
  457.                 "not null": true,
  458.                 "default": 0
  459.             },
  460.             "timestamp": {
  461.                 "description": "The Unix timestamp at which the read occurred.",
  462.                 "type": "int",
  463.                 "not null": true,
  464.                 "default": 0
  465.             }
  466.         },
  467.         "primary key": [
  468.             "uid",
  469.             "nid"
  470.         ],
  471.         "indexes": {
  472.             "nid": [
  473.                 "nid"
  474.             ]
  475.         }
  476.     }
  477. }
Advertisement
Add Comment
Please, Sign In to add comment