2019-06-28 14:23:18 +00:00
|
|
|
package Pear::LocalLoop::Schema::Result::TransactionMeta;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
|
|
|
|
__PACKAGE__->table("transactions_meta");
|
|
|
|
|
|
|
|
__PACKAGE__->add_columns(
|
2021-03-20 12:09:50 +00:00
|
|
|
"id" => {
|
2019-07-02 14:21:01 +00:00
|
|
|
data_type => "integer",
|
2019-06-28 14:23:18 +00:00
|
|
|
is_auto_increment => 1,
|
2019-07-02 14:21:01 +00:00
|
|
|
is_nullable => 0,
|
2019-06-28 14:23:18 +00:00
|
|
|
},
|
2021-03-20 12:09:50 +00:00
|
|
|
"transaction_id" => {
|
2019-07-02 14:21:01 +00:00
|
|
|
data_type => "integer",
|
2019-06-28 14:23:18 +00:00
|
|
|
is_foreign_key => 1,
|
2019-07-02 14:21:01 +00:00
|
|
|
is_nullable => 0,
|
2019-06-28 14:23:18 +00:00
|
|
|
},
|
2021-03-20 12:09:50 +00:00
|
|
|
"net_value" => {
|
2019-07-02 14:21:01 +00:00
|
|
|
data_type => "numeric",
|
|
|
|
size => [ 100, 0 ],
|
2019-06-28 14:23:18 +00:00
|
|
|
is_nullable => 0,
|
|
|
|
},
|
|
|
|
"sales_tax_value" => {
|
2019-07-02 14:21:01 +00:00
|
|
|
data_type => "numeric",
|
|
|
|
size => [ 100, 0 ],
|
2019-06-28 14:23:18 +00:00
|
|
|
is_nullable => 0,
|
|
|
|
},
|
2021-03-20 12:09:50 +00:00
|
|
|
"gross_value" => {
|
2019-07-02 14:21:01 +00:00
|
|
|
data_type => "numeric",
|
|
|
|
size => [ 100, 0 ],
|
2019-06-28 14:23:18 +00:00
|
|
|
is_nullable => 0,
|
|
|
|
},
|
2019-09-02 14:34:28 +00:00
|
|
|
"local_service" => {
|
2021-03-20 12:09:50 +00:00
|
|
|
data_type => 'boolean',
|
|
|
|
default_value => \"false",
|
|
|
|
is_nullable => 0,
|
2019-09-02 14:34:28 +00:00
|
|
|
},
|
|
|
|
"regional_service" => {
|
2021-03-20 12:09:50 +00:00
|
|
|
data_type => 'boolean',
|
|
|
|
default_value => \"false",
|
|
|
|
is_nullable => 0,
|
2019-09-02 14:34:28 +00:00
|
|
|
},
|
|
|
|
"national_service" => {
|
2021-03-20 12:09:50 +00:00
|
|
|
data_type => 'boolean',
|
|
|
|
default_value => \"false",
|
|
|
|
is_nullable => 0,
|
2019-09-02 14:34:28 +00:00
|
|
|
},
|
|
|
|
"private_household_rebate" => {
|
2021-03-20 12:09:50 +00:00
|
|
|
data_type => 'boolean',
|
|
|
|
default_value => \"false",
|
|
|
|
is_nullable => 0,
|
2019-09-02 14:34:28 +00:00
|
|
|
},
|
|
|
|
"business_tax_and_rebate" => {
|
2021-03-20 12:09:50 +00:00
|
|
|
data_type => 'boolean',
|
|
|
|
default_value => \"false",
|
|
|
|
is_nullable => 0,
|
2019-09-02 14:34:28 +00:00
|
|
|
},
|
|
|
|
"stat_loc_gov" => {
|
2021-03-20 12:09:50 +00:00
|
|
|
data_type => 'boolean',
|
|
|
|
default_value => \"false",
|
|
|
|
is_nullable => 0,
|
2019-09-02 14:34:28 +00:00
|
|
|
},
|
|
|
|
"central_loc_gov" => {
|
2021-03-20 12:09:50 +00:00
|
|
|
data_type => 'boolean',
|
|
|
|
default_value => \"false",
|
|
|
|
is_nullable => 0,
|
2019-09-02 14:34:28 +00:00
|
|
|
},
|
2019-06-28 14:23:18 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("id");
|
|
|
|
|
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"transaction",
|
|
|
|
"Pear::LocalLoop::Schema::Result::Transaction",
|
|
|
|
{ 'foreign.id' => 'self.transaction_id' },
|
|
|
|
);
|
|
|
|
|
|
|
|
1;
|