package Orchard::DB::Schema::RoyaltyAccounting::LedgerAdjustment;

use strict;
use warnings;

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

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

## columns
__PACKAGE__->add_columns(
    'ledger_adjustment_id' => {'is_auto_increment'=>1,'data_type'=>'mediumint','is_nullable'=>0},
    'abacus_event_id' => {'data_type'=>'mediumint','is_nullable'=>0},
    'account_id' => {'data_type'=>'mediumint','is_nullable'=>0},
    'contract_id' => {'data_type'=>'mediumint','is_nullable'=>1},
    'activity_statement_period_id' => {'data_type'=>'mediumint','is_nullable'=>0},
    'apply_to_statement_period_id' => {'data_type'=>'mediumint','is_nullable'=>0},
    'reference_adjustment_type_id' => {'data_type'=>'tinyint','is_nullable'=>0},
    'adjustment_amount' => {'data_type'=>'decimal','is_nullable'=>0},
    'adjustment_currency_code' => {'data_type'=>'char','is_nullable'=>0},
    'note' => {'data_type'=>'mediumtext','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('ledger_adjustment_id');

1;
