Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / Subscriptionhistory.pm
1 use utf8;
2 package Koha::Schema::Result::Subscriptionhistory;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::Subscriptionhistory
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<subscriptionhistory>
19
20 =cut
21
22 __PACKAGE__->table("subscriptionhistory");
23
24 =head1 ACCESSORS
25
26 =head2 biblionumber
27
28   data_type: 'integer'
29   is_foreign_key: 1
30   is_nullable: 0
31
32 =head2 subscriptionid
33
34   data_type: 'integer'
35   is_foreign_key: 1
36   is_nullable: 0
37
38 =head2 histstartdate
39
40   data_type: 'date'
41   datetime_undef_if_invalid: 1
42   is_nullable: 1
43
44 =head2 histenddate
45
46   data_type: 'date'
47   datetime_undef_if_invalid: 1
48   is_nullable: 1
49
50 =head2 missinglist
51
52   data_type: 'longtext'
53   is_nullable: 0
54
55 =head2 recievedlist
56
57   data_type: 'longtext'
58   is_nullable: 0
59
60 =head2 opacnote
61
62   data_type: 'longtext'
63   is_nullable: 1
64
65 =head2 librariannote
66
67   data_type: 'longtext'
68   is_nullable: 1
69
70 =cut
71
72 __PACKAGE__->add_columns(
73   "biblionumber",
74   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75   "subscriptionid",
76   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
77   "histstartdate",
78   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
79   "histenddate",
80   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
81   "missinglist",
82   { data_type => "longtext", is_nullable => 0 },
83   "recievedlist",
84   { data_type => "longtext", is_nullable => 0 },
85   "opacnote",
86   { data_type => "longtext", is_nullable => 1 },
87   "librariannote",
88   { data_type => "longtext", is_nullable => 1 },
89 );
90
91 =head1 PRIMARY KEY
92
93 =over 4
94
95 =item * L</subscriptionid>
96
97 =back
98
99 =cut
100
101 __PACKAGE__->set_primary_key("subscriptionid");
102
103 =head1 RELATIONS
104
105 =head2 biblionumber
106
107 Type: belongs_to
108
109 Related object: L<Koha::Schema::Result::Biblio>
110
111 =cut
112
113 __PACKAGE__->belongs_to(
114   "biblionumber",
115   "Koha::Schema::Result::Biblio",
116   { biblionumber => "biblionumber" },
117   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
118 );
119
120 =head2 subscriptionid
121
122 Type: belongs_to
123
124 Related object: L<Koha::Schema::Result::Subscription>
125
126 =cut
127
128 __PACKAGE__->belongs_to(
129   "subscriptionid",
130   "Koha::Schema::Result::Subscription",
131   { subscriptionid => "subscriptionid" },
132   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
133 );
134
135
136 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-17 09:15:51
137 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bcJbffy74eI1r+e4pImAwQ
138
139 sub koha_object_class {
140     'Koha::Subscription::History';
141 }
142 sub koha_objects_class {
143     'Koha::Subscription::Histories';
144 }
145
146 1;