<?php
namespace xPDO\Test\Sample\pgsql;

use xPDO\xPDO;

class PersonPhone extends \xPDO\Test\Sample\PersonPhone
{

    public static $metaMap = array (
        'package' => 'xPDO\\Test\\Sample',
        'version' => '3.0',
        'table' => 'person_phone',
        'extends' => 'xPDO\\Om\\xPDOObject',
        'fields' => 
        array (
            'person' => NULL,
            'phone' => NULL,
            'is_primary' => 0,
        ),
        'fieldMeta' => 
        array (
            'person' => 
            array (
                'dbtype' => 'integer',
                'phptype' => 'integer',
                'null' => false,
                'index' => 'pk',
            ),
            'phone' => 
            array (
                'dbtype' => 'integer',
                'phptype' => 'integer',
                'null' => false,
                'index' => 'pk',
            ),
            'is_primary' => 
            array (
                'dbtype' => 'smallint',
                'phptype' => 'boolean',
                'null' => false,
                'default' => 0,
            ),
        ),
        'indexes' => 
        array (
            'PRIMARY' => 
            array (
                'alias' => 'PRIMARY',
                'primary' => true,
                'unique' => true,
                'type' => 'BTREE',
                'columns' => 
                array (
                    'person' => 
                    array (
                        'collation' => 'A',
                        'null' => false,
                    ),
                    'phone' => 
                    array (
                        'collation' => 'A',
                        'null' => false,
                    ),
                ),
            ),
        ),
        'composites' => 
        array (
            'Phone' => 
            array (
                'class' => 'xPDO\\Test\\Sample\\Phone',
                'local' => 'phone',
                'foreign' => 'id',
                'cardinality' => 'one',
                'owner' => 'foreign',
            ),
        ),
        'aggregates' => 
        array (
            'Person' => 
            array (
                'class' => 'xPDO\\Test\\Sample\\Person',
                'local' => 'person',
                'foreign' => 'id',
                'cardinality' => 'one',
                'owner' => 'foreign',
            ),
        ),
    );

}
