package Orchard::DB::Schema::RoyaltyAccounting::ReportCustom;

use strict;
use warnings;

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

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

## columns
__PACKAGE__->add_columns(
    'report_custom_id' => {'is_auto_increment'=>1,'data_type'=>'mediumint','is_nullable'=>0},
    'account_id' => {'data_type'=>'mediumint','is_nullable'=>0},
    'contract_id' => {'data_type'=>'mediumint','is_nullable'=>1},
    'statement_period_ids' => {'data_type'=>'varchar','is_nullable'=>0},
    'report_custom_status' => {'data_type'=>'enum','is_nullable'=>0},
    'dimension_primary' => {'data_type'=>'enum','is_nullable'=>0},
    'dimension_secondary' => {'data_type'=>'enum','is_nullable'=>0},
    'file_location' => {'data_type'=>'varchar','is_nullable'=>1},
    'created_by' => {'data_type'=>'varchar','is_nullable'=>0},
    'created_at' => {'data_type'=>'datetime','is_nullable'=>0}
);

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

1;
