Bug 14279: Remove CGI::scrolling_list from issues_avg_stats.pl
[koha.git] / Koha / Schema / Result / AuthorisedValue.pm
blob481837863ea443cd3e97f3caee22205dbe9d4109
1 use utf8;
2 package Koha::Schema::Result::AuthorisedValue;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AuthorisedValue
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<authorised_values>
20 =cut
22 __PACKAGE__->table("authorised_values");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 category
34 data_type: 'varchar'
35 default_value: (empty string)
36 is_nullable: 0
37 size: 32
39 =head2 authorised_value
41 data_type: 'varchar'
42 default_value: (empty string)
43 is_nullable: 0
44 size: 80
46 =head2 lib
48 data_type: 'varchar'
49 is_nullable: 1
50 size: 200
52 =head2 lib_opac
54 data_type: 'varchar'
55 is_nullable: 1
56 size: 200
58 =head2 imageurl
60 data_type: 'varchar'
61 is_nullable: 1
62 size: 200
64 =cut
66 __PACKAGE__->add_columns(
67 "id",
68 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
69 "category",
70 { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 },
71 "authorised_value",
72 { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 },
73 "lib",
74 { data_type => "varchar", is_nullable => 1, size => 200 },
75 "lib_opac",
76 { data_type => "varchar", is_nullable => 1, size => 200 },
77 "imageurl",
78 { data_type => "varchar", is_nullable => 1, size => 200 },
81 =head1 PRIMARY KEY
83 =over 4
85 =item * L</id>
87 =back
89 =cut
91 __PACKAGE__->set_primary_key("id");
93 =head1 RELATIONS
95 =head2 authorised_values_branches
97 Type: has_many
99 Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
101 =cut
103 __PACKAGE__->has_many(
104 "authorised_values_branches",
105 "Koha::Schema::Result::AuthorisedValuesBranch",
106 { "foreign.av_id" => "self.id" },
107 { cascade_copy => 0, cascade_delete => 0 },
110 =head2 items_search_fields
112 Type: has_many
114 Related object: L<Koha::Schema::Result::ItemsSearchField>
116 =cut
118 __PACKAGE__->has_many(
119 "items_search_fields",
120 "Koha::Schema::Result::ItemsSearchField",
121 { "foreign.authorised_values_category" => "self.category" },
122 { cascade_copy => 0, cascade_delete => 0 },
126 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-05 15:20:11
127 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GS7UBpk66HAhBptwrpKR7Q
130 # You can replace this text with custom content, and it will be preserved on regeneration