function amazon_media_schema in Amazon Product Advertisement API 6
Same name and namespace in other branches
- 7.2 amazon_media/amazon_media.install \amazon_media_schema()
- 7 amazon_media/amazon_media.install \amazon_media_schema()
File
- amazon_media/
amazon_media.install, line 7
Code
function amazon_media_schema() {
$schema['amazon_book'] = array(
'fields' => array(
'asin' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
),
'ean' => array(
'type' => 'varchar',
'length' => 20,
'not null' => TRUE,
),
'isbn' => array(
'type' => 'varchar',
'length' => 20,
'not null' => TRUE,
),
'deweydecimalnumber' => array(
'type' => 'varchar',
'length' => 64,
),
'edition' => array(
'type' => 'int',
),
'numberofpages' => array(
'type' => 'int',
),
'publicationdate' => array(
'type' => 'varchar',
'length' => 32,
),
),
'primary key' => array(
'asin',
),
);
$schema['amazon_dvd'] = array(
'fields' => array(
'asin' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
),
'regioncode' => array(
'type' => 'int',
),
'runningtime' => array(
'type' => 'int',
),
'audiencerating' => array(
'type' => 'varchar',
'length' => 64,
),
'aspectratio' => array(
'type' => 'varchar',
'length' => 16,
),
'theatricalreleasedate' => array(
'type' => 'varchar',
'length' => 32,
),
),
'primary key' => array(
'asin',
),
);
$schema['amazon_music'] = array(
'fields' => array(
'asin' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
),
'artist' => array(
'type' => 'varchar',
'length' => 128,
),
'label' => array(
'type' => 'varchar',
'length' => 128,
),
'studio' => array(
'type' => 'varchar',
'length' => 128,
),
'numberofdiscs' => array(
'type' => 'int',
'default' => 1,
),
),
'primary key' => array(
'asin',
),
);
$schema['amazon_software'] = array(
'fields' => array(
'asin' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
),
'esrbagerating' => array(
'type' => 'varchar',
'length' => 32,
),
'operatingsystem' => array(
'type' => 'varchar',
'length' => 64,
),
'hardwareplatform' => array(
'type' => 'varchar',
'length' => 64,
),
'platform' => array(
'type' => 'varchar',
'length' => 64,
),
'genre' => array(
'type' => 'varchar',
'length' => 128,
),
),
'primary key' => array(
'asin',
),
);
return $schema;
}