Bug 8798: (follow-up) update schema files
[koha.git] / Koha / Schema / Result / Branchcategory.pm
1 package Koha::Schema::Result::Branchcategory;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::Branchcategory
15
16 =cut
17
18 __PACKAGE__->table("branchcategories");
19
20 =head1 ACCESSORS
21
22 =head2 categorycode
23
24   data_type: 'varchar'
25   default_value: (empty string)
26   is_nullable: 0
27   size: 10
28
29 =head2 categoryname
30
31   data_type: 'varchar'
32   is_nullable: 1
33   size: 32
34
35 =head2 codedescription
36
37   data_type: 'mediumtext'
38   is_nullable: 1
39
40 =head2 categorytype
41
42   data_type: 'varchar'
43   is_nullable: 1
44   size: 16
45
46 =head2 show_in_pulldown
47
48   data_type: 'tinyint'
49   default_value: 0
50   is_nullable: 0
51
52 =cut
53
54 __PACKAGE__->add_columns(
55   "categorycode",
56   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
57   "categoryname",
58   { data_type => "varchar", is_nullable => 1, size => 32 },
59   "codedescription",
60   { data_type => "mediumtext", is_nullable => 1 },
61   "categorytype",
62   { data_type => "varchar", is_nullable => 1, size => 16 },
63   "show_in_pulldown",
64   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
65 );
66 __PACKAGE__->set_primary_key("categorycode");
67
68 =head1 RELATIONS
69
70 =head2 branchrelations
71
72 Type: has_many
73
74 Related object: L<Koha::Schema::Result::Branchrelation>
75
76 =cut
77
78 __PACKAGE__->has_many(
79   "branchrelations",
80   "Koha::Schema::Result::Branchrelation",
81   { "foreign.categorycode" => "self.categorycode" },
82   { cascade_copy => 0, cascade_delete => 0 },
83 );
84
85
86 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
87 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VkvImio07fpqmHCntPn5+w
88
89
90 # You can replace this text with custom content, and it will be preserved on regeneration
91 1;