Bug 14279: Remove CGI::scrolling_list from issues_avg_stats.pl
[koha.git] / Koha / Schema / Result / Currency.pm
blob594ebf1c3894ffdd0d7653046c1ffd913cf97980
1 use utf8;
2 package Koha::Schema::Result::Currency;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Currency
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<currency>
20 =cut
22 __PACKAGE__->table("currency");
24 =head1 ACCESSORS
26 =head2 currency
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 10
33 =head2 symbol
35 data_type: 'varchar'
36 is_nullable: 1
37 size: 5
39 =head2 isocode
41 data_type: 'varchar'
42 is_nullable: 1
43 size: 5
45 =head2 timestamp
47 data_type: 'timestamp'
48 datetime_undef_if_invalid: 1
49 default_value: current_timestamp
50 is_nullable: 0
52 =head2 rate
54 data_type: 'float'
55 is_nullable: 1
56 size: [15,5]
58 =head2 active
60 data_type: 'tinyint'
61 is_nullable: 1
63 =cut
65 __PACKAGE__->add_columns(
66 "currency",
67 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
68 "symbol",
69 { data_type => "varchar", is_nullable => 1, size => 5 },
70 "isocode",
71 { data_type => "varchar", is_nullable => 1, size => 5 },
72 "timestamp",
74 data_type => "timestamp",
75 datetime_undef_if_invalid => 1,
76 default_value => \"current_timestamp",
77 is_nullable => 0,
79 "rate",
80 { data_type => "float", is_nullable => 1, size => [15, 5] },
81 "active",
82 { data_type => "tinyint", is_nullable => 1 },
85 =head1 PRIMARY KEY
87 =over 4
89 =item * L</currency>
91 =back
93 =cut
95 __PACKAGE__->set_primary_key("currency");
97 =head1 RELATIONS
99 =head2 aqbooksellers_invoiceprices
101 Type: has_many
103 Related object: L<Koha::Schema::Result::Aqbookseller>
105 =cut
107 __PACKAGE__->has_many(
108 "aqbooksellers_invoiceprices",
109 "Koha::Schema::Result::Aqbookseller",
110 { "foreign.invoiceprice" => "self.currency" },
111 { cascade_copy => 0, cascade_delete => 0 },
114 =head2 aqbooksellers_listprices
116 Type: has_many
118 Related object: L<Koha::Schema::Result::Aqbookseller>
120 =cut
122 __PACKAGE__->has_many(
123 "aqbooksellers_listprices",
124 "Koha::Schema::Result::Aqbookseller",
125 { "foreign.listprice" => "self.currency" },
126 { cascade_copy => 0, cascade_delete => 0 },
130 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-04 22:05:05
131 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MqgYbFC8CTfcBHyAiIcdVA
134 # You can replace this text with custom content, and it will be preserved on regeneration