function wsclient_schema in Web service client 7
Implements hook_schema().
File
- ./
wsclient.install, line 18 - Web service client - installation file.
Code
function wsclient_schema() {
$schema['wsclient_service'] = array(
'fields' => array(
'id' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'The primary identifier for the web service.',
),
'name' => array(
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
'description' => 'The name of the web service.',
),
'label' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => 'The label of the web service.',
),
'url' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => 'The url of the web service.',
),
'operations' => array(
'type' => 'text',
'not null' => FALSE,
'serialize' => TRUE,
'size' => 'medium',
'description' => 'The operations this web service offers.',
),
'datatypes' => array(
'type' => 'text',
'not null' => FALSE,
'serialize' => TRUE,
'size' => 'medium',
'description' => 'The complex data types used in the operations.',
),
'global_parameters' => array(
'type' => 'text',
'not null' => FALSE,
'serialize' => TRUE,
'description' => 'The global parameters definition of this web service.',
),
'global_header_parameters' => array(
'type' => 'text',
'not null' => FALSE,
'serialize' => TRUE,
'description' => 'The global header parameters definition of this web service.',
),
'type' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => 'The type of the remote endpoint.',
),
'settings' => array(
'type' => 'text',
'not null' => FALSE,
'serialize' => TRUE,
'description' => 'The endpoint type specific settings.',
),
'authentication' => array(
'type' => 'text',
'not null' => FALSE,
'serialize' => TRUE,
'description' => 'Data describing the authentication method.',
),
'status' => array(
'type' => 'int',
'not null' => TRUE,
// Set the default to ENTITY_CUSTOM without using the constant as it is
// not safe to use it at this point.
'default' => 0x1,
'size' => 'tiny',
'description' => 'The exportable status of the entity.',
),
'module' => array(
'description' => 'The name of the providing module if the entity has been defined in code.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'primary key' => array(
'id',
),
'unique keys' => array(
'name' => array(
'name',
),
),
);
return $schema;
}