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)
41 data_type: 'timestamp'
42 datetime_undef_if_invalid: 1
43 default_value: current_timestamp
59 __PACKAGE__->add_columns(
61 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
63 { data_type => "varchar", is_nullable => 1, size => 5 },
66 data_type => "timestamp",
67 datetime_undef_if_invalid => 1,
68 default_value => \"current_timestamp",
72 { data_type => "float", is_nullable => 1, size => [15, 5] },
74 { data_type => "tinyint", is_nullable => 1 },
87 __PACKAGE__->set_primary_key("currency");
91 =head2 aqbooksellers_invoiceprices
95 Related object: L<Koha::Schema::Result::Aqbookseller>
99 __PACKAGE__->has_many(
100 "aqbooksellers_invoiceprices",
101 "Koha::Schema::Result::Aqbookseller",
102 { "foreign.invoiceprice" => "self.currency" },
103 { cascade_copy => 0, cascade_delete => 0 },
106 =head2 aqbooksellers_listprices
110 Related object: L<Koha::Schema::Result::Aqbookseller>
114 __PACKAGE__->has_many(
115 "aqbooksellers_listprices",
116 "Koha::Schema::Result::Aqbookseller",
117 { "foreign.listprice" => "self.currency" },
118 { cascade_copy => 0, cascade_delete => 0 },
122 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
123 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1fpLJHtP0bseXVfytxii5Q
126 # You can replace this text with custom content, and it will be preserved on regeneration