Bug 8798: (follow-up) update schema files
[koha.git] / Koha / Schema / Result / AuthorisedValue.pm
1 package Koha::Schema::Result::AuthorisedValue;
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::AuthorisedValue
15
16 =cut
17
18 __PACKAGE__->table("authorised_values");
19
20 =head1 ACCESSORS
21
22 =head2 id
23
24   data_type: 'integer'
25   is_auto_increment: 1
26   is_nullable: 0
27
28 =head2 category
29
30   data_type: 'varchar'
31   default_value: (empty string)
32   is_nullable: 0
33   size: 16
34
35 =head2 authorised_value
36
37   data_type: 'varchar'
38   default_value: (empty string)
39   is_nullable: 0
40   size: 80
41
42 =head2 lib
43
44   data_type: 'varchar'
45   is_nullable: 1
46   size: 200
47
48 =head2 lib_opac
49
50   data_type: 'varchar'
51   is_nullable: 1
52   size: 200
53
54 =head2 imageurl
55
56   data_type: 'varchar'
57   is_nullable: 1
58   size: 200
59
60 =cut
61
62 __PACKAGE__->add_columns(
63   "id",
64   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
65   "category",
66   { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 },
67   "authorised_value",
68   { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 },
69   "lib",
70   { data_type => "varchar", is_nullable => 1, size => 200 },
71   "lib_opac",
72   { data_type => "varchar", is_nullable => 1, size => 200 },
73   "imageurl",
74   { data_type => "varchar", is_nullable => 1, size => 200 },
75 );
76 __PACKAGE__->set_primary_key("id");
77
78 =head1 RELATIONS
79
80 =head2 authorised_values_branches
81
82 Type: has_many
83
84 Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
85
86 =cut
87
88 __PACKAGE__->has_many(
89   "authorised_values_branches",
90   "Koha::Schema::Result::AuthorisedValuesBranch",
91   { "foreign.av_id" => "self.id" },
92   { cascade_copy => 0, cascade_delete => 0 },
93 );
94
95
96 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
97 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UQnP1vJKTnc7KwuTT20Orw
98
99
100 # You can replace this text with custom content, and it will be preserved on regeneration
101 1;