package Orchard::DB::Schema::RoyaltyAccounting::Contract;

use strict;
use warnings;

use lib '/var/app/orchard/collab/jgetter/perllib';
use base 'Orchard::DB::DBIxCore';

## table
__PACKAGE__->table('royalty_accounting.contract');

## columns
__PACKAGE__->add_columns(
    'contract_id' => {'is_auto_increment'=>1,'data_type'=>'mediumint','is_nullable'=>0},
    'reference_sap_profit_center_id' => {'data_type'=>'mediumint','is_nullable'=>0},
    'contract_name' => {'data_type'=>'varchar','is_nullable'=>0},
    'contract_type' => {'data_type'=>'enum','is_nullable'=>0},
    'sap_created_at' => {'data_type'=>'datetime','is_nullable'=>1},
    'term_start' => {'data_type'=>'date','is_nullable'=>1},
    'term_end' => {'data_type'=>'date','is_nullable'=>1},
    'created_by' => {'data_type'=>'varchar','is_nullable'=>0},
    'created_at' => {'data_type'=>'datetime','is_nullable'=>0},
    'last_modified_by' => {'data_type'=>'varchar','is_nullable'=>0},
    'last_modified' => {'data_type'=>'datetime','is_nullable'=>0}
);

## primary key
__PACKAGE__->set_primary_key('contract_id');

1;
