+ public static function schemaDef()
+ {
+ return array(
+ 'fields' => array(
+ 'url' => array('type' => 'varchar', 'length' => 255, 'not null' => true, 'description' => 'short URL (or any other kind of redirect) for file (id)'),
+ 'file_id' => array('type' => 'int', 'description' => 'short URL for what URL/file'),
+ 'redirections' => array('type' => 'int', 'description' => 'redirect count'),
+ 'httpcode' => array('type' => 'int', 'description' => 'HTTP status code (20x, 30x, etc.)'),
+ 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
+ ),
+ 'primary key' => array('url'),
+ 'foreign keys' => array(
+ 'file_redirection_file_id_fkey' => array('file' => array('file_id' => 'id')),
+ ),
+ );
+ }
+