Bug 14279: Remove CGI::scrolling_list from issues_avg_stats.pl
[koha.git] / Koha / Schema / Result / Branchcategory.pm
blob6417ca91c08a3aa4544c61d7f95cbd7c65c88d67
1 use utf8;
2 package Koha::Schema::Result::Branchcategory;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Branchcategory
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<branchcategories>
20 =cut
22 __PACKAGE__->table("branchcategories");
24 =head1 ACCESSORS
26 =head2 categorycode
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 10
33 =head2 categoryname
35 data_type: 'varchar'
36 is_nullable: 1
37 size: 32
39 =head2 codedescription
41 data_type: 'mediumtext'
42 is_nullable: 1
44 =head2 categorytype
46 data_type: 'varchar'
47 is_nullable: 1
48 size: 16
50 =head2 show_in_pulldown
52 data_type: 'tinyint'
53 default_value: 0
54 is_nullable: 0
56 =cut
58 __PACKAGE__->add_columns(
59 "categorycode",
60 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
61 "categoryname",
62 { data_type => "varchar", is_nullable => 1, size => 32 },
63 "codedescription",
64 { data_type => "mediumtext", is_nullable => 1 },
65 "categorytype",
66 { data_type => "varchar", is_nullable => 1, size => 16 },
67 "show_in_pulldown",
68 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
71 =head1 PRIMARY KEY
73 =over 4
75 =item * L</categorycode>
77 =back
79 =cut
81 __PACKAGE__->set_primary_key("categorycode");
83 =head1 RELATIONS
85 =head2 branchrelations
87 Type: has_many
89 Related object: L<Koha::Schema::Result::Branchrelation>
91 =cut
93 __PACKAGE__->has_many(
94 "branchrelations",
95 "Koha::Schema::Result::Branchrelation",
96 { "foreign.categorycode" => "self.categorycode" },
97 { cascade_copy => 0, cascade_delete => 0 },
100 =head2 branchcodes
102 Type: many_to_many
104 Composing rels: L</branchrelations> -> branchcode
106 =cut
108 __PACKAGE__->many_to_many("branchcodes", "branchrelations", "branchcode");
111 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
112 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HU5N7lAiLIz6yC9va3fDbg
115 # You can replace this text with custom content, and it will be preserved on regeneration