package Orchard::DB::Schema::RoyaltyAccounting::LedgerReserveTaken;

use strict;
use warnings;

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

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

## columns
__PACKAGE__->add_columns(
    'ledger_reserve_taken_id' => {'is_auto_increment'=>1,'data_type'=>'mediumint','is_nullable'=>0},
    'abacus_event_id' => {'data_type'=>'mediumint','is_nullable'=>0},
    'contract_reserve_id' => {'data_type'=>'mediumint','is_nullable'=>0},
    'accounting_run_id' => {'data_type'=>'mediumint','is_nullable'=>0},
    'statement_period_id' => {'data_type'=>'mediumint','is_nullable'=>0},
    'currency_code' => {'data_type'=>'char','is_nullable'=>0},
    'gross_sales' => {'data_type'=>'decimal','is_nullable'=>0},
    'gross_returns' => {'data_type'=>'decimal','is_nullable'=>0},
    'net_revenue' => {'data_type'=>'decimal','is_nullable'=>0},
    'reserve_amount' => {'data_type'=>'decimal','is_nullable'=>0},
    'net_revenue_after_reserve' => {'data_type'=>'decimal','is_nullable'=>0},
    '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('ledger_reserve_taken_id');

1;
