2005-02-03 17:42:20 +01:00
|
|
|
<?php
|
2008-10-10 19:51:06 +02:00
|
|
|
/**
|
2013-06-12 18:57:44 +02:00
|
|
|
* EGroupware - resources
|
2008-10-10 19:51:06 +02:00
|
|
|
* http://www.egroupware.org
|
|
|
|
* Created by eTemplates DB-Tools written by ralfbecker@outdoor-training.de
|
|
|
|
*
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package resources
|
|
|
|
* @subpackage setup
|
|
|
|
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
2005-02-03 17:42:20 +01:00
|
|
|
|
2008-10-10 19:51:06 +02:00
|
|
|
$phpgw_baseline = array(
|
|
|
|
'egw_resources' => array(
|
|
|
|
'fd' => array(
|
2012-12-17 23:14:32 +01:00
|
|
|
'res_id' => array('type' => 'auto','nullable' => False),
|
2008-10-10 19:51:06 +02:00
|
|
|
'name' => array('type' => 'varchar','precision' => '100'),
|
|
|
|
'short_description' => array('type' => 'varchar','precision' => '100'),
|
2013-06-12 18:57:44 +02:00
|
|
|
'cat_id' => array('type' => 'int','meta' => 'category','precision' => '11','nullable' => False),
|
2008-10-10 19:51:06 +02:00
|
|
|
'quantity' => array('type' => 'int','precision' => '11','default' => '1'),
|
|
|
|
'useable' => array('type' => 'int','precision' => '11','default' => '1'),
|
|
|
|
'location' => array('type' => 'varchar','precision' => '100'),
|
|
|
|
'bookable' => array('type' => 'varchar','precision' => '1'),
|
|
|
|
'buyable' => array('type' => 'varchar','precision' => '1'),
|
|
|
|
'prize' => array('type' => 'varchar','precision' => '200'),
|
|
|
|
'long_description' => array('type' => 'longtext'),
|
|
|
|
'picture_src' => array('type' => 'varchar','precision' => '20'),
|
|
|
|
'accessory_of' => array('type' => 'int','precision' => '11','default' => '-1'),
|
|
|
|
'storage_info' => array('type' => 'varchar','precision' => '200'),
|
2012-12-17 23:14:32 +01:00
|
|
|
'inventory_number' => array('type' => 'varchar','precision' => '20'),
|
2014-03-18 10:39:30 +01:00
|
|
|
'deleted' => array('type' => 'int','meta' => 'timestamp','precision' => '8'),
|
|
|
|
'res_creator' => array('type' => 'int','meta' => 'user','precision' => '11'),
|
|
|
|
'res_created' => array('type' => 'int','meta' => 'timestamp','precision' => '8'),
|
|
|
|
'res_modifier' => array('type' => 'int','meta' => 'user','precision' => '11'),
|
|
|
|
'res_modified' => array('type' => 'int','meta' => 'timestamp','precision' => '8')
|
2005-11-14 19:16:56 +01:00
|
|
|
),
|
2008-10-10 19:51:06 +02:00
|
|
|
'pk' => array('res_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'egw_resources_extra' => array(
|
|
|
|
'fd' => array(
|
|
|
|
'extra_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
2013-06-12 18:57:44 +02:00
|
|
|
'extra_name' => array('type' => 'varchar','meta' => 'cfname','precision' => '40','nullable' => False),
|
|
|
|
'extra_owner' => array('type' => 'int','meta' => 'account','precision' => '4','nullable' => False,'default' => '-1'),
|
2019-08-13 12:45:22 +02:00
|
|
|
'extra_value' => array('type' => 'varchar','meta' => 'cfvalue','precision' => '16384','nullable' => False,'default' => '')
|
2008-10-10 19:51:06 +02:00
|
|
|
),
|
|
|
|
'pk' => array('extra_id','extra_name','extra_owner'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
)
|
|
|
|
);
|