<?php
    /**
     *  Implements hook_schema
     */
    function usip_network_schema() {
        $schema['usip_network_invites'] = array(
            'fields' => array(
                'id'=>array(
                    'type'=>'serial',
                    'not null' => TRUE
                ),
                'user_id'=>array(
                    'type'=>'int',
                    'not null' => TRUE
                ),
                'created'=>array(
                    'type'=>'int',
                    'not null' => TRUE
                ),
                'expires'=>array(
                    'type'=>'int',
                    'not null' => TRUE
                ),
                'reg_code'=>array(
                    'type' => 'varchar',
                    'length' => 10,
                    'not null' => TRUE
                ),
                'account_type'=>array(
                    'type'=>'varchar',
                    'length' => 10,
                    'not null' => TRUE
                ),
                'status'=>array(
                    'type' => 'int',
                    'not null' => TRUE
                )
            ),
            'primary key' => array('id')
        );
        return $schema;
    }
