2 package Koha::Schema::Result::Currency;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Currency
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<currency>
22 __PACKAGE__->table("currency");
29 default_value: (empty string)
47 data_type: 'timestamp'
48 datetime_undef_if_invalid: 1
49 default_value: current_timestamp
77 __PACKAGE__->add_columns(
79 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
81 { data_type => "varchar", is_nullable => 1, size => 5 },
83 { data_type => "varchar", is_nullable => 1, size => 5 },
86 data_type => "timestamp",
87 datetime_undef_if_invalid => 1,
88 default_value => \"current_timestamp",
92 { data_type => "float", is_nullable => 1, size => [15, 5] },
94 { data_type => "tinyint", is_nullable => 1 },
96 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
98 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
111 __PACKAGE__->set_primary_key("currency");
115 =head2 aqbooksellers_invoiceprices
119 Related object: L<Koha::Schema::Result::Aqbookseller>
123 __PACKAGE__->has_many(
124 "aqbooksellers_invoiceprices",
125 "Koha::Schema::Result::Aqbookseller",
126 { "foreign.invoiceprice" => "self.currency" },
127 { cascade_copy => 0, cascade_delete => 0 },
130 =head2 aqbooksellers_listprices
134 Related object: L<Koha::Schema::Result::Aqbookseller>
138 __PACKAGE__->has_many(
139 "aqbooksellers_listprices",
140 "Koha::Schema::Result::Aqbookseller",
141 { "foreign.listprice" => "self.currency" },
142 { cascade_copy => 0, cascade_delete => 0 },
149 Related object: L<Koha::Schema::Result::Aqorder>
153 __PACKAGE__->has_many(
155 "Koha::Schema::Result::Aqorder",
156 { "foreign.currency" => "self.currency" },
157 { cascade_copy => 0, cascade_delete => 0 },
161 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-01 14:23:58
162 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnJEcCgrM1Edf99phWFdyQ
165 # You can replace this text with custom content, and it will be preserved on regeneration