1 package Koha::Schema::Result::Currency;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::Currency
18 __PACKAGE__->table("currency");
25 default_value: (empty string)
37 data_type: 'timestamp'
38 default_value: current_timestamp
54 __PACKAGE__->add_columns(
56 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
58 { data_type => "varchar", is_nullable => 1, size => 5 },
61 data_type => "timestamp",
62 default_value => \"current_timestamp",
66 { data_type => "float", is_nullable => 1, size => [15, 5] },
68 { data_type => "tinyint", is_nullable => 1 },
70 __PACKAGE__->set_primary_key("currency");
74 =head2 aqbooksellers_listprices
78 Related object: L<Koha::Schema::Result::Aqbookseller>
82 __PACKAGE__->has_many(
83 "aqbooksellers_listprices",
84 "Koha::Schema::Result::Aqbookseller",
85 { "foreign.listprice" => "self.currency" },
86 { cascade_copy => 0, cascade_delete => 0 },
89 =head2 aqbooksellers_invoiceprices
93 Related object: L<Koha::Schema::Result::Aqbookseller>
97 __PACKAGE__->has_many(
98 "aqbooksellers_invoiceprices",
99 "Koha::Schema::Result::Aqbookseller",
100 { "foreign.invoiceprice" => "self.currency" },
101 { cascade_copy => 0, cascade_delete => 0 },
105 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
106 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6SWDTY33KjtpW71Elgs69g
109 # You can replace this text with custom content, and it will be preserved on regeneration