<?php
$xpdo_meta_map['projects']= array (
  'package' => 'trosk',
  'table' => 'trosk_projects',
  'fields' => 
  array (
    'name' => '',
    'createdby' => 0,
    'type' => 1,
  ),
  'fieldMeta' => 
  array (
    'name' => 
    array (
      'dbtype' => 'text',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
    ),
    'createdby' => 
    array (
      'dbtype' => 'int',
      'precision' => '10',
      'attributes' => 'unsigned',
      'phptype' => 'integer',
      'null' => false,
      'default' => 0,
    ),
    'type' => 
    array (
      'dbtype' => 'int',
      'precision' => '3',
      'attributes' => 'unsigned',
      'phptype' => 'integer',
      'null' => false,
      'default' => 1,
    ),
  ),
  'aggregates' => 
  array (
    'user' => 
    array (
      'class' => 'modUser',
      'local' => 'createdby',
      'foreign' => 'id',
      'cardinality' => 'one',
      'owner' => 'foreign',
    ),
  ),
  'composites' => 
  array (
    'items' => 
    array (
      'class' => 'items',
      'local' => 'id',
      'foreign' => 'project_id',
      'cardinality' => 'many',
      'owner' => 'local',
    ),
  ),
);
