Rev 56 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
<?php
require_once( 'camp.class.php' );
class Location extends Camp {
protected static $dbStructure = array(
'table' => array(
'tableName' => 'location',
'primaryKey' => 'location_id',
'selectionDisplay' => 'name',
'fields' => array(
'location_id' => array (
'displayName' => 'ID',
'type' => 'int unsigned',
'nullable' => false
),
'name' => array (
'displayName' => 'Owner',
'type' => 'varchar',
'size' => 64,
'list' => true
),
'created' => array (
'displayName' => 'Created',
'type' => 'date'
),
'removed' => array(
'displayName' => 'Removed',
'type' => 'date'
)
) // fields
) // table
); // dbStructure
}
?>