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
71 __PACKAGE__->add_columns(
73 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
75 { data_type => "varchar", is_nullable => 1, size => 5 },
77 { data_type => "varchar", is_nullable => 1, size => 5 },
80 data_type => "timestamp",
81 datetime_undef_if_invalid => 1,
82 default_value => \"current_timestamp",
86 { data_type => "float", is_nullable => 1, size => [15, 5] },
88 { data_type => "tinyint", is_nullable => 1 },
90 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
103 __PACKAGE__->set_primary_key("currency");
107 =head2 aqbooksellers_invoiceprices
111 Related object: L<Koha::Schema::Result::Aqbookseller>
115 __PACKAGE__->has_many(
116 "aqbooksellers_invoiceprices",
117 "Koha::Schema::Result::Aqbookseller",
118 { "foreign.invoiceprice" => "self.currency" },
119 { cascade_copy => 0, cascade_delete => 0 },
122 =head2 aqbooksellers_listprices
126 Related object: L<Koha::Schema::Result::Aqbookseller>
130 __PACKAGE__->has_many(
131 "aqbooksellers_listprices",
132 "Koha::Schema::Result::Aqbookseller",
133 { "foreign.listprice" => "self.currency" },
134 { cascade_copy => 0, cascade_delete => 0 },
141 Related object: L<Koha::Schema::Result::Aqorder>
145 __PACKAGE__->has_many(
147 "Koha::Schema::Result::Aqorder",
148 { "foreign.currency" => "self.currency" },
149 { cascade_copy => 0, cascade_delete => 0 },
153 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-03-09 15:14:35
154 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0xP1adf+TPUi2cBn8Qah5A
157 # You can replace this text with custom content, and it will be preserved on regeneration