kissarat

drupal.field.schema.json

Feb 8th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "field_config": {
  3.         "fields": {
  4.             "id": {
  5.                 "type": "serial",
  6.                 "not null": true,
  7.                 "description": "The primary identifier for a field"
  8.             },
  9.             "field_name": {
  10.                 "type": "varchar",
  11.                 "length": 32,
  12.                 "not null": true,
  13.                 "description": "The name of this field. Non-deleted field names are unique, but multiple deleted fields can have the same name."
  14.             },
  15.             "type": {
  16.                 "type": "varchar",
  17.                 "length": 128,
  18.                 "not null": true,
  19.                 "description": "The type of this field."
  20.             },
  21.             "module": {
  22.                 "type": "varchar",
  23.                 "length": 128,
  24.                 "not null": true,
  25.                 "default": "",
  26.                 "description": "The module that implements the field type."
  27.             },
  28.             "active": {
  29.                 "type": "int",
  30.                 "size": "tiny",
  31.                 "not null": true,
  32.                 "default": 0,
  33.                 "description": "Boolean indicating whether the module that implements the field type is enabled."
  34.             },
  35.             "storage_type": {
  36.                 "type": "varchar",
  37.                 "length": 128,
  38.                 "not null": true,
  39.                 "description": "The storage backend for the field."
  40.             },
  41.             "storage_module": {
  42.                 "type": "varchar",
  43.                 "length": 128,
  44.                 "not null": true,
  45.                 "default": "",
  46.                 "description": "The module that implements the storage backend."
  47.             },
  48.             "storage_active": {
  49.                 "type": "int",
  50.                 "size": "tiny",
  51.                 "not null": true,
  52.                 "default": 0,
  53.                 "description": "Boolean indicating whether the module that implements the storage backend is enabled."
  54.             },
  55.             "locked": {
  56.                 "type": "int",
  57.                 "size": "tiny",
  58.                 "not null": true,
  59.                 "default": 0,
  60.                 "description": "@TODO"
  61.             },
  62.             "data": {
  63.                 "type": "blob",
  64.                 "size": "big",
  65.                 "not null": true,
  66.                 "serialize": true,
  67.                 "description": "Serialized data containing the field properties that do not warrant a dedicated column."
  68.             },
  69.             "cardinality": {
  70.                 "type": "int",
  71.                 "size": "tiny",
  72.                 "not null": true,
  73.                 "default": 0
  74.             },
  75.             "translatable": {
  76.                 "type": "int",
  77.                 "size": "tiny",
  78.                 "not null": true,
  79.                 "default": 0
  80.             },
  81.             "deleted": {
  82.                 "type": "int",
  83.                 "size": "tiny",
  84.                 "not null": true,
  85.                 "default": 0
  86.             }
  87.         },
  88.         "primary key": [
  89.             "id"
  90.         ],
  91.         "indexes": {
  92.             "field_name": [
  93.                 "field_name"
  94.             ],
  95.             "active": [
  96.                 "active"
  97.             ],
  98.             "storage_active": [
  99.                 "storage_active"
  100.             ],
  101.             "deleted": [
  102.                 "deleted"
  103.             ],
  104.             "module": [
  105.                 "module"
  106.             ],
  107.             "storage_module": [
  108.                 "storage_module"
  109.             ],
  110.             "type": [
  111.                 "type"
  112.             ],
  113.             "storage_type": [
  114.                 "storage_type"
  115.             ]
  116.         }
  117.     },
  118.     "field_config_instance": {
  119.         "fields": {
  120.             "id": {
  121.                 "type": "serial",
  122.                 "not null": true,
  123.                 "description": "The primary identifier for a field instance"
  124.             },
  125.             "field_id": {
  126.                 "type": "int",
  127.                 "not null": true,
  128.                 "description": "The identifier of the field attached by this instance"
  129.             },
  130.             "field_name": {
  131.                 "type": "varchar",
  132.                 "length": 32,
  133.                 "not null": true,
  134.                 "default": ""
  135.             },
  136.             "entity_type": {
  137.                 "type": "varchar",
  138.                 "length": 32,
  139.                 "not null": true,
  140.                 "default": ""
  141.             },
  142.             "bundle": {
  143.                 "type": "varchar",
  144.                 "length": 128,
  145.                 "not null": true,
  146.                 "default": ""
  147.             },
  148.             "data": {
  149.                 "type": "blob",
  150.                 "size": "big",
  151.                 "not null": true,
  152.                 "serialize": true
  153.             },
  154.             "deleted": {
  155.                 "type": "int",
  156.                 "size": "tiny",
  157.                 "not null": true,
  158.                 "default": 0
  159.             }
  160.         },
  161.         "primary key": [
  162.             "id"
  163.         ],
  164.         "indexes": {
  165.             "field_name_bundle": [
  166.                 "field_name",
  167.                 "entity_type",
  168.                 "bundle"
  169.             ],
  170.             "deleted": [
  171.                 "deleted"
  172.             ]
  173.         }
  174.     },
  175.     "cache_field": {
  176.         "description": "Generic cache table for caching things not separated out into their own tables. Contributed modules may also use this to store cached items.",
  177.         "fields": {
  178.             "cid": {
  179.                 "description": "Primary Key: Unique cache ID.",
  180.                 "type": "varchar",
  181.                 "length": 255,
  182.                 "not null": true,
  183.                 "default": ""
  184.             },
  185.             "data": {
  186.                 "description": "A collection of data to cache.",
  187.                 "type": "blob",
  188.                 "not null": false,
  189.                 "size": "big"
  190.             },
  191.             "expire": {
  192.                 "description": "A Unix timestamp indicating when the cache entry should expire, or 0 for never.",
  193.                 "type": "int",
  194.                 "not null": true,
  195.                 "default": 0
  196.             },
  197.             "created": {
  198.                 "description": "A Unix timestamp indicating when the cache entry was created.",
  199.                 "type": "int",
  200.                 "not null": true,
  201.                 "default": 0
  202.             },
  203.             "serialized": {
  204.                 "description": "A flag to indicate whether content is serialized (1) or not (0).",
  205.                 "type": "int",
  206.                 "size": "small",
  207.                 "not null": true,
  208.                 "default": 0
  209.             }
  210.         },
  211.         "indexes": {
  212.             "expire": [
  213.                 "expire"
  214.             ]
  215.         },
  216.         "primary key": [
  217.             "cid"
  218.         ]
  219.     }
  220. }
Add Comment
Please, Sign In to add comment