View | Details | Raw Unified | Return to bug 8309
Collapse All | Expand All

(-)a/Koha/Schema.pm (+19 lines)
Line 0 Link Here
1
package Koha::Schema;
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::Schema';
10
11
__PACKAGE__->load_namespaces;
12
13
14
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
15
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnEo5uak3omhVidSM9e0hA
16
17
18
# You can replace this text with custom code or comments, and it will be preserved on regeneration
19
1;
(-)a/Koha/Schema/Result/Accountline.pm (+198 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Accountline;
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::Accountline
15
16
=cut
17
18
__PACKAGE__->table("accountlines");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_foreign_key: 1
27
  is_nullable: 0
28
29
=head2 accountno
30
31
  data_type: 'smallint'
32
  default_value: 0
33
  is_nullable: 0
34
35
=head2 itemnumber
36
37
  data_type: 'integer'
38
  is_foreign_key: 1
39
  is_nullable: 1
40
41
=head2 date
42
43
  data_type: 'date'
44
  datetime_undef_if_invalid: 1
45
  is_nullable: 1
46
47
=head2 amount
48
49
  data_type: 'decimal'
50
  is_nullable: 1
51
  size: [28,6]
52
53
=head2 description
54
55
  data_type: 'mediumtext'
56
  is_nullable: 1
57
58
=head2 dispute
59
60
  data_type: 'mediumtext'
61
  is_nullable: 1
62
63
=head2 accounttype
64
65
  data_type: 'varchar'
66
  is_nullable: 1
67
  size: 5
68
69
=head2 amountoutstanding
70
71
  data_type: 'decimal'
72
  is_nullable: 1
73
  size: [28,6]
74
75
=head2 lastincrement
76
77
  data_type: 'decimal'
78
  is_nullable: 1
79
  size: [28,6]
80
81
=head2 timestamp
82
83
  data_type: 'timestamp'
84
  datetime_undef_if_invalid: 1
85
  default_value: current_timestamp
86
  is_nullable: 0
87
88
=head2 notify_id
89
90
  data_type: 'integer'
91
  default_value: 0
92
  is_nullable: 0
93
94
=head2 notify_level
95
96
  data_type: 'integer'
97
  default_value: 0
98
  is_nullable: 0
99
100
=head2 note
101
102
  data_type: 'text'
103
  is_nullable: 1
104
105
=head2 manager_id
106
107
  data_type: 'integer'
108
  is_nullable: 1
109
110
=cut
111
112
__PACKAGE__->add_columns(
113
  "borrowernumber",
114
  {
115
    data_type      => "integer",
116
    default_value  => 0,
117
    is_foreign_key => 1,
118
    is_nullable    => 0,
119
  },
120
  "accountno",
121
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
122
  "itemnumber",
123
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
124
  "date",
125
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
126
  "amount",
127
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
128
  "description",
129
  { data_type => "mediumtext", is_nullable => 1 },
130
  "dispute",
131
  { data_type => "mediumtext", is_nullable => 1 },
132
  "accounttype",
133
  { data_type => "varchar", is_nullable => 1, size => 5 },
134
  "amountoutstanding",
135
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
136
  "lastincrement",
137
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
138
  "timestamp",
139
  {
140
    data_type => "timestamp",
141
    datetime_undef_if_invalid => 1,
142
    default_value => \"current_timestamp",
143
    is_nullable => 0,
144
  },
145
  "notify_id",
146
  { data_type => "integer", default_value => 0, is_nullable => 0 },
147
  "notify_level",
148
  { data_type => "integer", default_value => 0, is_nullable => 0 },
149
  "note",
150
  { data_type => "text", is_nullable => 1 },
151
  "manager_id",
152
  { data_type => "integer", is_nullable => 1 },
153
);
154
155
=head1 RELATIONS
156
157
=head2 borrowernumber
158
159
Type: belongs_to
160
161
Related object: L<Koha::Schema::Result::Borrower>
162
163
=cut
164
165
__PACKAGE__->belongs_to(
166
  "borrowernumber",
167
  "Koha::Schema::Result::Borrower",
168
  { borrowernumber => "borrowernumber" },
169
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
170
);
171
172
=head2 itemnumber
173
174
Type: belongs_to
175
176
Related object: L<Koha::Schema::Result::Item>
177
178
=cut
179
180
__PACKAGE__->belongs_to(
181
  "itemnumber",
182
  "Koha::Schema::Result::Item",
183
  { itemnumber => "itemnumber" },
184
  {
185
    is_deferrable => 1,
186
    join_type     => "LEFT",
187
    on_delete     => "CASCADE",
188
    on_update     => "CASCADE",
189
  },
190
);
191
192
193
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
194
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jqQpSc1VG/nyCPFvXbu+gA
195
196
197
# You can replace this text with custom code or comments, and it will be preserved on regeneration
198
1;
(-)a/Koha/Schema/Result/Accountoffset.pm (+102 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Accountoffset;
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::Accountoffset
15
16
=cut
17
18
__PACKAGE__->table("accountoffsets");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_foreign_key: 1
27
  is_nullable: 0
28
29
=head2 accountno
30
31
  data_type: 'smallint'
32
  default_value: 0
33
  is_nullable: 0
34
35
=head2 offsetaccount
36
37
  data_type: 'smallint'
38
  default_value: 0
39
  is_nullable: 0
40
41
=head2 offsetamount
42
43
  data_type: 'decimal'
44
  is_nullable: 1
45
  size: [28,6]
46
47
=head2 timestamp
48
49
  data_type: 'timestamp'
50
  datetime_undef_if_invalid: 1
51
  default_value: current_timestamp
52
  is_nullable: 0
53
54
=cut
55
56
__PACKAGE__->add_columns(
57
  "borrowernumber",
58
  {
59
    data_type      => "integer",
60
    default_value  => 0,
61
    is_foreign_key => 1,
62
    is_nullable    => 0,
63
  },
64
  "accountno",
65
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
66
  "offsetaccount",
67
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
68
  "offsetamount",
69
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
70
  "timestamp",
71
  {
72
    data_type => "timestamp",
73
    datetime_undef_if_invalid => 1,
74
    default_value => \"current_timestamp",
75
    is_nullable => 0,
76
  },
77
);
78
79
=head1 RELATIONS
80
81
=head2 borrowernumber
82
83
Type: belongs_to
84
85
Related object: L<Koha::Schema::Result::Borrower>
86
87
=cut
88
89
__PACKAGE__->belongs_to(
90
  "borrowernumber",
91
  "Koha::Schema::Result::Borrower",
92
  { borrowernumber => "borrowernumber" },
93
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
94
);
95
96
97
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
98
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G+cGjWAlvQH5hFpNAsCG9Q
99
100
101
# You can replace this text with custom code or comments, and it will be preserved on regeneration
102
1;
(-)a/Koha/Schema/Result/ActionLog.pm (+92 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ActionLog;
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::ActionLog
15
16
=cut
17
18
__PACKAGE__->table("action_logs");
19
20
=head1 ACCESSORS
21
22
=head2 action_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 timestamp
29
30
  data_type: 'timestamp'
31
  datetime_undef_if_invalid: 1
32
  default_value: current_timestamp
33
  is_nullable: 0
34
35
=head2 user
36
37
  data_type: 'integer'
38
  default_value: 0
39
  is_nullable: 0
40
41
=head2 module
42
43
  data_type: 'text'
44
  is_nullable: 1
45
46
=head2 action
47
48
  data_type: 'text'
49
  is_nullable: 1
50
51
=head2 object
52
53
  data_type: 'integer'
54
  is_nullable: 1
55
56
=head2 info
57
58
  data_type: 'text'
59
  is_nullable: 1
60
61
=cut
62
63
__PACKAGE__->add_columns(
64
  "action_id",
65
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
66
  "timestamp",
67
  {
68
    data_type => "timestamp",
69
    datetime_undef_if_invalid => 1,
70
    default_value => \"current_timestamp",
71
    is_nullable => 0,
72
  },
73
  "user",
74
  { data_type => "integer", default_value => 0, is_nullable => 0 },
75
  "module",
76
  { data_type => "text", is_nullable => 1 },
77
  "action",
78
  { data_type => "text", is_nullable => 1 },
79
  "object",
80
  { data_type => "integer", is_nullable => 1 },
81
  "info",
82
  { data_type => "text", is_nullable => 1 },
83
);
84
__PACKAGE__->set_primary_key("action_id");
85
86
87
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7PmpmQvq6QVLOBi9BwT9zQ
89
90
91
# You can replace this text with custom code or comments, and it will be preserved on regeneration
92
1;
(-)a/Koha/Schema/Result/Alert.pm (+68 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Alert;
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::Alert
15
16
=cut
17
18
__PACKAGE__->table("alert");
19
20
=head1 ACCESSORS
21
22
=head2 alertid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 borrowernumber
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_nullable: 0
33
34
=head2 type
35
36
  data_type: 'varchar'
37
  default_value: (empty string)
38
  is_nullable: 0
39
  size: 10
40
41
=head2 externalid
42
43
  data_type: 'varchar'
44
  default_value: (empty string)
45
  is_nullable: 0
46
  size: 20
47
48
=cut
49
50
__PACKAGE__->add_columns(
51
  "alertid",
52
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
53
  "borrowernumber",
54
  { data_type => "integer", default_value => 0, is_nullable => 0 },
55
  "type",
56
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
57
  "externalid",
58
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
59
);
60
__PACKAGE__->set_primary_key("alertid");
61
62
63
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
64
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qNG04rccMPliVzGtEp1U2Q
65
66
67
# You can replace this text with custom code or comments, and it will be preserved on regeneration
68
1;
(-)a/Koha/Schema/Result/Aqbasket.pm (+197 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Aqbasket;
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::Aqbasket
15
16
=cut
17
18
__PACKAGE__->table("aqbasket");
19
20
=head1 ACCESSORS
21
22
=head2 basketno
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 basketname
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 50
33
34
=head2 note
35
36
  data_type: 'mediumtext'
37
  is_nullable: 1
38
39
=head2 booksellernote
40
41
  data_type: 'mediumtext'
42
  is_nullable: 1
43
44
=head2 contractnumber
45
46
  data_type: 'integer'
47
  is_foreign_key: 1
48
  is_nullable: 1
49
50
=head2 creationdate
51
52
  data_type: 'date'
53
  datetime_undef_if_invalid: 1
54
  is_nullable: 1
55
56
=head2 closedate
57
58
  data_type: 'date'
59
  datetime_undef_if_invalid: 1
60
  is_nullable: 1
61
62
=head2 booksellerid
63
64
  data_type: 'integer'
65
  default_value: 1
66
  is_foreign_key: 1
67
  is_nullable: 0
68
69
=head2 authorisedby
70
71
  data_type: 'varchar'
72
  is_nullable: 1
73
  size: 10
74
75
=head2 booksellerinvoicenumber
76
77
  data_type: 'mediumtext'
78
  is_nullable: 1
79
80
=head2 basketgroupid
81
82
  data_type: 'integer'
83
  is_foreign_key: 1
84
  is_nullable: 1
85
86
=cut
87
88
__PACKAGE__->add_columns(
89
  "basketno",
90
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
91
  "basketname",
92
  { data_type => "varchar", is_nullable => 1, size => 50 },
93
  "note",
94
  { data_type => "mediumtext", is_nullable => 1 },
95
  "booksellernote",
96
  { data_type => "mediumtext", is_nullable => 1 },
97
  "contractnumber",
98
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
99
  "creationdate",
100
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
101
  "closedate",
102
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
103
  "booksellerid",
104
  {
105
    data_type      => "integer",
106
    default_value  => 1,
107
    is_foreign_key => 1,
108
    is_nullable    => 0,
109
  },
110
  "authorisedby",
111
  { data_type => "varchar", is_nullable => 1, size => 10 },
112
  "booksellerinvoicenumber",
113
  { data_type => "mediumtext", is_nullable => 1 },
114
  "basketgroupid",
115
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
116
);
117
__PACKAGE__->set_primary_key("basketno");
118
119
=head1 RELATIONS
120
121
=head2 booksellerid
122
123
Type: belongs_to
124
125
Related object: L<Koha::Schema::Result::Aqbookseller>
126
127
=cut
128
129
__PACKAGE__->belongs_to(
130
  "booksellerid",
131
  "Koha::Schema::Result::Aqbookseller",
132
  { id => "booksellerid" },
133
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
134
);
135
136
=head2 contractnumber
137
138
Type: belongs_to
139
140
Related object: L<Koha::Schema::Result::Aqcontract>
141
142
=cut
143
144
__PACKAGE__->belongs_to(
145
  "contractnumber",
146
  "Koha::Schema::Result::Aqcontract",
147
  { contractnumber => "contractnumber" },
148
  {
149
    is_deferrable => 1,
150
    join_type     => "LEFT",
151
    on_delete     => "CASCADE",
152
    on_update     => "CASCADE",
153
  },
154
);
155
156
=head2 basketgroupid
157
158
Type: belongs_to
159
160
Related object: L<Koha::Schema::Result::Aqbasketgroup>
161
162
=cut
163
164
__PACKAGE__->belongs_to(
165
  "basketgroupid",
166
  "Koha::Schema::Result::Aqbasketgroup",
167
  { id => "basketgroupid" },
168
  {
169
    is_deferrable => 1,
170
    join_type     => "LEFT",
171
    on_delete     => "CASCADE",
172
    on_update     => "CASCADE",
173
  },
174
);
175
176
=head2 aqorders
177
178
Type: has_many
179
180
Related object: L<Koha::Schema::Result::Aqorder>
181
182
=cut
183
184
__PACKAGE__->has_many(
185
  "aqorders",
186
  "Koha::Schema::Result::Aqorder",
187
  { "foreign.basketno" => "self.basketno" },
188
  { cascade_copy => 0, cascade_delete => 0 },
189
);
190
191
192
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
193
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R51wLBQpgEY8HY7EPKTKbw
194
195
196
# You can replace this text with custom code or comments, and it will be preserved on regeneration
197
1;
(-)a/Koha/Schema/Result/Aqbasketgroup.pm (+128 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Aqbasketgroup;
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::Aqbasketgroup
15
16
=cut
17
18
__PACKAGE__->table("aqbasketgroups");
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 name
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 50
33
34
=head2 closed
35
36
  data_type: 'tinyint'
37
  is_nullable: 1
38
39
=head2 booksellerid
40
41
  data_type: 'integer'
42
  is_foreign_key: 1
43
  is_nullable: 0
44
45
=head2 deliveryplace
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 10
50
51
=head2 freedeliveryplace
52
53
  data_type: 'text'
54
  is_nullable: 1
55
56
=head2 deliverycomment
57
58
  data_type: 'varchar'
59
  is_nullable: 1
60
  size: 255
61
62
=head2 billingplace
63
64
  data_type: 'varchar'
65
  is_nullable: 1
66
  size: 10
67
68
=cut
69
70
__PACKAGE__->add_columns(
71
  "id",
72
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
73
  "name",
74
  { data_type => "varchar", is_nullable => 1, size => 50 },
75
  "closed",
76
  { data_type => "tinyint", is_nullable => 1 },
77
  "booksellerid",
78
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
79
  "deliveryplace",
80
  { data_type => "varchar", is_nullable => 1, size => 10 },
81
  "freedeliveryplace",
82
  { data_type => "text", is_nullable => 1 },
83
  "deliverycomment",
84
  { data_type => "varchar", is_nullable => 1, size => 255 },
85
  "billingplace",
86
  { data_type => "varchar", is_nullable => 1, size => 10 },
87
);
88
__PACKAGE__->set_primary_key("id");
89
90
=head1 RELATIONS
91
92
=head2 aqbaskets
93
94
Type: has_many
95
96
Related object: L<Koha::Schema::Result::Aqbasket>
97
98
=cut
99
100
__PACKAGE__->has_many(
101
  "aqbaskets",
102
  "Koha::Schema::Result::Aqbasket",
103
  { "foreign.basketgroupid" => "self.id" },
104
  { cascade_copy => 0, cascade_delete => 0 },
105
);
106
107
=head2 booksellerid
108
109
Type: belongs_to
110
111
Related object: L<Koha::Schema::Result::Aqbookseller>
112
113
=cut
114
115
__PACKAGE__->belongs_to(
116
  "booksellerid",
117
  "Koha::Schema::Result::Aqbookseller",
118
  { id => "booksellerid" },
119
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
120
);
121
122
123
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
124
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b/5t1N+pGqeCGxx/Gu238g
125
126
127
# You can replace this text with custom code or comments, and it will be preserved on regeneration
128
1;
(-)a/Koha/Schema/Result/Aqbookseller.pm (+370 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Aqbookseller;
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::Aqbookseller
15
16
=cut
17
18
__PACKAGE__->table("aqbooksellers");
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 name
29
30
  data_type: 'mediumtext'
31
  is_nullable: 0
32
33
=head2 address1
34
35
  data_type: 'mediumtext'
36
  is_nullable: 1
37
38
=head2 address2
39
40
  data_type: 'mediumtext'
41
  is_nullable: 1
42
43
=head2 address3
44
45
  data_type: 'mediumtext'
46
  is_nullable: 1
47
48
=head2 address4
49
50
  data_type: 'mediumtext'
51
  is_nullable: 1
52
53
=head2 phone
54
55
  data_type: 'varchar'
56
  is_nullable: 1
57
  size: 30
58
59
=head2 accountnumber
60
61
  data_type: 'mediumtext'
62
  is_nullable: 1
63
64
=head2 othersupplier
65
66
  data_type: 'mediumtext'
67
  is_nullable: 1
68
69
=head2 currency
70
71
  data_type: 'varchar'
72
  default_value: (empty string)
73
  is_nullable: 0
74
  size: 3
75
76
=head2 booksellerfax
77
78
  data_type: 'mediumtext'
79
  is_nullable: 1
80
81
=head2 notes
82
83
  data_type: 'mediumtext'
84
  is_nullable: 1
85
86
=head2 bookselleremail
87
88
  data_type: 'mediumtext'
89
  is_nullable: 1
90
91
=head2 booksellerurl
92
93
  data_type: 'mediumtext'
94
  is_nullable: 1
95
96
=head2 contact
97
98
  data_type: 'varchar'
99
  is_nullable: 1
100
  size: 100
101
102
=head2 postal
103
104
  data_type: 'mediumtext'
105
  is_nullable: 1
106
107
=head2 url
108
109
  data_type: 'varchar'
110
  is_nullable: 1
111
  size: 255
112
113
=head2 contpos
114
115
  data_type: 'varchar'
116
  is_nullable: 1
117
  size: 100
118
119
=head2 contphone
120
121
  data_type: 'varchar'
122
  is_nullable: 1
123
  size: 100
124
125
=head2 contfax
126
127
  data_type: 'varchar'
128
  is_nullable: 1
129
  size: 100
130
131
=head2 contaltphone
132
133
  data_type: 'varchar'
134
  is_nullable: 1
135
  size: 100
136
137
=head2 contemail
138
139
  data_type: 'varchar'
140
  is_nullable: 1
141
  size: 100
142
143
=head2 contnotes
144
145
  data_type: 'mediumtext'
146
  is_nullable: 1
147
148
=head2 active
149
150
  data_type: 'tinyint'
151
  is_nullable: 1
152
153
=head2 listprice
154
155
  data_type: 'varchar'
156
  is_foreign_key: 1
157
  is_nullable: 1
158
  size: 10
159
160
=head2 invoiceprice
161
162
  data_type: 'varchar'
163
  is_foreign_key: 1
164
  is_nullable: 1
165
  size: 10
166
167
=head2 gstreg
168
169
  data_type: 'tinyint'
170
  is_nullable: 1
171
172
=head2 listincgst
173
174
  data_type: 'tinyint'
175
  is_nullable: 1
176
177
=head2 invoiceincgst
178
179
  data_type: 'tinyint'
180
  is_nullable: 1
181
182
=head2 gstrate
183
184
  data_type: 'decimal'
185
  is_nullable: 1
186
  size: [6,4]
187
188
=head2 discount
189
190
  data_type: 'float'
191
  is_nullable: 1
192
  size: [6,4]
193
194
=head2 fax
195
196
  data_type: 'varchar'
197
  is_nullable: 1
198
  size: 50
199
200
=head2 deliverytime
201
202
  data_type: 'integer'
203
  is_nullable: 1
204
205
=cut
206
207
__PACKAGE__->add_columns(
208
  "id",
209
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
210
  "name",
211
  { data_type => "mediumtext", is_nullable => 0 },
212
  "address1",
213
  { data_type => "mediumtext", is_nullable => 1 },
214
  "address2",
215
  { data_type => "mediumtext", is_nullable => 1 },
216
  "address3",
217
  { data_type => "mediumtext", is_nullable => 1 },
218
  "address4",
219
  { data_type => "mediumtext", is_nullable => 1 },
220
  "phone",
221
  { data_type => "varchar", is_nullable => 1, size => 30 },
222
  "accountnumber",
223
  { data_type => "mediumtext", is_nullable => 1 },
224
  "othersupplier",
225
  { data_type => "mediumtext", is_nullable => 1 },
226
  "currency",
227
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
228
  "booksellerfax",
229
  { data_type => "mediumtext", is_nullable => 1 },
230
  "notes",
231
  { data_type => "mediumtext", is_nullable => 1 },
232
  "bookselleremail",
233
  { data_type => "mediumtext", is_nullable => 1 },
234
  "booksellerurl",
235
  { data_type => "mediumtext", is_nullable => 1 },
236
  "contact",
237
  { data_type => "varchar", is_nullable => 1, size => 100 },
238
  "postal",
239
  { data_type => "mediumtext", is_nullable => 1 },
240
  "url",
241
  { data_type => "varchar", is_nullable => 1, size => 255 },
242
  "contpos",
243
  { data_type => "varchar", is_nullable => 1, size => 100 },
244
  "contphone",
245
  { data_type => "varchar", is_nullable => 1, size => 100 },
246
  "contfax",
247
  { data_type => "varchar", is_nullable => 1, size => 100 },
248
  "contaltphone",
249
  { data_type => "varchar", is_nullable => 1, size => 100 },
250
  "contemail",
251
  { data_type => "varchar", is_nullable => 1, size => 100 },
252
  "contnotes",
253
  { data_type => "mediumtext", is_nullable => 1 },
254
  "active",
255
  { data_type => "tinyint", is_nullable => 1 },
256
  "listprice",
257
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
258
  "invoiceprice",
259
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
260
  "gstreg",
261
  { data_type => "tinyint", is_nullable => 1 },
262
  "listincgst",
263
  { data_type => "tinyint", is_nullable => 1 },
264
  "invoiceincgst",
265
  { data_type => "tinyint", is_nullable => 1 },
266
  "gstrate",
267
  { data_type => "decimal", is_nullable => 1, size => [6, 4] },
268
  "discount",
269
  { data_type => "float", is_nullable => 1, size => [6, 4] },
270
  "fax",
271
  { data_type => "varchar", is_nullable => 1, size => 50 },
272
  "deliverytime",
273
  { data_type => "integer", is_nullable => 1 },
274
);
275
__PACKAGE__->set_primary_key("id");
276
277
=head1 RELATIONS
278
279
=head2 aqbaskets
280
281
Type: has_many
282
283
Related object: L<Koha::Schema::Result::Aqbasket>
284
285
=cut
286
287
__PACKAGE__->has_many(
288
  "aqbaskets",
289
  "Koha::Schema::Result::Aqbasket",
290
  { "foreign.booksellerid" => "self.id" },
291
  { cascade_copy => 0, cascade_delete => 0 },
292
);
293
294
=head2 aqbasketgroups
295
296
Type: has_many
297
298
Related object: L<Koha::Schema::Result::Aqbasketgroup>
299
300
=cut
301
302
__PACKAGE__->has_many(
303
  "aqbasketgroups",
304
  "Koha::Schema::Result::Aqbasketgroup",
305
  { "foreign.booksellerid" => "self.id" },
306
  { cascade_copy => 0, cascade_delete => 0 },
307
);
308
309
=head2 listprice
310
311
Type: belongs_to
312
313
Related object: L<Koha::Schema::Result::Currency>
314
315
=cut
316
317
__PACKAGE__->belongs_to(
318
  "listprice",
319
  "Koha::Schema::Result::Currency",
320
  { currency => "listprice" },
321
  {
322
    is_deferrable => 1,
323
    join_type     => "LEFT",
324
    on_delete     => "CASCADE",
325
    on_update     => "CASCADE",
326
  },
327
);
328
329
=head2 invoiceprice
330
331
Type: belongs_to
332
333
Related object: L<Koha::Schema::Result::Currency>
334
335
=cut
336
337
__PACKAGE__->belongs_to(
338
  "invoiceprice",
339
  "Koha::Schema::Result::Currency",
340
  { currency => "invoiceprice" },
341
  {
342
    is_deferrable => 1,
343
    join_type     => "LEFT",
344
    on_delete     => "CASCADE",
345
    on_update     => "CASCADE",
346
  },
347
);
348
349
=head2 aqcontracts
350
351
Type: has_many
352
353
Related object: L<Koha::Schema::Result::Aqcontract>
354
355
=cut
356
357
__PACKAGE__->has_many(
358
  "aqcontracts",
359
  "Koha::Schema::Result::Aqcontract",
360
  { "foreign.booksellerid" => "self.id" },
361
  { cascade_copy => 0, cascade_delete => 0 },
362
);
363
364
365
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
366
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s+opipVlKSoo2C9BgyawKg
367
368
369
# You can replace this text with custom code or comments, and it will be preserved on regeneration
370
1;
(-)a/Koha/Schema/Result/Aqbudget.pm (+191 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Aqbudget;
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::Aqbudget
15
16
=cut
17
18
__PACKAGE__->table("aqbudgets");
19
20
=head1 ACCESSORS
21
22
=head2 budget_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 budget_parent_id
29
30
  data_type: 'integer'
31
  is_nullable: 1
32
33
=head2 budget_code
34
35
  data_type: 'varchar'
36
  is_nullable: 1
37
  size: 30
38
39
=head2 budget_name
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 80
44
45
=head2 budget_branchcode
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 10
50
51
=head2 budget_amount
52
53
  data_type: 'decimal'
54
  default_value: 0.000000
55
  is_nullable: 1
56
  size: [28,6]
57
58
=head2 budget_encumb
59
60
  data_type: 'decimal'
61
  default_value: 0.000000
62
  is_nullable: 1
63
  size: [28,6]
64
65
=head2 budget_expend
66
67
  data_type: 'decimal'
68
  default_value: 0.000000
69
  is_nullable: 1
70
  size: [28,6]
71
72
=head2 budget_notes
73
74
  data_type: 'mediumtext'
75
  is_nullable: 1
76
77
=head2 timestamp
78
79
  data_type: 'timestamp'
80
  datetime_undef_if_invalid: 1
81
  default_value: current_timestamp
82
  is_nullable: 0
83
84
=head2 budget_period_id
85
86
  data_type: 'integer'
87
  is_nullable: 1
88
89
=head2 sort1_authcat
90
91
  data_type: 'varchar'
92
  is_nullable: 1
93
  size: 80
94
95
=head2 sort2_authcat
96
97
  data_type: 'varchar'
98
  is_nullable: 1
99
  size: 80
100
101
=head2 budget_owner_id
102
103
  data_type: 'integer'
104
  is_nullable: 1
105
106
=head2 budget_permission
107
108
  data_type: 'integer'
109
  default_value: 0
110
  is_nullable: 1
111
112
=cut
113
114
__PACKAGE__->add_columns(
115
  "budget_id",
116
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
117
  "budget_parent_id",
118
  { data_type => "integer", is_nullable => 1 },
119
  "budget_code",
120
  { data_type => "varchar", is_nullable => 1, size => 30 },
121
  "budget_name",
122
  { data_type => "varchar", is_nullable => 1, size => 80 },
123
  "budget_branchcode",
124
  { data_type => "varchar", is_nullable => 1, size => 10 },
125
  "budget_amount",
126
  {
127
    data_type => "decimal",
128
    default_value => "0.000000",
129
    is_nullable => 1,
130
    size => [28, 6],
131
  },
132
  "budget_encumb",
133
  {
134
    data_type => "decimal",
135
    default_value => "0.000000",
136
    is_nullable => 1,
137
    size => [28, 6],
138
  },
139
  "budget_expend",
140
  {
141
    data_type => "decimal",
142
    default_value => "0.000000",
143
    is_nullable => 1,
144
    size => [28, 6],
145
  },
146
  "budget_notes",
147
  { data_type => "mediumtext", is_nullable => 1 },
148
  "timestamp",
149
  {
150
    data_type => "timestamp",
151
    datetime_undef_if_invalid => 1,
152
    default_value => \"current_timestamp",
153
    is_nullable => 0,
154
  },
155
  "budget_period_id",
156
  { data_type => "integer", is_nullable => 1 },
157
  "sort1_authcat",
158
  { data_type => "varchar", is_nullable => 1, size => 80 },
159
  "sort2_authcat",
160
  { data_type => "varchar", is_nullable => 1, size => 80 },
161
  "budget_owner_id",
162
  { data_type => "integer", is_nullable => 1 },
163
  "budget_permission",
164
  { data_type => "integer", default_value => 0, is_nullable => 1 },
165
);
166
__PACKAGE__->set_primary_key("budget_id");
167
168
=head1 RELATIONS
169
170
=head2 aqbudgets_plannings
171
172
Type: has_many
173
174
Related object: L<Koha::Schema::Result::AqbudgetsPlanning>
175
176
=cut
177
178
__PACKAGE__->has_many(
179
  "aqbudgets_plannings",
180
  "Koha::Schema::Result::AqbudgetsPlanning",
181
  { "foreign.budget_id" => "self.budget_id" },
182
  { cascade_copy => 0, cascade_delete => 0 },
183
);
184
185
186
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
187
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dST1lOrmj5MaM53IZy6y0A
188
189
190
# You can replace this text with custom code or comments, and it will be preserved on regeneration
191
1;
(-)a/Koha/Schema/Result/Aqbudgetperiod.pm (+104 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Aqbudgetperiod;
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::Aqbudgetperiod
15
16
=cut
17
18
__PACKAGE__->table("aqbudgetperiods");
19
20
=head1 ACCESSORS
21
22
=head2 budget_period_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 budget_period_startdate
29
30
  data_type: 'date'
31
  datetime_undef_if_invalid: 1
32
  is_nullable: 0
33
34
=head2 budget_period_enddate
35
36
  data_type: 'date'
37
  datetime_undef_if_invalid: 1
38
  is_nullable: 0
39
40
=head2 budget_period_active
41
42
  data_type: 'tinyint'
43
  default_value: 0
44
  is_nullable: 1
45
46
=head2 budget_period_description
47
48
  data_type: 'mediumtext'
49
  is_nullable: 1
50
51
=head2 budget_period_total
52
53
  data_type: 'decimal'
54
  is_nullable: 1
55
  size: [28,6]
56
57
=head2 budget_period_locked
58
59
  data_type: 'tinyint'
60
  is_nullable: 1
61
62
=head2 sort1_authcat
63
64
  data_type: 'varchar'
65
  is_nullable: 1
66
  size: 10
67
68
=head2 sort2_authcat
69
70
  data_type: 'varchar'
71
  is_nullable: 1
72
  size: 10
73
74
=cut
75
76
__PACKAGE__->add_columns(
77
  "budget_period_id",
78
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
79
  "budget_period_startdate",
80
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
81
  "budget_period_enddate",
82
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
83
  "budget_period_active",
84
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
85
  "budget_period_description",
86
  { data_type => "mediumtext", is_nullable => 1 },
87
  "budget_period_total",
88
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
89
  "budget_period_locked",
90
  { data_type => "tinyint", is_nullable => 1 },
91
  "sort1_authcat",
92
  { data_type => "varchar", is_nullable => 1, size => 10 },
93
  "sort2_authcat",
94
  { data_type => "varchar", is_nullable => 1, size => 10 },
95
);
96
__PACKAGE__->set_primary_key("budget_period_id");
97
98
99
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+3NIJVFKifGOdVI/9gUPiQ
101
102
103
# You can replace this text with custom code or comments, and it will be preserved on regeneration
104
1;
(-)a/Koha/Schema/Result/AqbudgetsPlanning.pm (+106 lines)
Line 0 Link Here
1
package Koha::Schema::Result::AqbudgetsPlanning;
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::AqbudgetsPlanning
15
16
=cut
17
18
__PACKAGE__->table("aqbudgets_planning");
19
20
=head1 ACCESSORS
21
22
=head2 plan_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 budget_id
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 budget_period_id
35
36
  data_type: 'integer'
37
  is_nullable: 0
38
39
=head2 estimated_amount
40
41
  data_type: 'decimal'
42
  is_nullable: 1
43
  size: [28,6]
44
45
=head2 authcat
46
47
  data_type: 'varchar'
48
  is_nullable: 0
49
  size: 30
50
51
=head2 authvalue
52
53
  data_type: 'varchar'
54
  is_nullable: 0
55
  size: 30
56
57
=head2 display
58
59
  data_type: 'tinyint'
60
  default_value: 1
61
  is_nullable: 1
62
63
=cut
64
65
__PACKAGE__->add_columns(
66
  "plan_id",
67
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
68
  "budget_id",
69
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
70
  "budget_period_id",
71
  { data_type => "integer", is_nullable => 0 },
72
  "estimated_amount",
73
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
74
  "authcat",
75
  { data_type => "varchar", is_nullable => 0, size => 30 },
76
  "authvalue",
77
  { data_type => "varchar", is_nullable => 0, size => 30 },
78
  "display",
79
  { data_type => "tinyint", default_value => 1, is_nullable => 1 },
80
);
81
__PACKAGE__->set_primary_key("plan_id");
82
83
=head1 RELATIONS
84
85
=head2 budget
86
87
Type: belongs_to
88
89
Related object: L<Koha::Schema::Result::Aqbudget>
90
91
=cut
92
93
__PACKAGE__->belongs_to(
94
  "budget",
95
  "Koha::Schema::Result::Aqbudget",
96
  { budget_id => "budget_id" },
97
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
98
);
99
100
101
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+0x7H3DbVID4cri7yaWR4A
103
104
105
# You can replace this text with custom code or comments, and it will be preserved on regeneration
106
1;
(-)a/Koha/Schema/Result/Aqcontract.pm (+113 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Aqcontract;
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::Aqcontract
15
16
=cut
17
18
__PACKAGE__->table("aqcontract");
19
20
=head1 ACCESSORS
21
22
=head2 contractnumber
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 contractstartdate
29
30
  data_type: 'date'
31
  datetime_undef_if_invalid: 1
32
  is_nullable: 1
33
34
=head2 contractenddate
35
36
  data_type: 'date'
37
  datetime_undef_if_invalid: 1
38
  is_nullable: 1
39
40
=head2 contractname
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 50
45
46
=head2 contractdescription
47
48
  data_type: 'mediumtext'
49
  is_nullable: 1
50
51
=head2 booksellerid
52
53
  data_type: 'integer'
54
  is_foreign_key: 1
55
  is_nullable: 0
56
57
=cut
58
59
__PACKAGE__->add_columns(
60
  "contractnumber",
61
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62
  "contractstartdate",
63
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
64
  "contractenddate",
65
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
66
  "contractname",
67
  { data_type => "varchar", is_nullable => 1, size => 50 },
68
  "contractdescription",
69
  { data_type => "mediumtext", is_nullable => 1 },
70
  "booksellerid",
71
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
72
);
73
__PACKAGE__->set_primary_key("contractnumber");
74
75
=head1 RELATIONS
76
77
=head2 aqbaskets
78
79
Type: has_many
80
81
Related object: L<Koha::Schema::Result::Aqbasket>
82
83
=cut
84
85
__PACKAGE__->has_many(
86
  "aqbaskets",
87
  "Koha::Schema::Result::Aqbasket",
88
  { "foreign.contractnumber" => "self.contractnumber" },
89
  { cascade_copy => 0, cascade_delete => 0 },
90
);
91
92
=head2 booksellerid
93
94
Type: belongs_to
95
96
Related object: L<Koha::Schema::Result::Aqbookseller>
97
98
=cut
99
100
__PACKAGE__->belongs_to(
101
  "booksellerid",
102
  "Koha::Schema::Result::Aqbookseller",
103
  { id => "booksellerid" },
104
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
105
);
106
107
108
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DdH2isS1x7eZkfBOXIZX1Q
110
111
112
# You can replace this text with custom code or comments, and it will be preserved on regeneration
113
1;
(-)a/Koha/Schema/Result/Aqorder.pm (+352 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Aqorder;
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::Aqorder
15
16
=cut
17
18
__PACKAGE__->table("aqorders");
19
20
=head1 ACCESSORS
21
22
=head2 ordernumber
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 biblionumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 1
33
34
=head2 entrydate
35
36
  data_type: 'date'
37
  datetime_undef_if_invalid: 1
38
  is_nullable: 1
39
40
=head2 quantity
41
42
  data_type: 'smallint'
43
  is_nullable: 1
44
45
=head2 currency
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 3
50
51
=head2 listprice
52
53
  data_type: 'decimal'
54
  is_nullable: 1
55
  size: [28,6]
56
57
=head2 totalamount
58
59
  data_type: 'decimal'
60
  is_nullable: 1
61
  size: [28,6]
62
63
=head2 datereceived
64
65
  data_type: 'date'
66
  datetime_undef_if_invalid: 1
67
  is_nullable: 1
68
69
=head2 booksellerinvoicenumber
70
71
  data_type: 'mediumtext'
72
  is_nullable: 1
73
74
=head2 freight
75
76
  data_type: 'decimal'
77
  is_nullable: 1
78
  size: [28,6]
79
80
=head2 unitprice
81
82
  data_type: 'decimal'
83
  is_nullable: 1
84
  size: [28,6]
85
86
=head2 quantityreceived
87
88
  data_type: 'smallint'
89
  default_value: 0
90
  is_nullable: 0
91
92
=head2 cancelledby
93
94
  data_type: 'varchar'
95
  is_nullable: 1
96
  size: 10
97
98
=head2 datecancellationprinted
99
100
  data_type: 'date'
101
  datetime_undef_if_invalid: 1
102
  is_nullable: 1
103
104
=head2 notes
105
106
  data_type: 'mediumtext'
107
  is_nullable: 1
108
109
=head2 supplierreference
110
111
  data_type: 'mediumtext'
112
  is_nullable: 1
113
114
=head2 purchaseordernumber
115
116
  data_type: 'mediumtext'
117
  is_nullable: 1
118
119
=head2 subscription
120
121
  data_type: 'tinyint'
122
  is_nullable: 1
123
124
=head2 serialid
125
126
  data_type: 'varchar'
127
  is_nullable: 1
128
  size: 30
129
130
=head2 basketno
131
132
  data_type: 'integer'
133
  is_foreign_key: 1
134
  is_nullable: 1
135
136
=head2 biblioitemnumber
137
138
  data_type: 'integer'
139
  is_nullable: 1
140
141
=head2 timestamp
142
143
  data_type: 'timestamp'
144
  datetime_undef_if_invalid: 1
145
  default_value: current_timestamp
146
  is_nullable: 0
147
148
=head2 rrp
149
150
  data_type: 'decimal'
151
  is_nullable: 1
152
  size: [13,2]
153
154
=head2 ecost
155
156
  data_type: 'decimal'
157
  is_nullable: 1
158
  size: [13,2]
159
160
=head2 gst
161
162
  data_type: 'decimal'
163
  is_nullable: 1
164
  size: [13,2]
165
166
=head2 budget_id
167
168
  data_type: 'integer'
169
  is_nullable: 0
170
171
=head2 budgetgroup_id
172
173
  data_type: 'integer'
174
  is_nullable: 0
175
176
=head2 budgetdate
177
178
  data_type: 'date'
179
  datetime_undef_if_invalid: 1
180
  is_nullable: 1
181
182
=head2 sort1
183
184
  data_type: 'varchar'
185
  is_nullable: 1
186
  size: 80
187
188
=head2 sort2
189
190
  data_type: 'varchar'
191
  is_nullable: 1
192
  size: 80
193
194
=head2 sort1_authcat
195
196
  data_type: 'varchar'
197
  is_nullable: 1
198
  size: 10
199
200
=head2 sort2_authcat
201
202
  data_type: 'varchar'
203
  is_nullable: 1
204
  size: 10
205
206
=head2 uncertainprice
207
208
  data_type: 'tinyint'
209
  is_nullable: 1
210
211
=head2 claims_count
212
213
  data_type: 'integer'
214
  default_value: 0
215
  is_nullable: 1
216
217
=head2 claimed_date
218
219
  data_type: 'date'
220
  datetime_undef_if_invalid: 1
221
  is_nullable: 1
222
223
=cut
224
225
__PACKAGE__->add_columns(
226
  "ordernumber",
227
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
228
  "biblionumber",
229
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
230
  "entrydate",
231
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
232
  "quantity",
233
  { data_type => "smallint", is_nullable => 1 },
234
  "currency",
235
  { data_type => "varchar", is_nullable => 1, size => 3 },
236
  "listprice",
237
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
238
  "totalamount",
239
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
240
  "datereceived",
241
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
242
  "booksellerinvoicenumber",
243
  { data_type => "mediumtext", is_nullable => 1 },
244
  "freight",
245
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
246
  "unitprice",
247
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
248
  "quantityreceived",
249
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
250
  "cancelledby",
251
  { data_type => "varchar", is_nullable => 1, size => 10 },
252
  "datecancellationprinted",
253
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
254
  "notes",
255
  { data_type => "mediumtext", is_nullable => 1 },
256
  "supplierreference",
257
  { data_type => "mediumtext", is_nullable => 1 },
258
  "purchaseordernumber",
259
  { data_type => "mediumtext", is_nullable => 1 },
260
  "subscription",
261
  { data_type => "tinyint", is_nullable => 1 },
262
  "serialid",
263
  { data_type => "varchar", is_nullable => 1, size => 30 },
264
  "basketno",
265
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
266
  "biblioitemnumber",
267
  { data_type => "integer", is_nullable => 1 },
268
  "timestamp",
269
  {
270
    data_type => "timestamp",
271
    datetime_undef_if_invalid => 1,
272
    default_value => \"current_timestamp",
273
    is_nullable => 0,
274
  },
275
  "rrp",
276
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
277
  "ecost",
278
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
279
  "gst",
280
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
281
  "budget_id",
282
  { data_type => "integer", is_nullable => 0 },
283
  "budgetgroup_id",
284
  { data_type => "integer", is_nullable => 0 },
285
  "budgetdate",
286
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
287
  "sort1",
288
  { data_type => "varchar", is_nullable => 1, size => 80 },
289
  "sort2",
290
  { data_type => "varchar", is_nullable => 1, size => 80 },
291
  "sort1_authcat",
292
  { data_type => "varchar", is_nullable => 1, size => 10 },
293
  "sort2_authcat",
294
  { data_type => "varchar", is_nullable => 1, size => 10 },
295
  "uncertainprice",
296
  { data_type => "tinyint", is_nullable => 1 },
297
  "claims_count",
298
  { data_type => "integer", default_value => 0, is_nullable => 1 },
299
  "claimed_date",
300
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
301
);
302
__PACKAGE__->set_primary_key("ordernumber");
303
304
=head1 RELATIONS
305
306
=head2 basketno
307
308
Type: belongs_to
309
310
Related object: L<Koha::Schema::Result::Aqbasket>
311
312
=cut
313
314
__PACKAGE__->belongs_to(
315
  "basketno",
316
  "Koha::Schema::Result::Aqbasket",
317
  { basketno => "basketno" },
318
  {
319
    is_deferrable => 1,
320
    join_type     => "LEFT",
321
    on_delete     => "CASCADE",
322
    on_update     => "CASCADE",
323
  },
324
);
325
326
=head2 biblionumber
327
328
Type: belongs_to
329
330
Related object: L<Koha::Schema::Result::Biblio>
331
332
=cut
333
334
__PACKAGE__->belongs_to(
335
  "biblionumber",
336
  "Koha::Schema::Result::Biblio",
337
  { biblionumber => "biblionumber" },
338
  {
339
    is_deferrable => 1,
340
    join_type     => "LEFT",
341
    on_delete     => "CASCADE",
342
    on_update     => "CASCADE",
343
  },
344
);
345
346
347
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
348
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VIkztGNsWZMnzXv6cguVzg
349
350
351
# You can replace this text with custom code or comments, and it will be preserved on regeneration
352
1;
(-)a/Koha/Schema/Result/Aqorderdelivery.pm (+71 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Aqorderdelivery;
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::Aqorderdelivery
15
16
=cut
17
18
__PACKAGE__->table("aqorderdelivery");
19
20
=head1 ACCESSORS
21
22
=head2 ordernumber
23
24
  data_type: 'date'
25
  datetime_undef_if_invalid: 1
26
  is_nullable: 1
27
28
=head2 deliverynumber
29
30
  data_type: 'smallint'
31
  default_value: 0
32
  is_nullable: 0
33
34
=head2 deliverydate
35
36
  data_type: 'varchar'
37
  is_nullable: 1
38
  size: 18
39
40
=head2 qtydelivered
41
42
  data_type: 'smallint'
43
  is_nullable: 1
44
45
=head2 deliverycomments
46
47
  data_type: 'mediumtext'
48
  is_nullable: 1
49
50
=cut
51
52
__PACKAGE__->add_columns(
53
  "ordernumber",
54
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
55
  "deliverynumber",
56
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
57
  "deliverydate",
58
  { data_type => "varchar", is_nullable => 1, size => 18 },
59
  "qtydelivered",
60
  { data_type => "smallint", is_nullable => 1 },
61
  "deliverycomments",
62
  { data_type => "mediumtext", is_nullable => 1 },
63
);
64
65
66
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
67
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6c70+6opG1v7MmljmkbJ7A
68
69
70
# You can replace this text with custom code or comments, and it will be preserved on regeneration
71
1;
(-)a/Koha/Schema/Result/AqordersItem.pm (+62 lines)
Line 0 Link Here
1
package Koha::Schema::Result::AqordersItem;
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::AqordersItem
15
16
=cut
17
18
__PACKAGE__->table("aqorders_items");
19
20
=head1 ACCESSORS
21
22
=head2 ordernumber
23
24
  data_type: 'integer'
25
  is_nullable: 0
26
27
=head2 itemnumber
28
29
  data_type: 'integer'
30
  is_nullable: 0
31
32
=head2 timestamp
33
34
  data_type: 'timestamp'
35
  datetime_undef_if_invalid: 1
36
  default_value: current_timestamp
37
  is_nullable: 0
38
39
=cut
40
41
__PACKAGE__->add_columns(
42
  "ordernumber",
43
  { data_type => "integer", is_nullable => 0 },
44
  "itemnumber",
45
  { data_type => "integer", is_nullable => 0 },
46
  "timestamp",
47
  {
48
    data_type => "timestamp",
49
    datetime_undef_if_invalid => 1,
50
    default_value => \"current_timestamp",
51
    is_nullable => 0,
52
  },
53
);
54
__PACKAGE__->set_primary_key("itemnumber");
55
56
57
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
58
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EMr7QXyQjEOGkgy8xJLswA
59
60
61
# You can replace this text with custom code or comments, and it will be preserved on regeneration
62
1;
(-)a/Koha/Schema/Result/AuthHeader.pm (+109 lines)
Line 0 Link Here
1
package Koha::Schema::Result::AuthHeader;
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::AuthHeader
15
16
=cut
17
18
__PACKAGE__->table("auth_header");
19
20
=head1 ACCESSORS
21
22
=head2 authid
23
24
  data_type: 'bigint'
25
  extra: {unsigned => 1}
26
  is_auto_increment: 1
27
  is_nullable: 0
28
29
=head2 authtypecode
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 10
35
36
=head2 datecreated
37
38
  data_type: 'date'
39
  datetime_undef_if_invalid: 1
40
  is_nullable: 1
41
42
=head2 datemodified
43
44
  data_type: 'date'
45
  datetime_undef_if_invalid: 1
46
  is_nullable: 1
47
48
=head2 origincode
49
50
  data_type: 'varchar'
51
  is_nullable: 1
52
  size: 20
53
54
=head2 authtrees
55
56
  data_type: 'mediumtext'
57
  is_nullable: 1
58
59
=head2 marc
60
61
  data_type: 'blob'
62
  is_nullable: 1
63
64
=head2 linkid
65
66
  data_type: 'bigint'
67
  is_nullable: 1
68
69
=head2 marcxml
70
71
  data_type: 'longtext'
72
  is_nullable: 0
73
74
=cut
75
76
__PACKAGE__->add_columns(
77
  "authid",
78
  {
79
    data_type => "bigint",
80
    extra => { unsigned => 1 },
81
    is_auto_increment => 1,
82
    is_nullable => 0,
83
  },
84
  "authtypecode",
85
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
86
  "datecreated",
87
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
88
  "datemodified",
89
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
90
  "origincode",
91
  { data_type => "varchar", is_nullable => 1, size => 20 },
92
  "authtrees",
93
  { data_type => "mediumtext", is_nullable => 1 },
94
  "marc",
95
  { data_type => "blob", is_nullable => 1 },
96
  "linkid",
97
  { data_type => "bigint", is_nullable => 1 },
98
  "marcxml",
99
  { data_type => "longtext", is_nullable => 0 },
100
);
101
__PACKAGE__->set_primary_key("authid");
102
103
104
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
105
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VgQlVqcGUEZTdkf/1nv12w
106
107
108
# You can replace this text with custom code or comments, and it will be preserved on regeneration
109
1;
(-)a/Koha/Schema/Result/AuthSubfieldStructure.pm (+167 lines)
Line 0 Link Here
1
package Koha::Schema::Result::AuthSubfieldStructure;
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::AuthSubfieldStructure
15
16
=cut
17
18
__PACKAGE__->table("auth_subfield_structure");
19
20
=head1 ACCESSORS
21
22
=head2 authtypecode
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 tagfield
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 3
35
36
=head2 tagsubfield
37
38
  data_type: 'varchar'
39
  default_value: (empty string)
40
  is_nullable: 0
41
  size: 1
42
43
=head2 liblibrarian
44
45
  data_type: 'varchar'
46
  default_value: (empty string)
47
  is_nullable: 0
48
  size: 255
49
50
=head2 libopac
51
52
  data_type: 'varchar'
53
  default_value: (empty string)
54
  is_nullable: 0
55
  size: 255
56
57
=head2 repeatable
58
59
  data_type: 'tinyint'
60
  default_value: 0
61
  is_nullable: 0
62
63
=head2 mandatory
64
65
  data_type: 'tinyint'
66
  default_value: 0
67
  is_nullable: 0
68
69
=head2 tab
70
71
  data_type: 'tinyint'
72
  is_nullable: 1
73
74
=head2 authorised_value
75
76
  data_type: 'varchar'
77
  is_nullable: 1
78
  size: 10
79
80
=head2 value_builder
81
82
  data_type: 'varchar'
83
  is_nullable: 1
84
  size: 80
85
86
=head2 seealso
87
88
  data_type: 'varchar'
89
  is_nullable: 1
90
  size: 255
91
92
=head2 isurl
93
94
  data_type: 'tinyint'
95
  is_nullable: 1
96
97
=head2 hidden
98
99
  data_type: 'tinyint'
100
  default_value: 0
101
  is_nullable: 0
102
103
=head2 linkid
104
105
  data_type: 'tinyint'
106
  default_value: 0
107
  is_nullable: 0
108
109
=head2 kohafield
110
111
  data_type: 'varchar'
112
  default_value: (empty string)
113
  is_nullable: 1
114
  size: 45
115
116
=head2 frameworkcode
117
118
  data_type: 'varchar'
119
  default_value: (empty string)
120
  is_nullable: 0
121
  size: 10
122
123
=cut
124
125
__PACKAGE__->add_columns(
126
  "authtypecode",
127
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
128
  "tagfield",
129
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
130
  "tagsubfield",
131
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 },
132
  "liblibrarian",
133
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
134
  "libopac",
135
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
136
  "repeatable",
137
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
138
  "mandatory",
139
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
140
  "tab",
141
  { data_type => "tinyint", is_nullable => 1 },
142
  "authorised_value",
143
  { data_type => "varchar", is_nullable => 1, size => 10 },
144
  "value_builder",
145
  { data_type => "varchar", is_nullable => 1, size => 80 },
146
  "seealso",
147
  { data_type => "varchar", is_nullable => 1, size => 255 },
148
  "isurl",
149
  { data_type => "tinyint", is_nullable => 1 },
150
  "hidden",
151
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
152
  "linkid",
153
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
154
  "kohafield",
155
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 45 },
156
  "frameworkcode",
157
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
158
);
159
__PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield");
160
161
162
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sDl1g0h3lF/fImWyIZgMwA
164
165
166
# You can replace this text with custom code or comments, and it will be preserved on regeneration
167
1;
(-)a/Koha/Schema/Result/AuthTagStructure.pm (+118 lines)
Line 0 Link Here
1
package Koha::Schema::Result::AuthTagStructure;
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::AuthTagStructure
15
16
=cut
17
18
__PACKAGE__->table("auth_tag_structure");
19
20
=head1 ACCESSORS
21
22
=head2 authtypecode
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_foreign_key: 1
27
  is_nullable: 0
28
  size: 10
29
30
=head2 tagfield
31
32
  data_type: 'varchar'
33
  default_value: (empty string)
34
  is_nullable: 0
35
  size: 3
36
37
=head2 liblibrarian
38
39
  data_type: 'varchar'
40
  default_value: (empty string)
41
  is_nullable: 0
42
  size: 255
43
44
=head2 libopac
45
46
  data_type: 'varchar'
47
  default_value: (empty string)
48
  is_nullable: 0
49
  size: 255
50
51
=head2 repeatable
52
53
  data_type: 'tinyint'
54
  default_value: 0
55
  is_nullable: 0
56
57
=head2 mandatory
58
59
  data_type: 'tinyint'
60
  default_value: 0
61
  is_nullable: 0
62
63
=head2 authorised_value
64
65
  data_type: 'varchar'
66
  is_nullable: 1
67
  size: 10
68
69
=cut
70
71
__PACKAGE__->add_columns(
72
  "authtypecode",
73
  {
74
    data_type => "varchar",
75
    default_value => "",
76
    is_foreign_key => 1,
77
    is_nullable => 0,
78
    size => 10,
79
  },
80
  "tagfield",
81
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
82
  "liblibrarian",
83
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
84
  "libopac",
85
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
86
  "repeatable",
87
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
88
  "mandatory",
89
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
90
  "authorised_value",
91
  { data_type => "varchar", is_nullable => 1, size => 10 },
92
);
93
__PACKAGE__->set_primary_key("authtypecode", "tagfield");
94
95
=head1 RELATIONS
96
97
=head2 authtypecode
98
99
Type: belongs_to
100
101
Related object: L<Koha::Schema::Result::AuthType>
102
103
=cut
104
105
__PACKAGE__->belongs_to(
106
  "authtypecode",
107
  "Koha::Schema::Result::AuthType",
108
  { authtypecode => "authtypecode" },
109
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
110
);
111
112
113
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
114
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HFoSqnaYRoolLi10vfDPRA
115
116
117
# You can replace this text with custom code or comments, and it will be preserved on regeneration
118
1;
(-)a/Koha/Schema/Result/AuthType.pm (+85 lines)
Line 0 Link Here
1
package Koha::Schema::Result::AuthType;
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::AuthType
15
16
=cut
17
18
__PACKAGE__->table("auth_types");
19
20
=head1 ACCESSORS
21
22
=head2 authtypecode
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 authtypetext
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 255
35
36
=head2 auth_tag_to_report
37
38
  data_type: 'varchar'
39
  default_value: (empty string)
40
  is_nullable: 0
41
  size: 3
42
43
=head2 summary
44
45
  data_type: 'mediumtext'
46
  is_nullable: 0
47
48
=cut
49
50
__PACKAGE__->add_columns(
51
  "authtypecode",
52
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
53
  "authtypetext",
54
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
55
  "auth_tag_to_report",
56
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
57
  "summary",
58
  { data_type => "mediumtext", is_nullable => 0 },
59
);
60
__PACKAGE__->set_primary_key("authtypecode");
61
62
=head1 RELATIONS
63
64
=head2 auth_tag_structures
65
66
Type: has_many
67
68
Related object: L<Koha::Schema::Result::AuthTagStructure>
69
70
=cut
71
72
__PACKAGE__->has_many(
73
  "auth_tag_structures",
74
  "Koha::Schema::Result::AuthTagStructure",
75
  { "foreign.authtypecode" => "self.authtypecode" },
76
  { cascade_copy => 0, cascade_delete => 0 },
77
);
78
79
80
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
81
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PLv/PLL2X93fWR4Dp05vwg
82
83
84
# You can replace this text with custom code or comments, and it will be preserved on regeneration
85
1;
(-)a/Koha/Schema/Result/AuthorisedValue.pm (+84 lines)
Line 0 Link Here
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: 10
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: 80
47
48
=head2 lib_opac
49
50
  data_type: 'varchar'
51
  is_nullable: 1
52
  size: 80
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 => 10 },
67
  "authorised_value",
68
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 },
69
  "lib",
70
  { data_type => "varchar", is_nullable => 1, size => 80 },
71
  "lib_opac",
72
  { data_type => "varchar", is_nullable => 1, size => 80 },
73
  "imageurl",
74
  { data_type => "varchar", is_nullable => 1, size => 200 },
75
);
76
__PACKAGE__->set_primary_key("id");
77
78
79
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
80
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1r0p20RohYvb94ol1U+5RA
81
82
83
# You can replace this text with custom code or comments, and it will be preserved on regeneration
84
1;
(-)a/Koha/Schema/Result/Biblio.pm (+311 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Biblio;
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::Biblio
15
16
=cut
17
18
__PACKAGE__->table("biblio");
19
20
=head1 ACCESSORS
21
22
=head2 biblionumber
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 frameworkcode
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 4
34
35
=head2 author
36
37
  data_type: 'mediumtext'
38
  is_nullable: 1
39
40
=head2 title
41
42
  data_type: 'mediumtext'
43
  is_nullable: 1
44
45
=head2 unititle
46
47
  data_type: 'mediumtext'
48
  is_nullable: 1
49
50
=head2 notes
51
52
  data_type: 'mediumtext'
53
  is_nullable: 1
54
55
=head2 serial
56
57
  data_type: 'tinyint'
58
  is_nullable: 1
59
60
=head2 seriestitle
61
62
  data_type: 'mediumtext'
63
  is_nullable: 1
64
65
=head2 copyrightdate
66
67
  data_type: 'smallint'
68
  is_nullable: 1
69
70
=head2 timestamp
71
72
  data_type: 'timestamp'
73
  datetime_undef_if_invalid: 1
74
  default_value: current_timestamp
75
  is_nullable: 0
76
77
=head2 datecreated
78
79
  data_type: 'date'
80
  datetime_undef_if_invalid: 1
81
  is_nullable: 0
82
83
=head2 abstract
84
85
  data_type: 'mediumtext'
86
  is_nullable: 1
87
88
=cut
89
90
__PACKAGE__->add_columns(
91
  "biblionumber",
92
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
93
  "frameworkcode",
94
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
95
  "author",
96
  { data_type => "mediumtext", is_nullable => 1 },
97
  "title",
98
  { data_type => "mediumtext", is_nullable => 1 },
99
  "unititle",
100
  { data_type => "mediumtext", is_nullable => 1 },
101
  "notes",
102
  { data_type => "mediumtext", is_nullable => 1 },
103
  "serial",
104
  { data_type => "tinyint", is_nullable => 1 },
105
  "seriestitle",
106
  { data_type => "mediumtext", is_nullable => 1 },
107
  "copyrightdate",
108
  { data_type => "smallint", is_nullable => 1 },
109
  "timestamp",
110
  {
111
    data_type => "timestamp",
112
    datetime_undef_if_invalid => 1,
113
    default_value => \"current_timestamp",
114
    is_nullable => 0,
115
  },
116
  "datecreated",
117
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
118
  "abstract",
119
  { data_type => "mediumtext", is_nullable => 1 },
120
);
121
__PACKAGE__->set_primary_key("biblionumber");
122
123
=head1 RELATIONS
124
125
=head2 aqorders
126
127
Type: has_many
128
129
Related object: L<Koha::Schema::Result::Aqorder>
130
131
=cut
132
133
__PACKAGE__->has_many(
134
  "aqorders",
135
  "Koha::Schema::Result::Aqorder",
136
  { "foreign.biblionumber" => "self.biblionumber" },
137
  { cascade_copy => 0, cascade_delete => 0 },
138
);
139
140
=head2 biblioimages
141
142
Type: has_many
143
144
Related object: L<Koha::Schema::Result::Biblioimage>
145
146
=cut
147
148
__PACKAGE__->has_many(
149
  "biblioimages",
150
  "Koha::Schema::Result::Biblioimage",
151
  { "foreign.biblionumber" => "self.biblionumber" },
152
  { cascade_copy => 0, cascade_delete => 0 },
153
);
154
155
=head2 biblioitems
156
157
Type: has_many
158
159
Related object: L<Koha::Schema::Result::Biblioitem>
160
161
=cut
162
163
__PACKAGE__->has_many(
164
  "biblioitems",
165
  "Koha::Schema::Result::Biblioitem",
166
  { "foreign.biblionumber" => "self.biblionumber" },
167
  { cascade_copy => 0, cascade_delete => 0 },
168
);
169
170
=head2 hold_fill_targets
171
172
Type: has_many
173
174
Related object: L<Koha::Schema::Result::HoldFillTarget>
175
176
=cut
177
178
__PACKAGE__->has_many(
179
  "hold_fill_targets",
180
  "Koha::Schema::Result::HoldFillTarget",
181
  { "foreign.biblionumber" => "self.biblionumber" },
182
  { cascade_copy => 0, cascade_delete => 0 },
183
);
184
185
=head2 oai_sets_biblios
186
187
Type: has_many
188
189
Related object: L<Koha::Schema::Result::OaiSetsBiblio>
190
191
=cut
192
193
__PACKAGE__->has_many(
194
  "oai_sets_biblios",
195
  "Koha::Schema::Result::OaiSetsBiblio",
196
  { "foreign.biblionumber" => "self.biblionumber" },
197
  { cascade_copy => 0, cascade_delete => 0 },
198
);
199
200
=head2 old_reserves
201
202
Type: has_many
203
204
Related object: L<Koha::Schema::Result::OldReserve>
205
206
=cut
207
208
__PACKAGE__->has_many(
209
  "old_reserves",
210
  "Koha::Schema::Result::OldReserve",
211
  { "foreign.biblionumber" => "self.biblionumber" },
212
  { cascade_copy => 0, cascade_delete => 0 },
213
);
214
215
=head2 ratings
216
217
Type: has_many
218
219
Related object: L<Koha::Schema::Result::Rating>
220
221
=cut
222
223
__PACKAGE__->has_many(
224
  "ratings",
225
  "Koha::Schema::Result::Rating",
226
  { "foreign.biblionumber" => "self.biblionumber" },
227
  { cascade_copy => 0, cascade_delete => 0 },
228
);
229
230
=head2 reserves
231
232
Type: has_many
233
234
Related object: L<Koha::Schema::Result::Reserve>
235
236
=cut
237
238
__PACKAGE__->has_many(
239
  "reserves",
240
  "Koha::Schema::Result::Reserve",
241
  { "foreign.biblionumber" => "self.biblionumber" },
242
  { cascade_copy => 0, cascade_delete => 0 },
243
);
244
245
=head2 reviews
246
247
Type: has_many
248
249
Related object: L<Koha::Schema::Result::Review>
250
251
=cut
252
253
__PACKAGE__->has_many(
254
  "reviews",
255
  "Koha::Schema::Result::Review",
256
  { "foreign.biblionumber" => "self.biblionumber" },
257
  { cascade_copy => 0, cascade_delete => 0 },
258
);
259
260
=head2 tags_all
261
262
Type: has_many
263
264
Related object: L<Koha::Schema::Result::TagAll>
265
266
=cut
267
268
__PACKAGE__->has_many(
269
  "tags_all",
270
  "Koha::Schema::Result::TagAll",
271
  { "foreign.biblionumber" => "self.biblionumber" },
272
  { cascade_copy => 0, cascade_delete => 0 },
273
);
274
275
=head2 tags_indexes
276
277
Type: has_many
278
279
Related object: L<Koha::Schema::Result::TagsIndex>
280
281
=cut
282
283
__PACKAGE__->has_many(
284
  "tags_indexes",
285
  "Koha::Schema::Result::TagsIndex",
286
  { "foreign.biblionumber" => "self.biblionumber" },
287
  { cascade_copy => 0, cascade_delete => 0 },
288
);
289
290
=head2 virtualshelfcontents
291
292
Type: has_many
293
294
Related object: L<Koha::Schema::Result::Virtualshelfcontent>
295
296
=cut
297
298
__PACKAGE__->has_many(
299
  "virtualshelfcontents",
300
  "Koha::Schema::Result::Virtualshelfcontent",
301
  { "foreign.biblionumber" => "self.biblionumber" },
302
  { cascade_copy => 0, cascade_delete => 0 },
303
);
304
305
306
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
307
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8mwoJB6JN06OVaGLT6kxMg
308
309
310
# You can replace this text with custom code or comments, and it will be preserved on regeneration
311
1;
(-)a/Koha/Schema/Result/BiblioFramework.pm (+52 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BiblioFramework;
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::BiblioFramework
15
16
=cut
17
18
__PACKAGE__->table("biblio_framework");
19
20
=head1 ACCESSORS
21
22
=head2 frameworkcode
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 4
28
29
=head2 frameworktext
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 255
35
36
=cut
37
38
__PACKAGE__->add_columns(
39
  "frameworkcode",
40
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
41
  "frameworktext",
42
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
43
);
44
__PACKAGE__->set_primary_key("frameworkcode");
45
46
47
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
48
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qSpQMijGkVr0bIcMgsMPoA
49
50
51
# You can replace this text with custom code or comments, and it will be preserved on regeneration
52
1;
(-)a/Koha/Schema/Result/Biblioimage.pm (+89 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Biblioimage;
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::Biblioimage
15
16
=cut
17
18
__PACKAGE__->table("biblioimages");
19
20
=head1 ACCESSORS
21
22
=head2 imagenumber
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 biblionumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 mimetype
35
36
  data_type: 'varchar'
37
  is_nullable: 0
38
  size: 15
39
40
=head2 imagefile
41
42
  data_type: 'mediumblob'
43
  is_nullable: 0
44
45
=head2 thumbnail
46
47
  data_type: 'mediumblob'
48
  is_nullable: 0
49
50
=cut
51
52
__PACKAGE__->add_columns(
53
  "imagenumber",
54
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
55
  "biblionumber",
56
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
57
  "mimetype",
58
  { data_type => "varchar", is_nullable => 0, size => 15 },
59
  "imagefile",
60
  { data_type => "mediumblob", is_nullable => 0 },
61
  "thumbnail",
62
  { data_type => "mediumblob", is_nullable => 0 },
63
);
64
__PACKAGE__->set_primary_key("imagenumber");
65
66
=head1 RELATIONS
67
68
=head2 biblionumber
69
70
Type: belongs_to
71
72
Related object: L<Koha::Schema::Result::Biblio>
73
74
=cut
75
76
__PACKAGE__->belongs_to(
77
  "biblionumber",
78
  "Koha::Schema::Result::Biblio",
79
  { biblionumber => "biblionumber" },
80
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
81
);
82
83
84
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JH4YKHk+PVlqPv2YJ5zgMg
86
87
88
# You can replace this text with custom code or comments, and it will be preserved on regeneration
89
1;
(-)a/Koha/Schema/Result/Biblioitem.pm (+329 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Biblioitem;
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::Biblioitem
15
16
=cut
17
18
__PACKAGE__->table("biblioitems");
19
20
=head1 ACCESSORS
21
22
=head2 biblioitemnumber
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 biblionumber
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_foreign_key: 1
33
  is_nullable: 0
34
35
=head2 volume
36
37
  data_type: 'mediumtext'
38
  is_nullable: 1
39
40
=head2 number
41
42
  data_type: 'mediumtext'
43
  is_nullable: 1
44
45
=head2 itemtype
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 10
50
51
=head2 isbn
52
53
  data_type: 'varchar'
54
  is_nullable: 1
55
  size: 30
56
57
=head2 issn
58
59
  data_type: 'varchar'
60
  is_nullable: 1
61
  size: 9
62
63
=head2 ean
64
65
  data_type: 'varchar'
66
  is_nullable: 1
67
  size: 13
68
69
=head2 publicationyear
70
71
  data_type: 'text'
72
  is_nullable: 1
73
74
=head2 publishercode
75
76
  data_type: 'varchar'
77
  is_nullable: 1
78
  size: 255
79
80
=head2 volumedate
81
82
  data_type: 'date'
83
  datetime_undef_if_invalid: 1
84
  is_nullable: 1
85
86
=head2 volumedesc
87
88
  data_type: 'text'
89
  is_nullable: 1
90
91
=head2 collectiontitle
92
93
  data_type: 'mediumtext'
94
  is_nullable: 1
95
96
=head2 collectionissn
97
98
  data_type: 'text'
99
  is_nullable: 1
100
101
=head2 collectionvolume
102
103
  data_type: 'mediumtext'
104
  is_nullable: 1
105
106
=head2 editionstatement
107
108
  data_type: 'text'
109
  is_nullable: 1
110
111
=head2 editionresponsibility
112
113
  data_type: 'text'
114
  is_nullable: 1
115
116
=head2 timestamp
117
118
  data_type: 'timestamp'
119
  datetime_undef_if_invalid: 1
120
  default_value: current_timestamp
121
  is_nullable: 0
122
123
=head2 illus
124
125
  data_type: 'varchar'
126
  is_nullable: 1
127
  size: 255
128
129
=head2 pages
130
131
  data_type: 'varchar'
132
  is_nullable: 1
133
  size: 255
134
135
=head2 notes
136
137
  data_type: 'mediumtext'
138
  is_nullable: 1
139
140
=head2 size
141
142
  data_type: 'varchar'
143
  is_nullable: 1
144
  size: 255
145
146
=head2 place
147
148
  data_type: 'varchar'
149
  is_nullable: 1
150
  size: 255
151
152
=head2 lccn
153
154
  data_type: 'varchar'
155
  is_nullable: 1
156
  size: 25
157
158
=head2 marc
159
160
  data_type: 'longblob'
161
  is_nullable: 1
162
163
=head2 url
164
165
  data_type: 'varchar'
166
  is_nullable: 1
167
  size: 255
168
169
=head2 cn_source
170
171
  data_type: 'varchar'
172
  is_nullable: 1
173
  size: 10
174
175
=head2 cn_class
176
177
  data_type: 'varchar'
178
  is_nullable: 1
179
  size: 30
180
181
=head2 cn_item
182
183
  data_type: 'varchar'
184
  is_nullable: 1
185
  size: 10
186
187
=head2 cn_suffix
188
189
  data_type: 'varchar'
190
  is_nullable: 1
191
  size: 10
192
193
=head2 cn_sort
194
195
  data_type: 'varchar'
196
  is_nullable: 1
197
  size: 30
198
199
=head2 totalissues
200
201
  data_type: 'integer'
202
  is_nullable: 1
203
204
=head2 marcxml
205
206
  data_type: 'longtext'
207
  is_nullable: 0
208
209
=cut
210
211
__PACKAGE__->add_columns(
212
  "biblioitemnumber",
213
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
214
  "biblionumber",
215
  {
216
    data_type      => "integer",
217
    default_value  => 0,
218
    is_foreign_key => 1,
219
    is_nullable    => 0,
220
  },
221
  "volume",
222
  { data_type => "mediumtext", is_nullable => 1 },
223
  "number",
224
  { data_type => "mediumtext", is_nullable => 1 },
225
  "itemtype",
226
  { data_type => "varchar", is_nullable => 1, size => 10 },
227
  "isbn",
228
  { data_type => "varchar", is_nullable => 1, size => 30 },
229
  "issn",
230
  { data_type => "varchar", is_nullable => 1, size => 9 },
231
  "ean",
232
  { data_type => "varchar", is_nullable => 1, size => 13 },
233
  "publicationyear",
234
  { data_type => "text", is_nullable => 1 },
235
  "publishercode",
236
  { data_type => "varchar", is_nullable => 1, size => 255 },
237
  "volumedate",
238
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
239
  "volumedesc",
240
  { data_type => "text", is_nullable => 1 },
241
  "collectiontitle",
242
  { data_type => "mediumtext", is_nullable => 1 },
243
  "collectionissn",
244
  { data_type => "text", is_nullable => 1 },
245
  "collectionvolume",
246
  { data_type => "mediumtext", is_nullable => 1 },
247
  "editionstatement",
248
  { data_type => "text", is_nullable => 1 },
249
  "editionresponsibility",
250
  { data_type => "text", is_nullable => 1 },
251
  "timestamp",
252
  {
253
    data_type => "timestamp",
254
    datetime_undef_if_invalid => 1,
255
    default_value => \"current_timestamp",
256
    is_nullable => 0,
257
  },
258
  "illus",
259
  { data_type => "varchar", is_nullable => 1, size => 255 },
260
  "pages",
261
  { data_type => "varchar", is_nullable => 1, size => 255 },
262
  "notes",
263
  { data_type => "mediumtext", is_nullable => 1 },
264
  "size",
265
  { data_type => "varchar", is_nullable => 1, size => 255 },
266
  "place",
267
  { data_type => "varchar", is_nullable => 1, size => 255 },
268
  "lccn",
269
  { data_type => "varchar", is_nullable => 1, size => 25 },
270
  "marc",
271
  { data_type => "longblob", is_nullable => 1 },
272
  "url",
273
  { data_type => "varchar", is_nullable => 1, size => 255 },
274
  "cn_source",
275
  { data_type => "varchar", is_nullable => 1, size => 10 },
276
  "cn_class",
277
  { data_type => "varchar", is_nullable => 1, size => 30 },
278
  "cn_item",
279
  { data_type => "varchar", is_nullable => 1, size => 10 },
280
  "cn_suffix",
281
  { data_type => "varchar", is_nullable => 1, size => 10 },
282
  "cn_sort",
283
  { data_type => "varchar", is_nullable => 1, size => 30 },
284
  "totalissues",
285
  { data_type => "integer", is_nullable => 1 },
286
  "marcxml",
287
  { data_type => "longtext", is_nullable => 0 },
288
);
289
__PACKAGE__->set_primary_key("biblioitemnumber");
290
291
=head1 RELATIONS
292
293
=head2 biblionumber
294
295
Type: belongs_to
296
297
Related object: L<Koha::Schema::Result::Biblio>
298
299
=cut
300
301
__PACKAGE__->belongs_to(
302
  "biblionumber",
303
  "Koha::Schema::Result::Biblio",
304
  { biblionumber => "biblionumber" },
305
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
306
);
307
308
=head2 items
309
310
Type: has_many
311
312
Related object: L<Koha::Schema::Result::Item>
313
314
=cut
315
316
__PACKAGE__->has_many(
317
  "items",
318
  "Koha::Schema::Result::Item",
319
  { "foreign.biblioitemnumber" => "self.biblioitemnumber" },
320
  { cascade_copy => 0, cascade_delete => 0 },
321
);
322
323
324
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
325
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2gSb+rNYpaSUJBAOMA2Kmw
326
327
328
# You can replace this text with custom code or comments, and it will be preserved on regeneration
329
1;
(-)a/Koha/Schema/Result/Borrower.pm (+917 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Borrower;
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::Borrower
15
16
=cut
17
18
__PACKAGE__->table("borrowers");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 cardnumber
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 16
33
34
=head2 surname
35
36
  data_type: 'mediumtext'
37
  is_nullable: 0
38
39
=head2 firstname
40
41
  data_type: 'text'
42
  is_nullable: 1
43
44
=head2 title
45
46
  data_type: 'mediumtext'
47
  is_nullable: 1
48
49
=head2 othernames
50
51
  data_type: 'mediumtext'
52
  is_nullable: 1
53
54
=head2 initials
55
56
  data_type: 'text'
57
  is_nullable: 1
58
59
=head2 streetnumber
60
61
  data_type: 'varchar'
62
  is_nullable: 1
63
  size: 10
64
65
=head2 streettype
66
67
  data_type: 'varchar'
68
  is_nullable: 1
69
  size: 50
70
71
=head2 address
72
73
  data_type: 'mediumtext'
74
  is_nullable: 0
75
76
=head2 address2
77
78
  data_type: 'text'
79
  is_nullable: 1
80
81
=head2 city
82
83
  data_type: 'mediumtext'
84
  is_nullable: 0
85
86
=head2 state
87
88
  data_type: 'text'
89
  is_nullable: 1
90
91
=head2 zipcode
92
93
  data_type: 'varchar'
94
  is_nullable: 1
95
  size: 25
96
97
=head2 country
98
99
  data_type: 'text'
100
  is_nullable: 1
101
102
=head2 email
103
104
  data_type: 'mediumtext'
105
  is_nullable: 1
106
107
=head2 phone
108
109
  data_type: 'text'
110
  is_nullable: 1
111
112
=head2 mobile
113
114
  data_type: 'varchar'
115
  is_nullable: 1
116
  size: 50
117
118
=head2 fax
119
120
  data_type: 'mediumtext'
121
  is_nullable: 1
122
123
=head2 emailpro
124
125
  data_type: 'text'
126
  is_nullable: 1
127
128
=head2 phonepro
129
130
  data_type: 'text'
131
  is_nullable: 1
132
133
=head2 b_streetnumber
134
135
  data_type: 'varchar'
136
  is_nullable: 1
137
  size: 10
138
139
=head2 b_streettype
140
141
  data_type: 'varchar'
142
  is_nullable: 1
143
  size: 50
144
145
=head2 b_address
146
147
  data_type: 'varchar'
148
  is_nullable: 1
149
  size: 100
150
151
=head2 b_address2
152
153
  data_type: 'text'
154
  is_nullable: 1
155
156
=head2 b_city
157
158
  data_type: 'mediumtext'
159
  is_nullable: 1
160
161
=head2 b_state
162
163
  data_type: 'text'
164
  is_nullable: 1
165
166
=head2 b_zipcode
167
168
  data_type: 'varchar'
169
  is_nullable: 1
170
  size: 25
171
172
=head2 b_country
173
174
  data_type: 'text'
175
  is_nullable: 1
176
177
=head2 b_email
178
179
  data_type: 'text'
180
  is_nullable: 1
181
182
=head2 b_phone
183
184
  data_type: 'mediumtext'
185
  is_nullable: 1
186
187
=head2 dateofbirth
188
189
  data_type: 'date'
190
  datetime_undef_if_invalid: 1
191
  is_nullable: 1
192
193
=head2 branchcode
194
195
  data_type: 'varchar'
196
  default_value: (empty string)
197
  is_foreign_key: 1
198
  is_nullable: 0
199
  size: 10
200
201
=head2 categorycode
202
203
  data_type: 'varchar'
204
  default_value: (empty string)
205
  is_foreign_key: 1
206
  is_nullable: 0
207
  size: 10
208
209
=head2 dateenrolled
210
211
  data_type: 'date'
212
  datetime_undef_if_invalid: 1
213
  is_nullable: 1
214
215
=head2 dateexpiry
216
217
  data_type: 'date'
218
  datetime_undef_if_invalid: 1
219
  is_nullable: 1
220
221
=head2 gonenoaddress
222
223
  data_type: 'tinyint'
224
  is_nullable: 1
225
226
=head2 lost
227
228
  data_type: 'tinyint'
229
  is_nullable: 1
230
231
=head2 debarred
232
233
  data_type: 'date'
234
  datetime_undef_if_invalid: 1
235
  is_nullable: 1
236
237
=head2 debarredcomment
238
239
  data_type: 'varchar'
240
  is_nullable: 1
241
  size: 255
242
243
=head2 contactname
244
245
  data_type: 'mediumtext'
246
  is_nullable: 1
247
248
=head2 contactfirstname
249
250
  data_type: 'text'
251
  is_nullable: 1
252
253
=head2 contacttitle
254
255
  data_type: 'text'
256
  is_nullable: 1
257
258
=head2 guarantorid
259
260
  data_type: 'integer'
261
  is_nullable: 1
262
263
=head2 borrowernotes
264
265
  data_type: 'mediumtext'
266
  is_nullable: 1
267
268
=head2 relationship
269
270
  data_type: 'varchar'
271
  is_nullable: 1
272
  size: 100
273
274
=head2 ethnicity
275
276
  data_type: 'varchar'
277
  is_nullable: 1
278
  size: 50
279
280
=head2 ethnotes
281
282
  data_type: 'varchar'
283
  is_nullable: 1
284
  size: 255
285
286
=head2 sex
287
288
  data_type: 'varchar'
289
  is_nullable: 1
290
  size: 1
291
292
=head2 password
293
294
  data_type: 'varchar'
295
  is_nullable: 1
296
  size: 30
297
298
=head2 flags
299
300
  data_type: 'integer'
301
  is_nullable: 1
302
303
=head2 userid
304
305
  data_type: 'varchar'
306
  is_nullable: 1
307
  size: 75
308
309
=head2 opacnote
310
311
  data_type: 'mediumtext'
312
  is_nullable: 1
313
314
=head2 contactnote
315
316
  data_type: 'varchar'
317
  is_nullable: 1
318
  size: 255
319
320
=head2 sort1
321
322
  data_type: 'varchar'
323
  is_nullable: 1
324
  size: 80
325
326
=head2 sort2
327
328
  data_type: 'varchar'
329
  is_nullable: 1
330
  size: 80
331
332
=head2 altcontactfirstname
333
334
  data_type: 'varchar'
335
  is_nullable: 1
336
  size: 255
337
338
=head2 altcontactsurname
339
340
  data_type: 'varchar'
341
  is_nullable: 1
342
  size: 255
343
344
=head2 altcontactaddress1
345
346
  data_type: 'varchar'
347
  is_nullable: 1
348
  size: 255
349
350
=head2 altcontactaddress2
351
352
  data_type: 'varchar'
353
  is_nullable: 1
354
  size: 255
355
356
=head2 altcontactaddress3
357
358
  data_type: 'varchar'
359
  is_nullable: 1
360
  size: 255
361
362
=head2 altcontactstate
363
364
  data_type: 'text'
365
  is_nullable: 1
366
367
=head2 altcontactzipcode
368
369
  data_type: 'varchar'
370
  is_nullable: 1
371
  size: 50
372
373
=head2 altcontactcountry
374
375
  data_type: 'text'
376
  is_nullable: 1
377
378
=head2 altcontactphone
379
380
  data_type: 'varchar'
381
  is_nullable: 1
382
  size: 50
383
384
=head2 smsalertnumber
385
386
  data_type: 'varchar'
387
  is_nullable: 1
388
  size: 50
389
390
=head2 privacy
391
392
  data_type: 'integer'
393
  default_value: 1
394
  is_nullable: 0
395
396
=cut
397
398
__PACKAGE__->add_columns(
399
  "borrowernumber",
400
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
401
  "cardnumber",
402
  { data_type => "varchar", is_nullable => 0, size => 16 },
403
  "surname",
404
  { data_type => "mediumtext", is_nullable => 0 },
405
  "firstname",
406
  { data_type => "text", is_nullable => 1 },
407
  "title",
408
  { data_type => "mediumtext", is_nullable => 1 },
409
  "othernames",
410
  { data_type => "mediumtext", is_nullable => 1 },
411
  "initials",
412
  { data_type => "text", is_nullable => 1 },
413
  "streetnumber",
414
  { data_type => "varchar", is_nullable => 1, size => 10 },
415
  "streettype",
416
  { data_type => "varchar", is_nullable => 1, size => 50 },
417
  "address",
418
  { data_type => "mediumtext", is_nullable => 0 },
419
  "address2",
420
  { data_type => "text", is_nullable => 1 },
421
  "city",
422
  { data_type => "mediumtext", is_nullable => 0 },
423
  "state",
424
  { data_type => "text", is_nullable => 1 },
425
  "zipcode",
426
  { data_type => "varchar", is_nullable => 1, size => 25 },
427
  "country",
428
  { data_type => "text", is_nullable => 1 },
429
  "email",
430
  { data_type => "mediumtext", is_nullable => 1 },
431
  "phone",
432
  { data_type => "text", is_nullable => 1 },
433
  "mobile",
434
  { data_type => "varchar", is_nullable => 1, size => 50 },
435
  "fax",
436
  { data_type => "mediumtext", is_nullable => 1 },
437
  "emailpro",
438
  { data_type => "text", is_nullable => 1 },
439
  "phonepro",
440
  { data_type => "text", is_nullable => 1 },
441
  "b_streetnumber",
442
  { data_type => "varchar", is_nullable => 1, size => 10 },
443
  "b_streettype",
444
  { data_type => "varchar", is_nullable => 1, size => 50 },
445
  "b_address",
446
  { data_type => "varchar", is_nullable => 1, size => 100 },
447
  "b_address2",
448
  { data_type => "text", is_nullable => 1 },
449
  "b_city",
450
  { data_type => "mediumtext", is_nullable => 1 },
451
  "b_state",
452
  { data_type => "text", is_nullable => 1 },
453
  "b_zipcode",
454
  { data_type => "varchar", is_nullable => 1, size => 25 },
455
  "b_country",
456
  { data_type => "text", is_nullable => 1 },
457
  "b_email",
458
  { data_type => "text", is_nullable => 1 },
459
  "b_phone",
460
  { data_type => "mediumtext", is_nullable => 1 },
461
  "dateofbirth",
462
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
463
  "branchcode",
464
  {
465
    data_type => "varchar",
466
    default_value => "",
467
    is_foreign_key => 1,
468
    is_nullable => 0,
469
    size => 10,
470
  },
471
  "categorycode",
472
  {
473
    data_type => "varchar",
474
    default_value => "",
475
    is_foreign_key => 1,
476
    is_nullable => 0,
477
    size => 10,
478
  },
479
  "dateenrolled",
480
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
481
  "dateexpiry",
482
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
483
  "gonenoaddress",
484
  { data_type => "tinyint", is_nullable => 1 },
485
  "lost",
486
  { data_type => "tinyint", is_nullable => 1 },
487
  "debarred",
488
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
489
  "debarredcomment",
490
  { data_type => "varchar", is_nullable => 1, size => 255 },
491
  "contactname",
492
  { data_type => "mediumtext", is_nullable => 1 },
493
  "contactfirstname",
494
  { data_type => "text", is_nullable => 1 },
495
  "contacttitle",
496
  { data_type => "text", is_nullable => 1 },
497
  "guarantorid",
498
  { data_type => "integer", is_nullable => 1 },
499
  "borrowernotes",
500
  { data_type => "mediumtext", is_nullable => 1 },
501
  "relationship",
502
  { data_type => "varchar", is_nullable => 1, size => 100 },
503
  "ethnicity",
504
  { data_type => "varchar", is_nullable => 1, size => 50 },
505
  "ethnotes",
506
  { data_type => "varchar", is_nullable => 1, size => 255 },
507
  "sex",
508
  { data_type => "varchar", is_nullable => 1, size => 1 },
509
  "password",
510
  { data_type => "varchar", is_nullable => 1, size => 30 },
511
  "flags",
512
  { data_type => "integer", is_nullable => 1 },
513
  "userid",
514
  { data_type => "varchar", is_nullable => 1, size => 75 },
515
  "opacnote",
516
  { data_type => "mediumtext", is_nullable => 1 },
517
  "contactnote",
518
  { data_type => "varchar", is_nullable => 1, size => 255 },
519
  "sort1",
520
  { data_type => "varchar", is_nullable => 1, size => 80 },
521
  "sort2",
522
  { data_type => "varchar", is_nullable => 1, size => 80 },
523
  "altcontactfirstname",
524
  { data_type => "varchar", is_nullable => 1, size => 255 },
525
  "altcontactsurname",
526
  { data_type => "varchar", is_nullable => 1, size => 255 },
527
  "altcontactaddress1",
528
  { data_type => "varchar", is_nullable => 1, size => 255 },
529
  "altcontactaddress2",
530
  { data_type => "varchar", is_nullable => 1, size => 255 },
531
  "altcontactaddress3",
532
  { data_type => "varchar", is_nullable => 1, size => 255 },
533
  "altcontactstate",
534
  { data_type => "text", is_nullable => 1 },
535
  "altcontactzipcode",
536
  { data_type => "varchar", is_nullable => 1, size => 50 },
537
  "altcontactcountry",
538
  { data_type => "text", is_nullable => 1 },
539
  "altcontactphone",
540
  { data_type => "varchar", is_nullable => 1, size => 50 },
541
  "smsalertnumber",
542
  { data_type => "varchar", is_nullable => 1, size => 50 },
543
  "privacy",
544
  { data_type => "integer", default_value => 1, is_nullable => 0 },
545
);
546
__PACKAGE__->set_primary_key("borrowernumber");
547
__PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]);
548
549
=head1 RELATIONS
550
551
=head2 accountlines
552
553
Type: has_many
554
555
Related object: L<Koha::Schema::Result::Accountline>
556
557
=cut
558
559
__PACKAGE__->has_many(
560
  "accountlines",
561
  "Koha::Schema::Result::Accountline",
562
  { "foreign.borrowernumber" => "self.borrowernumber" },
563
  { cascade_copy => 0, cascade_delete => 0 },
564
);
565
566
=head2 accountoffsets
567
568
Type: has_many
569
570
Related object: L<Koha::Schema::Result::Accountoffset>
571
572
=cut
573
574
__PACKAGE__->has_many(
575
  "accountoffsets",
576
  "Koha::Schema::Result::Accountoffset",
577
  { "foreign.borrowernumber" => "self.borrowernumber" },
578
  { cascade_copy => 0, cascade_delete => 0 },
579
);
580
581
=head2 borrower_attributes
582
583
Type: has_many
584
585
Related object: L<Koha::Schema::Result::BorrowerAttribute>
586
587
=cut
588
589
__PACKAGE__->has_many(
590
  "borrower_attributes",
591
  "Koha::Schema::Result::BorrowerAttribute",
592
  { "foreign.borrowernumber" => "self.borrowernumber" },
593
  { cascade_copy => 0, cascade_delete => 0 },
594
);
595
596
=head2 borrower_message_preferences
597
598
Type: has_many
599
600
Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
601
602
=cut
603
604
__PACKAGE__->has_many(
605
  "borrower_message_preferences",
606
  "Koha::Schema::Result::BorrowerMessagePreference",
607
  { "foreign.borrowernumber" => "self.borrowernumber" },
608
  { cascade_copy => 0, cascade_delete => 0 },
609
);
610
611
=head2 categorycode
612
613
Type: belongs_to
614
615
Related object: L<Koha::Schema::Result::Category>
616
617
=cut
618
619
__PACKAGE__->belongs_to(
620
  "categorycode",
621
  "Koha::Schema::Result::Category",
622
  { categorycode => "categorycode" },
623
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
624
);
625
626
=head2 branchcode
627
628
Type: belongs_to
629
630
Related object: L<Koha::Schema::Result::Branch>
631
632
=cut
633
634
__PACKAGE__->belongs_to(
635
  "branchcode",
636
  "Koha::Schema::Result::Branch",
637
  { branchcode => "branchcode" },
638
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
639
);
640
641
=head2 creator_batches
642
643
Type: has_many
644
645
Related object: L<Koha::Schema::Result::CreatorBatch>
646
647
=cut
648
649
__PACKAGE__->has_many(
650
  "creator_batches",
651
  "Koha::Schema::Result::CreatorBatch",
652
  { "foreign.borrower_number" => "self.borrowernumber" },
653
  { cascade_copy => 0, cascade_delete => 0 },
654
);
655
656
=head2 hold_fill_targets
657
658
Type: has_many
659
660
Related object: L<Koha::Schema::Result::HoldFillTarget>
661
662
=cut
663
664
__PACKAGE__->has_many(
665
  "hold_fill_targets",
666
  "Koha::Schema::Result::HoldFillTarget",
667
  { "foreign.borrowernumber" => "self.borrowernumber" },
668
  { cascade_copy => 0, cascade_delete => 0 },
669
);
670
671
=head2 issues
672
673
Type: has_many
674
675
Related object: L<Koha::Schema::Result::Issue>
676
677
=cut
678
679
__PACKAGE__->has_many(
680
  "issues",
681
  "Koha::Schema::Result::Issue",
682
  { "foreign.borrowernumber" => "self.borrowernumber" },
683
  { cascade_copy => 0, cascade_delete => 0 },
684
);
685
686
=head2 message_queues
687
688
Type: has_many
689
690
Related object: L<Koha::Schema::Result::MessageQueue>
691
692
=cut
693
694
__PACKAGE__->has_many(
695
  "message_queues",
696
  "Koha::Schema::Result::MessageQueue",
697
  { "foreign.borrowernumber" => "self.borrowernumber" },
698
  { cascade_copy => 0, cascade_delete => 0 },
699
);
700
701
=head2 old_issues
702
703
Type: has_many
704
705
Related object: L<Koha::Schema::Result::OldIssue>
706
707
=cut
708
709
__PACKAGE__->has_many(
710
  "old_issues",
711
  "Koha::Schema::Result::OldIssue",
712
  { "foreign.borrowernumber" => "self.borrowernumber" },
713
  { cascade_copy => 0, cascade_delete => 0 },
714
);
715
716
=head2 old_reserves
717
718
Type: has_many
719
720
Related object: L<Koha::Schema::Result::OldReserve>
721
722
=cut
723
724
__PACKAGE__->has_many(
725
  "old_reserves",
726
  "Koha::Schema::Result::OldReserve",
727
  { "foreign.borrowernumber" => "self.borrowernumber" },
728
  { cascade_copy => 0, cascade_delete => 0 },
729
);
730
731
=head2 patroncards
732
733
Type: has_many
734
735
Related object: L<Koha::Schema::Result::Patroncard>
736
737
=cut
738
739
__PACKAGE__->has_many(
740
  "patroncards",
741
  "Koha::Schema::Result::Patroncard",
742
  { "foreign.borrowernumber" => "self.borrowernumber" },
743
  { cascade_copy => 0, cascade_delete => 0 },
744
);
745
746
=head2 patronimage
747
748
Type: might_have
749
750
Related object: L<Koha::Schema::Result::Patronimage>
751
752
=cut
753
754
__PACKAGE__->might_have(
755
  "patronimage",
756
  "Koha::Schema::Result::Patronimage",
757
  { "foreign.cardnumber" => "self.cardnumber" },
758
  { cascade_copy => 0, cascade_delete => 0 },
759
);
760
761
=head2 ratings
762
763
Type: has_many
764
765
Related object: L<Koha::Schema::Result::Rating>
766
767
=cut
768
769
__PACKAGE__->has_many(
770
  "ratings",
771
  "Koha::Schema::Result::Rating",
772
  { "foreign.borrowernumber" => "self.borrowernumber" },
773
  { cascade_copy => 0, cascade_delete => 0 },
774
);
775
776
=head2 reserves
777
778
Type: has_many
779
780
Related object: L<Koha::Schema::Result::Reserve>
781
782
=cut
783
784
__PACKAGE__->has_many(
785
  "reserves",
786
  "Koha::Schema::Result::Reserve",
787
  { "foreign.borrowernumber" => "self.borrowernumber" },
788
  { cascade_copy => 0, cascade_delete => 0 },
789
);
790
791
=head2 reviews
792
793
Type: has_many
794
795
Related object: L<Koha::Schema::Result::Review>
796
797
=cut
798
799
__PACKAGE__->has_many(
800
  "reviews",
801
  "Koha::Schema::Result::Review",
802
  { "foreign.borrowernumber" => "self.borrowernumber" },
803
  { cascade_copy => 0, cascade_delete => 0 },
804
);
805
806
=head2 subscriptionroutinglists
807
808
Type: has_many
809
810
Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
811
812
=cut
813
814
__PACKAGE__->has_many(
815
  "subscriptionroutinglists",
816
  "Koha::Schema::Result::Subscriptionroutinglist",
817
  { "foreign.borrowernumber" => "self.borrowernumber" },
818
  { cascade_copy => 0, cascade_delete => 0 },
819
);
820
821
=head2 tags_all
822
823
Type: has_many
824
825
Related object: L<Koha::Schema::Result::TagAll>
826
827
=cut
828
829
__PACKAGE__->has_many(
830
  "tags_all",
831
  "Koha::Schema::Result::TagAll",
832
  { "foreign.borrowernumber" => "self.borrowernumber" },
833
  { cascade_copy => 0, cascade_delete => 0 },
834
);
835
836
=head2 tags_approvals
837
838
Type: has_many
839
840
Related object: L<Koha::Schema::Result::TagsApproval>
841
842
=cut
843
844
__PACKAGE__->has_many(
845
  "tags_approvals",
846
  "Koha::Schema::Result::TagsApproval",
847
  { "foreign.approved_by" => "self.borrowernumber" },
848
  { cascade_copy => 0, cascade_delete => 0 },
849
);
850
851
=head2 user_permissions
852
853
Type: has_many
854
855
Related object: L<Koha::Schema::Result::UserPermission>
856
857
=cut
858
859
__PACKAGE__->has_many(
860
  "user_permissions",
861
  "Koha::Schema::Result::UserPermission",
862
  { "foreign.borrowernumber" => "self.borrowernumber" },
863
  { cascade_copy => 0, cascade_delete => 0 },
864
);
865
866
=head2 virtualshelfcontents
867
868
Type: has_many
869
870
Related object: L<Koha::Schema::Result::Virtualshelfcontent>
871
872
=cut
873
874
__PACKAGE__->has_many(
875
  "virtualshelfcontents",
876
  "Koha::Schema::Result::Virtualshelfcontent",
877
  { "foreign.borrowernumber" => "self.borrowernumber" },
878
  { cascade_copy => 0, cascade_delete => 0 },
879
);
880
881
=head2 virtualshelfshares
882
883
Type: has_many
884
885
Related object: L<Koha::Schema::Result::Virtualshelfshare>
886
887
=cut
888
889
__PACKAGE__->has_many(
890
  "virtualshelfshares",
891
  "Koha::Schema::Result::Virtualshelfshare",
892
  { "foreign.borrowernumber" => "self.borrowernumber" },
893
  { cascade_copy => 0, cascade_delete => 0 },
894
);
895
896
=head2 virtualshelves
897
898
Type: has_many
899
900
Related object: L<Koha::Schema::Result::Virtualshelve>
901
902
=cut
903
904
__PACKAGE__->has_many(
905
  "virtualshelves",
906
  "Koha::Schema::Result::Virtualshelve",
907
  { "foreign.owner" => "self.borrowernumber" },
908
  { cascade_copy => 0, cascade_delete => 0 },
909
);
910
911
912
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
913
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnpGsgSH2Urh7W8mw0rmbg
914
915
916
# You can replace this text with custom code or comments, and it will be preserved on regeneration
917
1;
(-)a/Koha/Schema/Result/BorrowerAttribute.pm (+98 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BorrowerAttribute;
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::BorrowerAttribute
15
16
=cut
17
18
__PACKAGE__->table("borrower_attributes");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 code
29
30
  data_type: 'varchar'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
  size: 10
34
35
=head2 attribute
36
37
  data_type: 'varchar'
38
  is_nullable: 1
39
  size: 64
40
41
=head2 password
42
43
  data_type: 'varchar'
44
  is_nullable: 1
45
  size: 64
46
47
=cut
48
49
__PACKAGE__->add_columns(
50
  "borrowernumber",
51
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
52
  "code",
53
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
54
  "attribute",
55
  { data_type => "varchar", is_nullable => 1, size => 64 },
56
  "password",
57
  { data_type => "varchar", is_nullable => 1, size => 64 },
58
);
59
60
=head1 RELATIONS
61
62
=head2 borrowernumber
63
64
Type: belongs_to
65
66
Related object: L<Koha::Schema::Result::Borrower>
67
68
=cut
69
70
__PACKAGE__->belongs_to(
71
  "borrowernumber",
72
  "Koha::Schema::Result::Borrower",
73
  { borrowernumber => "borrowernumber" },
74
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
75
);
76
77
=head2 code
78
79
Type: belongs_to
80
81
Related object: L<Koha::Schema::Result::BorrowerAttributeType>
82
83
=cut
84
85
__PACKAGE__->belongs_to(
86
  "code",
87
  "Koha::Schema::Result::BorrowerAttributeType",
88
  { code => "code" },
89
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90
);
91
92
93
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OGMTWD9We/bSwLwVKPvETQ
95
96
97
# You can replace this text with custom code or comments, and it will be preserved on regeneration
98
1;
(-)a/Koha/Schema/Result/BorrowerAttributeType.pm (+140 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BorrowerAttributeType;
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::BorrowerAttributeType
15
16
=cut
17
18
__PACKAGE__->table("borrower_attribute_types");
19
20
=head1 ACCESSORS
21
22
=head2 code
23
24
  data_type: 'varchar'
25
  is_nullable: 0
26
  size: 10
27
28
=head2 description
29
30
  data_type: 'varchar'
31
  is_nullable: 0
32
  size: 255
33
34
=head2 repeatable
35
36
  data_type: 'tinyint'
37
  default_value: 0
38
  is_nullable: 0
39
40
=head2 unique_id
41
42
  data_type: 'tinyint'
43
  default_value: 0
44
  is_nullable: 0
45
46
=head2 opac_display
47
48
  data_type: 'tinyint'
49
  default_value: 0
50
  is_nullable: 0
51
52
=head2 password_allowed
53
54
  data_type: 'tinyint'
55
  default_value: 0
56
  is_nullable: 0
57
58
=head2 staff_searchable
59
60
  data_type: 'tinyint'
61
  default_value: 0
62
  is_nullable: 0
63
64
=head2 authorised_value_category
65
66
  data_type: 'varchar'
67
  is_nullable: 1
68
  size: 10
69
70
=head2 display_checkout
71
72
  data_type: 'tinyint'
73
  default_value: 0
74
  is_nullable: 0
75
76
=head2 category_code
77
78
  data_type: 'varchar'
79
  is_nullable: 1
80
  size: 1
81
82
=head2 class
83
84
  data_type: 'varchar'
85
  default_value: (empty string)
86
  is_nullable: 0
87
  size: 255
88
89
=cut
90
91
__PACKAGE__->add_columns(
92
  "code",
93
  { data_type => "varchar", is_nullable => 0, size => 10 },
94
  "description",
95
  { data_type => "varchar", is_nullable => 0, size => 255 },
96
  "repeatable",
97
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
98
  "unique_id",
99
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
100
  "opac_display",
101
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
102
  "password_allowed",
103
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
104
  "staff_searchable",
105
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
106
  "authorised_value_category",
107
  { data_type => "varchar", is_nullable => 1, size => 10 },
108
  "display_checkout",
109
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
110
  "category_code",
111
  { data_type => "varchar", is_nullable => 1, size => 1 },
112
  "class",
113
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
114
);
115
__PACKAGE__->set_primary_key("code");
116
117
=head1 RELATIONS
118
119
=head2 borrower_attributes
120
121
Type: has_many
122
123
Related object: L<Koha::Schema::Result::BorrowerAttribute>
124
125
=cut
126
127
__PACKAGE__->has_many(
128
  "borrower_attributes",
129
  "Koha::Schema::Result::BorrowerAttribute",
130
  { "foreign.code" => "self.code" },
131
  { cascade_copy => 0, cascade_delete => 0 },
132
);
133
134
135
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
136
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:t3vJ3yXmF+p4pyD3IGTR2g
137
138
139
# You can replace this text with custom code or comments, and it will be preserved on regeneration
140
1;
(-)a/Koha/Schema/Result/BorrowerMessagePreference.pm (+168 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BorrowerMessagePreference;
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::BorrowerMessagePreference
15
16
=cut
17
18
__PACKAGE__->table("borrower_message_preferences");
19
20
=head1 ACCESSORS
21
22
=head2 borrower_message_preference_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 borrowernumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 1
33
34
=head2 categorycode
35
36
  data_type: 'varchar'
37
  is_foreign_key: 1
38
  is_nullable: 1
39
  size: 10
40
41
=head2 message_attribute_id
42
43
  data_type: 'integer'
44
  default_value: 0
45
  is_foreign_key: 1
46
  is_nullable: 1
47
48
=head2 days_in_advance
49
50
  data_type: 'integer'
51
  default_value: 0
52
  is_nullable: 1
53
54
=head2 wants_digest
55
56
  data_type: 'tinyint'
57
  default_value: 0
58
  is_nullable: 0
59
60
=cut
61
62
__PACKAGE__->add_columns(
63
  "borrower_message_preference_id",
64
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
65
  "borrowernumber",
66
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
67
  "categorycode",
68
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
69
  "message_attribute_id",
70
  {
71
    data_type      => "integer",
72
    default_value  => 0,
73
    is_foreign_key => 1,
74
    is_nullable    => 1,
75
  },
76
  "days_in_advance",
77
  { data_type => "integer", default_value => 0, is_nullable => 1 },
78
  "wants_digest",
79
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
80
);
81
__PACKAGE__->set_primary_key("borrower_message_preference_id");
82
83
=head1 RELATIONS
84
85
=head2 borrowernumber
86
87
Type: belongs_to
88
89
Related object: L<Koha::Schema::Result::Borrower>
90
91
=cut
92
93
__PACKAGE__->belongs_to(
94
  "borrowernumber",
95
  "Koha::Schema::Result::Borrower",
96
  { borrowernumber => "borrowernumber" },
97
  {
98
    is_deferrable => 1,
99
    join_type     => "LEFT",
100
    on_delete     => "CASCADE",
101
    on_update     => "CASCADE",
102
  },
103
);
104
105
=head2 message_attribute
106
107
Type: belongs_to
108
109
Related object: L<Koha::Schema::Result::MessageAttribute>
110
111
=cut
112
113
__PACKAGE__->belongs_to(
114
  "message_attribute",
115
  "Koha::Schema::Result::MessageAttribute",
116
  { message_attribute_id => "message_attribute_id" },
117
  {
118
    is_deferrable => 1,
119
    join_type     => "LEFT",
120
    on_delete     => "CASCADE",
121
    on_update     => "CASCADE",
122
  },
123
);
124
125
=head2 categorycode
126
127
Type: belongs_to
128
129
Related object: L<Koha::Schema::Result::Category>
130
131
=cut
132
133
__PACKAGE__->belongs_to(
134
  "categorycode",
135
  "Koha::Schema::Result::Category",
136
  { categorycode => "categorycode" },
137
  {
138
    is_deferrable => 1,
139
    join_type     => "LEFT",
140
    on_delete     => "CASCADE",
141
    on_update     => "CASCADE",
142
  },
143
);
144
145
=head2 borrower_message_transport_preferences
146
147
Type: has_many
148
149
Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference>
150
151
=cut
152
153
__PACKAGE__->has_many(
154
  "borrower_message_transport_preferences",
155
  "Koha::Schema::Result::BorrowerMessageTransportPreference",
156
  {
157
    "foreign.borrower_message_preference_id" => "self.borrower_message_preference_id",
158
  },
159
  { cascade_copy => 0, cascade_delete => 0 },
160
);
161
162
163
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
164
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u8kkw3PH8Iuyd7uvGDEBhA
165
166
167
# You can replace this text with custom code or comments, and it will be preserved on regeneration
168
1;
(-)a/Koha/Schema/Result/BorrowerMessageTransportPreference.pm (+98 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BorrowerMessageTransportPreference;
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::BorrowerMessageTransportPreference
15
16
=cut
17
18
__PACKAGE__->table("borrower_message_transport_preferences");
19
20
=head1 ACCESSORS
21
22
=head2 borrower_message_preference_id
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_foreign_key: 1
27
  is_nullable: 0
28
29
=head2 message_transport_type
30
31
  data_type: 'varchar'
32
  default_value: 0
33
  is_foreign_key: 1
34
  is_nullable: 0
35
  size: 20
36
37
=cut
38
39
__PACKAGE__->add_columns(
40
  "borrower_message_preference_id",
41
  {
42
    data_type      => "integer",
43
    default_value  => 0,
44
    is_foreign_key => 1,
45
    is_nullable    => 0,
46
  },
47
  "message_transport_type",
48
  {
49
    data_type => "varchar",
50
    default_value => 0,
51
    is_foreign_key => 1,
52
    is_nullable => 0,
53
    size => 20,
54
  },
55
);
56
__PACKAGE__->set_primary_key("borrower_message_preference_id", "message_transport_type");
57
58
=head1 RELATIONS
59
60
=head2 borrower_message_preference
61
62
Type: belongs_to
63
64
Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
65
66
=cut
67
68
__PACKAGE__->belongs_to(
69
  "borrower_message_preference",
70
  "Koha::Schema::Result::BorrowerMessagePreference",
71
  {
72
    borrower_message_preference_id => "borrower_message_preference_id",
73
  },
74
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
75
);
76
77
=head2 message_transport_type
78
79
Type: belongs_to
80
81
Related object: L<Koha::Schema::Result::MessageTransportType>
82
83
=cut
84
85
__PACKAGE__->belongs_to(
86
  "message_transport_type",
87
  "Koha::Schema::Result::MessageTransportType",
88
  { message_transport_type => "message_transport_type" },
89
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90
);
91
92
93
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FJIYQjIF+zQCcSxTI8BscQ
95
96
97
# You can replace this text with custom code or comments, and it will be preserved on regeneration
98
1;
(-)a/Koha/Schema/Result/Branch.pm (+347 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Branch;
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::Branch
15
16
=cut
17
18
__PACKAGE__->table("branches");
19
20
=head1 ACCESSORS
21
22
=head2 branchcode
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 branchname
30
31
  data_type: 'mediumtext'
32
  is_nullable: 0
33
34
=head2 branchaddress1
35
36
  data_type: 'mediumtext'
37
  is_nullable: 1
38
39
=head2 branchaddress2
40
41
  data_type: 'mediumtext'
42
  is_nullable: 1
43
44
=head2 branchaddress3
45
46
  data_type: 'mediumtext'
47
  is_nullable: 1
48
49
=head2 branchzip
50
51
  data_type: 'varchar'
52
  is_nullable: 1
53
  size: 25
54
55
=head2 branchcity
56
57
  data_type: 'mediumtext'
58
  is_nullable: 1
59
60
=head2 branchstate
61
62
  data_type: 'mediumtext'
63
  is_nullable: 1
64
65
=head2 branchcountry
66
67
  data_type: 'text'
68
  is_nullable: 1
69
70
=head2 branchphone
71
72
  data_type: 'mediumtext'
73
  is_nullable: 1
74
75
=head2 branchfax
76
77
  data_type: 'mediumtext'
78
  is_nullable: 1
79
80
=head2 branchemail
81
82
  data_type: 'mediumtext'
83
  is_nullable: 1
84
85
=head2 branchurl
86
87
  data_type: 'mediumtext'
88
  is_nullable: 1
89
90
=head2 issuing
91
92
  data_type: 'tinyint'
93
  is_nullable: 1
94
95
=head2 branchip
96
97
  data_type: 'varchar'
98
  is_nullable: 1
99
  size: 15
100
101
=head2 branchprinter
102
103
  data_type: 'varchar'
104
  is_nullable: 1
105
  size: 100
106
107
=head2 branchnotes
108
109
  data_type: 'mediumtext'
110
  is_nullable: 1
111
112
=head2 opac_info
113
114
  data_type: 'text'
115
  is_nullable: 1
116
117
=cut
118
119
__PACKAGE__->add_columns(
120
  "branchcode",
121
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
122
  "branchname",
123
  { data_type => "mediumtext", is_nullable => 0 },
124
  "branchaddress1",
125
  { data_type => "mediumtext", is_nullable => 1 },
126
  "branchaddress2",
127
  { data_type => "mediumtext", is_nullable => 1 },
128
  "branchaddress3",
129
  { data_type => "mediumtext", is_nullable => 1 },
130
  "branchzip",
131
  { data_type => "varchar", is_nullable => 1, size => 25 },
132
  "branchcity",
133
  { data_type => "mediumtext", is_nullable => 1 },
134
  "branchstate",
135
  { data_type => "mediumtext", is_nullable => 1 },
136
  "branchcountry",
137
  { data_type => "text", is_nullable => 1 },
138
  "branchphone",
139
  { data_type => "mediumtext", is_nullable => 1 },
140
  "branchfax",
141
  { data_type => "mediumtext", is_nullable => 1 },
142
  "branchemail",
143
  { data_type => "mediumtext", is_nullable => 1 },
144
  "branchurl",
145
  { data_type => "mediumtext", is_nullable => 1 },
146
  "issuing",
147
  { data_type => "tinyint", is_nullable => 1 },
148
  "branchip",
149
  { data_type => "varchar", is_nullable => 1, size => 15 },
150
  "branchprinter",
151
  { data_type => "varchar", is_nullable => 1, size => 100 },
152
  "branchnotes",
153
  { data_type => "mediumtext", is_nullable => 1 },
154
  "opac_info",
155
  { data_type => "text", is_nullable => 1 },
156
);
157
__PACKAGE__->set_primary_key("branchcode");
158
159
=head1 RELATIONS
160
161
=head2 borrowers
162
163
Type: has_many
164
165
Related object: L<Koha::Schema::Result::Borrower>
166
167
=cut
168
169
__PACKAGE__->has_many(
170
  "borrowers",
171
  "Koha::Schema::Result::Borrower",
172
  { "foreign.branchcode" => "self.branchcode" },
173
  { cascade_copy => 0, cascade_delete => 0 },
174
);
175
176
=head2 branch_borrower_circ_rules
177
178
Type: has_many
179
180
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
181
182
=cut
183
184
__PACKAGE__->has_many(
185
  "branch_borrower_circ_rules",
186
  "Koha::Schema::Result::BranchBorrowerCircRule",
187
  { "foreign.branchcode" => "self.branchcode" },
188
  { cascade_copy => 0, cascade_delete => 0 },
189
);
190
191
=head2 branch_item_rules
192
193
Type: has_many
194
195
Related object: L<Koha::Schema::Result::BranchItemRule>
196
197
=cut
198
199
__PACKAGE__->has_many(
200
  "branch_item_rules",
201
  "Koha::Schema::Result::BranchItemRule",
202
  { "foreign.branchcode" => "self.branchcode" },
203
  { cascade_copy => 0, cascade_delete => 0 },
204
);
205
206
=head2 branchrelations
207
208
Type: has_many
209
210
Related object: L<Koha::Schema::Result::Branchrelation>
211
212
=cut
213
214
__PACKAGE__->has_many(
215
  "branchrelations",
216
  "Koha::Schema::Result::Branchrelation",
217
  { "foreign.branchcode" => "self.branchcode" },
218
  { cascade_copy => 0, cascade_delete => 0 },
219
);
220
221
=head2 branchtransfers_frombranches
222
223
Type: has_many
224
225
Related object: L<Koha::Schema::Result::Branchtransfer>
226
227
=cut
228
229
__PACKAGE__->has_many(
230
  "branchtransfers_frombranches",
231
  "Koha::Schema::Result::Branchtransfer",
232
  { "foreign.frombranch" => "self.branchcode" },
233
  { cascade_copy => 0, cascade_delete => 0 },
234
);
235
236
=head2 branchtransfers_tobranches
237
238
Type: has_many
239
240
Related object: L<Koha::Schema::Result::Branchtransfer>
241
242
=cut
243
244
__PACKAGE__->has_many(
245
  "branchtransfers_tobranches",
246
  "Koha::Schema::Result::Branchtransfer",
247
  { "foreign.tobranch" => "self.branchcode" },
248
  { cascade_copy => 0, cascade_delete => 0 },
249
);
250
251
=head2 creator_batches
252
253
Type: has_many
254
255
Related object: L<Koha::Schema::Result::CreatorBatch>
256
257
=cut
258
259
__PACKAGE__->has_many(
260
  "creator_batches",
261
  "Koha::Schema::Result::CreatorBatch",
262
  { "foreign.branch_code" => "self.branchcode" },
263
  { cascade_copy => 0, cascade_delete => 0 },
264
);
265
266
=head2 default_branch_circ_rule
267
268
Type: might_have
269
270
Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
271
272
=cut
273
274
__PACKAGE__->might_have(
275
  "default_branch_circ_rule",
276
  "Koha::Schema::Result::DefaultBranchCircRule",
277
  { "foreign.branchcode" => "self.branchcode" },
278
  { cascade_copy => 0, cascade_delete => 0 },
279
);
280
281
=head2 hold_fill_targets
282
283
Type: has_many
284
285
Related object: L<Koha::Schema::Result::HoldFillTarget>
286
287
=cut
288
289
__PACKAGE__->has_many(
290
  "hold_fill_targets",
291
  "Koha::Schema::Result::HoldFillTarget",
292
  { "foreign.source_branchcode" => "self.branchcode" },
293
  { cascade_copy => 0, cascade_delete => 0 },
294
);
295
296
=head2 items_homebranches
297
298
Type: has_many
299
300
Related object: L<Koha::Schema::Result::Item>
301
302
=cut
303
304
__PACKAGE__->has_many(
305
  "items_homebranches",
306
  "Koha::Schema::Result::Item",
307
  { "foreign.homebranch" => "self.branchcode" },
308
  { cascade_copy => 0, cascade_delete => 0 },
309
);
310
311
=head2 items_holdingbranches
312
313
Type: has_many
314
315
Related object: L<Koha::Schema::Result::Item>
316
317
=cut
318
319
__PACKAGE__->has_many(
320
  "items_holdingbranches",
321
  "Koha::Schema::Result::Item",
322
  { "foreign.holdingbranch" => "self.branchcode" },
323
  { cascade_copy => 0, cascade_delete => 0 },
324
);
325
326
=head2 reserves
327
328
Type: has_many
329
330
Related object: L<Koha::Schema::Result::Reserve>
331
332
=cut
333
334
__PACKAGE__->has_many(
335
  "reserves",
336
  "Koha::Schema::Result::Reserve",
337
  { "foreign.branchcode" => "self.branchcode" },
338
  { cascade_copy => 0, cascade_delete => 0 },
339
);
340
341
342
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
343
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i0t3GuT8Ymn6gwYmbxYHIg
344
345
346
# You can replace this text with custom code or comments, and it will be preserved on regeneration
347
1;
(-)a/Koha/Schema/Result/BranchBorrowerCircRule.pm (+91 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BranchBorrowerCircRule;
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::BranchBorrowerCircRule
15
16
=cut
17
18
__PACKAGE__->table("branch_borrower_circ_rules");
19
20
=head1 ACCESSORS
21
22
=head2 branchcode
23
24
  data_type: 'varchar'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
  size: 10
28
29
=head2 categorycode
30
31
  data_type: 'varchar'
32
  is_foreign_key: 1
33
  is_nullable: 0
34
  size: 10
35
36
=head2 maxissueqty
37
38
  data_type: 'integer'
39
  is_nullable: 1
40
41
=cut
42
43
__PACKAGE__->add_columns(
44
  "branchcode",
45
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
46
  "categorycode",
47
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
48
  "maxissueqty",
49
  { data_type => "integer", is_nullable => 1 },
50
);
51
__PACKAGE__->set_primary_key("categorycode", "branchcode");
52
53
=head1 RELATIONS
54
55
=head2 categorycode
56
57
Type: belongs_to
58
59
Related object: L<Koha::Schema::Result::Category>
60
61
=cut
62
63
__PACKAGE__->belongs_to(
64
  "categorycode",
65
  "Koha::Schema::Result::Category",
66
  { categorycode => "categorycode" },
67
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
68
);
69
70
=head2 branchcode
71
72
Type: belongs_to
73
74
Related object: L<Koha::Schema::Result::Branch>
75
76
=cut
77
78
__PACKAGE__->belongs_to(
79
  "branchcode",
80
  "Koha::Schema::Result::Branch",
81
  { branchcode => "branchcode" },
82
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
83
);
84
85
86
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eAiSJPIdy8C0uxQibx3imA
88
89
90
# You can replace this text with custom code or comments, and it will be preserved on regeneration
91
1;
(-)a/Koha/Schema/Result/BranchItemRule.pm (+99 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BranchItemRule;
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::BranchItemRule
15
16
=cut
17
18
__PACKAGE__->table("branch_item_rules");
19
20
=head1 ACCESSORS
21
22
=head2 branchcode
23
24
  data_type: 'varchar'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
  size: 10
28
29
=head2 itemtype
30
31
  data_type: 'varchar'
32
  is_foreign_key: 1
33
  is_nullable: 0
34
  size: 10
35
36
=head2 holdallowed
37
38
  data_type: 'tinyint'
39
  is_nullable: 1
40
41
=head2 returnbranch
42
43
  data_type: 'varchar'
44
  is_nullable: 1
45
  size: 15
46
47
=cut
48
49
__PACKAGE__->add_columns(
50
  "branchcode",
51
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
52
  "itemtype",
53
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
54
  "holdallowed",
55
  { data_type => "tinyint", is_nullable => 1 },
56
  "returnbranch",
57
  { data_type => "varchar", is_nullable => 1, size => 15 },
58
);
59
__PACKAGE__->set_primary_key("itemtype", "branchcode");
60
61
=head1 RELATIONS
62
63
=head2 itemtype
64
65
Type: belongs_to
66
67
Related object: L<Koha::Schema::Result::Itemtype>
68
69
=cut
70
71
__PACKAGE__->belongs_to(
72
  "itemtype",
73
  "Koha::Schema::Result::Itemtype",
74
  { itemtype => "itemtype" },
75
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
76
);
77
78
=head2 branchcode
79
80
Type: belongs_to
81
82
Related object: L<Koha::Schema::Result::Branch>
83
84
=cut
85
86
__PACKAGE__->belongs_to(
87
  "branchcode",
88
  "Koha::Schema::Result::Branch",
89
  { branchcode => "branchcode" },
90
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
91
);
92
93
94
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UMVlaEQYteo47bAXvWnVlQ
96
97
98
# You can replace this text with custom code or comments, and it will be preserved on regeneration
99
1;
(-)a/Koha/Schema/Result/BranchTransferLimit.pm (+74 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BranchTransferLimit;
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::BranchTransferLimit
15
16
=cut
17
18
__PACKAGE__->table("branch_transfer_limits");
19
20
=head1 ACCESSORS
21
22
=head2 limitid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 tobranch
29
30
  data_type: 'varchar'
31
  is_nullable: 0
32
  size: 10
33
34
=head2 frombranch
35
36
  data_type: 'varchar'
37
  is_nullable: 0
38
  size: 10
39
40
=head2 itemtype
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 10
45
46
=head2 ccode
47
48
  data_type: 'varchar'
49
  is_nullable: 1
50
  size: 10
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "limitid",
56
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
57
  "tobranch",
58
  { data_type => "varchar", is_nullable => 0, size => 10 },
59
  "frombranch",
60
  { data_type => "varchar", is_nullable => 0, size => 10 },
61
  "itemtype",
62
  { data_type => "varchar", is_nullable => 1, size => 10 },
63
  "ccode",
64
  { data_type => "varchar", is_nullable => 1, size => 10 },
65
);
66
__PACKAGE__->set_primary_key("limitid");
67
68
69
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jyY4TpTysvvao1L0lHCiiA
71
72
73
# You can replace this text with custom code or comments, and it will be preserved on regeneration
74
1;
(-)a/Koha/Schema/Result/Branchcategory.pm (+83 lines)
Line 0 Link Here
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
=cut
47
48
__PACKAGE__->add_columns(
49
  "categorycode",
50
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
51
  "categoryname",
52
  { data_type => "varchar", is_nullable => 1, size => 32 },
53
  "codedescription",
54
  { data_type => "mediumtext", is_nullable => 1 },
55
  "categorytype",
56
  { data_type => "varchar", is_nullable => 1, size => 16 },
57
);
58
__PACKAGE__->set_primary_key("categorycode");
59
60
=head1 RELATIONS
61
62
=head2 branchrelations
63
64
Type: has_many
65
66
Related object: L<Koha::Schema::Result::Branchrelation>
67
68
=cut
69
70
__PACKAGE__->has_many(
71
  "branchrelations",
72
  "Koha::Schema::Result::Branchrelation",
73
  { "foreign.categorycode" => "self.categorycode" },
74
  { cascade_copy => 0, cascade_delete => 0 },
75
);
76
77
78
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qZa6Epw1mka7OXoGafzLbQ
80
81
82
# You can replace this text with custom code or comments, and it will be preserved on regeneration
83
1;
(-)a/Koha/Schema/Result/Branchrelation.pm (+98 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Branchrelation;
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::Branchrelation
15
16
=cut
17
18
__PACKAGE__->table("branchrelations");
19
20
=head1 ACCESSORS
21
22
=head2 branchcode
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_foreign_key: 1
27
  is_nullable: 0
28
  size: 10
29
30
=head2 categorycode
31
32
  data_type: 'varchar'
33
  default_value: (empty string)
34
  is_foreign_key: 1
35
  is_nullable: 0
36
  size: 10
37
38
=cut
39
40
__PACKAGE__->add_columns(
41
  "branchcode",
42
  {
43
    data_type => "varchar",
44
    default_value => "",
45
    is_foreign_key => 1,
46
    is_nullable => 0,
47
    size => 10,
48
  },
49
  "categorycode",
50
  {
51
    data_type => "varchar",
52
    default_value => "",
53
    is_foreign_key => 1,
54
    is_nullable => 0,
55
    size => 10,
56
  },
57
);
58
__PACKAGE__->set_primary_key("branchcode", "categorycode");
59
60
=head1 RELATIONS
61
62
=head2 branchcode
63
64
Type: belongs_to
65
66
Related object: L<Koha::Schema::Result::Branch>
67
68
=cut
69
70
__PACKAGE__->belongs_to(
71
  "branchcode",
72
  "Koha::Schema::Result::Branch",
73
  { branchcode => "branchcode" },
74
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
75
);
76
77
=head2 categorycode
78
79
Type: belongs_to
80
81
Related object: L<Koha::Schema::Result::Branchcategory>
82
83
=cut
84
85
__PACKAGE__->belongs_to(
86
  "categorycode",
87
  "Koha::Schema::Result::Branchcategory",
88
  { categorycode => "categorycode" },
89
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90
);
91
92
93
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CgXr3GwlrCAot8LiI12Vwg
95
96
97
# You can replace this text with custom code or comments, and it will be preserved on regeneration
98
1;
(-)a/Koha/Schema/Result/Branchtransfer.pm (+157 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Branchtransfer;
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::Branchtransfer
15
16
=cut
17
18
__PACKAGE__->table("branchtransfers");
19
20
=head1 ACCESSORS
21
22
=head2 itemnumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_foreign_key: 1
27
  is_nullable: 0
28
29
=head2 datesent
30
31
  data_type: 'datetime'
32
  datetime_undef_if_invalid: 1
33
  is_nullable: 1
34
35
=head2 frombranch
36
37
  data_type: 'varchar'
38
  default_value: (empty string)
39
  is_foreign_key: 1
40
  is_nullable: 0
41
  size: 10
42
43
=head2 datearrived
44
45
  data_type: 'datetime'
46
  datetime_undef_if_invalid: 1
47
  is_nullable: 1
48
49
=head2 tobranch
50
51
  data_type: 'varchar'
52
  default_value: (empty string)
53
  is_foreign_key: 1
54
  is_nullable: 0
55
  size: 10
56
57
=head2 comments
58
59
  data_type: 'mediumtext'
60
  is_nullable: 1
61
62
=cut
63
64
__PACKAGE__->add_columns(
65
  "itemnumber",
66
  {
67
    data_type      => "integer",
68
    default_value  => 0,
69
    is_foreign_key => 1,
70
    is_nullable    => 0,
71
  },
72
  "datesent",
73
  {
74
    data_type => "datetime",
75
    datetime_undef_if_invalid => 1,
76
    is_nullable => 1,
77
  },
78
  "frombranch",
79
  {
80
    data_type => "varchar",
81
    default_value => "",
82
    is_foreign_key => 1,
83
    is_nullable => 0,
84
    size => 10,
85
  },
86
  "datearrived",
87
  {
88
    data_type => "datetime",
89
    datetime_undef_if_invalid => 1,
90
    is_nullable => 1,
91
  },
92
  "tobranch",
93
  {
94
    data_type => "varchar",
95
    default_value => "",
96
    is_foreign_key => 1,
97
    is_nullable => 0,
98
    size => 10,
99
  },
100
  "comments",
101
  { data_type => "mediumtext", is_nullable => 1 },
102
);
103
104
=head1 RELATIONS
105
106
=head2 frombranch
107
108
Type: belongs_to
109
110
Related object: L<Koha::Schema::Result::Branch>
111
112
=cut
113
114
__PACKAGE__->belongs_to(
115
  "frombranch",
116
  "Koha::Schema::Result::Branch",
117
  { branchcode => "frombranch" },
118
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
119
);
120
121
=head2 tobranch
122
123
Type: belongs_to
124
125
Related object: L<Koha::Schema::Result::Branch>
126
127
=cut
128
129
__PACKAGE__->belongs_to(
130
  "tobranch",
131
  "Koha::Schema::Result::Branch",
132
  { branchcode => "tobranch" },
133
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
134
);
135
136
=head2 itemnumber
137
138
Type: belongs_to
139
140
Related object: L<Koha::Schema::Result::Item>
141
142
=cut
143
144
__PACKAGE__->belongs_to(
145
  "itemnumber",
146
  "Koha::Schema::Result::Item",
147
  { itemnumber => "itemnumber" },
148
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
149
);
150
151
152
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
153
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fMI1gd8LPBehc9rwlUsNFQ
154
155
156
# You can replace this text with custom code or comments, and it will be preserved on regeneration
157
1;
(-)a/Koha/Schema/Result/Browser.pm (+70 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Browser;
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::Browser
15
16
=cut
17
18
__PACKAGE__->table("browser");
19
20
=head1 ACCESSORS
21
22
=head2 level
23
24
  data_type: 'integer'
25
  is_nullable: 0
26
27
=head2 classification
28
29
  data_type: 'varchar'
30
  is_nullable: 0
31
  size: 20
32
33
=head2 description
34
35
  data_type: 'varchar'
36
  is_nullable: 0
37
  size: 255
38
39
=head2 number
40
41
  data_type: 'bigint'
42
  is_nullable: 0
43
44
=head2 endnode
45
46
  data_type: 'tinyint'
47
  is_nullable: 0
48
49
=cut
50
51
__PACKAGE__->add_columns(
52
  "level",
53
  { data_type => "integer", is_nullable => 0 },
54
  "classification",
55
  { data_type => "varchar", is_nullable => 0, size => 20 },
56
  "description",
57
  { data_type => "varchar", is_nullable => 0, size => 255 },
58
  "number",
59
  { data_type => "bigint", is_nullable => 0 },
60
  "endnode",
61
  { data_type => "tinyint", is_nullable => 0 },
62
);
63
64
65
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
66
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gZ/lT6WNpvSxUShrVD46Dw
67
68
69
# You can replace this text with custom code or comments, and it will be preserved on regeneration
70
1;
(-)a/Koha/Schema/Result/Category.pm (+203 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Category;
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::Category
15
16
=cut
17
18
__PACKAGE__->table("categories");
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 description
30
31
  data_type: 'mediumtext'
32
  is_nullable: 1
33
34
=head2 enrolmentperiod
35
36
  data_type: 'smallint'
37
  is_nullable: 1
38
39
=head2 enrolmentperioddate
40
41
  data_type: 'date'
42
  datetime_undef_if_invalid: 1
43
  is_nullable: 1
44
45
=head2 upperagelimit
46
47
  data_type: 'smallint'
48
  is_nullable: 1
49
50
=head2 dateofbirthrequired
51
52
  data_type: 'tinyint'
53
  is_nullable: 1
54
55
=head2 finetype
56
57
  data_type: 'varchar'
58
  is_nullable: 1
59
  size: 30
60
61
=head2 bulk
62
63
  data_type: 'tinyint'
64
  is_nullable: 1
65
66
=head2 enrolmentfee
67
68
  data_type: 'decimal'
69
  is_nullable: 1
70
  size: [28,6]
71
72
=head2 overduenoticerequired
73
74
  data_type: 'tinyint'
75
  is_nullable: 1
76
77
=head2 issuelimit
78
79
  data_type: 'smallint'
80
  is_nullable: 1
81
82
=head2 reservefee
83
84
  data_type: 'decimal'
85
  is_nullable: 1
86
  size: [28,6]
87
88
=head2 hidelostitems
89
90
  data_type: 'tinyint'
91
  default_value: 0
92
  is_nullable: 0
93
94
=head2 category_type
95
96
  data_type: 'varchar'
97
  default_value: 'A'
98
  is_nullable: 0
99
  size: 1
100
101
=cut
102
103
__PACKAGE__->add_columns(
104
  "categorycode",
105
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
106
  "description",
107
  { data_type => "mediumtext", is_nullable => 1 },
108
  "enrolmentperiod",
109
  { data_type => "smallint", is_nullable => 1 },
110
  "enrolmentperioddate",
111
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
112
  "upperagelimit",
113
  { data_type => "smallint", is_nullable => 1 },
114
  "dateofbirthrequired",
115
  { data_type => "tinyint", is_nullable => 1 },
116
  "finetype",
117
  { data_type => "varchar", is_nullable => 1, size => 30 },
118
  "bulk",
119
  { data_type => "tinyint", is_nullable => 1 },
120
  "enrolmentfee",
121
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
122
  "overduenoticerequired",
123
  { data_type => "tinyint", is_nullable => 1 },
124
  "issuelimit",
125
  { data_type => "smallint", is_nullable => 1 },
126
  "reservefee",
127
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
128
  "hidelostitems",
129
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
130
  "category_type",
131
  { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 },
132
);
133
__PACKAGE__->set_primary_key("categorycode");
134
135
=head1 RELATIONS
136
137
=head2 borrower_message_preferences
138
139
Type: has_many
140
141
Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
142
143
=cut
144
145
__PACKAGE__->has_many(
146
  "borrower_message_preferences",
147
  "Koha::Schema::Result::BorrowerMessagePreference",
148
  { "foreign.categorycode" => "self.categorycode" },
149
  { cascade_copy => 0, cascade_delete => 0 },
150
);
151
152
=head2 borrowers
153
154
Type: has_many
155
156
Related object: L<Koha::Schema::Result::Borrower>
157
158
=cut
159
160
__PACKAGE__->has_many(
161
  "borrowers",
162
  "Koha::Schema::Result::Borrower",
163
  { "foreign.categorycode" => "self.categorycode" },
164
  { cascade_copy => 0, cascade_delete => 0 },
165
);
166
167
=head2 branch_borrower_circ_rules
168
169
Type: has_many
170
171
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
172
173
=cut
174
175
__PACKAGE__->has_many(
176
  "branch_borrower_circ_rules",
177
  "Koha::Schema::Result::BranchBorrowerCircRule",
178
  { "foreign.categorycode" => "self.categorycode" },
179
  { cascade_copy => 0, cascade_delete => 0 },
180
);
181
182
=head2 default_borrower_circ_rule
183
184
Type: might_have
185
186
Related object: L<Koha::Schema::Result::DefaultBorrowerCircRule>
187
188
=cut
189
190
__PACKAGE__->might_have(
191
  "default_borrower_circ_rule",
192
  "Koha::Schema::Result::DefaultBorrowerCircRule",
193
  { "foreign.categorycode" => "self.categorycode" },
194
  { cascade_copy => 0, cascade_delete => 0 },
195
);
196
197
198
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
199
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:McP3lna3lHiDUJe6c+XUGA
200
201
202
# You can replace this text with custom code or comments, and it will be preserved on regeneration
203
1;
(-)a/Koha/Schema/Result/City.pm (+75 lines)
Line 0 Link Here
1
package Koha::Schema::Result::City;
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::City
15
16
=cut
17
18
__PACKAGE__->table("cities");
19
20
=head1 ACCESSORS
21
22
=head2 cityid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 city_name
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 100
34
35
=head2 city_state
36
37
  data_type: 'varchar'
38
  is_nullable: 1
39
  size: 100
40
41
=head2 city_country
42
43
  data_type: 'varchar'
44
  is_nullable: 1
45
  size: 100
46
47
=head2 city_zipcode
48
49
  data_type: 'varchar'
50
  is_nullable: 1
51
  size: 20
52
53
=cut
54
55
__PACKAGE__->add_columns(
56
  "cityid",
57
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
58
  "city_name",
59
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
60
  "city_state",
61
  { data_type => "varchar", is_nullable => 1, size => 100 },
62
  "city_country",
63
  { data_type => "varchar", is_nullable => 1, size => 100 },
64
  "city_zipcode",
65
  { data_type => "varchar", is_nullable => 1, size => 20 },
66
);
67
__PACKAGE__->set_primary_key("cityid");
68
69
70
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:93Zxm2bQE+hPJVMHfuRjrQ
72
73
74
# You can replace this text with custom code or comments, and it will be preserved on regeneration
75
1;
(-)a/Koha/Schema/Result/ClassSortRule.pm (+76 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ClassSortRule;
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::ClassSortRule
15
16
=cut
17
18
__PACKAGE__->table("class_sort_rules");
19
20
=head1 ACCESSORS
21
22
=head2 class_sort_rule
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 description
30
31
  data_type: 'mediumtext'
32
  is_nullable: 1
33
34
=head2 sort_routine
35
36
  data_type: 'varchar'
37
  default_value: (empty string)
38
  is_nullable: 0
39
  size: 30
40
41
=cut
42
43
__PACKAGE__->add_columns(
44
  "class_sort_rule",
45
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
46
  "description",
47
  { data_type => "mediumtext", is_nullable => 1 },
48
  "sort_routine",
49
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
50
);
51
__PACKAGE__->set_primary_key("class_sort_rule");
52
53
=head1 RELATIONS
54
55
=head2 class_sources
56
57
Type: has_many
58
59
Related object: L<Koha::Schema::Result::ClassSource>
60
61
=cut
62
63
__PACKAGE__->has_many(
64
  "class_sources",
65
  "Koha::Schema::Result::ClassSource",
66
  { "foreign.class_sort_rule" => "self.class_sort_rule" },
67
  { cascade_copy => 0, cascade_delete => 0 },
68
);
69
70
71
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
72
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LR1wpnk8rroFe2pct4mcqw
73
74
75
# You can replace this text with custom code or comments, and it will be preserved on regeneration
76
1;
(-)a/Koha/Schema/Result/ClassSource.pm (+91 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ClassSource;
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::ClassSource
15
16
=cut
17
18
__PACKAGE__->table("class_sources");
19
20
=head1 ACCESSORS
21
22
=head2 cn_source
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 description
30
31
  data_type: 'mediumtext'
32
  is_nullable: 1
33
34
=head2 used
35
36
  data_type: 'tinyint'
37
  default_value: 0
38
  is_nullable: 0
39
40
=head2 class_sort_rule
41
42
  data_type: 'varchar'
43
  default_value: (empty string)
44
  is_foreign_key: 1
45
  is_nullable: 0
46
  size: 10
47
48
=cut
49
50
__PACKAGE__->add_columns(
51
  "cn_source",
52
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
53
  "description",
54
  { data_type => "mediumtext", is_nullable => 1 },
55
  "used",
56
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
57
  "class_sort_rule",
58
  {
59
    data_type => "varchar",
60
    default_value => "",
61
    is_foreign_key => 1,
62
    is_nullable => 0,
63
    size => 10,
64
  },
65
);
66
__PACKAGE__->set_primary_key("cn_source");
67
68
=head1 RELATIONS
69
70
=head2 class_sort_rule
71
72
Type: belongs_to
73
74
Related object: L<Koha::Schema::Result::ClassSortRule>
75
76
=cut
77
78
__PACKAGE__->belongs_to(
79
  "class_sort_rule",
80
  "Koha::Schema::Result::ClassSortRule",
81
  { class_sort_rule => "class_sort_rule" },
82
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
83
);
84
85
86
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:urTNC2EAB2Tij8vr3ew2yw
88
89
90
# You can replace this text with custom code or comments, and it will be preserved on regeneration
91
1;
(-)a/Koha/Schema/Result/Collection.pm (+66 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Collection;
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::Collection
15
16
=cut
17
18
__PACKAGE__->table("collections");
19
20
=head1 ACCESSORS
21
22
=head2 colid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 coltitle
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 100
34
35
=head2 coldesc
36
37
  data_type: 'text'
38
  is_nullable: 0
39
40
=head2 colbranchcode
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 4
45
46
=cut
47
48
__PACKAGE__->add_columns(
49
  "colid",
50
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
51
  "coltitle",
52
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
53
  "coldesc",
54
  { data_type => "text", is_nullable => 0 },
55
  "colbranchcode",
56
  { data_type => "varchar", is_nullable => 1, size => 4 },
57
);
58
__PACKAGE__->set_primary_key("colid");
59
60
61
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
62
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G4LM5S09ctzSful+plyiHw
63
64
65
# You can replace this text with custom code or comments, and it will be preserved on regeneration
66
1;
(-)a/Koha/Schema/Result/CollectionTracking.pm (+58 lines)
Line 0 Link Here
1
package Koha::Schema::Result::CollectionTracking;
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::CollectionTracking
15
16
=cut
17
18
__PACKAGE__->table("collections_tracking");
19
20
=head1 ACCESSORS
21
22
=head2 ctid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 colid
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_nullable: 0
33
34
=head2 itemnumber
35
36
  data_type: 'integer'
37
  default_value: 0
38
  is_nullable: 0
39
40
=cut
41
42
__PACKAGE__->add_columns(
43
  "ctid",
44
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
45
  "colid",
46
  { data_type => "integer", default_value => 0, is_nullable => 0 },
47
  "itemnumber",
48
  { data_type => "integer", default_value => 0, is_nullable => 0 },
49
);
50
__PACKAGE__->set_primary_key("ctid");
51
52
53
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
54
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BKIto4bt+iJZ0dUHFJVspg
55
56
57
# You can replace this text with custom code or comments, and it will be preserved on regeneration
58
1;
(-)a/Koha/Schema/Result/CreatorBatch.pm (+167 lines)
Line 0 Link Here
1
package Koha::Schema::Result::CreatorBatch;
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::CreatorBatch
15
16
=cut
17
18
__PACKAGE__->table("creator_batches");
19
20
=head1 ACCESSORS
21
22
=head2 label_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 batch_id
29
30
  data_type: 'integer'
31
  default_value: 1
32
  is_nullable: 0
33
34
=head2 item_number
35
36
  data_type: 'integer'
37
  is_foreign_key: 1
38
  is_nullable: 1
39
40
=head2 borrower_number
41
42
  data_type: 'integer'
43
  is_foreign_key: 1
44
  is_nullable: 1
45
46
=head2 timestamp
47
48
  data_type: 'timestamp'
49
  datetime_undef_if_invalid: 1
50
  default_value: current_timestamp
51
  is_nullable: 0
52
53
=head2 branch_code
54
55
  data_type: 'varchar'
56
  default_value: 'NB'
57
  is_foreign_key: 1
58
  is_nullable: 0
59
  size: 10
60
61
=head2 creator
62
63
  data_type: 'char'
64
  default_value: 'Labels'
65
  is_nullable: 0
66
  size: 15
67
68
=cut
69
70
__PACKAGE__->add_columns(
71
  "label_id",
72
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
73
  "batch_id",
74
  { data_type => "integer", default_value => 1, is_nullable => 0 },
75
  "item_number",
76
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
77
  "borrower_number",
78
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
79
  "timestamp",
80
  {
81
    data_type => "timestamp",
82
    datetime_undef_if_invalid => 1,
83
    default_value => \"current_timestamp",
84
    is_nullable => 0,
85
  },
86
  "branch_code",
87
  {
88
    data_type => "varchar",
89
    default_value => "NB",
90
    is_foreign_key => 1,
91
    is_nullable => 0,
92
    size => 10,
93
  },
94
  "creator",
95
  {
96
    data_type => "char",
97
    default_value => "Labels",
98
    is_nullable => 0,
99
    size => 15,
100
  },
101
);
102
__PACKAGE__->set_primary_key("label_id");
103
104
=head1 RELATIONS
105
106
=head2 borrower_number
107
108
Type: belongs_to
109
110
Related object: L<Koha::Schema::Result::Borrower>
111
112
=cut
113
114
__PACKAGE__->belongs_to(
115
  "borrower_number",
116
  "Koha::Schema::Result::Borrower",
117
  { borrowernumber => "borrower_number" },
118
  {
119
    is_deferrable => 1,
120
    join_type     => "LEFT",
121
    on_delete     => "CASCADE",
122
    on_update     => "CASCADE",
123
  },
124
);
125
126
=head2 branch_code
127
128
Type: belongs_to
129
130
Related object: L<Koha::Schema::Result::Branch>
131
132
=cut
133
134
__PACKAGE__->belongs_to(
135
  "branch_code",
136
  "Koha::Schema::Result::Branch",
137
  { branchcode => "branch_code" },
138
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
139
);
140
141
=head2 item_number
142
143
Type: belongs_to
144
145
Related object: L<Koha::Schema::Result::Item>
146
147
=cut
148
149
__PACKAGE__->belongs_to(
150
  "item_number",
151
  "Koha::Schema::Result::Item",
152
  { itemnumber => "item_number" },
153
  {
154
    is_deferrable => 1,
155
    join_type     => "LEFT",
156
    on_delete     => "CASCADE",
157
    on_update     => "CASCADE",
158
  },
159
);
160
161
162
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b20a7mRdqBjfDHChM2aUnA
164
165
166
# You can replace this text with custom code or comments, and it will be preserved on regeneration
167
1;
(-)a/Koha/Schema/Result/CreatorImage.pm (+64 lines)
Line 0 Link Here
1
package Koha::Schema::Result::CreatorImage;
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::CreatorImage
15
16
=cut
17
18
__PACKAGE__->table("creator_images");
19
20
=head1 ACCESSORS
21
22
=head2 image_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 imagefile
29
30
  data_type: 'mediumblob'
31
  is_nullable: 1
32
33
=head2 image_name
34
35
  data_type: 'char'
36
  default_value: 'DEFAULT'
37
  is_nullable: 0
38
  size: 20
39
40
=cut
41
42
__PACKAGE__->add_columns(
43
  "image_id",
44
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
45
  "imagefile",
46
  { data_type => "mediumblob", is_nullable => 1 },
47
  "image_name",
48
  {
49
    data_type => "char",
50
    default_value => "DEFAULT",
51
    is_nullable => 0,
52
    size => 20,
53
  },
54
);
55
__PACKAGE__->set_primary_key("image_id");
56
__PACKAGE__->add_unique_constraint("image_name_index", ["image_name"]);
57
58
59
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
60
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZQUQ6s/Z7+V5VF9WfnFRmg
61
62
63
# You can replace this text with custom code or comments, and it will be preserved on regeneration
64
1;
(-)a/Koha/Schema/Result/CreatorLayout.pm (+173 lines)
Line 0 Link Here
1
package Koha::Schema::Result::CreatorLayout;
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::CreatorLayout
15
16
=cut
17
18
__PACKAGE__->table("creator_layouts");
19
20
=head1 ACCESSORS
21
22
=head2 layout_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 barcode_type
29
30
  data_type: 'char'
31
  default_value: 'CODE39'
32
  is_nullable: 0
33
  size: 100
34
35
=head2 start_label
36
37
  data_type: 'integer'
38
  default_value: 1
39
  is_nullable: 0
40
41
=head2 printing_type
42
43
  data_type: 'char'
44
  default_value: 'BAR'
45
  is_nullable: 0
46
  size: 32
47
48
=head2 layout_name
49
50
  data_type: 'char'
51
  default_value: 'DEFAULT'
52
  is_nullable: 0
53
  size: 20
54
55
=head2 guidebox
56
57
  data_type: 'integer'
58
  default_value: 0
59
  is_nullable: 1
60
61
=head2 font
62
63
  data_type: 'char'
64
  default_value: 'TR'
65
  is_nullable: 0
66
  size: 10
67
68
=head2 font_size
69
70
  data_type: 'integer'
71
  default_value: 10
72
  is_nullable: 0
73
74
=head2 units
75
76
  data_type: 'char'
77
  default_value: 'POINT'
78
  is_nullable: 0
79
  size: 20
80
81
=head2 callnum_split
82
83
  data_type: 'integer'
84
  default_value: 0
85
  is_nullable: 1
86
87
=head2 text_justify
88
89
  data_type: 'char'
90
  default_value: 'L'
91
  is_nullable: 0
92
  size: 1
93
94
=head2 format_string
95
96
  data_type: 'varchar'
97
  default_value: 'barcode'
98
  is_nullable: 0
99
  size: 210
100
101
=head2 layout_xml
102
103
  data_type: 'text'
104
  is_nullable: 0
105
106
=head2 creator
107
108
  data_type: 'char'
109
  default_value: 'Labels'
110
  is_nullable: 0
111
  size: 15
112
113
=cut
114
115
__PACKAGE__->add_columns(
116
  "layout_id",
117
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
118
  "barcode_type",
119
  {
120
    data_type => "char",
121
    default_value => "CODE39",
122
    is_nullable => 0,
123
    size => 100,
124
  },
125
  "start_label",
126
  { data_type => "integer", default_value => 1, is_nullable => 0 },
127
  "printing_type",
128
  { data_type => "char", default_value => "BAR", is_nullable => 0, size => 32 },
129
  "layout_name",
130
  {
131
    data_type => "char",
132
    default_value => "DEFAULT",
133
    is_nullable => 0,
134
    size => 20,
135
  },
136
  "guidebox",
137
  { data_type => "integer", default_value => 0, is_nullable => 1 },
138
  "font",
139
  { data_type => "char", default_value => "TR", is_nullable => 0, size => 10 },
140
  "font_size",
141
  { data_type => "integer", default_value => 10, is_nullable => 0 },
142
  "units",
143
  { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 },
144
  "callnum_split",
145
  { data_type => "integer", default_value => 0, is_nullable => 1 },
146
  "text_justify",
147
  { data_type => "char", default_value => "L", is_nullable => 0, size => 1 },
148
  "format_string",
149
  {
150
    data_type => "varchar",
151
    default_value => "barcode",
152
    is_nullable => 0,
153
    size => 210,
154
  },
155
  "layout_xml",
156
  { data_type => "text", is_nullable => 0 },
157
  "creator",
158
  {
159
    data_type => "char",
160
    default_value => "Labels",
161
    is_nullable => 0,
162
    size => 15,
163
  },
164
);
165
__PACKAGE__->set_primary_key("layout_id");
166
167
168
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
169
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Sm5a34Hc+t8LurAzhzm1hw
170
171
172
# You can replace this text with custom code or comments, and it will be preserved on regeneration
173
1;
(-)a/Koha/Schema/Result/CreatorTemplate.pm (+196 lines)
Line 0 Link Here
1
package Koha::Schema::Result::CreatorTemplate;
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::CreatorTemplate
15
16
=cut
17
18
__PACKAGE__->table("creator_Kohalates");
19
20
=head1 ACCESSORS
21
22
=head2 Kohalate_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 profile_id
29
30
  data_type: 'integer'
31
  is_nullable: 1
32
33
=head2 Kohalate_code
34
35
  data_type: 'char'
36
  default_value: 'DEFAULT TEMPLATE'
37
  is_nullable: 0
38
  size: 100
39
40
=head2 Kohalate_desc
41
42
  data_type: 'char'
43
  default_value: 'Default description'
44
  is_nullable: 0
45
  size: 100
46
47
=head2 page_width
48
49
  data_type: 'float'
50
  default_value: 0
51
  is_nullable: 0
52
53
=head2 page_height
54
55
  data_type: 'float'
56
  default_value: 0
57
  is_nullable: 0
58
59
=head2 label_width
60
61
  data_type: 'float'
62
  default_value: 0
63
  is_nullable: 0
64
65
=head2 label_height
66
67
  data_type: 'float'
68
  default_value: 0
69
  is_nullable: 0
70
71
=head2 top_text_margin
72
73
  data_type: 'float'
74
  default_value: 0
75
  is_nullable: 0
76
77
=head2 left_text_margin
78
79
  data_type: 'float'
80
  default_value: 0
81
  is_nullable: 0
82
83
=head2 top_margin
84
85
  data_type: 'float'
86
  default_value: 0
87
  is_nullable: 0
88
89
=head2 left_margin
90
91
  data_type: 'float'
92
  default_value: 0
93
  is_nullable: 0
94
95
=head2 cols
96
97
  data_type: 'integer'
98
  default_value: 0
99
  is_nullable: 0
100
101
=head2 rows
102
103
  data_type: 'integer'
104
  default_value: 0
105
  is_nullable: 0
106
107
=head2 col_gap
108
109
  data_type: 'float'
110
  default_value: 0
111
  is_nullable: 0
112
113
=head2 row_gap
114
115
  data_type: 'float'
116
  default_value: 0
117
  is_nullable: 0
118
119
=head2 units
120
121
  data_type: 'char'
122
  default_value: 'POINT'
123
  is_nullable: 0
124
  size: 20
125
126
=head2 creator
127
128
  data_type: 'char'
129
  default_value: 'Labels'
130
  is_nullable: 0
131
  size: 15
132
133
=cut
134
135
__PACKAGE__->add_columns(
136
  "Kohalate_id",
137
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
138
  "profile_id",
139
  { data_type => "integer", is_nullable => 1 },
140
  "Kohalate_code",
141
  {
142
    data_type => "char",
143
    default_value => "DEFAULT TEMPLATE",
144
    is_nullable => 0,
145
    size => 100,
146
  },
147
  "Kohalate_desc",
148
  {
149
    data_type => "char",
150
    default_value => "Default description",
151
    is_nullable => 0,
152
    size => 100,
153
  },
154
  "page_width",
155
  { data_type => "float", default_value => 0, is_nullable => 0 },
156
  "page_height",
157
  { data_type => "float", default_value => 0, is_nullable => 0 },
158
  "label_width",
159
  { data_type => "float", default_value => 0, is_nullable => 0 },
160
  "label_height",
161
  { data_type => "float", default_value => 0, is_nullable => 0 },
162
  "top_text_margin",
163
  { data_type => "float", default_value => 0, is_nullable => 0 },
164
  "left_text_margin",
165
  { data_type => "float", default_value => 0, is_nullable => 0 },
166
  "top_margin",
167
  { data_type => "float", default_value => 0, is_nullable => 0 },
168
  "left_margin",
169
  { data_type => "float", default_value => 0, is_nullable => 0 },
170
  "cols",
171
  { data_type => "integer", default_value => 0, is_nullable => 0 },
172
  "rows",
173
  { data_type => "integer", default_value => 0, is_nullable => 0 },
174
  "col_gap",
175
  { data_type => "float", default_value => 0, is_nullable => 0 },
176
  "row_gap",
177
  { data_type => "float", default_value => 0, is_nullable => 0 },
178
  "units",
179
  { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 },
180
  "creator",
181
  {
182
    data_type => "char",
183
    default_value => "Labels",
184
    is_nullable => 0,
185
    size => 15,
186
  },
187
);
188
__PACKAGE__->set_primary_key("Kohalate_id");
189
190
191
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
192
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LvzZJtxXR7oS5/X9LmXMhg
193
194
195
# You can replace this text with custom code or comments, and it will be preserved on regeneration
196
1;
(-)a/Koha/Schema/Result/Currency.pm (+112 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Currency;
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::Currency
15
16
=cut
17
18
__PACKAGE__->table("currency");
19
20
=head1 ACCESSORS
21
22
=head2 currency
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 symbol
30
31
  data_type: 'varchar'
32
  is_nullable: 1
33
  size: 5
34
35
=head2 timestamp
36
37
  data_type: 'timestamp'
38
  datetime_undef_if_invalid: 1
39
  default_value: current_timestamp
40
  is_nullable: 0
41
42
=head2 rate
43
44
  data_type: 'float'
45
  is_nullable: 1
46
  size: [7,5]
47
48
=head2 active
49
50
  data_type: 'tinyint'
51
  is_nullable: 1
52
53
=cut
54
55
__PACKAGE__->add_columns(
56
  "currency",
57
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
58
  "symbol",
59
  { data_type => "varchar", is_nullable => 1, size => 5 },
60
  "timestamp",
61
  {
62
    data_type => "timestamp",
63
    datetime_undef_if_invalid => 1,
64
    default_value => \"current_timestamp",
65
    is_nullable => 0,
66
  },
67
  "rate",
68
  { data_type => "float", is_nullable => 1, size => [7, 5] },
69
  "active",
70
  { data_type => "tinyint", is_nullable => 1 },
71
);
72
__PACKAGE__->set_primary_key("currency");
73
74
=head1 RELATIONS
75
76
=head2 aqbooksellers_listprices
77
78
Type: has_many
79
80
Related object: L<Koha::Schema::Result::Aqbookseller>
81
82
=cut
83
84
__PACKAGE__->has_many(
85
  "aqbooksellers_listprices",
86
  "Koha::Schema::Result::Aqbookseller",
87
  { "foreign.listprice" => "self.currency" },
88
  { cascade_copy => 0, cascade_delete => 0 },
89
);
90
91
=head2 aqbooksellers_invoiceprices
92
93
Type: has_many
94
95
Related object: L<Koha::Schema::Result::Aqbookseller>
96
97
=cut
98
99
__PACKAGE__->has_many(
100
  "aqbooksellers_invoiceprices",
101
  "Koha::Schema::Result::Aqbookseller",
102
  { "foreign.invoiceprice" => "self.currency" },
103
  { cascade_copy => 0, cascade_delete => 0 },
104
);
105
106
107
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
108
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SXqXLEl9QZKt/k4sEV2ACA
109
110
111
# You can replace this text with custom code or comments, and it will be preserved on regeneration
112
1;
(-)a/Koha/Schema/Result/DefaultBorrowerCircRule.pm (+67 lines)
Line 0 Link Here
1
package Koha::Schema::Result::DefaultBorrowerCircRule;
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::DefaultBorrowerCircRule
15
16
=cut
17
18
__PACKAGE__->table("default_borrower_circ_rules");
19
20
=head1 ACCESSORS
21
22
=head2 categorycode
23
24
  data_type: 'varchar'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
  size: 10
28
29
=head2 maxissueqty
30
31
  data_type: 'integer'
32
  is_nullable: 1
33
34
=cut
35
36
__PACKAGE__->add_columns(
37
  "categorycode",
38
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
39
  "maxissueqty",
40
  { data_type => "integer", is_nullable => 1 },
41
);
42
__PACKAGE__->set_primary_key("categorycode");
43
44
=head1 RELATIONS
45
46
=head2 categorycode
47
48
Type: belongs_to
49
50
Related object: L<Koha::Schema::Result::Category>
51
52
=cut
53
54
__PACKAGE__->belongs_to(
55
  "categorycode",
56
  "Koha::Schema::Result::Category",
57
  { categorycode => "categorycode" },
58
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
59
);
60
61
62
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
63
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bqJpbh9PwIbI+ZFln01uyQ
64
65
66
# You can replace this text with custom code or comments, and it will be preserved on regeneration
67
1;
(-)a/Koha/Schema/Result/DefaultBranchCircRule.pm (+82 lines)
Line 0 Link Here
1
package Koha::Schema::Result::DefaultBranchCircRule;
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::DefaultBranchCircRule
15
16
=cut
17
18
__PACKAGE__->table("default_branch_circ_rules");
19
20
=head1 ACCESSORS
21
22
=head2 branchcode
23
24
  data_type: 'varchar'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
  size: 10
28
29
=head2 maxissueqty
30
31
  data_type: 'integer'
32
  is_nullable: 1
33
34
=head2 holdallowed
35
36
  data_type: 'tinyint'
37
  is_nullable: 1
38
39
=head2 returnbranch
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 15
44
45
=cut
46
47
__PACKAGE__->add_columns(
48
  "branchcode",
49
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
50
  "maxissueqty",
51
  { data_type => "integer", is_nullable => 1 },
52
  "holdallowed",
53
  { data_type => "tinyint", is_nullable => 1 },
54
  "returnbranch",
55
  { data_type => "varchar", is_nullable => 1, size => 15 },
56
);
57
__PACKAGE__->set_primary_key("branchcode");
58
59
=head1 RELATIONS
60
61
=head2 branchcode
62
63
Type: belongs_to
64
65
Related object: L<Koha::Schema::Result::Branch>
66
67
=cut
68
69
__PACKAGE__->belongs_to(
70
  "branchcode",
71
  "Koha::Schema::Result::Branch",
72
  { branchcode => "branchcode" },
73
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:frW3GCB/KNsQWzxD8gwE5w
79
80
81
# You can replace this text with custom code or comments, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/DefaultBranchItemRule.pm (+75 lines)
Line 0 Link Here
1
package Koha::Schema::Result::DefaultBranchItemRule;
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::DefaultBranchItemRule
15
16
=cut
17
18
__PACKAGE__->table("default_branch_item_rules");
19
20
=head1 ACCESSORS
21
22
=head2 itemtype
23
24
  data_type: 'varchar'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
  size: 10
28
29
=head2 holdallowed
30
31
  data_type: 'tinyint'
32
  is_nullable: 1
33
34
=head2 returnbranch
35
36
  data_type: 'varchar'
37
  is_nullable: 1
38
  size: 15
39
40
=cut
41
42
__PACKAGE__->add_columns(
43
  "itemtype",
44
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
45
  "holdallowed",
46
  { data_type => "tinyint", is_nullable => 1 },
47
  "returnbranch",
48
  { data_type => "varchar", is_nullable => 1, size => 15 },
49
);
50
__PACKAGE__->set_primary_key("itemtype");
51
52
=head1 RELATIONS
53
54
=head2 itemtype
55
56
Type: belongs_to
57
58
Related object: L<Koha::Schema::Result::Itemtype>
59
60
=cut
61
62
__PACKAGE__->belongs_to(
63
  "itemtype",
64
  "Koha::Schema::Result::Itemtype",
65
  { itemtype => "itemtype" },
66
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
67
);
68
69
70
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DROuFM1Dwe32gJfzKP39Rg
72
73
74
# You can replace this text with custom code or comments, and it will be preserved on regeneration
75
1;
(-)a/Koha/Schema/Result/DefaultCircRule.pm (+70 lines)
Line 0 Link Here
1
package Koha::Schema::Result::DefaultCircRule;
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::DefaultCircRule
15
16
=cut
17
18
__PACKAGE__->table("default_circ_rules");
19
20
=head1 ACCESSORS
21
22
=head2 singleton
23
24
  data_type: 'enum'
25
  default_value: 'singleton'
26
  extra: {list => ["singleton"]}
27
  is_nullable: 0
28
29
=head2 maxissueqty
30
31
  data_type: 'integer'
32
  is_nullable: 1
33
34
=head2 holdallowed
35
36
  data_type: 'integer'
37
  is_nullable: 1
38
39
=head2 returnbranch
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 15
44
45
=cut
46
47
__PACKAGE__->add_columns(
48
  "singleton",
49
  {
50
    data_type => "enum",
51
    default_value => "singleton",
52
    extra => { list => ["singleton"] },
53
    is_nullable => 0,
54
  },
55
  "maxissueqty",
56
  { data_type => "integer", is_nullable => 1 },
57
  "holdallowed",
58
  { data_type => "integer", is_nullable => 1 },
59
  "returnbranch",
60
  { data_type => "varchar", is_nullable => 1, size => 15 },
61
);
62
__PACKAGE__->set_primary_key("singleton");
63
64
65
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
66
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DOs1J32zzQu+FsjO8zqZpA
67
68
69
# You can replace this text with custom code or comments, and it will be preserved on regeneration
70
1;
(-)a/Koha/Schema/Result/Deletedbiblio.pm (+129 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Deletedbiblio;
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::Deletedbiblio
15
16
=cut
17
18
__PACKAGE__->table("deletedbiblio");
19
20
=head1 ACCESSORS
21
22
=head2 biblionumber
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 frameworkcode
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 4
34
35
=head2 author
36
37
  data_type: 'mediumtext'
38
  is_nullable: 1
39
40
=head2 title
41
42
  data_type: 'mediumtext'
43
  is_nullable: 1
44
45
=head2 unititle
46
47
  data_type: 'mediumtext'
48
  is_nullable: 1
49
50
=head2 notes
51
52
  data_type: 'mediumtext'
53
  is_nullable: 1
54
55
=head2 serial
56
57
  data_type: 'tinyint'
58
  is_nullable: 1
59
60
=head2 seriestitle
61
62
  data_type: 'mediumtext'
63
  is_nullable: 1
64
65
=head2 copyrightdate
66
67
  data_type: 'smallint'
68
  is_nullable: 1
69
70
=head2 timestamp
71
72
  data_type: 'timestamp'
73
  datetime_undef_if_invalid: 1
74
  default_value: current_timestamp
75
  is_nullable: 0
76
77
=head2 datecreated
78
79
  data_type: 'date'
80
  datetime_undef_if_invalid: 1
81
  is_nullable: 0
82
83
=head2 abstract
84
85
  data_type: 'mediumtext'
86
  is_nullable: 1
87
88
=cut
89
90
__PACKAGE__->add_columns(
91
  "biblionumber",
92
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
93
  "frameworkcode",
94
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
95
  "author",
96
  { data_type => "mediumtext", is_nullable => 1 },
97
  "title",
98
  { data_type => "mediumtext", is_nullable => 1 },
99
  "unititle",
100
  { data_type => "mediumtext", is_nullable => 1 },
101
  "notes",
102
  { data_type => "mediumtext", is_nullable => 1 },
103
  "serial",
104
  { data_type => "tinyint", is_nullable => 1 },
105
  "seriestitle",
106
  { data_type => "mediumtext", is_nullable => 1 },
107
  "copyrightdate",
108
  { data_type => "smallint", is_nullable => 1 },
109
  "timestamp",
110
  {
111
    data_type => "timestamp",
112
    datetime_undef_if_invalid => 1,
113
    default_value => \"current_timestamp",
114
    is_nullable => 0,
115
  },
116
  "datecreated",
117
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
118
  "abstract",
119
  { data_type => "mediumtext", is_nullable => 1 },
120
);
121
__PACKAGE__->set_primary_key("biblionumber");
122
123
124
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
125
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k/QU1a9T1ljqeWy1nPqVEw
126
127
128
# You can replace this text with custom code or comments, and it will be preserved on regeneration
129
1;
(-)a/Koha/Schema/Result/Deletedbiblioitem.pm (+291 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Deletedbiblioitem;
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::Deletedbiblioitem
15
16
=cut
17
18
__PACKAGE__->table("deletedbiblioitems");
19
20
=head1 ACCESSORS
21
22
=head2 biblioitemnumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_nullable: 0
27
28
=head2 biblionumber
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_nullable: 0
33
34
=head2 volume
35
36
  data_type: 'mediumtext'
37
  is_nullable: 1
38
39
=head2 number
40
41
  data_type: 'mediumtext'
42
  is_nullable: 1
43
44
=head2 itemtype
45
46
  data_type: 'varchar'
47
  is_nullable: 1
48
  size: 10
49
50
=head2 isbn
51
52
  data_type: 'varchar'
53
  is_nullable: 1
54
  size: 30
55
56
=head2 issn
57
58
  data_type: 'varchar'
59
  is_nullable: 1
60
  size: 9
61
62
=head2 ean
63
64
  data_type: 'varchar'
65
  is_nullable: 1
66
  size: 13
67
68
=head2 publicationyear
69
70
  data_type: 'text'
71
  is_nullable: 1
72
73
=head2 publishercode
74
75
  data_type: 'varchar'
76
  is_nullable: 1
77
  size: 255
78
79
=head2 volumedate
80
81
  data_type: 'date'
82
  datetime_undef_if_invalid: 1
83
  is_nullable: 1
84
85
=head2 volumedesc
86
87
  data_type: 'text'
88
  is_nullable: 1
89
90
=head2 collectiontitle
91
92
  data_type: 'mediumtext'
93
  is_nullable: 1
94
95
=head2 collectionissn
96
97
  data_type: 'text'
98
  is_nullable: 1
99
100
=head2 collectionvolume
101
102
  data_type: 'mediumtext'
103
  is_nullable: 1
104
105
=head2 editionstatement
106
107
  data_type: 'text'
108
  is_nullable: 1
109
110
=head2 editionresponsibility
111
112
  data_type: 'text'
113
  is_nullable: 1
114
115
=head2 timestamp
116
117
  data_type: 'timestamp'
118
  datetime_undef_if_invalid: 1
119
  default_value: current_timestamp
120
  is_nullable: 0
121
122
=head2 illus
123
124
  data_type: 'varchar'
125
  is_nullable: 1
126
  size: 255
127
128
=head2 pages
129
130
  data_type: 'varchar'
131
  is_nullable: 1
132
  size: 255
133
134
=head2 notes
135
136
  data_type: 'mediumtext'
137
  is_nullable: 1
138
139
=head2 size
140
141
  data_type: 'varchar'
142
  is_nullable: 1
143
  size: 255
144
145
=head2 place
146
147
  data_type: 'varchar'
148
  is_nullable: 1
149
  size: 255
150
151
=head2 lccn
152
153
  data_type: 'varchar'
154
  is_nullable: 1
155
  size: 25
156
157
=head2 marc
158
159
  data_type: 'longblob'
160
  is_nullable: 1
161
162
=head2 url
163
164
  data_type: 'varchar'
165
  is_nullable: 1
166
  size: 255
167
168
=head2 cn_source
169
170
  data_type: 'varchar'
171
  is_nullable: 1
172
  size: 10
173
174
=head2 cn_class
175
176
  data_type: 'varchar'
177
  is_nullable: 1
178
  size: 30
179
180
=head2 cn_item
181
182
  data_type: 'varchar'
183
  is_nullable: 1
184
  size: 10
185
186
=head2 cn_suffix
187
188
  data_type: 'varchar'
189
  is_nullable: 1
190
  size: 10
191
192
=head2 cn_sort
193
194
  data_type: 'varchar'
195
  is_nullable: 1
196
  size: 30
197
198
=head2 totalissues
199
200
  data_type: 'integer'
201
  is_nullable: 1
202
203
=head2 marcxml
204
205
  data_type: 'longtext'
206
  is_nullable: 0
207
208
=cut
209
210
__PACKAGE__->add_columns(
211
  "biblioitemnumber",
212
  { data_type => "integer", default_value => 0, is_nullable => 0 },
213
  "biblionumber",
214
  { data_type => "integer", default_value => 0, is_nullable => 0 },
215
  "volume",
216
  { data_type => "mediumtext", is_nullable => 1 },
217
  "number",
218
  { data_type => "mediumtext", is_nullable => 1 },
219
  "itemtype",
220
  { data_type => "varchar", is_nullable => 1, size => 10 },
221
  "isbn",
222
  { data_type => "varchar", is_nullable => 1, size => 30 },
223
  "issn",
224
  { data_type => "varchar", is_nullable => 1, size => 9 },
225
  "ean",
226
  { data_type => "varchar", is_nullable => 1, size => 13 },
227
  "publicationyear",
228
  { data_type => "text", is_nullable => 1 },
229
  "publishercode",
230
  { data_type => "varchar", is_nullable => 1, size => 255 },
231
  "volumedate",
232
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
233
  "volumedesc",
234
  { data_type => "text", is_nullable => 1 },
235
  "collectiontitle",
236
  { data_type => "mediumtext", is_nullable => 1 },
237
  "collectionissn",
238
  { data_type => "text", is_nullable => 1 },
239
  "collectionvolume",
240
  { data_type => "mediumtext", is_nullable => 1 },
241
  "editionstatement",
242
  { data_type => "text", is_nullable => 1 },
243
  "editionresponsibility",
244
  { data_type => "text", is_nullable => 1 },
245
  "timestamp",
246
  {
247
    data_type => "timestamp",
248
    datetime_undef_if_invalid => 1,
249
    default_value => \"current_timestamp",
250
    is_nullable => 0,
251
  },
252
  "illus",
253
  { data_type => "varchar", is_nullable => 1, size => 255 },
254
  "pages",
255
  { data_type => "varchar", is_nullable => 1, size => 255 },
256
  "notes",
257
  { data_type => "mediumtext", is_nullable => 1 },
258
  "size",
259
  { data_type => "varchar", is_nullable => 1, size => 255 },
260
  "place",
261
  { data_type => "varchar", is_nullable => 1, size => 255 },
262
  "lccn",
263
  { data_type => "varchar", is_nullable => 1, size => 25 },
264
  "marc",
265
  { data_type => "longblob", is_nullable => 1 },
266
  "url",
267
  { data_type => "varchar", is_nullable => 1, size => 255 },
268
  "cn_source",
269
  { data_type => "varchar", is_nullable => 1, size => 10 },
270
  "cn_class",
271
  { data_type => "varchar", is_nullable => 1, size => 30 },
272
  "cn_item",
273
  { data_type => "varchar", is_nullable => 1, size => 10 },
274
  "cn_suffix",
275
  { data_type => "varchar", is_nullable => 1, size => 10 },
276
  "cn_sort",
277
  { data_type => "varchar", is_nullable => 1, size => 30 },
278
  "totalissues",
279
  { data_type => "integer", is_nullable => 1 },
280
  "marcxml",
281
  { data_type => "longtext", is_nullable => 0 },
282
);
283
__PACKAGE__->set_primary_key("biblioitemnumber");
284
285
286
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
287
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6iwiHPZSUhnG8UXc3ClX+A
288
289
290
# You can replace this text with custom code or comments, and it will be preserved on regeneration
291
1;
(-)a/Koha/Schema/Result/Deletedborrower.pm (+539 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Deletedborrower;
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::Deletedborrower
15
16
=cut
17
18
__PACKAGE__->table("deletedborrowers");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_nullable: 0
27
28
=head2 cardnumber
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 16
33
34
=head2 surname
35
36
  data_type: 'mediumtext'
37
  is_nullable: 0
38
39
=head2 firstname
40
41
  data_type: 'text'
42
  is_nullable: 1
43
44
=head2 title
45
46
  data_type: 'mediumtext'
47
  is_nullable: 1
48
49
=head2 othernames
50
51
  data_type: 'mediumtext'
52
  is_nullable: 1
53
54
=head2 initials
55
56
  data_type: 'text'
57
  is_nullable: 1
58
59
=head2 streetnumber
60
61
  data_type: 'varchar'
62
  is_nullable: 1
63
  size: 10
64
65
=head2 streettype
66
67
  data_type: 'varchar'
68
  is_nullable: 1
69
  size: 50
70
71
=head2 address
72
73
  data_type: 'mediumtext'
74
  is_nullable: 0
75
76
=head2 address2
77
78
  data_type: 'text'
79
  is_nullable: 1
80
81
=head2 city
82
83
  data_type: 'mediumtext'
84
  is_nullable: 0
85
86
=head2 state
87
88
  data_type: 'text'
89
  is_nullable: 1
90
91
=head2 zipcode
92
93
  data_type: 'varchar'
94
  is_nullable: 1
95
  size: 25
96
97
=head2 country
98
99
  data_type: 'text'
100
  is_nullable: 1
101
102
=head2 email
103
104
  data_type: 'mediumtext'
105
  is_nullable: 1
106
107
=head2 phone
108
109
  data_type: 'text'
110
  is_nullable: 1
111
112
=head2 mobile
113
114
  data_type: 'varchar'
115
  is_nullable: 1
116
  size: 50
117
118
=head2 fax
119
120
  data_type: 'mediumtext'
121
  is_nullable: 1
122
123
=head2 emailpro
124
125
  data_type: 'text'
126
  is_nullable: 1
127
128
=head2 phonepro
129
130
  data_type: 'text'
131
  is_nullable: 1
132
133
=head2 b_streetnumber
134
135
  data_type: 'varchar'
136
  is_nullable: 1
137
  size: 10
138
139
=head2 b_streettype
140
141
  data_type: 'varchar'
142
  is_nullable: 1
143
  size: 50
144
145
=head2 b_address
146
147
  data_type: 'varchar'
148
  is_nullable: 1
149
  size: 100
150
151
=head2 b_address2
152
153
  data_type: 'text'
154
  is_nullable: 1
155
156
=head2 b_city
157
158
  data_type: 'mediumtext'
159
  is_nullable: 1
160
161
=head2 b_state
162
163
  data_type: 'text'
164
  is_nullable: 1
165
166
=head2 b_zipcode
167
168
  data_type: 'varchar'
169
  is_nullable: 1
170
  size: 25
171
172
=head2 b_country
173
174
  data_type: 'text'
175
  is_nullable: 1
176
177
=head2 b_email
178
179
  data_type: 'text'
180
  is_nullable: 1
181
182
=head2 b_phone
183
184
  data_type: 'mediumtext'
185
  is_nullable: 1
186
187
=head2 dateofbirth
188
189
  data_type: 'date'
190
  datetime_undef_if_invalid: 1
191
  is_nullable: 1
192
193
=head2 branchcode
194
195
  data_type: 'varchar'
196
  default_value: (empty string)
197
  is_nullable: 0
198
  size: 10
199
200
=head2 categorycode
201
202
  data_type: 'varchar'
203
  default_value: (empty string)
204
  is_nullable: 0
205
  size: 10
206
207
=head2 dateenrolled
208
209
  data_type: 'date'
210
  datetime_undef_if_invalid: 1
211
  is_nullable: 1
212
213
=head2 dateexpiry
214
215
  data_type: 'date'
216
  datetime_undef_if_invalid: 1
217
  is_nullable: 1
218
219
=head2 gonenoaddress
220
221
  data_type: 'tinyint'
222
  is_nullable: 1
223
224
=head2 lost
225
226
  data_type: 'tinyint'
227
  is_nullable: 1
228
229
=head2 debarred
230
231
  data_type: 'date'
232
  datetime_undef_if_invalid: 1
233
  is_nullable: 1
234
235
=head2 debarredcomment
236
237
  data_type: 'varchar'
238
  is_nullable: 1
239
  size: 255
240
241
=head2 contactname
242
243
  data_type: 'mediumtext'
244
  is_nullable: 1
245
246
=head2 contactfirstname
247
248
  data_type: 'text'
249
  is_nullable: 1
250
251
=head2 contacttitle
252
253
  data_type: 'text'
254
  is_nullable: 1
255
256
=head2 guarantorid
257
258
  data_type: 'integer'
259
  is_nullable: 1
260
261
=head2 borrowernotes
262
263
  data_type: 'mediumtext'
264
  is_nullable: 1
265
266
=head2 relationship
267
268
  data_type: 'varchar'
269
  is_nullable: 1
270
  size: 100
271
272
=head2 ethnicity
273
274
  data_type: 'varchar'
275
  is_nullable: 1
276
  size: 50
277
278
=head2 ethnotes
279
280
  data_type: 'varchar'
281
  is_nullable: 1
282
  size: 255
283
284
=head2 sex
285
286
  data_type: 'varchar'
287
  is_nullable: 1
288
  size: 1
289
290
=head2 password
291
292
  data_type: 'varchar'
293
  is_nullable: 1
294
  size: 30
295
296
=head2 flags
297
298
  data_type: 'integer'
299
  is_nullable: 1
300
301
=head2 userid
302
303
  data_type: 'varchar'
304
  is_nullable: 1
305
  size: 30
306
307
=head2 opacnote
308
309
  data_type: 'mediumtext'
310
  is_nullable: 1
311
312
=head2 contactnote
313
314
  data_type: 'varchar'
315
  is_nullable: 1
316
  size: 255
317
318
=head2 sort1
319
320
  data_type: 'varchar'
321
  is_nullable: 1
322
  size: 80
323
324
=head2 sort2
325
326
  data_type: 'varchar'
327
  is_nullable: 1
328
  size: 80
329
330
=head2 altcontactfirstname
331
332
  data_type: 'varchar'
333
  is_nullable: 1
334
  size: 255
335
336
=head2 altcontactsurname
337
338
  data_type: 'varchar'
339
  is_nullable: 1
340
  size: 255
341
342
=head2 altcontactaddress1
343
344
  data_type: 'varchar'
345
  is_nullable: 1
346
  size: 255
347
348
=head2 altcontactaddress2
349
350
  data_type: 'varchar'
351
  is_nullable: 1
352
  size: 255
353
354
=head2 altcontactaddress3
355
356
  data_type: 'varchar'
357
  is_nullable: 1
358
  size: 255
359
360
=head2 altcontactstate
361
362
  data_type: 'text'
363
  is_nullable: 1
364
365
=head2 altcontactzipcode
366
367
  data_type: 'varchar'
368
  is_nullable: 1
369
  size: 50
370
371
=head2 altcontactcountry
372
373
  data_type: 'text'
374
  is_nullable: 1
375
376
=head2 altcontactphone
377
378
  data_type: 'varchar'
379
  is_nullable: 1
380
  size: 50
381
382
=head2 smsalertnumber
383
384
  data_type: 'varchar'
385
  is_nullable: 1
386
  size: 50
387
388
=head2 privacy
389
390
  data_type: 'integer'
391
  default_value: 1
392
  is_nullable: 0
393
394
=cut
395
396
__PACKAGE__->add_columns(
397
  "borrowernumber",
398
  { data_type => "integer", default_value => 0, is_nullable => 0 },
399
  "cardnumber",
400
  { data_type => "varchar", is_nullable => 1, size => 16 },
401
  "surname",
402
  { data_type => "mediumtext", is_nullable => 0 },
403
  "firstname",
404
  { data_type => "text", is_nullable => 1 },
405
  "title",
406
  { data_type => "mediumtext", is_nullable => 1 },
407
  "othernames",
408
  { data_type => "mediumtext", is_nullable => 1 },
409
  "initials",
410
  { data_type => "text", is_nullable => 1 },
411
  "streetnumber",
412
  { data_type => "varchar", is_nullable => 1, size => 10 },
413
  "streettype",
414
  { data_type => "varchar", is_nullable => 1, size => 50 },
415
  "address",
416
  { data_type => "mediumtext", is_nullable => 0 },
417
  "address2",
418
  { data_type => "text", is_nullable => 1 },
419
  "city",
420
  { data_type => "mediumtext", is_nullable => 0 },
421
  "state",
422
  { data_type => "text", is_nullable => 1 },
423
  "zipcode",
424
  { data_type => "varchar", is_nullable => 1, size => 25 },
425
  "country",
426
  { data_type => "text", is_nullable => 1 },
427
  "email",
428
  { data_type => "mediumtext", is_nullable => 1 },
429
  "phone",
430
  { data_type => "text", is_nullable => 1 },
431
  "mobile",
432
  { data_type => "varchar", is_nullable => 1, size => 50 },
433
  "fax",
434
  { data_type => "mediumtext", is_nullable => 1 },
435
  "emailpro",
436
  { data_type => "text", is_nullable => 1 },
437
  "phonepro",
438
  { data_type => "text", is_nullable => 1 },
439
  "b_streetnumber",
440
  { data_type => "varchar", is_nullable => 1, size => 10 },
441
  "b_streettype",
442
  { data_type => "varchar", is_nullable => 1, size => 50 },
443
  "b_address",
444
  { data_type => "varchar", is_nullable => 1, size => 100 },
445
  "b_address2",
446
  { data_type => "text", is_nullable => 1 },
447
  "b_city",
448
  { data_type => "mediumtext", is_nullable => 1 },
449
  "b_state",
450
  { data_type => "text", is_nullable => 1 },
451
  "b_zipcode",
452
  { data_type => "varchar", is_nullable => 1, size => 25 },
453
  "b_country",
454
  { data_type => "text", is_nullable => 1 },
455
  "b_email",
456
  { data_type => "text", is_nullable => 1 },
457
  "b_phone",
458
  { data_type => "mediumtext", is_nullable => 1 },
459
  "dateofbirth",
460
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
461
  "branchcode",
462
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
463
  "categorycode",
464
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
465
  "dateenrolled",
466
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
467
  "dateexpiry",
468
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
469
  "gonenoaddress",
470
  { data_type => "tinyint", is_nullable => 1 },
471
  "lost",
472
  { data_type => "tinyint", is_nullable => 1 },
473
  "debarred",
474
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
475
  "debarredcomment",
476
  { data_type => "varchar", is_nullable => 1, size => 255 },
477
  "contactname",
478
  { data_type => "mediumtext", is_nullable => 1 },
479
  "contactfirstname",
480
  { data_type => "text", is_nullable => 1 },
481
  "contacttitle",
482
  { data_type => "text", is_nullable => 1 },
483
  "guarantorid",
484
  { data_type => "integer", is_nullable => 1 },
485
  "borrowernotes",
486
  { data_type => "mediumtext", is_nullable => 1 },
487
  "relationship",
488
  { data_type => "varchar", is_nullable => 1, size => 100 },
489
  "ethnicity",
490
  { data_type => "varchar", is_nullable => 1, size => 50 },
491
  "ethnotes",
492
  { data_type => "varchar", is_nullable => 1, size => 255 },
493
  "sex",
494
  { data_type => "varchar", is_nullable => 1, size => 1 },
495
  "password",
496
  { data_type => "varchar", is_nullable => 1, size => 30 },
497
  "flags",
498
  { data_type => "integer", is_nullable => 1 },
499
  "userid",
500
  { data_type => "varchar", is_nullable => 1, size => 30 },
501
  "opacnote",
502
  { data_type => "mediumtext", is_nullable => 1 },
503
  "contactnote",
504
  { data_type => "varchar", is_nullable => 1, size => 255 },
505
  "sort1",
506
  { data_type => "varchar", is_nullable => 1, size => 80 },
507
  "sort2",
508
  { data_type => "varchar", is_nullable => 1, size => 80 },
509
  "altcontactfirstname",
510
  { data_type => "varchar", is_nullable => 1, size => 255 },
511
  "altcontactsurname",
512
  { data_type => "varchar", is_nullable => 1, size => 255 },
513
  "altcontactaddress1",
514
  { data_type => "varchar", is_nullable => 1, size => 255 },
515
  "altcontactaddress2",
516
  { data_type => "varchar", is_nullable => 1, size => 255 },
517
  "altcontactaddress3",
518
  { data_type => "varchar", is_nullable => 1, size => 255 },
519
  "altcontactstate",
520
  { data_type => "text", is_nullable => 1 },
521
  "altcontactzipcode",
522
  { data_type => "varchar", is_nullable => 1, size => 50 },
523
  "altcontactcountry",
524
  { data_type => "text", is_nullable => 1 },
525
  "altcontactphone",
526
  { data_type => "varchar", is_nullable => 1, size => 50 },
527
  "smsalertnumber",
528
  { data_type => "varchar", is_nullable => 1, size => 50 },
529
  "privacy",
530
  { data_type => "integer", default_value => 1, is_nullable => 0 },
531
);
532
533
534
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
535
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9T4RixqazyuA2GTQ35DFoA
536
537
538
# You can replace this text with custom code or comments, and it will be preserved on regeneration
539
1;
(-)a/Koha/Schema/Result/Deleteditem.pm (+349 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Deleteditem;
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::Deleteditem
15
16
=cut
17
18
__PACKAGE__->table("deleteditems");
19
20
=head1 ACCESSORS
21
22
=head2 itemnumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_nullable: 0
27
28
=head2 biblionumber
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_nullable: 0
33
34
=head2 biblioitemnumber
35
36
  data_type: 'integer'
37
  default_value: 0
38
  is_nullable: 0
39
40
=head2 barcode
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 20
45
46
=head2 dateaccessioned
47
48
  data_type: 'date'
49
  datetime_undef_if_invalid: 1
50
  is_nullable: 1
51
52
=head2 booksellerid
53
54
  data_type: 'mediumtext'
55
  is_nullable: 1
56
57
=head2 homebranch
58
59
  data_type: 'varchar'
60
  is_nullable: 1
61
  size: 10
62
63
=head2 price
64
65
  data_type: 'decimal'
66
  is_nullable: 1
67
  size: [8,2]
68
69
=head2 replacementprice
70
71
  data_type: 'decimal'
72
  is_nullable: 1
73
  size: [8,2]
74
75
=head2 replacementpricedate
76
77
  data_type: 'date'
78
  datetime_undef_if_invalid: 1
79
  is_nullable: 1
80
81
=head2 datelastborrowed
82
83
  data_type: 'date'
84
  datetime_undef_if_invalid: 1
85
  is_nullable: 1
86
87
=head2 datelastseen
88
89
  data_type: 'date'
90
  datetime_undef_if_invalid: 1
91
  is_nullable: 1
92
93
=head2 stack
94
95
  data_type: 'tinyint'
96
  is_nullable: 1
97
98
=head2 notforloan
99
100
  data_type: 'tinyint'
101
  default_value: 0
102
  is_nullable: 0
103
104
=head2 damaged
105
106
  data_type: 'tinyint'
107
  default_value: 0
108
  is_nullable: 0
109
110
=head2 itemlost
111
112
  data_type: 'tinyint'
113
  default_value: 0
114
  is_nullable: 0
115
116
=head2 wthdrawn
117
118
  data_type: 'tinyint'
119
  default_value: 0
120
  is_nullable: 0
121
122
=head2 itemcallnumber
123
124
  data_type: 'varchar'
125
  is_nullable: 1
126
  size: 255
127
128
=head2 issues
129
130
  data_type: 'smallint'
131
  is_nullable: 1
132
133
=head2 renewals
134
135
  data_type: 'smallint'
136
  is_nullable: 1
137
138
=head2 reserves
139
140
  data_type: 'smallint'
141
  is_nullable: 1
142
143
=head2 restricted
144
145
  data_type: 'tinyint'
146
  is_nullable: 1
147
148
=head2 itemnotes
149
150
  data_type: 'mediumtext'
151
  is_nullable: 1
152
153
=head2 holdingbranch
154
155
  data_type: 'varchar'
156
  is_nullable: 1
157
  size: 10
158
159
=head2 paidfor
160
161
  data_type: 'mediumtext'
162
  is_nullable: 1
163
164
=head2 timestamp
165
166
  data_type: 'timestamp'
167
  datetime_undef_if_invalid: 1
168
  default_value: current_timestamp
169
  is_nullable: 0
170
171
=head2 location
172
173
  data_type: 'varchar'
174
  is_nullable: 1
175
  size: 80
176
177
=head2 permanent_location
178
179
  data_type: 'varchar'
180
  is_nullable: 1
181
  size: 80
182
183
=head2 onloan
184
185
  data_type: 'date'
186
  datetime_undef_if_invalid: 1
187
  is_nullable: 1
188
189
=head2 cn_source
190
191
  data_type: 'varchar'
192
  is_nullable: 1
193
  size: 10
194
195
=head2 cn_sort
196
197
  data_type: 'varchar'
198
  is_nullable: 1
199
  size: 30
200
201
=head2 ccode
202
203
  data_type: 'varchar'
204
  is_nullable: 1
205
  size: 10
206
207
=head2 materials
208
209
  data_type: 'varchar'
210
  is_nullable: 1
211
  size: 10
212
213
=head2 uri
214
215
  data_type: 'varchar'
216
  is_nullable: 1
217
  size: 255
218
219
=head2 itype
220
221
  data_type: 'varchar'
222
  is_nullable: 1
223
  size: 10
224
225
=head2 more_subfields_xml
226
227
  data_type: 'longtext'
228
  is_nullable: 1
229
230
=head2 enumchron
231
232
  data_type: 'text'
233
  is_nullable: 1
234
235
=head2 copynumber
236
237
  data_type: 'varchar'
238
  is_nullable: 1
239
  size: 32
240
241
=head2 stocknumber
242
243
  data_type: 'varchar'
244
  is_nullable: 1
245
  size: 32
246
247
=head2 marc
248
249
  data_type: 'longblob'
250
  is_nullable: 1
251
252
=cut
253
254
__PACKAGE__->add_columns(
255
  "itemnumber",
256
  { data_type => "integer", default_value => 0, is_nullable => 0 },
257
  "biblionumber",
258
  { data_type => "integer", default_value => 0, is_nullable => 0 },
259
  "biblioitemnumber",
260
  { data_type => "integer", default_value => 0, is_nullable => 0 },
261
  "barcode",
262
  { data_type => "varchar", is_nullable => 1, size => 20 },
263
  "dateaccessioned",
264
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
265
  "booksellerid",
266
  { data_type => "mediumtext", is_nullable => 1 },
267
  "homebranch",
268
  { data_type => "varchar", is_nullable => 1, size => 10 },
269
  "price",
270
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
271
  "replacementprice",
272
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
273
  "replacementpricedate",
274
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
275
  "datelastborrowed",
276
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
277
  "datelastseen",
278
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
279
  "stack",
280
  { data_type => "tinyint", is_nullable => 1 },
281
  "notforloan",
282
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
283
  "damaged",
284
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
285
  "itemlost",
286
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
287
  "wthdrawn",
288
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
289
  "itemcallnumber",
290
  { data_type => "varchar", is_nullable => 1, size => 255 },
291
  "issues",
292
  { data_type => "smallint", is_nullable => 1 },
293
  "renewals",
294
  { data_type => "smallint", is_nullable => 1 },
295
  "reserves",
296
  { data_type => "smallint", is_nullable => 1 },
297
  "restricted",
298
  { data_type => "tinyint", is_nullable => 1 },
299
  "itemnotes",
300
  { data_type => "mediumtext", is_nullable => 1 },
301
  "holdingbranch",
302
  { data_type => "varchar", is_nullable => 1, size => 10 },
303
  "paidfor",
304
  { data_type => "mediumtext", is_nullable => 1 },
305
  "timestamp",
306
  {
307
    data_type => "timestamp",
308
    datetime_undef_if_invalid => 1,
309
    default_value => \"current_timestamp",
310
    is_nullable => 0,
311
  },
312
  "location",
313
  { data_type => "varchar", is_nullable => 1, size => 80 },
314
  "permanent_location",
315
  { data_type => "varchar", is_nullable => 1, size => 80 },
316
  "onloan",
317
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
318
  "cn_source",
319
  { data_type => "varchar", is_nullable => 1, size => 10 },
320
  "cn_sort",
321
  { data_type => "varchar", is_nullable => 1, size => 30 },
322
  "ccode",
323
  { data_type => "varchar", is_nullable => 1, size => 10 },
324
  "materials",
325
  { data_type => "varchar", is_nullable => 1, size => 10 },
326
  "uri",
327
  { data_type => "varchar", is_nullable => 1, size => 255 },
328
  "itype",
329
  { data_type => "varchar", is_nullable => 1, size => 10 },
330
  "more_subfields_xml",
331
  { data_type => "longtext", is_nullable => 1 },
332
  "enumchron",
333
  { data_type => "text", is_nullable => 1 },
334
  "copynumber",
335
  { data_type => "varchar", is_nullable => 1, size => 32 },
336
  "stocknumber",
337
  { data_type => "varchar", is_nullable => 1, size => 32 },
338
  "marc",
339
  { data_type => "longblob", is_nullable => 1 },
340
);
341
__PACKAGE__->set_primary_key("itemnumber");
342
343
344
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
345
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fpbGL8KM9E/8DQlB7zyt3A
346
347
348
# You can replace this text with custom code or comments, and it will be preserved on regeneration
349
1;
(-)a/Koha/Schema/Result/Ethnicity.pm (+51 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Ethnicity;
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::Ethnicity
15
16
=cut
17
18
__PACKAGE__->table("ethnicity");
19
20
=head1 ACCESSORS
21
22
=head2 code
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 name
30
31
  data_type: 'varchar'
32
  is_nullable: 1
33
  size: 255
34
35
=cut
36
37
__PACKAGE__->add_columns(
38
  "code",
39
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
40
  "name",
41
  { data_type => "varchar", is_nullable => 1, size => 255 },
42
);
43
__PACKAGE__->set_primary_key("code");
44
45
46
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JgUabuSmipIoXwODxK3k5w
48
49
50
# You can replace this text with custom code or comments, and it will be preserved on regeneration
51
1;
(-)a/Koha/Schema/Result/ExportFormat.pm (+96 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ExportFormat;
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::ExportFormat
15
16
=cut
17
18
__PACKAGE__->table("export_format");
19
20
=head1 ACCESSORS
21
22
=head2 export_format_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 profile
29
30
  data_type: 'varchar'
31
  is_nullable: 0
32
  size: 255
33
34
=head2 description
35
36
  data_type: 'mediumtext'
37
  is_nullable: 0
38
39
=head2 marcfields
40
41
  data_type: 'mediumtext'
42
  is_nullable: 0
43
44
=head2 csv_separator
45
46
  data_type: 'varchar'
47
  is_nullable: 0
48
  size: 2
49
50
=head2 field_separator
51
52
  data_type: 'varchar'
53
  is_nullable: 0
54
  size: 2
55
56
=head2 subfield_separator
57
58
  data_type: 'varchar'
59
  is_nullable: 0
60
  size: 2
61
62
=head2 encoding
63
64
  data_type: 'varchar'
65
  is_nullable: 0
66
  size: 255
67
68
=cut
69
70
__PACKAGE__->add_columns(
71
  "export_format_id",
72
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
73
  "profile",
74
  { data_type => "varchar", is_nullable => 0, size => 255 },
75
  "description",
76
  { data_type => "mediumtext", is_nullable => 0 },
77
  "marcfields",
78
  { data_type => "mediumtext", is_nullable => 0 },
79
  "csv_separator",
80
  { data_type => "varchar", is_nullable => 0, size => 2 },
81
  "field_separator",
82
  { data_type => "varchar", is_nullable => 0, size => 2 },
83
  "subfield_separator",
84
  { data_type => "varchar", is_nullable => 0, size => 2 },
85
  "encoding",
86
  { data_type => "varchar", is_nullable => 0, size => 255 },
87
);
88
__PACKAGE__->set_primary_key("export_format_id");
89
90
91
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+Cw41HZ6KpJ+LEKb+Pv8kg
93
94
95
# You can replace this text with custom code or comments, and it will be preserved on regeneration
96
1;
(-)a/Koha/Schema/Result/Fieldmapping.pm (+75 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Fieldmapping;
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::Fieldmapping
15
16
=cut
17
18
__PACKAGE__->table("fieldmapping");
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 field
29
30
  data_type: 'varchar'
31
  is_nullable: 0
32
  size: 255
33
34
=head2 frameworkcode
35
36
  data_type: 'char'
37
  default_value: (empty string)
38
  is_nullable: 0
39
  size: 4
40
41
=head2 fieldcode
42
43
  data_type: 'char'
44
  is_nullable: 0
45
  size: 3
46
47
=head2 subfieldcode
48
49
  data_type: 'char'
50
  is_nullable: 0
51
  size: 1
52
53
=cut
54
55
__PACKAGE__->add_columns(
56
  "id",
57
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
58
  "field",
59
  { data_type => "varchar", is_nullable => 0, size => 255 },
60
  "frameworkcode",
61
  { data_type => "char", default_value => "", is_nullable => 0, size => 4 },
62
  "fieldcode",
63
  { data_type => "char", is_nullable => 0, size => 3 },
64
  "subfieldcode",
65
  { data_type => "char", is_nullable => 0, size => 1 },
66
);
67
__PACKAGE__->set_primary_key("id");
68
69
70
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RmUV5FinlrPMd/Kj43u8wA
72
73
74
# You can replace this text with custom code or comments, and it will be preserved on regeneration
75
1;
(-)a/Koha/Schema/Result/HoldFillTarget.pm (+142 lines)
Line 0 Link Here
1
package Koha::Schema::Result::HoldFillTarget;
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::HoldFillTarget
15
16
=cut
17
18
__PACKAGE__->table("hold_fill_targets");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 biblionumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 itemnumber
35
36
  data_type: 'integer'
37
  is_foreign_key: 1
38
  is_nullable: 0
39
40
=head2 source_branchcode
41
42
  data_type: 'varchar'
43
  is_foreign_key: 1
44
  is_nullable: 1
45
  size: 10
46
47
=head2 item_level_request
48
49
  data_type: 'tinyint'
50
  default_value: 0
51
  is_nullable: 0
52
53
=cut
54
55
__PACKAGE__->add_columns(
56
  "borrowernumber",
57
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
58
  "biblionumber",
59
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
60
  "itemnumber",
61
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62
  "source_branchcode",
63
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
64
  "item_level_request",
65
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
66
);
67
__PACKAGE__->set_primary_key("itemnumber");
68
69
=head1 RELATIONS
70
71
=head2 borrowernumber
72
73
Type: belongs_to
74
75
Related object: L<Koha::Schema::Result::Borrower>
76
77
=cut
78
79
__PACKAGE__->belongs_to(
80
  "borrowernumber",
81
  "Koha::Schema::Result::Borrower",
82
  { borrowernumber => "borrowernumber" },
83
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
84
);
85
86
=head2 biblionumber
87
88
Type: belongs_to
89
90
Related object: L<Koha::Schema::Result::Biblio>
91
92
=cut
93
94
__PACKAGE__->belongs_to(
95
  "biblionumber",
96
  "Koha::Schema::Result::Biblio",
97
  { biblionumber => "biblionumber" },
98
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
99
);
100
101
=head2 itemnumber
102
103
Type: belongs_to
104
105
Related object: L<Koha::Schema::Result::Item>
106
107
=cut
108
109
__PACKAGE__->belongs_to(
110
  "itemnumber",
111
  "Koha::Schema::Result::Item",
112
  { itemnumber => "itemnumber" },
113
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
114
);
115
116
=head2 source_branchcode
117
118
Type: belongs_to
119
120
Related object: L<Koha::Schema::Result::Branch>
121
122
=cut
123
124
__PACKAGE__->belongs_to(
125
  "source_branchcode",
126
  "Koha::Schema::Result::Branch",
127
  { branchcode => "source_branchcode" },
128
  {
129
    is_deferrable => 1,
130
    join_type     => "LEFT",
131
    on_delete     => "CASCADE",
132
    on_update     => "CASCADE",
133
  },
134
);
135
136
137
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
138
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I581AHLqEeq7uY+MReecNA
139
140
141
# You can replace this text with custom code or comments, and it will be preserved on regeneration
142
1;
(-)a/Koha/Schema/Result/ImportBatch.pm (+213 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ImportBatch;
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::ImportBatch
15
16
=cut
17
18
__PACKAGE__->table("import_batches");
19
20
=head1 ACCESSORS
21
22
=head2 import_batch_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 matcher_id
29
30
  data_type: 'integer'
31
  is_nullable: 1
32
33
=head2 Kohalate_id
34
35
  data_type: 'integer'
36
  is_nullable: 1
37
38
=head2 branchcode
39
40
  data_type: 'varchar'
41
  is_nullable: 1
42
  size: 10
43
44
=head2 num_biblios
45
46
  data_type: 'integer'
47
  default_value: 0
48
  is_nullable: 0
49
50
=head2 num_items
51
52
  data_type: 'integer'
53
  default_value: 0
54
  is_nullable: 0
55
56
=head2 upload_timestamp
57
58
  data_type: 'timestamp'
59
  datetime_undef_if_invalid: 1
60
  default_value: current_timestamp
61
  is_nullable: 0
62
63
=head2 overlay_action
64
65
  data_type: 'enum'
66
  default_value: 'create_new'
67
  extra: {list => ["replace","create_new","use_Kohalate","ignore"]}
68
  is_nullable: 0
69
70
=head2 nomatch_action
71
72
  data_type: 'enum'
73
  default_value: 'create_new'
74
  extra: {list => ["create_new","ignore"]}
75
  is_nullable: 0
76
77
=head2 item_action
78
79
  data_type: 'enum'
80
  default_value: 'always_add'
81
  extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore"]}
82
  is_nullable: 0
83
84
=head2 import_status
85
86
  data_type: 'enum'
87
  default_value: 'staging'
88
  extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]}
89
  is_nullable: 0
90
91
=head2 batch_type
92
93
  data_type: 'enum'
94
  default_value: 'batch'
95
  extra: {list => ["batch","z3950","webservice"]}
96
  is_nullable: 0
97
98
=head2 file_name
99
100
  data_type: 'varchar'
101
  is_nullable: 1
102
  size: 100
103
104
=head2 comments
105
106
  data_type: 'mediumtext'
107
  is_nullable: 1
108
109
=cut
110
111
__PACKAGE__->add_columns(
112
  "import_batch_id",
113
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
114
  "matcher_id",
115
  { data_type => "integer", is_nullable => 1 },
116
  "Kohalate_id",
117
  { data_type => "integer", is_nullable => 1 },
118
  "branchcode",
119
  { data_type => "varchar", is_nullable => 1, size => 10 },
120
  "num_biblios",
121
  { data_type => "integer", default_value => 0, is_nullable => 0 },
122
  "num_items",
123
  { data_type => "integer", default_value => 0, is_nullable => 0 },
124
  "upload_timestamp",
125
  {
126
    data_type => "timestamp",
127
    datetime_undef_if_invalid => 1,
128
    default_value => \"current_timestamp",
129
    is_nullable => 0,
130
  },
131
  "overlay_action",
132
  {
133
    data_type => "enum",
134
    default_value => "create_new",
135
    extra => { list => ["replace", "create_new", "use_Kohalate", "ignore"] },
136
    is_nullable => 0,
137
  },
138
  "nomatch_action",
139
  {
140
    data_type => "enum",
141
    default_value => "create_new",
142
    extra => { list => ["create_new", "ignore"] },
143
    is_nullable => 0,
144
  },
145
  "item_action",
146
  {
147
    data_type => "enum",
148
    default_value => "always_add",
149
    extra => {
150
      list => [
151
        "always_add",
152
        "add_only_for_matches",
153
        "add_only_for_new",
154
        "ignore",
155
      ],
156
    },
157
    is_nullable => 0,
158
  },
159
  "import_status",
160
  {
161
    data_type => "enum",
162
    default_value => "staging",
163
    extra => {
164
      list => [
165
        "staging",
166
        "staged",
167
        "importing",
168
        "imported",
169
        "reverting",
170
        "reverted",
171
        "cleaned",
172
      ],
173
    },
174
    is_nullable => 0,
175
  },
176
  "batch_type",
177
  {
178
    data_type => "enum",
179
    default_value => "batch",
180
    extra => { list => ["batch", "z3950", "webservice"] },
181
    is_nullable => 0,
182
  },
183
  "file_name",
184
  { data_type => "varchar", is_nullable => 1, size => 100 },
185
  "comments",
186
  { data_type => "mediumtext", is_nullable => 1 },
187
);
188
__PACKAGE__->set_primary_key("import_batch_id");
189
190
=head1 RELATIONS
191
192
=head2 import_records
193
194
Type: has_many
195
196
Related object: L<Koha::Schema::Result::ImportRecord>
197
198
=cut
199
200
__PACKAGE__->has_many(
201
  "import_records",
202
  "Koha::Schema::Result::ImportRecord",
203
  { "foreign.import_batch_id" => "self.import_batch_id" },
204
  { cascade_copy => 0, cascade_delete => 0 },
205
);
206
207
208
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
209
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GAuiLHQU2mXQsbAzfgGRww
210
211
212
# You can replace this text with custom code or comments, and it will be preserved on regeneration
213
1;
(-)a/Koha/Schema/Result/ImportBiblio.pm (+121 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ImportBiblio;
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::ImportBiblio
15
16
=cut
17
18
__PACKAGE__->table("import_biblios");
19
20
=head1 ACCESSORS
21
22
=head2 import_record_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 matched_biblionumber
29
30
  data_type: 'integer'
31
  is_nullable: 1
32
33
=head2 control_number
34
35
  data_type: 'varchar'
36
  is_nullable: 1
37
  size: 25
38
39
=head2 original_source
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 25
44
45
=head2 title
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 128
50
51
=head2 author
52
53
  data_type: 'varchar'
54
  is_nullable: 1
55
  size: 80
56
57
=head2 isbn
58
59
  data_type: 'varchar'
60
  is_nullable: 1
61
  size: 30
62
63
=head2 issn
64
65
  data_type: 'varchar'
66
  is_nullable: 1
67
  size: 9
68
69
=head2 has_items
70
71
  data_type: 'tinyint'
72
  default_value: 0
73
  is_nullable: 0
74
75
=cut
76
77
__PACKAGE__->add_columns(
78
  "import_record_id",
79
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
80
  "matched_biblionumber",
81
  { data_type => "integer", is_nullable => 1 },
82
  "control_number",
83
  { data_type => "varchar", is_nullable => 1, size => 25 },
84
  "original_source",
85
  { data_type => "varchar", is_nullable => 1, size => 25 },
86
  "title",
87
  { data_type => "varchar", is_nullable => 1, size => 128 },
88
  "author",
89
  { data_type => "varchar", is_nullable => 1, size => 80 },
90
  "isbn",
91
  { data_type => "varchar", is_nullable => 1, size => 30 },
92
  "issn",
93
  { data_type => "varchar", is_nullable => 1, size => 9 },
94
  "has_items",
95
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
96
);
97
98
=head1 RELATIONS
99
100
=head2 import_record
101
102
Type: belongs_to
103
104
Related object: L<Koha::Schema::Result::ImportRecord>
105
106
=cut
107
108
__PACKAGE__->belongs_to(
109
  "import_record",
110
  "Koha::Schema::Result::ImportRecord",
111
  { import_record_id => "import_record_id" },
112
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
113
);
114
115
116
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
117
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4OJlvjqXThiabdn1C8V5eA
118
119
120
# You can replace this text with custom code or comments, and it will be preserved on regeneration
121
1;
(-)a/Koha/Schema/Result/ImportItem.pm (+110 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ImportItem;
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::ImportItem
15
16
=cut
17
18
__PACKAGE__->table("import_items");
19
20
=head1 ACCESSORS
21
22
=head2 import_items_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 import_record_id
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 itemnumber
35
36
  data_type: 'integer'
37
  is_nullable: 1
38
39
=head2 branchcode
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 10
44
45
=head2 status
46
47
  data_type: 'enum'
48
  default_value: 'staged'
49
  extra: {list => ["error","staged","imported","reverted","ignored"]}
50
  is_nullable: 0
51
52
=head2 marcxml
53
54
  data_type: 'longtext'
55
  is_nullable: 0
56
57
=head2 import_error
58
59
  data_type: 'mediumtext'
60
  is_nullable: 1
61
62
=cut
63
64
__PACKAGE__->add_columns(
65
  "import_items_id",
66
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
67
  "import_record_id",
68
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
69
  "itemnumber",
70
  { data_type => "integer", is_nullable => 1 },
71
  "branchcode",
72
  { data_type => "varchar", is_nullable => 1, size => 10 },
73
  "status",
74
  {
75
    data_type => "enum",
76
    default_value => "staged",
77
    extra => { list => ["error", "staged", "imported", "reverted", "ignored"] },
78
    is_nullable => 0,
79
  },
80
  "marcxml",
81
  { data_type => "longtext", is_nullable => 0 },
82
  "import_error",
83
  { data_type => "mediumtext", is_nullable => 1 },
84
);
85
__PACKAGE__->set_primary_key("import_items_id");
86
87
=head1 RELATIONS
88
89
=head2 import_record
90
91
Type: belongs_to
92
93
Related object: L<Koha::Schema::Result::ImportRecord>
94
95
=cut
96
97
__PACKAGE__->belongs_to(
98
  "import_record",
99
  "Koha::Schema::Result::ImportRecord",
100
  { import_record_id => "import_record_id" },
101
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
102
);
103
104
105
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qeU1GRuzO0vKYexAWTZubg
107
108
109
# You can replace this text with custom code or comments, and it will be preserved on regeneration
110
1;
(-)a/Koha/Schema/Result/ImportRecord.pm (+248 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ImportRecord;
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::ImportRecord
15
16
=cut
17
18
__PACKAGE__->table("import_records");
19
20
=head1 ACCESSORS
21
22
=head2 import_record_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 import_batch_id
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 branchcode
35
36
  data_type: 'varchar'
37
  is_nullable: 1
38
  size: 10
39
40
=head2 record_sequence
41
42
  data_type: 'integer'
43
  default_value: 0
44
  is_nullable: 0
45
46
=head2 upload_timestamp
47
48
  data_type: 'timestamp'
49
  datetime_undef_if_invalid: 1
50
  default_value: current_timestamp
51
  is_nullable: 0
52
53
=head2 import_date
54
55
  data_type: 'date'
56
  datetime_undef_if_invalid: 1
57
  is_nullable: 1
58
59
=head2 marc
60
61
  data_type: 'longblob'
62
  is_nullable: 0
63
64
=head2 marcxml
65
66
  data_type: 'longtext'
67
  is_nullable: 0
68
69
=head2 marcxml_old
70
71
  data_type: 'longtext'
72
  is_nullable: 0
73
74
=head2 record_type
75
76
  data_type: 'enum'
77
  default_value: 'biblio'
78
  extra: {list => ["biblio","auth","holdings"]}
79
  is_nullable: 0
80
81
=head2 overlay_status
82
83
  data_type: 'enum'
84
  default_value: 'no_match'
85
  extra: {list => ["no_match","auto_match","manual_match","match_applied"]}
86
  is_nullable: 0
87
88
=head2 status
89
90
  data_type: 'enum'
91
  default_value: 'staged'
92
  extra: {list => ["error","staged","imported","reverted","items_reverted","ignored"]}
93
  is_nullable: 0
94
95
=head2 import_error
96
97
  data_type: 'mediumtext'
98
  is_nullable: 1
99
100
=head2 encoding
101
102
  data_type: 'varchar'
103
  default_value: (empty string)
104
  is_nullable: 0
105
  size: 40
106
107
=head2 z3950random
108
109
  data_type: 'varchar'
110
  is_nullable: 1
111
  size: 40
112
113
=cut
114
115
__PACKAGE__->add_columns(
116
  "import_record_id",
117
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
118
  "import_batch_id",
119
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
120
  "branchcode",
121
  { data_type => "varchar", is_nullable => 1, size => 10 },
122
  "record_sequence",
123
  { data_type => "integer", default_value => 0, is_nullable => 0 },
124
  "upload_timestamp",
125
  {
126
    data_type => "timestamp",
127
    datetime_undef_if_invalid => 1,
128
    default_value => \"current_timestamp",
129
    is_nullable => 0,
130
  },
131
  "import_date",
132
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
133
  "marc",
134
  { data_type => "longblob", is_nullable => 0 },
135
  "marcxml",
136
  { data_type => "longtext", is_nullable => 0 },
137
  "marcxml_old",
138
  { data_type => "longtext", is_nullable => 0 },
139
  "record_type",
140
  {
141
    data_type => "enum",
142
    default_value => "biblio",
143
    extra => { list => ["biblio", "auth", "holdings"] },
144
    is_nullable => 0,
145
  },
146
  "overlay_status",
147
  {
148
    data_type => "enum",
149
    default_value => "no_match",
150
    extra => {
151
      list => ["no_match", "auto_match", "manual_match", "match_applied"],
152
    },
153
    is_nullable => 0,
154
  },
155
  "status",
156
  {
157
    data_type => "enum",
158
    default_value => "staged",
159
    extra => {
160
      list => [
161
        "error",
162
        "staged",
163
        "imported",
164
        "reverted",
165
        "items_reverted",
166
        "ignored",
167
      ],
168
    },
169
    is_nullable => 0,
170
  },
171
  "import_error",
172
  { data_type => "mediumtext", is_nullable => 1 },
173
  "encoding",
174
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
175
  "z3950random",
176
  { data_type => "varchar", is_nullable => 1, size => 40 },
177
);
178
__PACKAGE__->set_primary_key("import_record_id");
179
180
=head1 RELATIONS
181
182
=head2 import_biblios
183
184
Type: has_many
185
186
Related object: L<Koha::Schema::Result::ImportBiblio>
187
188
=cut
189
190
__PACKAGE__->has_many(
191
  "import_biblios",
192
  "Koha::Schema::Result::ImportBiblio",
193
  { "foreign.import_record_id" => "self.import_record_id" },
194
  { cascade_copy => 0, cascade_delete => 0 },
195
);
196
197
=head2 import_items
198
199
Type: has_many
200
201
Related object: L<Koha::Schema::Result::ImportItem>
202
203
=cut
204
205
__PACKAGE__->has_many(
206
  "import_items",
207
  "Koha::Schema::Result::ImportItem",
208
  { "foreign.import_record_id" => "self.import_record_id" },
209
  { cascade_copy => 0, cascade_delete => 0 },
210
);
211
212
=head2 import_records_matches
213
214
Type: has_many
215
216
Related object: L<Koha::Schema::Result::ImportRecordMatches>
217
218
=cut
219
220
__PACKAGE__->has_many(
221
  "import_records_matches",
222
  "Koha::Schema::Result::ImportRecordMatches",
223
  { "foreign.import_record_id" => "self.import_record_id" },
224
  { cascade_copy => 0, cascade_delete => 0 },
225
);
226
227
=head2 import_batch
228
229
Type: belongs_to
230
231
Related object: L<Koha::Schema::Result::ImportBatch>
232
233
=cut
234
235
__PACKAGE__->belongs_to(
236
  "import_batch",
237
  "Koha::Schema::Result::ImportBatch",
238
  { import_batch_id => "import_batch_id" },
239
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
240
);
241
242
243
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
244
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tV0QuZ/ZL2W4yt/RUjJPLw
245
246
247
# You can replace this text with custom code or comments, and it will be preserved on regeneration
248
1;
(-)a/Koha/Schema/Result/ImportRecordMatches.pm (+73 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ImportRecordMatches;
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::ImportRecordMatches
15
16
=cut
17
18
__PACKAGE__->table("import_record_matches");
19
20
=head1 ACCESSORS
21
22
=head2 import_record_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 candidate_match_id
29
30
  data_type: 'integer'
31
  is_nullable: 0
32
33
=head2 score
34
35
  data_type: 'integer'
36
  default_value: 0
37
  is_nullable: 0
38
39
=cut
40
41
__PACKAGE__->add_columns(
42
  "import_record_id",
43
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
44
  "candidate_match_id",
45
  { data_type => "integer", is_nullable => 0 },
46
  "score",
47
  { data_type => "integer", default_value => 0, is_nullable => 0 },
48
);
49
50
=head1 RELATIONS
51
52
=head2 import_record
53
54
Type: belongs_to
55
56
Related object: L<Koha::Schema::Result::ImportRecord>
57
58
=cut
59
60
__PACKAGE__->belongs_to(
61
  "import_record",
62
  "Koha::Schema::Result::ImportRecord",
63
  { import_record_id => "import_record_id" },
64
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
65
);
66
67
68
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
69
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bh4RaUSRCXaWR5uLUVU1XA
70
71
72
# You can replace this text with custom code or comments, and it will be preserved on regeneration
73
1;
(-)a/Koha/Schema/Result/Issue.pm (+184 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Issue;
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::Issue
15
16
=cut
17
18
__PACKAGE__->table("issues");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 1
27
28
=head2 itemnumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 1
33
34
=head2 date_due
35
36
  data_type: 'datetime'
37
  datetime_undef_if_invalid: 1
38
  is_nullable: 1
39
40
=head2 branchcode
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 10
45
46
=head2 issuingbranch
47
48
  data_type: 'varchar'
49
  is_nullable: 1
50
  size: 18
51
52
=head2 returndate
53
54
  data_type: 'datetime'
55
  datetime_undef_if_invalid: 1
56
  is_nullable: 1
57
58
=head2 lastreneweddate
59
60
  data_type: 'datetime'
61
  datetime_undef_if_invalid: 1
62
  is_nullable: 1
63
64
=head2 return
65
66
  data_type: 'varchar'
67
  is_nullable: 1
68
  size: 4
69
70
=head2 renewals
71
72
  data_type: 'tinyint'
73
  is_nullable: 1
74
75
=head2 timestamp
76
77
  data_type: 'timestamp'
78
  datetime_undef_if_invalid: 1
79
  default_value: current_timestamp
80
  is_nullable: 0
81
82
=head2 issuedate
83
84
  data_type: 'datetime'
85
  datetime_undef_if_invalid: 1
86
  is_nullable: 1
87
88
=cut
89
90
__PACKAGE__->add_columns(
91
  "borrowernumber",
92
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
93
  "itemnumber",
94
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
95
  "date_due",
96
  {
97
    data_type => "datetime",
98
    datetime_undef_if_invalid => 1,
99
    is_nullable => 1,
100
  },
101
  "branchcode",
102
  { data_type => "varchar", is_nullable => 1, size => 10 },
103
  "issuingbranch",
104
  { data_type => "varchar", is_nullable => 1, size => 18 },
105
  "returndate",
106
  {
107
    data_type => "datetime",
108
    datetime_undef_if_invalid => 1,
109
    is_nullable => 1,
110
  },
111
  "lastreneweddate",
112
  {
113
    data_type => "datetime",
114
    datetime_undef_if_invalid => 1,
115
    is_nullable => 1,
116
  },
117
  "return",
118
  { data_type => "varchar", is_nullable => 1, size => 4 },
119
  "renewals",
120
  { data_type => "tinyint", is_nullable => 1 },
121
  "timestamp",
122
  {
123
    data_type => "timestamp",
124
    datetime_undef_if_invalid => 1,
125
    default_value => \"current_timestamp",
126
    is_nullable => 0,
127
  },
128
  "issuedate",
129
  {
130
    data_type => "datetime",
131
    datetime_undef_if_invalid => 1,
132
    is_nullable => 1,
133
  },
134
);
135
136
=head1 RELATIONS
137
138
=head2 borrowernumber
139
140
Type: belongs_to
141
142
Related object: L<Koha::Schema::Result::Borrower>
143
144
=cut
145
146
__PACKAGE__->belongs_to(
147
  "borrowernumber",
148
  "Koha::Schema::Result::Borrower",
149
  { borrowernumber => "borrowernumber" },
150
  {
151
    is_deferrable => 1,
152
    join_type     => "LEFT",
153
    on_delete     => "CASCADE",
154
    on_update     => "CASCADE",
155
  },
156
);
157
158
=head2 itemnumber
159
160
Type: belongs_to
161
162
Related object: L<Koha::Schema::Result::Item>
163
164
=cut
165
166
__PACKAGE__->belongs_to(
167
  "itemnumber",
168
  "Koha::Schema::Result::Item",
169
  { itemnumber => "itemnumber" },
170
  {
171
    is_deferrable => 1,
172
    join_type     => "LEFT",
173
    on_delete     => "CASCADE",
174
    on_update     => "CASCADE",
175
  },
176
);
177
178
179
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
180
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jBd5qIa6ldBf1v4j5Dr3LQ
181
182
183
# You can replace this text with custom code or comments, and it will be preserved on regeneration
184
1;
(-)a/Koha/Schema/Result/Issuingrule.pm (+188 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Issuingrule;
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::Issuingrule
15
16
=cut
17
18
__PACKAGE__->table("issuingrules");
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 itemtype
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 10
35
36
=head2 restrictedtype
37
38
  data_type: 'tinyint'
39
  is_nullable: 1
40
41
=head2 rentaldiscount
42
43
  data_type: 'decimal'
44
  is_nullable: 1
45
  size: [28,6]
46
47
=head2 reservecharge
48
49
  data_type: 'decimal'
50
  is_nullable: 1
51
  size: [28,6]
52
53
=head2 fine
54
55
  data_type: 'decimal'
56
  is_nullable: 1
57
  size: [28,6]
58
59
=head2 finedays
60
61
  data_type: 'integer'
62
  is_nullable: 1
63
64
=head2 firstremind
65
66
  data_type: 'integer'
67
  is_nullable: 1
68
69
=head2 chargeperiod
70
71
  data_type: 'integer'
72
  is_nullable: 1
73
74
=head2 accountsent
75
76
  data_type: 'integer'
77
  is_nullable: 1
78
79
=head2 chargename
80
81
  data_type: 'varchar'
82
  is_nullable: 1
83
  size: 100
84
85
=head2 maxissueqty
86
87
  data_type: 'integer'
88
  is_nullable: 1
89
90
=head2 issuelength
91
92
  data_type: 'integer'
93
  is_nullable: 1
94
95
=head2 lengthunit
96
97
  data_type: 'varchar'
98
  default_value: 'days'
99
  is_nullable: 1
100
  size: 10
101
102
=head2 hardduedate
103
104
  data_type: 'date'
105
  datetime_undef_if_invalid: 1
106
  is_nullable: 1
107
108
=head2 hardduedatecompare
109
110
  data_type: 'tinyint'
111
  default_value: 0
112
  is_nullable: 0
113
114
=head2 renewalsallowed
115
116
  data_type: 'smallint'
117
  default_value: 0
118
  is_nullable: 0
119
120
=head2 reservesallowed
121
122
  data_type: 'smallint'
123
  default_value: 0
124
  is_nullable: 0
125
126
=head2 branchcode
127
128
  data_type: 'varchar'
129
  default_value: (empty string)
130
  is_nullable: 0
131
  size: 10
132
133
=cut
134
135
__PACKAGE__->add_columns(
136
  "categorycode",
137
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
138
  "itemtype",
139
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
140
  "restrictedtype",
141
  { data_type => "tinyint", is_nullable => 1 },
142
  "rentaldiscount",
143
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
144
  "reservecharge",
145
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
146
  "fine",
147
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
148
  "finedays",
149
  { data_type => "integer", is_nullable => 1 },
150
  "firstremind",
151
  { data_type => "integer", is_nullable => 1 },
152
  "chargeperiod",
153
  { data_type => "integer", is_nullable => 1 },
154
  "accountsent",
155
  { data_type => "integer", is_nullable => 1 },
156
  "chargename",
157
  { data_type => "varchar", is_nullable => 1, size => 100 },
158
  "maxissueqty",
159
  { data_type => "integer", is_nullable => 1 },
160
  "issuelength",
161
  { data_type => "integer", is_nullable => 1 },
162
  "lengthunit",
163
  {
164
    data_type => "varchar",
165
    default_value => "days",
166
    is_nullable => 1,
167
    size => 10,
168
  },
169
  "hardduedate",
170
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
171
  "hardduedatecompare",
172
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
173
  "renewalsallowed",
174
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
175
  "reservesallowed",
176
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
177
  "branchcode",
178
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
179
);
180
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
181
182
183
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
184
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m++iGEZn62Gvvl34+AT1lg
185
186
187
# You can replace this text with custom code or comments, and it will be preserved on regeneration
188
1;
(-)a/Koha/Schema/Result/Item.pm (+542 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Item;
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::Item
15
16
=cut
17
18
__PACKAGE__->table("items");
19
20
=head1 ACCESSORS
21
22
=head2 itemnumber
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 biblionumber
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_nullable: 0
33
34
=head2 biblioitemnumber
35
36
  data_type: 'integer'
37
  default_value: 0
38
  is_foreign_key: 1
39
  is_nullable: 0
40
41
=head2 barcode
42
43
  data_type: 'varchar'
44
  is_nullable: 1
45
  size: 20
46
47
=head2 dateaccessioned
48
49
  data_type: 'date'
50
  datetime_undef_if_invalid: 1
51
  is_nullable: 1
52
53
=head2 booksellerid
54
55
  data_type: 'mediumtext'
56
  is_nullable: 1
57
58
=head2 homebranch
59
60
  data_type: 'varchar'
61
  is_foreign_key: 1
62
  is_nullable: 1
63
  size: 10
64
65
=head2 price
66
67
  data_type: 'decimal'
68
  is_nullable: 1
69
  size: [8,2]
70
71
=head2 replacementprice
72
73
  data_type: 'decimal'
74
  is_nullable: 1
75
  size: [8,2]
76
77
=head2 replacementpricedate
78
79
  data_type: 'date'
80
  datetime_undef_if_invalid: 1
81
  is_nullable: 1
82
83
=head2 datelastborrowed
84
85
  data_type: 'date'
86
  datetime_undef_if_invalid: 1
87
  is_nullable: 1
88
89
=head2 datelastseen
90
91
  data_type: 'date'
92
  datetime_undef_if_invalid: 1
93
  is_nullable: 1
94
95
=head2 stack
96
97
  data_type: 'tinyint'
98
  is_nullable: 1
99
100
=head2 notforloan
101
102
  data_type: 'tinyint'
103
  default_value: 0
104
  is_nullable: 0
105
106
=head2 damaged
107
108
  data_type: 'tinyint'
109
  default_value: 0
110
  is_nullable: 0
111
112
=head2 itemlost
113
114
  data_type: 'tinyint'
115
  default_value: 0
116
  is_nullable: 0
117
118
=head2 wthdrawn
119
120
  data_type: 'tinyint'
121
  default_value: 0
122
  is_nullable: 0
123
124
=head2 itemcallnumber
125
126
  data_type: 'varchar'
127
  is_nullable: 1
128
  size: 255
129
130
=head2 issues
131
132
  data_type: 'smallint'
133
  is_nullable: 1
134
135
=head2 renewals
136
137
  data_type: 'smallint'
138
  is_nullable: 1
139
140
=head2 reserves
141
142
  data_type: 'smallint'
143
  is_nullable: 1
144
145
=head2 restricted
146
147
  data_type: 'tinyint'
148
  is_nullable: 1
149
150
=head2 itemnotes
151
152
  data_type: 'mediumtext'
153
  is_nullable: 1
154
155
=head2 holdingbranch
156
157
  data_type: 'varchar'
158
  is_foreign_key: 1
159
  is_nullable: 1
160
  size: 10
161
162
=head2 paidfor
163
164
  data_type: 'mediumtext'
165
  is_nullable: 1
166
167
=head2 timestamp
168
169
  data_type: 'timestamp'
170
  datetime_undef_if_invalid: 1
171
  default_value: current_timestamp
172
  is_nullable: 0
173
174
=head2 location
175
176
  data_type: 'varchar'
177
  is_nullable: 1
178
  size: 80
179
180
=head2 permanent_location
181
182
  data_type: 'varchar'
183
  is_nullable: 1
184
  size: 80
185
186
=head2 onloan
187
188
  data_type: 'date'
189
  datetime_undef_if_invalid: 1
190
  is_nullable: 1
191
192
=head2 cn_source
193
194
  data_type: 'varchar'
195
  is_nullable: 1
196
  size: 10
197
198
=head2 cn_sort
199
200
  data_type: 'varchar'
201
  is_nullable: 1
202
  size: 30
203
204
=head2 ccode
205
206
  data_type: 'varchar'
207
  is_nullable: 1
208
  size: 10
209
210
=head2 materials
211
212
  data_type: 'text'
213
  is_nullable: 1
214
215
=head2 uri
216
217
  data_type: 'varchar'
218
  is_nullable: 1
219
  size: 255
220
221
=head2 itype
222
223
  data_type: 'varchar'
224
  is_nullable: 1
225
  size: 10
226
227
=head2 more_subfields_xml
228
229
  data_type: 'longtext'
230
  is_nullable: 1
231
232
=head2 enumchron
233
234
  data_type: 'text'
235
  is_nullable: 1
236
237
=head2 copynumber
238
239
  data_type: 'varchar'
240
  is_nullable: 1
241
  size: 32
242
243
=head2 stocknumber
244
245
  data_type: 'varchar'
246
  is_nullable: 1
247
  size: 32
248
249
=cut
250
251
__PACKAGE__->add_columns(
252
  "itemnumber",
253
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
254
  "biblionumber",
255
  { data_type => "integer", default_value => 0, is_nullable => 0 },
256
  "biblioitemnumber",
257
  {
258
    data_type      => "integer",
259
    default_value  => 0,
260
    is_foreign_key => 1,
261
    is_nullable    => 0,
262
  },
263
  "barcode",
264
  { data_type => "varchar", is_nullable => 1, size => 20 },
265
  "dateaccessioned",
266
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
267
  "booksellerid",
268
  { data_type => "mediumtext", is_nullable => 1 },
269
  "homebranch",
270
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
271
  "price",
272
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
273
  "replacementprice",
274
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
275
  "replacementpricedate",
276
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
277
  "datelastborrowed",
278
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
279
  "datelastseen",
280
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
281
  "stack",
282
  { data_type => "tinyint", is_nullable => 1 },
283
  "notforloan",
284
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
285
  "damaged",
286
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
287
  "itemlost",
288
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
289
  "wthdrawn",
290
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
291
  "itemcallnumber",
292
  { data_type => "varchar", is_nullable => 1, size => 255 },
293
  "issues",
294
  { data_type => "smallint", is_nullable => 1 },
295
  "renewals",
296
  { data_type => "smallint", is_nullable => 1 },
297
  "reserves",
298
  { data_type => "smallint", is_nullable => 1 },
299
  "restricted",
300
  { data_type => "tinyint", is_nullable => 1 },
301
  "itemnotes",
302
  { data_type => "mediumtext", is_nullable => 1 },
303
  "holdingbranch",
304
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
305
  "paidfor",
306
  { data_type => "mediumtext", is_nullable => 1 },
307
  "timestamp",
308
  {
309
    data_type => "timestamp",
310
    datetime_undef_if_invalid => 1,
311
    default_value => \"current_timestamp",
312
    is_nullable => 0,
313
  },
314
  "location",
315
  { data_type => "varchar", is_nullable => 1, size => 80 },
316
  "permanent_location",
317
  { data_type => "varchar", is_nullable => 1, size => 80 },
318
  "onloan",
319
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
320
  "cn_source",
321
  { data_type => "varchar", is_nullable => 1, size => 10 },
322
  "cn_sort",
323
  { data_type => "varchar", is_nullable => 1, size => 30 },
324
  "ccode",
325
  { data_type => "varchar", is_nullable => 1, size => 10 },
326
  "materials",
327
  { data_type => "text", is_nullable => 1 },
328
  "uri",
329
  { data_type => "varchar", is_nullable => 1, size => 255 },
330
  "itype",
331
  { data_type => "varchar", is_nullable => 1, size => 10 },
332
  "more_subfields_xml",
333
  { data_type => "longtext", is_nullable => 1 },
334
  "enumchron",
335
  { data_type => "text", is_nullable => 1 },
336
  "copynumber",
337
  { data_type => "varchar", is_nullable => 1, size => 32 },
338
  "stocknumber",
339
  { data_type => "varchar", is_nullable => 1, size => 32 },
340
);
341
__PACKAGE__->set_primary_key("itemnumber");
342
__PACKAGE__->add_unique_constraint("itembarcodeidx", ["barcode"]);
343
344
=head1 RELATIONS
345
346
=head2 accountlines
347
348
Type: has_many
349
350
Related object: L<Koha::Schema::Result::Accountline>
351
352
=cut
353
354
__PACKAGE__->has_many(
355
  "accountlines",
356
  "Koha::Schema::Result::Accountline",
357
  { "foreign.itemnumber" => "self.itemnumber" },
358
  { cascade_copy => 0, cascade_delete => 0 },
359
);
360
361
=head2 branchtransfers
362
363
Type: has_many
364
365
Related object: L<Koha::Schema::Result::Branchtransfer>
366
367
=cut
368
369
__PACKAGE__->has_many(
370
  "branchtransfers",
371
  "Koha::Schema::Result::Branchtransfer",
372
  { "foreign.itemnumber" => "self.itemnumber" },
373
  { cascade_copy => 0, cascade_delete => 0 },
374
);
375
376
=head2 creator_batches
377
378
Type: has_many
379
380
Related object: L<Koha::Schema::Result::CreatorBatch>
381
382
=cut
383
384
__PACKAGE__->has_many(
385
  "creator_batches",
386
  "Koha::Schema::Result::CreatorBatch",
387
  { "foreign.item_number" => "self.itemnumber" },
388
  { cascade_copy => 0, cascade_delete => 0 },
389
);
390
391
=head2 hold_fill_target
392
393
Type: might_have
394
395
Related object: L<Koha::Schema::Result::HoldFillTarget>
396
397
=cut
398
399
__PACKAGE__->might_have(
400
  "hold_fill_target",
401
  "Koha::Schema::Result::HoldFillTarget",
402
  { "foreign.itemnumber" => "self.itemnumber" },
403
  { cascade_copy => 0, cascade_delete => 0 },
404
);
405
406
=head2 issues
407
408
Type: has_many
409
410
Related object: L<Koha::Schema::Result::Issue>
411
412
=cut
413
414
__PACKAGE__->has_many(
415
  "issues",
416
  "Koha::Schema::Result::Issue",
417
  { "foreign.itemnumber" => "self.itemnumber" },
418
  { cascade_copy => 0, cascade_delete => 0 },
419
);
420
421
=head2 biblioitemnumber
422
423
Type: belongs_to
424
425
Related object: L<Koha::Schema::Result::Biblioitem>
426
427
=cut
428
429
__PACKAGE__->belongs_to(
430
  "biblioitemnumber",
431
  "Koha::Schema::Result::Biblioitem",
432
  { biblioitemnumber => "biblioitemnumber" },
433
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
434
);
435
436
=head2 homebranch
437
438
Type: belongs_to
439
440
Related object: L<Koha::Schema::Result::Branch>
441
442
=cut
443
444
__PACKAGE__->belongs_to(
445
  "homebranch",
446
  "Koha::Schema::Result::Branch",
447
  { branchcode => "homebranch" },
448
  {
449
    is_deferrable => 1,
450
    join_type     => "LEFT",
451
    on_delete     => "CASCADE",
452
    on_update     => "CASCADE",
453
  },
454
);
455
456
=head2 holdingbranch
457
458
Type: belongs_to
459
460
Related object: L<Koha::Schema::Result::Branch>
461
462
=cut
463
464
__PACKAGE__->belongs_to(
465
  "holdingbranch",
466
  "Koha::Schema::Result::Branch",
467
  { branchcode => "holdingbranch" },
468
  {
469
    is_deferrable => 1,
470
    join_type     => "LEFT",
471
    on_delete     => "CASCADE",
472
    on_update     => "CASCADE",
473
  },
474
);
475
476
=head2 old_issues
477
478
Type: has_many
479
480
Related object: L<Koha::Schema::Result::OldIssue>
481
482
=cut
483
484
__PACKAGE__->has_many(
485
  "old_issues",
486
  "Koha::Schema::Result::OldIssue",
487
  { "foreign.itemnumber" => "self.itemnumber" },
488
  { cascade_copy => 0, cascade_delete => 0 },
489
);
490
491
=head2 old_reserves
492
493
Type: has_many
494
495
Related object: L<Koha::Schema::Result::OldReserve>
496
497
=cut
498
499
__PACKAGE__->has_many(
500
  "old_reserves",
501
  "Koha::Schema::Result::OldReserve",
502
  { "foreign.itemnumber" => "self.itemnumber" },
503
  { cascade_copy => 0, cascade_delete => 0 },
504
);
505
506
=head2 reserves
507
508
Type: has_many
509
510
Related object: L<Koha::Schema::Result::Reserve>
511
512
=cut
513
514
__PACKAGE__->has_many(
515
  "reserves",
516
  "Koha::Schema::Result::Reserve",
517
  { "foreign.itemnumber" => "self.itemnumber" },
518
  { cascade_copy => 0, cascade_delete => 0 },
519
);
520
521
=head2 serialitem
522
523
Type: might_have
524
525
Related object: L<Koha::Schema::Result::Serialitem>
526
527
=cut
528
529
__PACKAGE__->might_have(
530
  "serialitem",
531
  "Koha::Schema::Result::Serialitem",
532
  { "foreign.itemnumber" => "self.itemnumber" },
533
  { cascade_copy => 0, cascade_delete => 0 },
534
);
535
536
537
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
538
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tE2onWzRsN1yQqDYUZA7Cg
539
540
541
# You can replace this text with custom code or comments, and it will be preserved on regeneration
542
1;
(-)a/Koha/Schema/Result/ItemCirculationAlertPreference.pm (+74 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ItemCirculationAlertPreference;
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::ItemCirculationAlertPreference
15
16
=cut
17
18
__PACKAGE__->table("item_circulation_alert_preferences");
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 branchcode
29
30
  data_type: 'varchar'
31
  is_nullable: 0
32
  size: 10
33
34
=head2 categorycode
35
36
  data_type: 'varchar'
37
  is_nullable: 0
38
  size: 10
39
40
=head2 item_type
41
42
  data_type: 'varchar'
43
  is_nullable: 0
44
  size: 10
45
46
=head2 notification
47
48
  data_type: 'varchar'
49
  is_nullable: 0
50
  size: 16
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "id",
56
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
57
  "branchcode",
58
  { data_type => "varchar", is_nullable => 0, size => 10 },
59
  "categorycode",
60
  { data_type => "varchar", is_nullable => 0, size => 10 },
61
  "item_type",
62
  { data_type => "varchar", is_nullable => 0, size => 10 },
63
  "notification",
64
  { data_type => "varchar", is_nullable => 0, size => 16 },
65
);
66
__PACKAGE__->set_primary_key("id");
67
68
69
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wj2RCmzkFQ+2fc1QXAVdpw
71
72
73
# You can replace this text with custom code or comments, and it will be preserved on regeneration
74
1;
(-)a/Koha/Schema/Result/Itemtype.pm (+112 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Itemtype;
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::Itemtype
15
16
=cut
17
18
__PACKAGE__->table("itemtypes");
19
20
=head1 ACCESSORS
21
22
=head2 itemtype
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 description
30
31
  data_type: 'mediumtext'
32
  is_nullable: 1
33
34
=head2 rentalcharge
35
36
  data_type: 'double precision'
37
  is_nullable: 1
38
  size: [16,4]
39
40
=head2 notforloan
41
42
  data_type: 'smallint'
43
  is_nullable: 1
44
45
=head2 imageurl
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 200
50
51
=head2 summary
52
53
  data_type: 'text'
54
  is_nullable: 1
55
56
=cut
57
58
__PACKAGE__->add_columns(
59
  "itemtype",
60
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
61
  "description",
62
  { data_type => "mediumtext", is_nullable => 1 },
63
  "rentalcharge",
64
  { data_type => "double precision", is_nullable => 1, size => [16, 4] },
65
  "notforloan",
66
  { data_type => "smallint", is_nullable => 1 },
67
  "imageurl",
68
  { data_type => "varchar", is_nullable => 1, size => 200 },
69
  "summary",
70
  { data_type => "text", is_nullable => 1 },
71
);
72
__PACKAGE__->set_primary_key("itemtype");
73
74
=head1 RELATIONS
75
76
=head2 branch_item_rules
77
78
Type: has_many
79
80
Related object: L<Koha::Schema::Result::BranchItemRule>
81
82
=cut
83
84
__PACKAGE__->has_many(
85
  "branch_item_rules",
86
  "Koha::Schema::Result::BranchItemRule",
87
  { "foreign.itemtype" => "self.itemtype" },
88
  { cascade_copy => 0, cascade_delete => 0 },
89
);
90
91
=head2 default_branch_item_rule
92
93
Type: might_have
94
95
Related object: L<Koha::Schema::Result::DefaultBranchItemRule>
96
97
=cut
98
99
__PACKAGE__->might_have(
100
  "default_branch_item_rule",
101
  "Koha::Schema::Result::DefaultBranchItemRule",
102
  { "foreign.itemtype" => "self.itemtype" },
103
  { cascade_copy => 0, cascade_delete => 0 },
104
);
105
106
107
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
108
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Web4rsWX3zjDrSezAXAV7w
109
110
111
# You can replace this text with custom code or comments, and it will be preserved on regeneration
112
1;
(-)a/Koha/Schema/Result/LanguageDescription.pm (+74 lines)
Line 0 Link Here
1
package Koha::Schema::Result::LanguageDescription;
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::LanguageDescription
15
16
=cut
17
18
__PACKAGE__->table("language_descriptions");
19
20
=head1 ACCESSORS
21
22
=head2 subtag
23
24
  data_type: 'varchar'
25
  is_nullable: 1
26
  size: 25
27
28
=head2 type
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 25
33
34
=head2 lang
35
36
  data_type: 'varchar'
37
  is_nullable: 1
38
  size: 25
39
40
=head2 description
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 255
45
46
=head2 id
47
48
  data_type: 'integer'
49
  is_auto_increment: 1
50
  is_nullable: 0
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "subtag",
56
  { data_type => "varchar", is_nullable => 1, size => 25 },
57
  "type",
58
  { data_type => "varchar", is_nullable => 1, size => 25 },
59
  "lang",
60
  { data_type => "varchar", is_nullable => 1, size => 25 },
61
  "description",
62
  { data_type => "varchar", is_nullable => 1, size => 255 },
63
  "id",
64
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
65
);
66
__PACKAGE__->set_primary_key("id");
67
68
69
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RVDl2q3rwZolv/iHRzf9jg
71
72
73
# You can replace this text with custom code or comments, and it will be preserved on regeneration
74
1;
(-)a/Koha/Schema/Result/LanguageRfc4646ToIso639.pm (+58 lines)
Line 0 Link Here
1
package Koha::Schema::Result::LanguageRfc4646ToIso639;
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::LanguageRfc4646ToIso639
15
16
=cut
17
18
__PACKAGE__->table("language_rfc4646_to_iso639");
19
20
=head1 ACCESSORS
21
22
=head2 rfc4646_subtag
23
24
  data_type: 'varchar'
25
  is_nullable: 1
26
  size: 25
27
28
=head2 iso639_2_code
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 25
33
34
=head2 id
35
36
  data_type: 'integer'
37
  is_auto_increment: 1
38
  is_nullable: 0
39
40
=cut
41
42
__PACKAGE__->add_columns(
43
  "rfc4646_subtag",
44
  { data_type => "varchar", is_nullable => 1, size => 25 },
45
  "iso639_2_code",
46
  { data_type => "varchar", is_nullable => 1, size => 25 },
47
  "id",
48
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
49
);
50
__PACKAGE__->set_primary_key("id");
51
52
53
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
54
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uqgbcPTrNLWILGP2XTxtfA
55
56
57
# You can replace this text with custom code or comments, and it will be preserved on regeneration
58
1;
(-)a/Koha/Schema/Result/LanguageScriptBidi.pm (+49 lines)
Line 0 Link Here
1
package Koha::Schema::Result::LanguageScriptBidi;
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::LanguageScriptBidi
15
16
=cut
17
18
__PACKAGE__->table("language_script_bidi");
19
20
=head1 ACCESSORS
21
22
=head2 rfc4646_subtag
23
24
  data_type: 'varchar'
25
  is_nullable: 1
26
  size: 25
27
28
=head2 bidi
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 3
33
34
=cut
35
36
__PACKAGE__->add_columns(
37
  "rfc4646_subtag",
38
  { data_type => "varchar", is_nullable => 1, size => 25 },
39
  "bidi",
40
  { data_type => "varchar", is_nullable => 1, size => 3 },
41
);
42
43
44
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
45
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3mBI5n7rrQr1Rcr1A2YFaw
46
47
48
# You can replace this text with custom code or comments, and it will be preserved on regeneration
49
1;
(-)a/Koha/Schema/Result/LanguageScriptMapping.pm (+49 lines)
Line 0 Link Here
1
package Koha::Schema::Result::LanguageScriptMapping;
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::LanguageScriptMapping
15
16
=cut
17
18
__PACKAGE__->table("language_script_mapping");
19
20
=head1 ACCESSORS
21
22
=head2 language_subtag
23
24
  data_type: 'varchar'
25
  is_nullable: 1
26
  size: 25
27
28
=head2 script_subtag
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 25
33
34
=cut
35
36
__PACKAGE__->add_columns(
37
  "language_subtag",
38
  { data_type => "varchar", is_nullable => 1, size => 25 },
39
  "script_subtag",
40
  { data_type => "varchar", is_nullable => 1, size => 25 },
41
);
42
43
44
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
45
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F/cj+tVTmZebZ70qFtbe/A
46
47
48
# You can replace this text with custom code or comments, and it will be preserved on regeneration
49
1;
(-)a/Koha/Schema/Result/LanguageSubtagRegistry.pm (+74 lines)
Line 0 Link Here
1
package Koha::Schema::Result::LanguageSubtagRegistry;
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::LanguageSubtagRegistry
15
16
=cut
17
18
__PACKAGE__->table("language_subtag_registry");
19
20
=head1 ACCESSORS
21
22
=head2 subtag
23
24
  data_type: 'varchar'
25
  is_nullable: 1
26
  size: 25
27
28
=head2 type
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 25
33
34
=head2 description
35
36
  data_type: 'varchar'
37
  is_nullable: 1
38
  size: 25
39
40
=head2 added
41
42
  data_type: 'date'
43
  datetime_undef_if_invalid: 1
44
  is_nullable: 1
45
46
=head2 id
47
48
  data_type: 'integer'
49
  is_auto_increment: 1
50
  is_nullable: 0
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "subtag",
56
  { data_type => "varchar", is_nullable => 1, size => 25 },
57
  "type",
58
  { data_type => "varchar", is_nullable => 1, size => 25 },
59
  "description",
60
  { data_type => "varchar", is_nullable => 1, size => 25 },
61
  "added",
62
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
63
  "id",
64
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
65
);
66
__PACKAGE__->set_primary_key("id");
67
68
69
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y0Z6y58MqvtFB41sVYEiCw
71
72
73
# You can replace this text with custom code or comments, and it will be preserved on regeneration
74
1;
(-)a/Koha/Schema/Result/Letter.pm (+115 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Letter;
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::Letter
15
16
=cut
17
18
__PACKAGE__->table("letter");
19
20
=head1 ACCESSORS
21
22
=head2 module
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 20
28
29
=head2 code
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 20
35
36
=head2 branchcode
37
38
  data_type: 'varchar'
39
  default_value: (empty string)
40
  is_nullable: 0
41
  size: 10
42
43
=head2 name
44
45
  data_type: 'varchar'
46
  default_value: (empty string)
47
  is_nullable: 0
48
  size: 100
49
50
=head2 is_html
51
52
  data_type: 'tinyint'
53
  default_value: 0
54
  is_nullable: 1
55
56
=head2 title
57
58
  data_type: 'varchar'
59
  default_value: (empty string)
60
  is_nullable: 0
61
  size: 200
62
63
=head2 content
64
65
  data_type: 'text'
66
  is_nullable: 1
67
68
=cut
69
70
__PACKAGE__->add_columns(
71
  "module",
72
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
73
  "code",
74
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
75
  "branchcode",
76
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
77
  "name",
78
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
79
  "is_html",
80
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
81
  "title",
82
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 200 },
83
  "content",
84
  { data_type => "text", is_nullable => 1 },
85
);
86
__PACKAGE__->set_primary_key("module", "code", "branchcode");
87
88
=head1 RELATIONS
89
90
=head2 message_transports
91
92
Type: has_many
93
94
Related object: L<Koha::Schema::Result::MessageTransport>
95
96
=cut
97
98
__PACKAGE__->has_many(
99
  "message_transports",
100
  "Koha::Schema::Result::MessageTransport",
101
  {
102
    "foreign.branchcode"    => "self.branchcode",
103
    "foreign.letter_code"   => "self.code",
104
    "foreign.letter_module" => "self.module",
105
  },
106
  { cascade_copy => 0, cascade_delete => 0 },
107
);
108
109
110
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
111
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U90WA5lGvbBPqjbEYAIhHg
112
113
114
# You can replace this text with custom code or comments, and it will be preserved on regeneration
115
1;
(-)a/Koha/Schema/Result/MarcMatcher.pm (+129 lines)
Line 0 Link Here
1
package Koha::Schema::Result::MarcMatcher;
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::MarcMatcher
15
16
=cut
17
18
__PACKAGE__->table("marc_matchers");
19
20
=head1 ACCESSORS
21
22
=head2 matcher_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 code
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 10
34
35
=head2 description
36
37
  data_type: 'varchar'
38
  default_value: (empty string)
39
  is_nullable: 0
40
  size: 255
41
42
=head2 record_type
43
44
  data_type: 'varchar'
45
  default_value: 'biblio'
46
  is_nullable: 0
47
  size: 10
48
49
=head2 threshold
50
51
  data_type: 'integer'
52
  default_value: 0
53
  is_nullable: 0
54
55
=cut
56
57
__PACKAGE__->add_columns(
58
  "matcher_id",
59
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60
  "code",
61
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
62
  "description",
63
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
64
  "record_type",
65
  {
66
    data_type => "varchar",
67
    default_value => "biblio",
68
    is_nullable => 0,
69
    size => 10,
70
  },
71
  "threshold",
72
  { data_type => "integer", default_value => 0, is_nullable => 0 },
73
);
74
__PACKAGE__->set_primary_key("matcher_id");
75
76
=head1 RELATIONS
77
78
=head2 matchchecks
79
80
Type: has_many
81
82
Related object: L<Koha::Schema::Result::Matchcheck>
83
84
=cut
85
86
__PACKAGE__->has_many(
87
  "matchchecks",
88
  "Koha::Schema::Result::Matchcheck",
89
  { "foreign.matcher_id" => "self.matcher_id" },
90
  { cascade_copy => 0, cascade_delete => 0 },
91
);
92
93
=head2 matcher_matchpoints
94
95
Type: has_many
96
97
Related object: L<Koha::Schema::Result::MatcherMatchpoint>
98
99
=cut
100
101
__PACKAGE__->has_many(
102
  "matcher_matchpoints",
103
  "Koha::Schema::Result::MatcherMatchpoint",
104
  { "foreign.matcher_id" => "self.matcher_id" },
105
  { cascade_copy => 0, cascade_delete => 0 },
106
);
107
108
=head2 matchpoints
109
110
Type: has_many
111
112
Related object: L<Koha::Schema::Result::Matchpoint>
113
114
=cut
115
116
__PACKAGE__->has_many(
117
  "matchpoints",
118
  "Koha::Schema::Result::Matchpoint",
119
  { "foreign.matcher_id" => "self.matcher_id" },
120
  { cascade_copy => 0, cascade_delete => 0 },
121
);
122
123
124
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
125
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gYZbgVeSC0VU4gvfA8SmMA
126
127
128
# You can replace this text with custom code or comments, and it will be preserved on regeneration
129
1;
(-)a/Koha/Schema/Result/MarcSubfieldStructure.pm (+179 lines)
Line 0 Link Here
1
package Koha::Schema::Result::MarcSubfieldStructure;
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::MarcSubfieldStructure
15
16
=cut
17
18
__PACKAGE__->table("marc_subfield_structure");
19
20
=head1 ACCESSORS
21
22
=head2 tagfield
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 3
28
29
=head2 tagsubfield
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 1
35
36
=head2 liblibrarian
37
38
  data_type: 'varchar'
39
  default_value: (empty string)
40
  is_nullable: 0
41
  size: 255
42
43
=head2 libopac
44
45
  data_type: 'varchar'
46
  default_value: (empty string)
47
  is_nullable: 0
48
  size: 255
49
50
=head2 repeatable
51
52
  data_type: 'tinyint'
53
  default_value: 0
54
  is_nullable: 0
55
56
=head2 mandatory
57
58
  data_type: 'tinyint'
59
  default_value: 0
60
  is_nullable: 0
61
62
=head2 kohafield
63
64
  data_type: 'varchar'
65
  is_nullable: 1
66
  size: 40
67
68
=head2 tab
69
70
  data_type: 'tinyint'
71
  is_nullable: 1
72
73
=head2 authorised_value
74
75
  data_type: 'varchar'
76
  is_nullable: 1
77
  size: 20
78
79
=head2 authtypecode
80
81
  data_type: 'varchar'
82
  is_nullable: 1
83
  size: 20
84
85
=head2 value_builder
86
87
  data_type: 'varchar'
88
  is_nullable: 1
89
  size: 80
90
91
=head2 isurl
92
93
  data_type: 'tinyint'
94
  is_nullable: 1
95
96
=head2 hidden
97
98
  data_type: 'tinyint'
99
  is_nullable: 1
100
101
=head2 frameworkcode
102
103
  data_type: 'varchar'
104
  default_value: (empty string)
105
  is_nullable: 0
106
  size: 4
107
108
=head2 seealso
109
110
  data_type: 'varchar'
111
  is_nullable: 1
112
  size: 1100
113
114
=head2 link
115
116
  data_type: 'varchar'
117
  is_nullable: 1
118
  size: 80
119
120
=head2 defaultvalue
121
122
  data_type: 'text'
123
  is_nullable: 1
124
125
=head2 maxlength
126
127
  data_type: 'integer'
128
  default_value: 9999
129
  is_nullable: 0
130
131
=cut
132
133
__PACKAGE__->add_columns(
134
  "tagfield",
135
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
136
  "tagsubfield",
137
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 },
138
  "liblibrarian",
139
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
140
  "libopac",
141
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
142
  "repeatable",
143
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
144
  "mandatory",
145
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
146
  "kohafield",
147
  { data_type => "varchar", is_nullable => 1, size => 40 },
148
  "tab",
149
  { data_type => "tinyint", is_nullable => 1 },
150
  "authorised_value",
151
  { data_type => "varchar", is_nullable => 1, size => 20 },
152
  "authtypecode",
153
  { data_type => "varchar", is_nullable => 1, size => 20 },
154
  "value_builder",
155
  { data_type => "varchar", is_nullable => 1, size => 80 },
156
  "isurl",
157
  { data_type => "tinyint", is_nullable => 1 },
158
  "hidden",
159
  { data_type => "tinyint", is_nullable => 1 },
160
  "frameworkcode",
161
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
162
  "seealso",
163
  { data_type => "varchar", is_nullable => 1, size => 1100 },
164
  "link",
165
  { data_type => "varchar", is_nullable => 1, size => 80 },
166
  "defaultvalue",
167
  { data_type => "text", is_nullable => 1 },
168
  "maxlength",
169
  { data_type => "integer", default_value => 9999, is_nullable => 0 },
170
);
171
__PACKAGE__->set_primary_key("frameworkcode", "tagfield", "tagsubfield");
172
173
174
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
175
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dptA2fphZR+VmitOLJNqMA
176
177
178
# You can replace this text with custom code or comments, and it will be preserved on regeneration
179
1;
(-)a/Koha/Schema/Result/MarcTagStructure.pm (+94 lines)
Line 0 Link Here
1
package Koha::Schema::Result::MarcTagStructure;
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::MarcTagStructure
15
16
=cut
17
18
__PACKAGE__->table("marc_tag_structure");
19
20
=head1 ACCESSORS
21
22
=head2 tagfield
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 3
28
29
=head2 liblibrarian
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 255
35
36
=head2 libopac
37
38
  data_type: 'varchar'
39
  default_value: (empty string)
40
  is_nullable: 0
41
  size: 255
42
43
=head2 repeatable
44
45
  data_type: 'tinyint'
46
  default_value: 0
47
  is_nullable: 0
48
49
=head2 mandatory
50
51
  data_type: 'tinyint'
52
  default_value: 0
53
  is_nullable: 0
54
55
=head2 authorised_value
56
57
  data_type: 'varchar'
58
  is_nullable: 1
59
  size: 10
60
61
=head2 frameworkcode
62
63
  data_type: 'varchar'
64
  default_value: (empty string)
65
  is_nullable: 0
66
  size: 4
67
68
=cut
69
70
__PACKAGE__->add_columns(
71
  "tagfield",
72
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
73
  "liblibrarian",
74
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
75
  "libopac",
76
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
77
  "repeatable",
78
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
79
  "mandatory",
80
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
81
  "authorised_value",
82
  { data_type => "varchar", is_nullable => 1, size => 10 },
83
  "frameworkcode",
84
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
85
);
86
__PACKAGE__->set_primary_key("frameworkcode", "tagfield");
87
88
89
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
90
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Lng5E7zc2vmAbCr6Nu3enQ
91
92
93
# You can replace this text with custom code or comments, and it will be preserved on regeneration
94
1;
(-)a/Koha/Schema/Result/Matchcheck.pm (+113 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Matchcheck;
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::Matchcheck
15
16
=cut
17
18
__PACKAGE__->table("matchchecks");
19
20
=head1 ACCESSORS
21
22
=head2 matcher_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 matchcheck_id
29
30
  data_type: 'integer'
31
  is_auto_increment: 1
32
  is_nullable: 0
33
34
=head2 source_matchpoint_id
35
36
  data_type: 'integer'
37
  is_foreign_key: 1
38
  is_nullable: 0
39
40
=head2 target_matchpoint_id
41
42
  data_type: 'integer'
43
  is_foreign_key: 1
44
  is_nullable: 0
45
46
=cut
47
48
__PACKAGE__->add_columns(
49
  "matcher_id",
50
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
51
  "matchcheck_id",
52
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
53
  "source_matchpoint_id",
54
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
55
  "target_matchpoint_id",
56
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
57
);
58
__PACKAGE__->set_primary_key("matchcheck_id");
59
60
=head1 RELATIONS
61
62
=head2 matcher
63
64
Type: belongs_to
65
66
Related object: L<Koha::Schema::Result::MarcMatcher>
67
68
=cut
69
70
__PACKAGE__->belongs_to(
71
  "matcher",
72
  "Koha::Schema::Result::MarcMatcher",
73
  { matcher_id => "matcher_id" },
74
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
75
);
76
77
=head2 source_matchpoint
78
79
Type: belongs_to
80
81
Related object: L<Koha::Schema::Result::Matchpoint>
82
83
=cut
84
85
__PACKAGE__->belongs_to(
86
  "source_matchpoint",
87
  "Koha::Schema::Result::Matchpoint",
88
  { matchpoint_id => "source_matchpoint_id" },
89
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90
);
91
92
=head2 target_matchpoint
93
94
Type: belongs_to
95
96
Related object: L<Koha::Schema::Result::Matchpoint>
97
98
=cut
99
100
__PACKAGE__->belongs_to(
101
  "target_matchpoint",
102
  "Koha::Schema::Result::Matchpoint",
103
  { matchpoint_id => "target_matchpoint_id" },
104
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
105
);
106
107
108
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Tp2KtodNiAzeSAPqeNFM4g
110
111
112
# You can replace this text with custom code or comments, and it will be preserved on regeneration
113
1;
(-)a/Koha/Schema/Result/MatcherMatchpoint.pm (+81 lines)
Line 0 Link Here
1
package Koha::Schema::Result::MatcherMatchpoint;
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::MatcherMatchpoint
15
16
=cut
17
18
__PACKAGE__->table("matcher_matchpoints");
19
20
=head1 ACCESSORS
21
22
=head2 matcher_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 matchpoint_id
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=cut
35
36
__PACKAGE__->add_columns(
37
  "matcher_id",
38
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
39
  "matchpoint_id",
40
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
41
);
42
43
=head1 RELATIONS
44
45
=head2 matcher
46
47
Type: belongs_to
48
49
Related object: L<Koha::Schema::Result::MarcMatcher>
50
51
=cut
52
53
__PACKAGE__->belongs_to(
54
  "matcher",
55
  "Koha::Schema::Result::MarcMatcher",
56
  { matcher_id => "matcher_id" },
57
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
58
);
59
60
=head2 matchpoint
61
62
Type: belongs_to
63
64
Related object: L<Koha::Schema::Result::Matchpoint>
65
66
=cut
67
68
__PACKAGE__->belongs_to(
69
  "matchpoint",
70
  "Koha::Schema::Result::Matchpoint",
71
  { matchpoint_id => "matchpoint_id" },
72
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
73
);
74
75
76
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
77
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iYwFUyksk/kIHmvT6mxWLQ
78
79
80
# You can replace this text with custom code or comments, and it will be preserved on regeneration
81
1;
(-)a/Koha/Schema/Result/Matchpoint.pm (+144 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Matchpoint;
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::Matchpoint
15
16
=cut
17
18
__PACKAGE__->table("matchpoints");
19
20
=head1 ACCESSORS
21
22
=head2 matcher_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 matchpoint_id
29
30
  data_type: 'integer'
31
  is_auto_increment: 1
32
  is_nullable: 0
33
34
=head2 search_index
35
36
  data_type: 'varchar'
37
  default_value: (empty string)
38
  is_nullable: 0
39
  size: 30
40
41
=head2 score
42
43
  data_type: 'integer'
44
  default_value: 0
45
  is_nullable: 0
46
47
=cut
48
49
__PACKAGE__->add_columns(
50
  "matcher_id",
51
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
52
  "matchpoint_id",
53
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
54
  "search_index",
55
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
56
  "score",
57
  { data_type => "integer", default_value => 0, is_nullable => 0 },
58
);
59
__PACKAGE__->set_primary_key("matchpoint_id");
60
61
=head1 RELATIONS
62
63
=head2 matchchecks_source_matchpoints
64
65
Type: has_many
66
67
Related object: L<Koha::Schema::Result::Matchcheck>
68
69
=cut
70
71
__PACKAGE__->has_many(
72
  "matchchecks_source_matchpoints",
73
  "Koha::Schema::Result::Matchcheck",
74
  { "foreign.source_matchpoint_id" => "self.matchpoint_id" },
75
  { cascade_copy => 0, cascade_delete => 0 },
76
);
77
78
=head2 matchchecks_target_matchpoints
79
80
Type: has_many
81
82
Related object: L<Koha::Schema::Result::Matchcheck>
83
84
=cut
85
86
__PACKAGE__->has_many(
87
  "matchchecks_target_matchpoints",
88
  "Koha::Schema::Result::Matchcheck",
89
  { "foreign.target_matchpoint_id" => "self.matchpoint_id" },
90
  { cascade_copy => 0, cascade_delete => 0 },
91
);
92
93
=head2 matcher_matchpoints
94
95
Type: has_many
96
97
Related object: L<Koha::Schema::Result::MatcherMatchpoint>
98
99
=cut
100
101
__PACKAGE__->has_many(
102
  "matcher_matchpoints",
103
  "Koha::Schema::Result::MatcherMatchpoint",
104
  { "foreign.matchpoint_id" => "self.matchpoint_id" },
105
  { cascade_copy => 0, cascade_delete => 0 },
106
);
107
108
=head2 matchpoint_components
109
110
Type: has_many
111
112
Related object: L<Koha::Schema::Result::MatchpointComponent>
113
114
=cut
115
116
__PACKAGE__->has_many(
117
  "matchpoint_components",
118
  "Koha::Schema::Result::MatchpointComponent",
119
  { "foreign.matchpoint_id" => "self.matchpoint_id" },
120
  { cascade_copy => 0, cascade_delete => 0 },
121
);
122
123
=head2 matcher
124
125
Type: belongs_to
126
127
Related object: L<Koha::Schema::Result::MarcMatcher>
128
129
=cut
130
131
__PACKAGE__->belongs_to(
132
  "matcher",
133
  "Koha::Schema::Result::MarcMatcher",
134
  { matcher_id => "matcher_id" },
135
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
136
);
137
138
139
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bMxLiGhpiVbqOciCkcDHWg
141
142
143
# You can replace this text with custom code or comments, and it will be preserved on regeneration
144
1;
(-)a/Koha/Schema/Result/MatchpointComponent.pm (+132 lines)
Line 0 Link Here
1
package Koha::Schema::Result::MatchpointComponent;
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::MatchpointComponent
15
16
=cut
17
18
__PACKAGE__->table("matchpoint_components");
19
20
=head1 ACCESSORS
21
22
=head2 matchpoint_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 matchpoint_component_id
29
30
  data_type: 'integer'
31
  is_auto_increment: 1
32
  is_nullable: 0
33
34
=head2 sequence
35
36
  accessor: undef
37
  data_type: 'integer'
38
  default_value: 0
39
  is_nullable: 0
40
41
=head2 tag
42
43
  data_type: 'varchar'
44
  default_value: (empty string)
45
  is_nullable: 0
46
  size: 3
47
48
=head2 subfields
49
50
  data_type: 'varchar'
51
  default_value: (empty string)
52
  is_nullable: 0
53
  size: 40
54
55
=head2 offset
56
57
  data_type: 'integer'
58
  default_value: 0
59
  is_nullable: 0
60
61
=head2 length
62
63
  data_type: 'integer'
64
  default_value: 0
65
  is_nullable: 0
66
67
=cut
68
69
__PACKAGE__->add_columns(
70
  "matchpoint_id",
71
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
72
  "matchpoint_component_id",
73
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
74
  "sequence",
75
  {
76
    accessor      => undef,
77
    data_type     => "integer",
78
    default_value => 0,
79
    is_nullable   => 0,
80
  },
81
  "tag",
82
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
83
  "subfields",
84
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
85
  "offset",
86
  { data_type => "integer", default_value => 0, is_nullable => 0 },
87
  "length",
88
  { data_type => "integer", default_value => 0, is_nullable => 0 },
89
);
90
__PACKAGE__->set_primary_key("matchpoint_component_id");
91
92
=head1 RELATIONS
93
94
=head2 matchpoint_component_norms
95
96
Type: has_many
97
98
Related object: L<Koha::Schema::Result::MatchpointComponentNorm>
99
100
=cut
101
102
__PACKAGE__->has_many(
103
  "matchpoint_component_norms",
104
  "Koha::Schema::Result::MatchpointComponentNorm",
105
  {
106
    "foreign.matchpoint_component_id" => "self.matchpoint_component_id",
107
  },
108
  { cascade_copy => 0, cascade_delete => 0 },
109
);
110
111
=head2 matchpoint
112
113
Type: belongs_to
114
115
Related object: L<Koha::Schema::Result::Matchpoint>
116
117
=cut
118
119
__PACKAGE__->belongs_to(
120
  "matchpoint",
121
  "Koha::Schema::Result::Matchpoint",
122
  { matchpoint_id => "matchpoint_id" },
123
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
124
);
125
126
127
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
128
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5wBVWJqU7W1kj6QnZ+1F8g
129
130
131
# You can replace this text with custom code or comments, and it will be preserved on regeneration
132
1;
(-)a/Koha/Schema/Result/MatchpointComponentNorm.pm (+81 lines)
Line 0 Link Here
1
package Koha::Schema::Result::MatchpointComponentNorm;
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::MatchpointComponentNorm
15
16
=cut
17
18
__PACKAGE__->table("matchpoint_component_norms");
19
20
=head1 ACCESSORS
21
22
=head2 matchpoint_component_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 sequence
29
30
  accessor: undef
31
  data_type: 'integer'
32
  default_value: 0
33
  is_nullable: 0
34
35
=head2 norm_routine
36
37
  data_type: 'varchar'
38
  default_value: (empty string)
39
  is_nullable: 0
40
  size: 50
41
42
=cut
43
44
__PACKAGE__->add_columns(
45
  "matchpoint_component_id",
46
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
47
  "sequence",
48
  {
49
    accessor      => undef,
50
    data_type     => "integer",
51
    default_value => 0,
52
    is_nullable   => 0,
53
  },
54
  "norm_routine",
55
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
56
);
57
58
=head1 RELATIONS
59
60
=head2 matchpoint_component
61
62
Type: belongs_to
63
64
Related object: L<Koha::Schema::Result::MatchpointComponent>
65
66
=cut
67
68
__PACKAGE__->belongs_to(
69
  "matchpoint_component",
70
  "Koha::Schema::Result::MatchpointComponent",
71
  { matchpoint_component_id => "matchpoint_component_id" },
72
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
73
);
74
75
76
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
77
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CTVHBQeGssk1UXvJcKtv9w
78
79
80
# You can replace this text with custom code or comments, and it will be preserved on regeneration
81
1;
(-)a/Koha/Schema/Result/Message.pm (+86 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Message;
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::Message
15
16
=cut
17
18
__PACKAGE__->table("messages");
19
20
=head1 ACCESSORS
21
22
=head2 message_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 borrowernumber
29
30
  data_type: 'integer'
31
  is_nullable: 0
32
33
=head2 branchcode
34
35
  data_type: 'varchar'
36
  is_nullable: 1
37
  size: 10
38
39
=head2 message_type
40
41
  data_type: 'varchar'
42
  is_nullable: 0
43
  size: 1
44
45
=head2 message
46
47
  data_type: 'text'
48
  is_nullable: 0
49
50
=head2 message_date
51
52
  data_type: 'timestamp'
53
  datetime_undef_if_invalid: 1
54
  default_value: current_timestamp
55
  is_nullable: 0
56
57
=cut
58
59
__PACKAGE__->add_columns(
60
  "message_id",
61
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62
  "borrowernumber",
63
  { data_type => "integer", is_nullable => 0 },
64
  "branchcode",
65
  { data_type => "varchar", is_nullable => 1, size => 10 },
66
  "message_type",
67
  { data_type => "varchar", is_nullable => 0, size => 1 },
68
  "message",
69
  { data_type => "text", is_nullable => 0 },
70
  "message_date",
71
  {
72
    data_type => "timestamp",
73
    datetime_undef_if_invalid => 1,
74
    default_value => \"current_timestamp",
75
    is_nullable => 0,
76
  },
77
);
78
__PACKAGE__->set_primary_key("message_id");
79
80
81
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
82
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2fV14ixoblFkERpfqtALJg
83
84
85
# You can replace this text with custom code or comments, and it will be preserved on regeneration
86
1;
(-)a/Koha/Schema/Result/MessageAttribute.pm (+92 lines)
Line 0 Link Here
1
package Koha::Schema::Result::MessageAttribute;
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::MessageAttribute
15
16
=cut
17
18
__PACKAGE__->table("message_attributes");
19
20
=head1 ACCESSORS
21
22
=head2 message_attribute_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 message_name
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 40
34
35
=head2 takes_days
36
37
  data_type: 'tinyint'
38
  default_value: 0
39
  is_nullable: 0
40
41
=cut
42
43
__PACKAGE__->add_columns(
44
  "message_attribute_id",
45
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
46
  "message_name",
47
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
48
  "takes_days",
49
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
50
);
51
__PACKAGE__->set_primary_key("message_attribute_id");
52
__PACKAGE__->add_unique_constraint("message_name", ["message_name"]);
53
54
=head1 RELATIONS
55
56
=head2 borrower_message_preferences
57
58
Type: has_many
59
60
Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
61
62
=cut
63
64
__PACKAGE__->has_many(
65
  "borrower_message_preferences",
66
  "Koha::Schema::Result::BorrowerMessagePreference",
67
  { "foreign.message_attribute_id" => "self.message_attribute_id" },
68
  { cascade_copy => 0, cascade_delete => 0 },
69
);
70
71
=head2 message_transports
72
73
Type: has_many
74
75
Related object: L<Koha::Schema::Result::MessageTransport>
76
77
=cut
78
79
__PACKAGE__->has_many(
80
  "message_transports",
81
  "Koha::Schema::Result::MessageTransport",
82
  { "foreign.message_attribute_id" => "self.message_attribute_id" },
83
  { cascade_copy => 0, cascade_delete => 0 },
84
);
85
86
87
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n9qt9ewU6Ip0UDbR1LUxIg
89
90
91
# You can replace this text with custom code or comments, and it will be preserved on regeneration
92
1;
(-)a/Koha/Schema/Result/MessageQueue.pm (+173 lines)
Line 0 Link Here
1
package Koha::Schema::Result::MessageQueue;
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::MessageQueue
15
16
=cut
17
18
__PACKAGE__->table("message_queue");
19
20
=head1 ACCESSORS
21
22
=head2 message_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 borrowernumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 1
33
34
=head2 subject
35
36
  data_type: 'text'
37
  is_nullable: 1
38
39
=head2 content
40
41
  data_type: 'text'
42
  is_nullable: 1
43
44
=head2 metadata
45
46
  data_type: 'text'
47
  is_nullable: 1
48
49
=head2 letter_code
50
51
  data_type: 'varchar'
52
  is_nullable: 1
53
  size: 64
54
55
=head2 message_transport_type
56
57
  data_type: 'varchar'
58
  is_foreign_key: 1
59
  is_nullable: 0
60
  size: 20
61
62
=head2 status
63
64
  data_type: 'enum'
65
  default_value: 'pending'
66
  extra: {list => ["sent","pending","failed","deleted"]}
67
  is_nullable: 0
68
69
=head2 time_queued
70
71
  data_type: 'timestamp'
72
  datetime_undef_if_invalid: 1
73
  default_value: current_timestamp
74
  is_nullable: 0
75
76
=head2 to_address
77
78
  data_type: 'mediumtext'
79
  is_nullable: 1
80
81
=head2 from_address
82
83
  data_type: 'mediumtext'
84
  is_nullable: 1
85
86
=head2 content_type
87
88
  data_type: 'text'
89
  is_nullable: 1
90
91
=cut
92
93
__PACKAGE__->add_columns(
94
  "message_id",
95
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
96
  "borrowernumber",
97
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
98
  "subject",
99
  { data_type => "text", is_nullable => 1 },
100
  "content",
101
  { data_type => "text", is_nullable => 1 },
102
  "metadata",
103
  { data_type => "text", is_nullable => 1 },
104
  "letter_code",
105
  { data_type => "varchar", is_nullable => 1, size => 64 },
106
  "message_transport_type",
107
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 20 },
108
  "status",
109
  {
110
    data_type => "enum",
111
    default_value => "pending",
112
    extra => { list => ["sent", "pending", "failed", "deleted"] },
113
    is_nullable => 0,
114
  },
115
  "time_queued",
116
  {
117
    data_type => "timestamp",
118
    datetime_undef_if_invalid => 1,
119
    default_value => \"current_timestamp",
120
    is_nullable => 0,
121
  },
122
  "to_address",
123
  { data_type => "mediumtext", is_nullable => 1 },
124
  "from_address",
125
  { data_type => "mediumtext", is_nullable => 1 },
126
  "content_type",
127
  { data_type => "text", is_nullable => 1 },
128
);
129
130
=head1 RELATIONS
131
132
=head2 borrowernumber
133
134
Type: belongs_to
135
136
Related object: L<Koha::Schema::Result::Borrower>
137
138
=cut
139
140
__PACKAGE__->belongs_to(
141
  "borrowernumber",
142
  "Koha::Schema::Result::Borrower",
143
  { borrowernumber => "borrowernumber" },
144
  {
145
    is_deferrable => 1,
146
    join_type     => "LEFT",
147
    on_delete     => "CASCADE",
148
    on_update     => "CASCADE",
149
  },
150
);
151
152
=head2 message_transport_type
153
154
Type: belongs_to
155
156
Related object: L<Koha::Schema::Result::MessageTransportType>
157
158
=cut
159
160
__PACKAGE__->belongs_to(
161
  "message_transport_type",
162
  "Koha::Schema::Result::MessageTransportType",
163
  { message_transport_type => "message_transport_type" },
164
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
165
);
166
167
168
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
169
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kejB6QUcGZfk9yDWBl6itQ
170
171
172
# You can replace this text with custom code or comments, and it will be preserved on regeneration
173
1;
(-)a/Koha/Schema/Result/MessageTransport.pm (+158 lines)
Line 0 Link Here
1
package Koha::Schema::Result::MessageTransport;
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::MessageTransport
15
16
=cut
17
18
__PACKAGE__->table("message_transports");
19
20
=head1 ACCESSORS
21
22
=head2 message_attribute_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 message_transport_type
29
30
  data_type: 'varchar'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
  size: 20
34
35
=head2 is_digest
36
37
  data_type: 'tinyint'
38
  default_value: 0
39
  is_nullable: 0
40
41
=head2 letter_module
42
43
  data_type: 'varchar'
44
  default_value: (empty string)
45
  is_foreign_key: 1
46
  is_nullable: 0
47
  size: 20
48
49
=head2 letter_code
50
51
  data_type: 'varchar'
52
  default_value: (empty string)
53
  is_foreign_key: 1
54
  is_nullable: 0
55
  size: 20
56
57
=head2 branchcode
58
59
  data_type: 'varchar'
60
  default_value: (empty string)
61
  is_foreign_key: 1
62
  is_nullable: 0
63
  size: 10
64
65
=cut
66
67
__PACKAGE__->add_columns(
68
  "message_attribute_id",
69
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
70
  "message_transport_type",
71
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 20 },
72
  "is_digest",
73
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
74
  "letter_module",
75
  {
76
    data_type => "varchar",
77
    default_value => "",
78
    is_foreign_key => 1,
79
    is_nullable => 0,
80
    size => 20,
81
  },
82
  "letter_code",
83
  {
84
    data_type => "varchar",
85
    default_value => "",
86
    is_foreign_key => 1,
87
    is_nullable => 0,
88
    size => 20,
89
  },
90
  "branchcode",
91
  {
92
    data_type => "varchar",
93
    default_value => "",
94
    is_foreign_key => 1,
95
    is_nullable => 0,
96
    size => 10,
97
  },
98
);
99
__PACKAGE__->set_primary_key("message_attribute_id", "message_transport_type", "is_digest");
100
101
=head1 RELATIONS
102
103
=head2 message_attribute
104
105
Type: belongs_to
106
107
Related object: L<Koha::Schema::Result::MessageAttribute>
108
109
=cut
110
111
__PACKAGE__->belongs_to(
112
  "message_attribute",
113
  "Koha::Schema::Result::MessageAttribute",
114
  { message_attribute_id => "message_attribute_id" },
115
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
116
);
117
118
=head2 message_transport_type
119
120
Type: belongs_to
121
122
Related object: L<Koha::Schema::Result::MessageTransportType>
123
124
=cut
125
126
__PACKAGE__->belongs_to(
127
  "message_transport_type",
128
  "Koha::Schema::Result::MessageTransportType",
129
  { message_transport_type => "message_transport_type" },
130
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
131
);
132
133
=head2 letter
134
135
Type: belongs_to
136
137
Related object: L<Koha::Schema::Result::Letter>
138
139
=cut
140
141
__PACKAGE__->belongs_to(
142
  "letter",
143
  "Koha::Schema::Result::Letter",
144
  {
145
    branchcode => "branchcode",
146
    code => "letter_code",
147
    module => "letter_module",
148
  },
149
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
150
);
151
152
153
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
154
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xqW+6zFz0bX2olSUppJb3g
155
156
157
# You can replace this text with custom code or comments, and it will be preserved on regeneration
158
1;
(-)a/Koha/Schema/Result/MessageTransportType.pm (+95 lines)
Line 0 Link Here
1
package Koha::Schema::Result::MessageTransportType;
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::MessageTransportType
15
16
=cut
17
18
__PACKAGE__->table("message_transport_types");
19
20
=head1 ACCESSORS
21
22
=head2 message_transport_type
23
24
  data_type: 'varchar'
25
  is_nullable: 0
26
  size: 20
27
28
=cut
29
30
__PACKAGE__->add_columns(
31
  "message_transport_type",
32
  { data_type => "varchar", is_nullable => 0, size => 20 },
33
);
34
__PACKAGE__->set_primary_key("message_transport_type");
35
36
=head1 RELATIONS
37
38
=head2 borrower_message_transport_preferences
39
40
Type: has_many
41
42
Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference>
43
44
=cut
45
46
__PACKAGE__->has_many(
47
  "borrower_message_transport_preferences",
48
  "Koha::Schema::Result::BorrowerMessageTransportPreference",
49
  {
50
    "foreign.message_transport_type" => "self.message_transport_type",
51
  },
52
  { cascade_copy => 0, cascade_delete => 0 },
53
);
54
55
=head2 message_queues
56
57
Type: has_many
58
59
Related object: L<Koha::Schema::Result::MessageQueue>
60
61
=cut
62
63
__PACKAGE__->has_many(
64
  "message_queues",
65
  "Koha::Schema::Result::MessageQueue",
66
  {
67
    "foreign.message_transport_type" => "self.message_transport_type",
68
  },
69
  { cascade_copy => 0, cascade_delete => 0 },
70
);
71
72
=head2 message_transports
73
74
Type: has_many
75
76
Related object: L<Koha::Schema::Result::MessageTransport>
77
78
=cut
79
80
__PACKAGE__->has_many(
81
  "message_transports",
82
  "Koha::Schema::Result::MessageTransport",
83
  {
84
    "foreign.message_transport_type" => "self.message_transport_type",
85
  },
86
  { cascade_copy => 0, cascade_delete => 0 },
87
);
88
89
90
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RYjZ7mngvesXBnCIz6bjEg
92
93
94
# You can replace this text with custom code or comments, and it will be preserved on regeneration
95
1;
(-)a/Koha/Schema/Result/NeedMergeAuthority.pm (+57 lines)
Line 0 Link Here
1
package Koha::Schema::Result::NeedMergeAuthority;
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::NeedMergeAuthority
15
16
=cut
17
18
__PACKAGE__->table("need_merge_authorities");
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 authid
29
30
  data_type: 'bigint'
31
  is_nullable: 0
32
33
=head2 done
34
35
  data_type: 'tinyint'
36
  default_value: 0
37
  is_nullable: 1
38
39
=cut
40
41
__PACKAGE__->add_columns(
42
  "id",
43
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
44
  "authid",
45
  { data_type => "bigint", is_nullable => 0 },
46
  "done",
47
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
48
);
49
__PACKAGE__->set_primary_key("id");
50
51
52
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ssUomXv2n88op/6sqAOKJA
54
55
56
# You can replace this text with custom code or comments, and it will be preserved on regeneration
57
1;
(-)a/Koha/Schema/Result/Notify.pm (+90 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Notify;
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::Notify
15
16
=cut
17
18
__PACKAGE__->table("notifys");
19
20
=head1 ACCESSORS
21
22
=head2 notify_id
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_nullable: 0
27
28
=head2 borrowernumber
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_nullable: 0
33
34
=head2 itemnumber
35
36
  data_type: 'integer'
37
  default_value: 0
38
  is_nullable: 0
39
40
=head2 notify_date
41
42
  data_type: 'date'
43
  datetime_undef_if_invalid: 1
44
  is_nullable: 1
45
46
=head2 notify_send_date
47
48
  data_type: 'date'
49
  datetime_undef_if_invalid: 1
50
  is_nullable: 1
51
52
=head2 notify_level
53
54
  data_type: 'integer'
55
  default_value: 0
56
  is_nullable: 0
57
58
=head2 method
59
60
  data_type: 'varchar'
61
  default_value: (empty string)
62
  is_nullable: 0
63
  size: 20
64
65
=cut
66
67
__PACKAGE__->add_columns(
68
  "notify_id",
69
  { data_type => "integer", default_value => 0, is_nullable => 0 },
70
  "borrowernumber",
71
  { data_type => "integer", default_value => 0, is_nullable => 0 },
72
  "itemnumber",
73
  { data_type => "integer", default_value => 0, is_nullable => 0 },
74
  "notify_date",
75
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
76
  "notify_send_date",
77
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
78
  "notify_level",
79
  { data_type => "integer", default_value => 0, is_nullable => 0 },
80
  "method",
81
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
82
);
83
84
85
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4OsVAI8NrVSGnQ4smOhQlw
87
88
89
# You can replace this text with custom code or comments, and it will be preserved on regeneration
90
1;
(-)a/Koha/Schema/Result/Nozebra.pm (+64 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Nozebra;
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::Nozebra
15
16
=cut
17
18
__PACKAGE__->table("nozebra");
19
20
=head1 ACCESSORS
21
22
=head2 server
23
24
  data_type: 'varchar'
25
  is_nullable: 0
26
  size: 20
27
28
=head2 indexname
29
30
  data_type: 'varchar'
31
  is_nullable: 0
32
  size: 40
33
34
=head2 value
35
36
  data_type: 'varchar'
37
  is_nullable: 0
38
  size: 250
39
40
=head2 biblionumbers
41
42
  data_type: 'longtext'
43
  is_nullable: 0
44
45
=cut
46
47
__PACKAGE__->add_columns(
48
  "server",
49
  { data_type => "varchar", is_nullable => 0, size => 20 },
50
  "indexname",
51
  { data_type => "varchar", is_nullable => 0, size => 40 },
52
  "value",
53
  { data_type => "varchar", is_nullable => 0, size => 250 },
54
  "biblionumbers",
55
  { data_type => "longtext", is_nullable => 0 },
56
);
57
58
59
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
60
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kTVpVVpPSYQ6X9rPSN8GPA
61
62
63
# You can replace this text with custom code or comments, and it will be preserved on regeneration
64
1;
(-)a/Koha/Schema/Result/OaiSet.pm (+106 lines)
Line 0 Link Here
1
package Koha::Schema::Result::OaiSet;
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::OaiSet
15
16
=cut
17
18
__PACKAGE__->table("oai_sets");
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 spec
29
30
  data_type: 'varchar'
31
  is_nullable: 0
32
  size: 80
33
34
=head2 name
35
36
  data_type: 'varchar'
37
  is_nullable: 0
38
  size: 80
39
40
=cut
41
42
__PACKAGE__->add_columns(
43
  "id",
44
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
45
  "spec",
46
  { data_type => "varchar", is_nullable => 0, size => 80 },
47
  "name",
48
  { data_type => "varchar", is_nullable => 0, size => 80 },
49
);
50
__PACKAGE__->set_primary_key("id");
51
__PACKAGE__->add_unique_constraint("spec", ["spec"]);
52
53
=head1 RELATIONS
54
55
=head2 oai_sets_biblios
56
57
Type: has_many
58
59
Related object: L<Koha::Schema::Result::OaiSetsBiblio>
60
61
=cut
62
63
__PACKAGE__->has_many(
64
  "oai_sets_biblios",
65
  "Koha::Schema::Result::OaiSetsBiblio",
66
  { "foreign.set_id" => "self.id" },
67
  { cascade_copy => 0, cascade_delete => 0 },
68
);
69
70
=head2 oai_sets_descriptions
71
72
Type: has_many
73
74
Related object: L<Koha::Schema::Result::OaiSetsDescription>
75
76
=cut
77
78
__PACKAGE__->has_many(
79
  "oai_sets_descriptions",
80
  "Koha::Schema::Result::OaiSetsDescription",
81
  { "foreign.set_id" => "self.id" },
82
  { cascade_copy => 0, cascade_delete => 0 },
83
);
84
85
=head2 oai_sets_mappings
86
87
Type: has_many
88
89
Related object: L<Koha::Schema::Result::OaiSetsMapping>
90
91
=cut
92
93
__PACKAGE__->has_many(
94
  "oai_sets_mappings",
95
  "Koha::Schema::Result::OaiSetsMapping",
96
  { "foreign.set_id" => "self.id" },
97
  { cascade_copy => 0, cascade_delete => 0 },
98
);
99
100
101
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UnOWTaBLIvEolHMaxp4JWg
103
104
105
# You can replace this text with custom code or comments, and it will be preserved on regeneration
106
1;
(-)a/Koha/Schema/Result/OaiSetsBiblio.pm (+82 lines)
Line 0 Link Here
1
package Koha::Schema::Result::OaiSetsBiblio;
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::OaiSetsBiblio
15
16
=cut
17
18
__PACKAGE__->table("oai_sets_biblios");
19
20
=head1 ACCESSORS
21
22
=head2 biblionumber
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 set_id
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=cut
35
36
__PACKAGE__->add_columns(
37
  "biblionumber",
38
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
39
  "set_id",
40
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
41
);
42
__PACKAGE__->set_primary_key("biblionumber", "set_id");
43
44
=head1 RELATIONS
45
46
=head2 biblionumber
47
48
Type: belongs_to
49
50
Related object: L<Koha::Schema::Result::Biblio>
51
52
=cut
53
54
__PACKAGE__->belongs_to(
55
  "biblionumber",
56
  "Koha::Schema::Result::Biblio",
57
  { biblionumber => "biblionumber" },
58
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
59
);
60
61
=head2 set
62
63
Type: belongs_to
64
65
Related object: L<Koha::Schema::Result::OaiSet>
66
67
=cut
68
69
__PACKAGE__->belongs_to(
70
  "set",
71
  "Koha::Schema::Result::OaiSet",
72
  { id => "set_id" },
73
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:S1FSdGQJX4U9tfIAZucCIQ
79
80
81
# You can replace this text with custom code or comments, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/OaiSetsDescription.pm (+66 lines)
Line 0 Link Here
1
package Koha::Schema::Result::OaiSetsDescription;
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::OaiSetsDescription
15
16
=cut
17
18
__PACKAGE__->table("oai_sets_descriptions");
19
20
=head1 ACCESSORS
21
22
=head2 set_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 description
29
30
  data_type: 'varchar'
31
  is_nullable: 0
32
  size: 255
33
34
=cut
35
36
__PACKAGE__->add_columns(
37
  "set_id",
38
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
39
  "description",
40
  { data_type => "varchar", is_nullable => 0, size => 255 },
41
);
42
43
=head1 RELATIONS
44
45
=head2 set
46
47
Type: belongs_to
48
49
Related object: L<Koha::Schema::Result::OaiSet>
50
51
=cut
52
53
__PACKAGE__->belongs_to(
54
  "set",
55
  "Koha::Schema::Result::OaiSet",
56
  { id => "set_id" },
57
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
58
);
59
60
61
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
62
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JbDudH5UenZEKhQxYnDRgg
63
64
65
# You can replace this text with custom code or comments, and it will be preserved on regeneration
66
1;
(-)a/Koha/Schema/Result/OaiSetsMapping.pm (+82 lines)
Line 0 Link Here
1
package Koha::Schema::Result::OaiSetsMapping;
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::OaiSetsMapping
15
16
=cut
17
18
__PACKAGE__->table("oai_sets_mappings");
19
20
=head1 ACCESSORS
21
22
=head2 set_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 marcfield
29
30
  data_type: 'char'
31
  is_nullable: 0
32
  size: 3
33
34
=head2 marcsubfield
35
36
  data_type: 'char'
37
  is_nullable: 0
38
  size: 1
39
40
=head2 marcvalue
41
42
  data_type: 'varchar'
43
  is_nullable: 0
44
  size: 80
45
46
=cut
47
48
__PACKAGE__->add_columns(
49
  "set_id",
50
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
51
  "marcfield",
52
  { data_type => "char", is_nullable => 0, size => 3 },
53
  "marcsubfield",
54
  { data_type => "char", is_nullable => 0, size => 1 },
55
  "marcvalue",
56
  { data_type => "varchar", is_nullable => 0, size => 80 },
57
);
58
59
=head1 RELATIONS
60
61
=head2 set
62
63
Type: belongs_to
64
65
Related object: L<Koha::Schema::Result::OaiSet>
66
67
=cut
68
69
__PACKAGE__->belongs_to(
70
  "set",
71
  "Koha::Schema::Result::OaiSet",
72
  { id => "set_id" },
73
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n4qI7EQymjL8+XFtlcP9FQ
79
80
81
# You can replace this text with custom code or comments, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/OldIssue.pm (+184 lines)
Line 0 Link Here
1
package Koha::Schema::Result::OldIssue;
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::OldIssue
15
16
=cut
17
18
__PACKAGE__->table("old_issues");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 1
27
28
=head2 itemnumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 1
33
34
=head2 date_due
35
36
  data_type: 'datetime'
37
  datetime_undef_if_invalid: 1
38
  is_nullable: 1
39
40
=head2 branchcode
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 10
45
46
=head2 issuingbranch
47
48
  data_type: 'varchar'
49
  is_nullable: 1
50
  size: 18
51
52
=head2 returndate
53
54
  data_type: 'datetime'
55
  datetime_undef_if_invalid: 1
56
  is_nullable: 1
57
58
=head2 lastreneweddate
59
60
  data_type: 'datetime'
61
  datetime_undef_if_invalid: 1
62
  is_nullable: 1
63
64
=head2 return
65
66
  data_type: 'varchar'
67
  is_nullable: 1
68
  size: 4
69
70
=head2 renewals
71
72
  data_type: 'tinyint'
73
  is_nullable: 1
74
75
=head2 timestamp
76
77
  data_type: 'timestamp'
78
  datetime_undef_if_invalid: 1
79
  default_value: current_timestamp
80
  is_nullable: 0
81
82
=head2 issuedate
83
84
  data_type: 'datetime'
85
  datetime_undef_if_invalid: 1
86
  is_nullable: 1
87
88
=cut
89
90
__PACKAGE__->add_columns(
91
  "borrowernumber",
92
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
93
  "itemnumber",
94
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
95
  "date_due",
96
  {
97
    data_type => "datetime",
98
    datetime_undef_if_invalid => 1,
99
    is_nullable => 1,
100
  },
101
  "branchcode",
102
  { data_type => "varchar", is_nullable => 1, size => 10 },
103
  "issuingbranch",
104
  { data_type => "varchar", is_nullable => 1, size => 18 },
105
  "returndate",
106
  {
107
    data_type => "datetime",
108
    datetime_undef_if_invalid => 1,
109
    is_nullable => 1,
110
  },
111
  "lastreneweddate",
112
  {
113
    data_type => "datetime",
114
    datetime_undef_if_invalid => 1,
115
    is_nullable => 1,
116
  },
117
  "return",
118
  { data_type => "varchar", is_nullable => 1, size => 4 },
119
  "renewals",
120
  { data_type => "tinyint", is_nullable => 1 },
121
  "timestamp",
122
  {
123
    data_type => "timestamp",
124
    datetime_undef_if_invalid => 1,
125
    default_value => \"current_timestamp",
126
    is_nullable => 0,
127
  },
128
  "issuedate",
129
  {
130
    data_type => "datetime",
131
    datetime_undef_if_invalid => 1,
132
    is_nullable => 1,
133
  },
134
);
135
136
=head1 RELATIONS
137
138
=head2 borrowernumber
139
140
Type: belongs_to
141
142
Related object: L<Koha::Schema::Result::Borrower>
143
144
=cut
145
146
__PACKAGE__->belongs_to(
147
  "borrowernumber",
148
  "Koha::Schema::Result::Borrower",
149
  { borrowernumber => "borrowernumber" },
150
  {
151
    is_deferrable => 1,
152
    join_type     => "LEFT",
153
    on_delete     => "CASCADE",
154
    on_update     => "CASCADE",
155
  },
156
);
157
158
=head2 itemnumber
159
160
Type: belongs_to
161
162
Related object: L<Koha::Schema::Result::Item>
163
164
=cut
165
166
__PACKAGE__->belongs_to(
167
  "itemnumber",
168
  "Koha::Schema::Result::Item",
169
  { itemnumber => "itemnumber" },
170
  {
171
    is_deferrable => 1,
172
    join_type     => "LEFT",
173
    on_delete     => "CASCADE",
174
    on_update     => "CASCADE",
175
  },
176
);
177
178
179
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
180
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GUqssVtKjL59cmiotm9coQ
181
182
183
# You can replace this text with custom code or comments, and it will be preserved on regeneration
184
1;
(-)a/Koha/Schema/Result/OldReserve.pm (+254 lines)
Line 0 Link Here
1
package Koha::Schema::Result::OldReserve;
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::OldReserve
15
16
=cut
17
18
__PACKAGE__->table("old_reserves");
19
20
=head1 ACCESSORS
21
22
=head2 reserve_id
23
24
  data_type: 'integer'
25
  is_nullable: 0
26
27
=head2 borrowernumber
28
29
  data_type: 'integer'
30
  is_foreign_key: 1
31
  is_nullable: 1
32
33
=head2 reservedate
34
35
  data_type: 'date'
36
  datetime_undef_if_invalid: 1
37
  is_nullable: 1
38
39
=head2 biblionumber
40
41
  data_type: 'integer'
42
  is_foreign_key: 1
43
  is_nullable: 1
44
45
=head2 constrainttype
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 1
50
51
=head2 branchcode
52
53
  data_type: 'varchar'
54
  is_nullable: 1
55
  size: 10
56
57
=head2 notificationdate
58
59
  data_type: 'date'
60
  datetime_undef_if_invalid: 1
61
  is_nullable: 1
62
63
=head2 reminderdate
64
65
  data_type: 'date'
66
  datetime_undef_if_invalid: 1
67
  is_nullable: 1
68
69
=head2 cancellationdate
70
71
  data_type: 'date'
72
  datetime_undef_if_invalid: 1
73
  is_nullable: 1
74
75
=head2 reservenotes
76
77
  data_type: 'mediumtext'
78
  is_nullable: 1
79
80
=head2 priority
81
82
  data_type: 'smallint'
83
  is_nullable: 1
84
85
=head2 found
86
87
  data_type: 'varchar'
88
  is_nullable: 1
89
  size: 1
90
91
=head2 timestamp
92
93
  data_type: 'timestamp'
94
  datetime_undef_if_invalid: 1
95
  default_value: current_timestamp
96
  is_nullable: 0
97
98
=head2 itemnumber
99
100
  data_type: 'integer'
101
  is_foreign_key: 1
102
  is_nullable: 1
103
104
=head2 waitingdate
105
106
  data_type: 'date'
107
  datetime_undef_if_invalid: 1
108
  is_nullable: 1
109
110
=head2 expirationdate
111
112
  data_type: 'date'
113
  datetime_undef_if_invalid: 1
114
  is_nullable: 1
115
116
=head2 lowestpriority
117
118
  data_type: 'tinyint'
119
  is_nullable: 0
120
121
=head2 suspend
122
123
  data_type: 'tinyint'
124
  default_value: 0
125
  is_nullable: 0
126
127
=head2 suspend_until
128
129
  data_type: 'datetime'
130
  datetime_undef_if_invalid: 1
131
  is_nullable: 1
132
133
=cut
134
135
__PACKAGE__->add_columns(
136
  "reserve_id",
137
  { data_type => "integer", is_nullable => 0 },
138
  "borrowernumber",
139
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
140
  "reservedate",
141
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
142
  "biblionumber",
143
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
144
  "constrainttype",
145
  { data_type => "varchar", is_nullable => 1, size => 1 },
146
  "branchcode",
147
  { data_type => "varchar", is_nullable => 1, size => 10 },
148
  "notificationdate",
149
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
150
  "reminderdate",
151
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
152
  "cancellationdate",
153
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
154
  "reservenotes",
155
  { data_type => "mediumtext", is_nullable => 1 },
156
  "priority",
157
  { data_type => "smallint", is_nullable => 1 },
158
  "found",
159
  { data_type => "varchar", is_nullable => 1, size => 1 },
160
  "timestamp",
161
  {
162
    data_type => "timestamp",
163
    datetime_undef_if_invalid => 1,
164
    default_value => \"current_timestamp",
165
    is_nullable => 0,
166
  },
167
  "itemnumber",
168
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
169
  "waitingdate",
170
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
171
  "expirationdate",
172
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
173
  "lowestpriority",
174
  { data_type => "tinyint", is_nullable => 0 },
175
  "suspend",
176
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
177
  "suspend_until",
178
  {
179
    data_type => "datetime",
180
    datetime_undef_if_invalid => 1,
181
    is_nullable => 1,
182
  },
183
);
184
__PACKAGE__->set_primary_key("reserve_id");
185
186
=head1 RELATIONS
187
188
=head2 borrowernumber
189
190
Type: belongs_to
191
192
Related object: L<Koha::Schema::Result::Borrower>
193
194
=cut
195
196
__PACKAGE__->belongs_to(
197
  "borrowernumber",
198
  "Koha::Schema::Result::Borrower",
199
  { borrowernumber => "borrowernumber" },
200
  {
201
    is_deferrable => 1,
202
    join_type     => "LEFT",
203
    on_delete     => "CASCADE",
204
    on_update     => "CASCADE",
205
  },
206
);
207
208
=head2 biblionumber
209
210
Type: belongs_to
211
212
Related object: L<Koha::Schema::Result::Biblio>
213
214
=cut
215
216
__PACKAGE__->belongs_to(
217
  "biblionumber",
218
  "Koha::Schema::Result::Biblio",
219
  { biblionumber => "biblionumber" },
220
  {
221
    is_deferrable => 1,
222
    join_type     => "LEFT",
223
    on_delete     => "CASCADE",
224
    on_update     => "CASCADE",
225
  },
226
);
227
228
=head2 itemnumber
229
230
Type: belongs_to
231
232
Related object: L<Koha::Schema::Result::Item>
233
234
=cut
235
236
__PACKAGE__->belongs_to(
237
  "itemnumber",
238
  "Koha::Schema::Result::Item",
239
  { itemnumber => "itemnumber" },
240
  {
241
    is_deferrable => 1,
242
    join_type     => "LEFT",
243
    on_delete     => "CASCADE",
244
    on_update     => "CASCADE",
245
  },
246
);
247
248
249
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
250
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F4uNnzNnrF9u6Y/+aymgMQ
251
252
253
# You can replace this text with custom code or comments, and it will be preserved on regeneration
254
1;
(-)a/Koha/Schema/Result/OpacNews.pm (+103 lines)
Line 0 Link Here
1
package Koha::Schema::Result::OpacNews;
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::OpacNews
15
16
=cut
17
18
__PACKAGE__->table("opac_news");
19
20
=head1 ACCESSORS
21
22
=head2 idnew
23
24
  data_type: 'integer'
25
  extra: {unsigned => 1}
26
  is_auto_increment: 1
27
  is_nullable: 0
28
29
=head2 title
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 250
35
36
=head2 new
37
38
  accessor: undef
39
  data_type: 'text'
40
  is_nullable: 0
41
42
=head2 lang
43
44
  data_type: 'varchar'
45
  default_value: (empty string)
46
  is_nullable: 0
47
  size: 25
48
49
=head2 timestamp
50
51
  data_type: 'timestamp'
52
  datetime_undef_if_invalid: 1
53
  default_value: current_timestamp
54
  is_nullable: 0
55
56
=head2 expirationdate
57
58
  data_type: 'date'
59
  datetime_undef_if_invalid: 1
60
  is_nullable: 1
61
62
=head2 number
63
64
  data_type: 'integer'
65
  is_nullable: 1
66
67
=cut
68
69
__PACKAGE__->add_columns(
70
  "idnew",
71
  {
72
    data_type => "integer",
73
    extra => { unsigned => 1 },
74
    is_auto_increment => 1,
75
    is_nullable => 0,
76
  },
77
  "title",
78
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 250 },
79
  "new",
80
  { accessor => undef, data_type => "text", is_nullable => 0 },
81
  "lang",
82
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 25 },
83
  "timestamp",
84
  {
85
    data_type => "timestamp",
86
    datetime_undef_if_invalid => 1,
87
    default_value => \"current_timestamp",
88
    is_nullable => 0,
89
  },
90
  "expirationdate",
91
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
92
  "number",
93
  { data_type => "integer", is_nullable => 1 },
94
);
95
__PACKAGE__->set_primary_key("idnew");
96
97
98
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
99
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xqfqOrjPcMVfkPBbMoLQTg
100
101
102
# You can replace this text with custom code or comments, and it will be preserved on regeneration
103
1;
(-)a/Koha/Schema/Result/Overduerule.pm (+123 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Overduerule;
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::Overduerule
15
16
=cut
17
18
__PACKAGE__->table("overduerules");
19
20
=head1 ACCESSORS
21
22
=head2 branchcode
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 categorycode
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 10
35
36
=head2 delay1
37
38
  data_type: 'integer'
39
  is_nullable: 1
40
41
=head2 letter1
42
43
  data_type: 'varchar'
44
  is_nullable: 1
45
  size: 20
46
47
=head2 debarred1
48
49
  data_type: 'varchar'
50
  default_value: 0
51
  is_nullable: 1
52
  size: 1
53
54
=head2 delay2
55
56
  data_type: 'integer'
57
  is_nullable: 1
58
59
=head2 debarred2
60
61
  data_type: 'varchar'
62
  default_value: 0
63
  is_nullable: 1
64
  size: 1
65
66
=head2 letter2
67
68
  data_type: 'varchar'
69
  is_nullable: 1
70
  size: 20
71
72
=head2 delay3
73
74
  data_type: 'integer'
75
  is_nullable: 1
76
77
=head2 letter3
78
79
  data_type: 'varchar'
80
  is_nullable: 1
81
  size: 20
82
83
=head2 debarred3
84
85
  data_type: 'integer'
86
  default_value: 0
87
  is_nullable: 1
88
89
=cut
90
91
__PACKAGE__->add_columns(
92
  "branchcode",
93
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
94
  "categorycode",
95
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
96
  "delay1",
97
  { data_type => "integer", is_nullable => 1 },
98
  "letter1",
99
  { data_type => "varchar", is_nullable => 1, size => 20 },
100
  "debarred1",
101
  { data_type => "varchar", default_value => 0, is_nullable => 1, size => 1 },
102
  "delay2",
103
  { data_type => "integer", is_nullable => 1 },
104
  "debarred2",
105
  { data_type => "varchar", default_value => 0, is_nullable => 1, size => 1 },
106
  "letter2",
107
  { data_type => "varchar", is_nullable => 1, size => 20 },
108
  "delay3",
109
  { data_type => "integer", is_nullable => 1 },
110
  "letter3",
111
  { data_type => "varchar", is_nullable => 1, size => 20 },
112
  "debarred3",
113
  { data_type => "integer", default_value => 0, is_nullable => 1 },
114
);
115
__PACKAGE__->set_primary_key("branchcode", "categorycode");
116
117
118
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
119
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lPQx6Po24p7Hfj1XWWpPjg
120
121
122
# You can replace this text with custom code or comments, and it will be preserved on regeneration
123
1;
(-)a/Koha/Schema/Result/Patroncard.pm (+90 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Patroncard;
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::Patroncard
15
16
=cut
17
18
__PACKAGE__->table("patroncards");
19
20
=head1 ACCESSORS
21
22
=head2 cardid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 batch_id
29
30
  data_type: 'varchar'
31
  default_value: 1
32
  is_nullable: 0
33
  size: 10
34
35
=head2 borrowernumber
36
37
  data_type: 'integer'
38
  is_foreign_key: 1
39
  is_nullable: 0
40
41
=head2 timestamp
42
43
  data_type: 'timestamp'
44
  datetime_undef_if_invalid: 1
45
  default_value: current_timestamp
46
  is_nullable: 0
47
48
=cut
49
50
__PACKAGE__->add_columns(
51
  "cardid",
52
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
53
  "batch_id",
54
  { data_type => "varchar", default_value => 1, is_nullable => 0, size => 10 },
55
  "borrowernumber",
56
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
57
  "timestamp",
58
  {
59
    data_type => "timestamp",
60
    datetime_undef_if_invalid => 1,
61
    default_value => \"current_timestamp",
62
    is_nullable => 0,
63
  },
64
);
65
__PACKAGE__->set_primary_key("cardid");
66
67
=head1 RELATIONS
68
69
=head2 borrowernumber
70
71
Type: belongs_to
72
73
Related object: L<Koha::Schema::Result::Borrower>
74
75
=cut
76
77
__PACKAGE__->belongs_to(
78
  "borrowernumber",
79
  "Koha::Schema::Result::Borrower",
80
  { borrowernumber => "borrowernumber" },
81
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
82
);
83
84
85
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A22+EWhPJQ+sdfso7qWdjA
87
88
89
# You can replace this text with custom code or comments, and it will be preserved on regeneration
90
1;
(-)a/Koha/Schema/Result/Patronimage.pm (+75 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Patronimage;
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::Patronimage
15
16
=cut
17
18
__PACKAGE__->table("patronimage");
19
20
=head1 ACCESSORS
21
22
=head2 cardnumber
23
24
  data_type: 'varchar'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
  size: 16
28
29
=head2 mimetype
30
31
  data_type: 'varchar'
32
  is_nullable: 0
33
  size: 15
34
35
=head2 imagefile
36
37
  data_type: 'mediumblob'
38
  is_nullable: 0
39
40
=cut
41
42
__PACKAGE__->add_columns(
43
  "cardnumber",
44
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 16 },
45
  "mimetype",
46
  { data_type => "varchar", is_nullable => 0, size => 15 },
47
  "imagefile",
48
  { data_type => "mediumblob", is_nullable => 0 },
49
);
50
__PACKAGE__->set_primary_key("cardnumber");
51
52
=head1 RELATIONS
53
54
=head2 cardnumber
55
56
Type: belongs_to
57
58
Related object: L<Koha::Schema::Result::Borrower>
59
60
=cut
61
62
__PACKAGE__->belongs_to(
63
  "cardnumber",
64
  "Koha::Schema::Result::Borrower",
65
  { cardnumber => "cardnumber" },
66
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
67
);
68
69
70
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pP4rzrk8SGbeuTyN7FE72Q
72
73
74
# You can replace this text with custom code or comments, and it will be preserved on regeneration
75
1;
(-)a/Koha/Schema/Result/PendingOfflineOperation.pm (+96 lines)
Line 0 Link Here
1
package Koha::Schema::Result::PendingOfflineOperation;
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::PendingOfflineOperation
15
16
=cut
17
18
__PACKAGE__->table("pending_offline_operations");
19
20
=head1 ACCESSORS
21
22
=head2 operationid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 userid
29
30
  data_type: 'varchar'
31
  is_nullable: 0
32
  size: 30
33
34
=head2 branchcode
35
36
  data_type: 'varchar'
37
  is_nullable: 0
38
  size: 10
39
40
=head2 timestamp
41
42
  data_type: 'timestamp'
43
  datetime_undef_if_invalid: 1
44
  default_value: current_timestamp
45
  is_nullable: 0
46
47
=head2 action
48
49
  data_type: 'varchar'
50
  is_nullable: 0
51
  size: 10
52
53
=head2 barcode
54
55
  data_type: 'varchar'
56
  is_nullable: 0
57
  size: 20
58
59
=head2 cardnumber
60
61
  data_type: 'varchar'
62
  is_nullable: 1
63
  size: 16
64
65
=cut
66
67
__PACKAGE__->add_columns(
68
  "operationid",
69
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
70
  "userid",
71
  { data_type => "varchar", is_nullable => 0, size => 30 },
72
  "branchcode",
73
  { data_type => "varchar", is_nullable => 0, size => 10 },
74
  "timestamp",
75
  {
76
    data_type => "timestamp",
77
    datetime_undef_if_invalid => 1,
78
    default_value => \"current_timestamp",
79
    is_nullable => 0,
80
  },
81
  "action",
82
  { data_type => "varchar", is_nullable => 0, size => 10 },
83
  "barcode",
84
  { data_type => "varchar", is_nullable => 0, size => 20 },
85
  "cardnumber",
86
  { data_type => "varchar", is_nullable => 1, size => 16 },
87
);
88
__PACKAGE__->set_primary_key("operationid");
89
90
91
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K+4ksw+AoNYQmuKJYURZ6g
93
94
95
# You can replace this text with custom code or comments, and it will be preserved on regeneration
96
1;
(-)a/Koha/Schema/Result/Permission.pm (+100 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Permission;
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::Permission
15
16
=cut
17
18
__PACKAGE__->table("permissions");
19
20
=head1 ACCESSORS
21
22
=head2 module_bit
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_foreign_key: 1
27
  is_nullable: 0
28
29
=head2 code
30
31
  data_type: 'varchar'
32
  default_value: (empty string)
33
  is_nullable: 0
34
  size: 64
35
36
=head2 description
37
38
  data_type: 'varchar'
39
  is_nullable: 1
40
  size: 255
41
42
=cut
43
44
__PACKAGE__->add_columns(
45
  "module_bit",
46
  {
47
    data_type      => "integer",
48
    default_value  => 0,
49
    is_foreign_key => 1,
50
    is_nullable    => 0,
51
  },
52
  "code",
53
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 },
54
  "description",
55
  { data_type => "varchar", is_nullable => 1, size => 255 },
56
);
57
__PACKAGE__->set_primary_key("module_bit", "code");
58
59
=head1 RELATIONS
60
61
=head2 module_bit
62
63
Type: belongs_to
64
65
Related object: L<Koha::Schema::Result::Userflag>
66
67
=cut
68
69
__PACKAGE__->belongs_to(
70
  "module_bit",
71
  "Koha::Schema::Result::Userflag",
72
  { bit => "module_bit" },
73
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
=head2 user_permissions
77
78
Type: has_many
79
80
Related object: L<Koha::Schema::Result::UserPermission>
81
82
=cut
83
84
__PACKAGE__->has_many(
85
  "user_permissions",
86
  "Koha::Schema::Result::UserPermission",
87
  {
88
    "foreign.code"       => "self.code",
89
    "foreign.module_bit" => "self.module_bit",
90
  },
91
  { cascade_copy => 0, cascade_delete => 0 },
92
);
93
94
95
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GrCjAEVwF/MWuG1v1AB6Uw
97
98
99
# You can replace this text with custom code or comments, and it will be preserved on regeneration
100
1;
(-)a/Koha/Schema/Result/Printer.pm (+59 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Printer;
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::Printer
15
16
=cut
17
18
__PACKAGE__->table("printers");
19
20
=head1 ACCESSORS
21
22
=head2 printername
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 40
28
29
=head2 printqueue
30
31
  data_type: 'varchar'
32
  is_nullable: 1
33
  size: 20
34
35
=head2 printtype
36
37
  data_type: 'varchar'
38
  is_nullable: 1
39
  size: 20
40
41
=cut
42
43
__PACKAGE__->add_columns(
44
  "printername",
45
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
46
  "printqueue",
47
  { data_type => "varchar", is_nullable => 1, size => 20 },
48
  "printtype",
49
  { data_type => "varchar", is_nullable => 1, size => 20 },
50
);
51
__PACKAGE__->set_primary_key("printername");
52
53
54
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YdJN8Uh6wdIz1hpasUro3w
56
57
58
# You can replace this text with custom code or comments, and it will be preserved on regeneration
59
1;
(-)a/Koha/Schema/Result/PrintersProfile.pm (+137 lines)
Line 0 Link Here
1
package Koha::Schema::Result::PrintersProfile;
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::PrintersProfile
15
16
=cut
17
18
__PACKAGE__->table("printers_profile");
19
20
=head1 ACCESSORS
21
22
=head2 profile_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 printer_name
29
30
  data_type: 'varchar'
31
  default_value: 'Default Printer'
32
  is_nullable: 0
33
  size: 40
34
35
=head2 Kohalate_id
36
37
  data_type: 'integer'
38
  default_value: 0
39
  is_nullable: 0
40
41
=head2 paper_bin
42
43
  data_type: 'varchar'
44
  default_value: 'Bypass'
45
  is_nullable: 0
46
  size: 20
47
48
=head2 offset_horz
49
50
  data_type: 'float'
51
  default_value: 0
52
  is_nullable: 0
53
54
=head2 offset_vert
55
56
  data_type: 'float'
57
  default_value: 0
58
  is_nullable: 0
59
60
=head2 creep_horz
61
62
  data_type: 'float'
63
  default_value: 0
64
  is_nullable: 0
65
66
=head2 creep_vert
67
68
  data_type: 'float'
69
  default_value: 0
70
  is_nullable: 0
71
72
=head2 units
73
74
  data_type: 'char'
75
  default_value: 'POINT'
76
  is_nullable: 0
77
  size: 20
78
79
=head2 creator
80
81
  data_type: 'char'
82
  default_value: 'Labels'
83
  is_nullable: 0
84
  size: 15
85
86
=cut
87
88
__PACKAGE__->add_columns(
89
  "profile_id",
90
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
91
  "printer_name",
92
  {
93
    data_type => "varchar",
94
    default_value => "Default Printer",
95
    is_nullable => 0,
96
    size => 40,
97
  },
98
  "Kohalate_id",
99
  { data_type => "integer", default_value => 0, is_nullable => 0 },
100
  "paper_bin",
101
  {
102
    data_type => "varchar",
103
    default_value => "Bypass",
104
    is_nullable => 0,
105
    size => 20,
106
  },
107
  "offset_horz",
108
  { data_type => "float", default_value => 0, is_nullable => 0 },
109
  "offset_vert",
110
  { data_type => "float", default_value => 0, is_nullable => 0 },
111
  "creep_horz",
112
  { data_type => "float", default_value => 0, is_nullable => 0 },
113
  "creep_vert",
114
  { data_type => "float", default_value => 0, is_nullable => 0 },
115
  "units",
116
  { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 },
117
  "creator",
118
  {
119
    data_type => "char",
120
    default_value => "Labels",
121
    is_nullable => 0,
122
    size => 15,
123
  },
124
);
125
__PACKAGE__->set_primary_key("profile_id");
126
__PACKAGE__->add_unique_constraint(
127
  "printername",
128
  ["printer_name", "Kohalate_id", "paper_bin", "creator"],
129
);
130
131
132
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qreJ4vvVhkVfvLmV6HtEVw
134
135
136
# You can replace this text with custom code or comments, and it will be preserved on regeneration
137
1;
(-)a/Koha/Schema/Result/Quote.pm (+68 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Quote;
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::Quote
15
16
=cut
17
18
__PACKAGE__->table("quotes");
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 source
29
30
  data_type: 'text'
31
  is_nullable: 1
32
33
=head2 text
34
35
  data_type: 'mediumtext'
36
  is_nullable: 0
37
38
=head2 timestamp
39
40
  data_type: 'datetime'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 0
43
44
=cut
45
46
__PACKAGE__->add_columns(
47
  "id",
48
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
49
  "source",
50
  { data_type => "text", is_nullable => 1 },
51
  "text",
52
  { data_type => "mediumtext", is_nullable => 0 },
53
  "timestamp",
54
  {
55
    data_type => "datetime",
56
    datetime_undef_if_invalid => 1,
57
    is_nullable => 0,
58
  },
59
);
60
__PACKAGE__->set_primary_key("id");
61
62
63
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
64
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oUsIAXrcOeV4vefDw52LDA
65
66
67
# You can replace this text with custom code or comments, and it will be preserved on regeneration
68
1;
(-)a/Koha/Schema/Result/Rating.pm (+103 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Rating;
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::Rating
15
16
=cut
17
18
__PACKAGE__->table("ratings");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 biblionumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 rating_value
35
36
  data_type: 'tinyint'
37
  is_nullable: 0
38
39
=head2 timestamp
40
41
  data_type: 'timestamp'
42
  datetime_undef_if_invalid: 1
43
  default_value: current_timestamp
44
  is_nullable: 0
45
46
=cut
47
48
__PACKAGE__->add_columns(
49
  "borrowernumber",
50
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
51
  "biblionumber",
52
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
53
  "rating_value",
54
  { data_type => "tinyint", is_nullable => 0 },
55
  "timestamp",
56
  {
57
    data_type => "timestamp",
58
    datetime_undef_if_invalid => 1,
59
    default_value => \"current_timestamp",
60
    is_nullable => 0,
61
  },
62
);
63
__PACKAGE__->set_primary_key("borrowernumber", "biblionumber");
64
65
=head1 RELATIONS
66
67
=head2 borrowernumber
68
69
Type: belongs_to
70
71
Related object: L<Koha::Schema::Result::Borrower>
72
73
=cut
74
75
__PACKAGE__->belongs_to(
76
  "borrowernumber",
77
  "Koha::Schema::Result::Borrower",
78
  { borrowernumber => "borrowernumber" },
79
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
80
);
81
82
=head2 biblionumber
83
84
Type: belongs_to
85
86
Related object: L<Koha::Schema::Result::Biblio>
87
88
=cut
89
90
__PACKAGE__->belongs_to(
91
  "biblionumber",
92
  "Koha::Schema::Result::Biblio",
93
  { biblionumber => "biblionumber" },
94
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
95
);
96
97
98
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
99
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EW6YoBUEz9zzhbfKdpti4Q
100
101
102
# You can replace this text with custom code or comments, and it will be preserved on regeneration
103
1;
(-)a/Koha/Schema/Result/RepeatableHoliday.pm (+88 lines)
Line 0 Link Here
1
package Koha::Schema::Result::RepeatableHoliday;
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::RepeatableHoliday
15
16
=cut
17
18
__PACKAGE__->table("repeatable_holidays");
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 branchcode
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 10
34
35
=head2 weekday
36
37
  data_type: 'smallint'
38
  is_nullable: 1
39
40
=head2 day
41
42
  data_type: 'smallint'
43
  is_nullable: 1
44
45
=head2 month
46
47
  data_type: 'smallint'
48
  is_nullable: 1
49
50
=head2 title
51
52
  data_type: 'varchar'
53
  default_value: (empty string)
54
  is_nullable: 0
55
  size: 50
56
57
=head2 description
58
59
  data_type: 'text'
60
  is_nullable: 0
61
62
=cut
63
64
__PACKAGE__->add_columns(
65
  "id",
66
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
67
  "branchcode",
68
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
69
  "weekday",
70
  { data_type => "smallint", is_nullable => 1 },
71
  "day",
72
  { data_type => "smallint", is_nullable => 1 },
73
  "month",
74
  { data_type => "smallint", is_nullable => 1 },
75
  "title",
76
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
77
  "description",
78
  { data_type => "text", is_nullable => 0 },
79
);
80
__PACKAGE__->set_primary_key("id");
81
82
83
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
84
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:97mzlxhFNWqvag1helFmqg
85
86
87
# You can replace this text with custom code or comments, and it will be preserved on regeneration
88
1;
(-)a/Koha/Schema/Result/ReportsDictionary.pm (+95 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ReportsDictionary;
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::ReportsDictionary
15
16
=cut
17
18
__PACKAGE__->table("reports_dictionary");
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 name
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 255
33
34
=head2 description
35
36
  data_type: 'text'
37
  is_nullable: 1
38
39
=head2 date_created
40
41
  data_type: 'datetime'
42
  datetime_undef_if_invalid: 1
43
  is_nullable: 1
44
45
=head2 date_modified
46
47
  data_type: 'datetime'
48
  datetime_undef_if_invalid: 1
49
  is_nullable: 1
50
51
=head2 saved_sql
52
53
  data_type: 'text'
54
  is_nullable: 1
55
56
=head2 area
57
58
  data_type: 'integer'
59
  is_nullable: 1
60
61
=cut
62
63
__PACKAGE__->add_columns(
64
  "id",
65
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
66
  "name",
67
  { data_type => "varchar", is_nullable => 1, size => 255 },
68
  "description",
69
  { data_type => "text", is_nullable => 1 },
70
  "date_created",
71
  {
72
    data_type => "datetime",
73
    datetime_undef_if_invalid => 1,
74
    is_nullable => 1,
75
  },
76
  "date_modified",
77
  {
78
    data_type => "datetime",
79
    datetime_undef_if_invalid => 1,
80
    is_nullable => 1,
81
  },
82
  "saved_sql",
83
  { data_type => "text", is_nullable => 1 },
84
  "area",
85
  { data_type => "integer", is_nullable => 1 },
86
);
87
__PACKAGE__->set_primary_key("id");
88
89
90
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DoHPXnWdY6CvBFW3z7hUVQ
92
93
94
# You can replace this text with custom code or comments, and it will be preserved on regeneration
95
1;
(-)a/Koha/Schema/Result/Reserve.pm (+278 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Reserve;
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::Reserve
15
16
=cut
17
18
__PACKAGE__->table("reserves");
19
20
=head1 ACCESSORS
21
22
=head2 reserve_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 borrowernumber
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_foreign_key: 1
33
  is_nullable: 0
34
35
=head2 reservedate
36
37
  data_type: 'date'
38
  datetime_undef_if_invalid: 1
39
  is_nullable: 1
40
41
=head2 biblionumber
42
43
  data_type: 'integer'
44
  default_value: 0
45
  is_foreign_key: 1
46
  is_nullable: 0
47
48
=head2 constrainttype
49
50
  data_type: 'varchar'
51
  is_nullable: 1
52
  size: 1
53
54
=head2 branchcode
55
56
  data_type: 'varchar'
57
  is_foreign_key: 1
58
  is_nullable: 1
59
  size: 10
60
61
=head2 notificationdate
62
63
  data_type: 'date'
64
  datetime_undef_if_invalid: 1
65
  is_nullable: 1
66
67
=head2 reminderdate
68
69
  data_type: 'date'
70
  datetime_undef_if_invalid: 1
71
  is_nullable: 1
72
73
=head2 cancellationdate
74
75
  data_type: 'date'
76
  datetime_undef_if_invalid: 1
77
  is_nullable: 1
78
79
=head2 reservenotes
80
81
  data_type: 'mediumtext'
82
  is_nullable: 1
83
84
=head2 priority
85
86
  data_type: 'smallint'
87
  is_nullable: 1
88
89
=head2 found
90
91
  data_type: 'varchar'
92
  is_nullable: 1
93
  size: 1
94
95
=head2 timestamp
96
97
  data_type: 'timestamp'
98
  datetime_undef_if_invalid: 1
99
  default_value: current_timestamp
100
  is_nullable: 0
101
102
=head2 itemnumber
103
104
  data_type: 'integer'
105
  is_foreign_key: 1
106
  is_nullable: 1
107
108
=head2 waitingdate
109
110
  data_type: 'date'
111
  datetime_undef_if_invalid: 1
112
  is_nullable: 1
113
114
=head2 expirationdate
115
116
  data_type: 'date'
117
  datetime_undef_if_invalid: 1
118
  is_nullable: 1
119
120
=head2 lowestpriority
121
122
  data_type: 'tinyint'
123
  is_nullable: 0
124
125
=head2 suspend
126
127
  data_type: 'tinyint'
128
  default_value: 0
129
  is_nullable: 0
130
131
=head2 suspend_until
132
133
  data_type: 'datetime'
134
  datetime_undef_if_invalid: 1
135
  is_nullable: 1
136
137
=cut
138
139
__PACKAGE__->add_columns(
140
  "reserve_id",
141
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
142
  "borrowernumber",
143
  {
144
    data_type      => "integer",
145
    default_value  => 0,
146
    is_foreign_key => 1,
147
    is_nullable    => 0,
148
  },
149
  "reservedate",
150
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
151
  "biblionumber",
152
  {
153
    data_type      => "integer",
154
    default_value  => 0,
155
    is_foreign_key => 1,
156
    is_nullable    => 0,
157
  },
158
  "constrainttype",
159
  { data_type => "varchar", is_nullable => 1, size => 1 },
160
  "branchcode",
161
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
162
  "notificationdate",
163
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
164
  "reminderdate",
165
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
166
  "cancellationdate",
167
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
168
  "reservenotes",
169
  { data_type => "mediumtext", is_nullable => 1 },
170
  "priority",
171
  { data_type => "smallint", is_nullable => 1 },
172
  "found",
173
  { data_type => "varchar", is_nullable => 1, size => 1 },
174
  "timestamp",
175
  {
176
    data_type => "timestamp",
177
    datetime_undef_if_invalid => 1,
178
    default_value => \"current_timestamp",
179
    is_nullable => 0,
180
  },
181
  "itemnumber",
182
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
183
  "waitingdate",
184
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
185
  "expirationdate",
186
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
187
  "lowestpriority",
188
  { data_type => "tinyint", is_nullable => 0 },
189
  "suspend",
190
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
191
  "suspend_until",
192
  {
193
    data_type => "datetime",
194
    datetime_undef_if_invalid => 1,
195
    is_nullable => 1,
196
  },
197
);
198
__PACKAGE__->set_primary_key("reserve_id");
199
200
=head1 RELATIONS
201
202
=head2 borrowernumber
203
204
Type: belongs_to
205
206
Related object: L<Koha::Schema::Result::Borrower>
207
208
=cut
209
210
__PACKAGE__->belongs_to(
211
  "borrowernumber",
212
  "Koha::Schema::Result::Borrower",
213
  { borrowernumber => "borrowernumber" },
214
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
215
);
216
217
=head2 biblionumber
218
219
Type: belongs_to
220
221
Related object: L<Koha::Schema::Result::Biblio>
222
223
=cut
224
225
__PACKAGE__->belongs_to(
226
  "biblionumber",
227
  "Koha::Schema::Result::Biblio",
228
  { biblionumber => "biblionumber" },
229
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
230
);
231
232
=head2 itemnumber
233
234
Type: belongs_to
235
236
Related object: L<Koha::Schema::Result::Item>
237
238
=cut
239
240
__PACKAGE__->belongs_to(
241
  "itemnumber",
242
  "Koha::Schema::Result::Item",
243
  { itemnumber => "itemnumber" },
244
  {
245
    is_deferrable => 1,
246
    join_type     => "LEFT",
247
    on_delete     => "CASCADE",
248
    on_update     => "CASCADE",
249
  },
250
);
251
252
=head2 branchcode
253
254
Type: belongs_to
255
256
Related object: L<Koha::Schema::Result::Branch>
257
258
=cut
259
260
__PACKAGE__->belongs_to(
261
  "branchcode",
262
  "Koha::Schema::Result::Branch",
263
  { branchcode => "branchcode" },
264
  {
265
    is_deferrable => 1,
266
    join_type     => "LEFT",
267
    on_delete     => "CASCADE",
268
    on_update     => "CASCADE",
269
  },
270
);
271
272
273
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
274
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CmTX9CmD+4foyLsBusrIZQ
275
276
277
# You can replace this text with custom code or comments, and it will be preserved on regeneration
278
1;
(-)a/Koha/Schema/Result/Reserveconstraint.pm (+78 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Reserveconstraint;
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::Reserveconstraint
15
16
=cut
17
18
__PACKAGE__->table("reserveconstraints");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_nullable: 0
27
28
=head2 reservedate
29
30
  data_type: 'date'
31
  datetime_undef_if_invalid: 1
32
  is_nullable: 1
33
34
=head2 biblionumber
35
36
  data_type: 'integer'
37
  default_value: 0
38
  is_nullable: 0
39
40
=head2 biblioitemnumber
41
42
  data_type: 'integer'
43
  is_nullable: 1
44
45
=head2 timestamp
46
47
  data_type: 'timestamp'
48
  datetime_undef_if_invalid: 1
49
  default_value: current_timestamp
50
  is_nullable: 0
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "borrowernumber",
56
  { data_type => "integer", default_value => 0, is_nullable => 0 },
57
  "reservedate",
58
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
59
  "biblionumber",
60
  { data_type => "integer", default_value => 0, is_nullable => 0 },
61
  "biblioitemnumber",
62
  { data_type => "integer", is_nullable => 1 },
63
  "timestamp",
64
  {
65
    data_type => "timestamp",
66
    datetime_undef_if_invalid => 1,
67
    default_value => \"current_timestamp",
68
    is_nullable => 0,
69
  },
70
);
71
72
73
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
74
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AiOq1MioZ5ihnOCWXeQ64g
75
76
77
# You can replace this text with custom code or comments, and it will be preserved on regeneration
78
1;
(-)a/Koha/Schema/Result/Review.pm (+126 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Review;
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::Review
15
16
=cut
17
18
__PACKAGE__->table("reviews");
19
20
=head1 ACCESSORS
21
22
=head2 reviewid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 borrowernumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 1
33
34
=head2 biblionumber
35
36
  data_type: 'integer'
37
  is_foreign_key: 1
38
  is_nullable: 1
39
40
=head2 review
41
42
  data_type: 'text'
43
  is_nullable: 1
44
45
=head2 approved
46
47
  data_type: 'tinyint'
48
  is_nullable: 1
49
50
=head2 datereviewed
51
52
  data_type: 'datetime'
53
  datetime_undef_if_invalid: 1
54
  is_nullable: 1
55
56
=cut
57
58
__PACKAGE__->add_columns(
59
  "reviewid",
60
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
61
  "borrowernumber",
62
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
63
  "biblionumber",
64
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
65
  "review",
66
  { data_type => "text", is_nullable => 1 },
67
  "approved",
68
  { data_type => "tinyint", is_nullable => 1 },
69
  "datereviewed",
70
  {
71
    data_type => "datetime",
72
    datetime_undef_if_invalid => 1,
73
    is_nullable => 1,
74
  },
75
);
76
__PACKAGE__->set_primary_key("reviewid");
77
78
=head1 RELATIONS
79
80
=head2 borrowernumber
81
82
Type: belongs_to
83
84
Related object: L<Koha::Schema::Result::Borrower>
85
86
=cut
87
88
__PACKAGE__->belongs_to(
89
  "borrowernumber",
90
  "Koha::Schema::Result::Borrower",
91
  { borrowernumber => "borrowernumber" },
92
  {
93
    is_deferrable => 1,
94
    join_type     => "LEFT",
95
    on_delete     => "CASCADE",
96
    on_update     => "CASCADE",
97
  },
98
);
99
100
=head2 biblionumber
101
102
Type: belongs_to
103
104
Related object: L<Koha::Schema::Result::Biblio>
105
106
=cut
107
108
__PACKAGE__->belongs_to(
109
  "biblionumber",
110
  "Koha::Schema::Result::Biblio",
111
  { biblionumber => "biblionumber" },
112
  {
113
    is_deferrable => 1,
114
    join_type     => "LEFT",
115
    on_delete     => "CASCADE",
116
    on_update     => "CASCADE",
117
  },
118
);
119
120
121
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
122
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g265D3ibOtXJkn987UYiMQ
123
124
125
# You can replace this text with custom code or comments, and it will be preserved on regeneration
126
1;
(-)a/Koha/Schema/Result/Roadtype.pm (+51 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Roadtype;
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::Roadtype
15
16
=cut
17
18
__PACKAGE__->table("roadtype");
19
20
=head1 ACCESSORS
21
22
=head2 roadtypeid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 road_type
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 100
34
35
=cut
36
37
__PACKAGE__->add_columns(
38
  "roadtypeid",
39
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
40
  "road_type",
41
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
42
);
43
__PACKAGE__->set_primary_key("roadtypeid");
44
45
46
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1e7ZbT9C0jJ4wiOwIv7+0A
48
49
50
# You can replace this text with custom code or comments, and it will be preserved on regeneration
51
1;
(-)a/Koha/Schema/Result/SavedReport.pm (+68 lines)
Line 0 Link Here
1
package Koha::Schema::Result::SavedReport;
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::SavedReport
15
16
=cut
17
18
__PACKAGE__->table("saved_reports");
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 report_id
29
30
  data_type: 'integer'
31
  is_nullable: 1
32
33
=head2 report
34
35
  data_type: 'longtext'
36
  is_nullable: 1
37
38
=head2 date_run
39
40
  data_type: 'datetime'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 1
43
44
=cut
45
46
__PACKAGE__->add_columns(
47
  "id",
48
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
49
  "report_id",
50
  { data_type => "integer", is_nullable => 1 },
51
  "report",
52
  { data_type => "longtext", is_nullable => 1 },
53
  "date_run",
54
  {
55
    data_type => "datetime",
56
    datetime_undef_if_invalid => 1,
57
    is_nullable => 1,
58
  },
59
);
60
__PACKAGE__->set_primary_key("id");
61
62
63
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
64
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pUvQBI3IeMcbmKs01y6KSQ
65
66
67
# You can replace this text with custom code or comments, and it will be preserved on regeneration
68
1;
(-)a/Koha/Schema/Result/SavedSql.pm (+131 lines)
Line 0 Link Here
1
package Koha::Schema::Result::SavedSql;
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::SavedSql
15
16
=cut
17
18
__PACKAGE__->table("saved_sql");
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 borrowernumber
29
30
  data_type: 'integer'
31
  is_nullable: 1
32
33
=head2 date_created
34
35
  data_type: 'datetime'
36
  datetime_undef_if_invalid: 1
37
  is_nullable: 1
38
39
=head2 last_modified
40
41
  data_type: 'datetime'
42
  datetime_undef_if_invalid: 1
43
  is_nullable: 1
44
45
=head2 savedsql
46
47
  data_type: 'text'
48
  is_nullable: 1
49
50
=head2 last_run
51
52
  data_type: 'datetime'
53
  datetime_undef_if_invalid: 1
54
  is_nullable: 1
55
56
=head2 report_name
57
58
  data_type: 'varchar'
59
  is_nullable: 1
60
  size: 255
61
62
=head2 type
63
64
  data_type: 'varchar'
65
  is_nullable: 1
66
  size: 255
67
68
=head2 notes
69
70
  data_type: 'text'
71
  is_nullable: 1
72
73
=head2 cache_expiry
74
75
  data_type: 'integer'
76
  default_value: 300
77
  is_nullable: 0
78
79
=head2 public
80
81
  data_type: 'tinyint'
82
  default_value: 0
83
  is_nullable: 0
84
85
=cut
86
87
__PACKAGE__->add_columns(
88
  "id",
89
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
90
  "borrowernumber",
91
  { data_type => "integer", is_nullable => 1 },
92
  "date_created",
93
  {
94
    data_type => "datetime",
95
    datetime_undef_if_invalid => 1,
96
    is_nullable => 1,
97
  },
98
  "last_modified",
99
  {
100
    data_type => "datetime",
101
    datetime_undef_if_invalid => 1,
102
    is_nullable => 1,
103
  },
104
  "savedsql",
105
  { data_type => "text", is_nullable => 1 },
106
  "last_run",
107
  {
108
    data_type => "datetime",
109
    datetime_undef_if_invalid => 1,
110
    is_nullable => 1,
111
  },
112
  "report_name",
113
  { data_type => "varchar", is_nullable => 1, size => 255 },
114
  "type",
115
  { data_type => "varchar", is_nullable => 1, size => 255 },
116
  "notes",
117
  { data_type => "text", is_nullable => 1 },
118
  "cache_expiry",
119
  { data_type => "integer", default_value => 300, is_nullable => 0 },
120
  "public",
121
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
122
);
123
__PACKAGE__->set_primary_key("id");
124
125
126
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
127
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:o2TYPotjew8axVaQD7ouNQ
128
129
130
# You can replace this text with custom code or comments, and it will be preserved on regeneration
131
1;
(-)a/Koha/Schema/Result/SearchHistory.pm (+85 lines)
Line 0 Link Here
1
package Koha::Schema::Result::SearchHistory;
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::SearchHistory
15
16
=cut
17
18
__PACKAGE__->table("search_history");
19
20
=head1 ACCESSORS
21
22
=head2 userid
23
24
  data_type: 'integer'
25
  is_nullable: 0
26
27
=head2 sessionid
28
29
  data_type: 'varchar'
30
  is_nullable: 0
31
  size: 32
32
33
=head2 query_desc
34
35
  data_type: 'varchar'
36
  is_nullable: 0
37
  size: 255
38
39
=head2 query_cgi
40
41
  data_type: 'varchar'
42
  is_nullable: 0
43
  size: 255
44
45
=head2 total
46
47
  data_type: 'integer'
48
  is_nullable: 0
49
50
=head2 time
51
52
  data_type: 'timestamp'
53
  datetime_undef_if_invalid: 1
54
  default_value: current_timestamp
55
  is_nullable: 0
56
57
=cut
58
59
__PACKAGE__->add_columns(
60
  "userid",
61
  { data_type => "integer", is_nullable => 0 },
62
  "sessionid",
63
  { data_type => "varchar", is_nullable => 0, size => 32 },
64
  "query_desc",
65
  { data_type => "varchar", is_nullable => 0, size => 255 },
66
  "query_cgi",
67
  { data_type => "varchar", is_nullable => 0, size => 255 },
68
  "total",
69
  { data_type => "integer", is_nullable => 0 },
70
  "time",
71
  {
72
    data_type => "timestamp",
73
    datetime_undef_if_invalid => 1,
74
    default_value => \"current_timestamp",
75
    is_nullable => 0,
76
  },
77
);
78
79
80
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
81
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aGVWzlJre3f9esvYkHpglA
82
83
84
# You can replace this text with custom code or comments, and it will be preserved on regeneration
85
1;
(-)a/Koha/Schema/Result/Serial.pm (+139 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Serial;
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::Serial
15
16
=cut
17
18
__PACKAGE__->table("serial");
19
20
=head1 ACCESSORS
21
22
=head2 serialid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 biblionumber
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 100
34
35
=head2 subscriptionid
36
37
  data_type: 'varchar'
38
  default_value: (empty string)
39
  is_nullable: 0
40
  size: 100
41
42
=head2 serialseq
43
44
  data_type: 'varchar'
45
  default_value: (empty string)
46
  is_nullable: 0
47
  size: 100
48
49
=head2 status
50
51
  data_type: 'tinyint'
52
  default_value: 0
53
  is_nullable: 0
54
55
=head2 planneddate
56
57
  data_type: 'date'
58
  datetime_undef_if_invalid: 1
59
  is_nullable: 1
60
61
=head2 notes
62
63
  data_type: 'text'
64
  is_nullable: 1
65
66
=head2 publisheddate
67
68
  data_type: 'date'
69
  datetime_undef_if_invalid: 1
70
  is_nullable: 1
71
72
=head2 itemnumber
73
74
  data_type: 'text'
75
  is_nullable: 1
76
77
=head2 claimdate
78
79
  data_type: 'date'
80
  datetime_undef_if_invalid: 1
81
  is_nullable: 1
82
83
=head2 routingnotes
84
85
  data_type: 'text'
86
  is_nullable: 1
87
88
=cut
89
90
__PACKAGE__->add_columns(
91
  "serialid",
92
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
93
  "biblionumber",
94
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
95
  "subscriptionid",
96
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
97
  "serialseq",
98
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
99
  "status",
100
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
101
  "planneddate",
102
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
103
  "notes",
104
  { data_type => "text", is_nullable => 1 },
105
  "publisheddate",
106
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
107
  "itemnumber",
108
  { data_type => "text", is_nullable => 1 },
109
  "claimdate",
110
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
111
  "routingnotes",
112
  { data_type => "text", is_nullable => 1 },
113
);
114
__PACKAGE__->set_primary_key("serialid");
115
116
=head1 RELATIONS
117
118
=head2 serialitems
119
120
Type: has_many
121
122
Related object: L<Koha::Schema::Result::Serialitem>
123
124
=cut
125
126
__PACKAGE__->has_many(
127
  "serialitems",
128
  "Koha::Schema::Result::Serialitem",
129
  { "foreign.serialid" => "self.serialid" },
130
  { cascade_copy => 0, cascade_delete => 0 },
131
);
132
133
134
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
135
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2FboN1dkwN9UCpuoEzkwiQ
136
137
138
# You can replace this text with custom code or comments, and it will be preserved on regeneration
139
1;
(-)a/Koha/Schema/Result/Serialitem.pm (+82 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Serialitem;
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::Serialitem
15
16
=cut
17
18
__PACKAGE__->table("serialitems");
19
20
=head1 ACCESSORS
21
22
=head2 itemnumber
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 serialid
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=cut
35
36
__PACKAGE__->add_columns(
37
  "itemnumber",
38
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
39
  "serialid",
40
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
41
);
42
__PACKAGE__->add_unique_constraint("serialitemsidx", ["itemnumber"]);
43
44
=head1 RELATIONS
45
46
=head2 serialid
47
48
Type: belongs_to
49
50
Related object: L<Koha::Schema::Result::Serial>
51
52
=cut
53
54
__PACKAGE__->belongs_to(
55
  "serialid",
56
  "Koha::Schema::Result::Serial",
57
  { serialid => "serialid" },
58
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
59
);
60
61
=head2 itemnumber
62
63
Type: belongs_to
64
65
Related object: L<Koha::Schema::Result::Item>
66
67
=cut
68
69
__PACKAGE__->belongs_to(
70
  "itemnumber",
71
  "Koha::Schema::Result::Item",
72
  { itemnumber => "itemnumber" },
73
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sa6RxCKdk2YlwHhLYSlHeQ
79
80
81
# You can replace this text with custom code or comments, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/ServicesThrottle.pm (+51 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ServicesThrottle;
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::ServicesThrottle
15
16
=cut
17
18
__PACKAGE__->table("services_throttle");
19
20
=head1 ACCESSORS
21
22
=head2 service_type
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 service_count
30
31
  data_type: 'varchar'
32
  is_nullable: 1
33
  size: 45
34
35
=cut
36
37
__PACKAGE__->add_columns(
38
  "service_type",
39
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
40
  "service_count",
41
  { data_type => "varchar", is_nullable => 1, size => 45 },
42
);
43
__PACKAGE__->set_primary_key("service_type");
44
45
46
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HJbG3IV7/qAS5mtoMApIxA
48
49
50
# You can replace this text with custom code or comments, and it will be preserved on regeneration
51
1;
(-)a/Koha/Schema/Result/Session.pm (+49 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Session;
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::Session
15
16
=cut
17
18
__PACKAGE__->table("sessions");
19
20
=head1 ACCESSORS
21
22
=head2 id
23
24
  data_type: 'varchar'
25
  is_nullable: 0
26
  size: 32
27
28
=head2 a_session
29
30
  data_type: 'text'
31
  is_nullable: 0
32
33
=cut
34
35
__PACKAGE__->add_columns(
36
  "id",
37
  { data_type => "varchar", is_nullable => 0, size => 32 },
38
  "a_session",
39
  { data_type => "text", is_nullable => 0 },
40
);
41
__PACKAGE__->set_primary_key("id");
42
43
44
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
45
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:12dstPzya/O9nRoT7ePIVQ
46
47
48
# You can replace this text with custom code or comments, and it will be preserved on regeneration
49
1;
(-)a/Koha/Schema/Result/SocialData.pm (+86 lines)
Line 0 Link Here
1
package Koha::Schema::Result::SocialData;
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::SocialData
15
16
=cut
17
18
__PACKAGE__->table("social_data");
19
20
=head1 ACCESSORS
21
22
=head2 isbn
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 30
28
29
=head2 num_critics
30
31
  data_type: 'integer'
32
  is_nullable: 1
33
34
=head2 num_critics_pro
35
36
  data_type: 'integer'
37
  is_nullable: 1
38
39
=head2 num_quotations
40
41
  data_type: 'integer'
42
  is_nullable: 1
43
44
=head2 num_videos
45
46
  data_type: 'integer'
47
  is_nullable: 1
48
49
=head2 score_avg
50
51
  data_type: 'decimal'
52
  is_nullable: 1
53
  size: [5,2]
54
55
=head2 num_scores
56
57
  data_type: 'integer'
58
  is_nullable: 1
59
60
=cut
61
62
__PACKAGE__->add_columns(
63
  "isbn",
64
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
65
  "num_critics",
66
  { data_type => "integer", is_nullable => 1 },
67
  "num_critics_pro",
68
  { data_type => "integer", is_nullable => 1 },
69
  "num_quotations",
70
  { data_type => "integer", is_nullable => 1 },
71
  "num_videos",
72
  { data_type => "integer", is_nullable => 1 },
73
  "score_avg",
74
  { data_type => "decimal", is_nullable => 1, size => [5, 2] },
75
  "num_scores",
76
  { data_type => "integer", is_nullable => 1 },
77
);
78
__PACKAGE__->set_primary_key("isbn");
79
80
81
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
82
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NhLiXsKt98U3kJObufoTPg
83
84
85
# You can replace this text with custom code or comments, and it will be preserved on regeneration
86
1;
(-)a/Koha/Schema/Result/SpecialHoliday.pm (+99 lines)
Line 0 Link Here
1
package Koha::Schema::Result::SpecialHoliday;
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::SpecialHoliday
15
16
=cut
17
18
__PACKAGE__->table("special_holidays");
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 branchcode
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 10
34
35
=head2 day
36
37
  data_type: 'smallint'
38
  default_value: 0
39
  is_nullable: 0
40
41
=head2 month
42
43
  data_type: 'smallint'
44
  default_value: 0
45
  is_nullable: 0
46
47
=head2 year
48
49
  data_type: 'smallint'
50
  default_value: 0
51
  is_nullable: 0
52
53
=head2 isexception
54
55
  data_type: 'smallint'
56
  default_value: 1
57
  is_nullable: 0
58
59
=head2 title
60
61
  data_type: 'varchar'
62
  default_value: (empty string)
63
  is_nullable: 0
64
  size: 50
65
66
=head2 description
67
68
  data_type: 'text'
69
  is_nullable: 0
70
71
=cut
72
73
__PACKAGE__->add_columns(
74
  "id",
75
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
76
  "branchcode",
77
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
78
  "day",
79
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
80
  "month",
81
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
82
  "year",
83
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
84
  "isexception",
85
  { data_type => "smallint", default_value => 1, is_nullable => 0 },
86
  "title",
87
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
88
  "description",
89
  { data_type => "text", is_nullable => 0 },
90
);
91
__PACKAGE__->set_primary_key("id");
92
93
94
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XzRAXh8KB0lArGpdhsOCjA
96
97
98
# You can replace this text with custom code or comments, and it will be preserved on regeneration
99
1;
(-)a/Koha/Schema/Result/Statistic.pm (+121 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Statistic;
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::Statistic
15
16
=cut
17
18
__PACKAGE__->table("statistics");
19
20
=head1 ACCESSORS
21
22
=head2 datetime
23
24
  data_type: 'datetime'
25
  datetime_undef_if_invalid: 1
26
  is_nullable: 1
27
28
=head2 branch
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 10
33
34
=head2 proccode
35
36
  data_type: 'varchar'
37
  is_nullable: 1
38
  size: 4
39
40
=head2 value
41
42
  data_type: 'double precision'
43
  is_nullable: 1
44
  size: [16,4]
45
46
=head2 type
47
48
  data_type: 'varchar'
49
  is_nullable: 1
50
  size: 16
51
52
=head2 other
53
54
  data_type: 'mediumtext'
55
  is_nullable: 1
56
57
=head2 usercode
58
59
  data_type: 'varchar'
60
  is_nullable: 1
61
  size: 10
62
63
=head2 itemnumber
64
65
  data_type: 'integer'
66
  is_nullable: 1
67
68
=head2 itemtype
69
70
  data_type: 'varchar'
71
  is_nullable: 1
72
  size: 10
73
74
=head2 borrowernumber
75
76
  data_type: 'integer'
77
  is_nullable: 1
78
79
=head2 associatedborrower
80
81
  data_type: 'integer'
82
  is_nullable: 1
83
84
=cut
85
86
__PACKAGE__->add_columns(
87
  "datetime",
88
  {
89
    data_type => "datetime",
90
    datetime_undef_if_invalid => 1,
91
    is_nullable => 1,
92
  },
93
  "branch",
94
  { data_type => "varchar", is_nullable => 1, size => 10 },
95
  "proccode",
96
  { data_type => "varchar", is_nullable => 1, size => 4 },
97
  "value",
98
  { data_type => "double precision", is_nullable => 1, size => [16, 4] },
99
  "type",
100
  { data_type => "varchar", is_nullable => 1, size => 16 },
101
  "other",
102
  { data_type => "mediumtext", is_nullable => 1 },
103
  "usercode",
104
  { data_type => "varchar", is_nullable => 1, size => 10 },
105
  "itemnumber",
106
  { data_type => "integer", is_nullable => 1 },
107
  "itemtype",
108
  { data_type => "varchar", is_nullable => 1, size => 10 },
109
  "borrowernumber",
110
  { data_type => "integer", is_nullable => 1 },
111
  "associatedborrower",
112
  { data_type => "integer", is_nullable => 1 },
113
);
114
115
116
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
117
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wK9dO7I8TE1ua7UvbMQ6pQ
118
119
120
# You can replace this text with custom code or comments, and it will be preserved on regeneration
121
1;
(-)a/Koha/Schema/Result/Stopword.pm (+41 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Stopword;
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::Stopword
15
16
=cut
17
18
__PACKAGE__->table("stopwords");
19
20
=head1 ACCESSORS
21
22
=head2 word
23
24
  data_type: 'varchar'
25
  is_nullable: 1
26
  size: 255
27
28
=cut
29
30
__PACKAGE__->add_columns(
31
  "word",
32
  { data_type => "varchar", is_nullable => 1, size => 255 },
33
);
34
35
36
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
37
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yb+fcVgzulzEBVLccsJ3HA
38
39
40
# You can replace this text with custom code or comments, and it will be preserved on regeneration
41
1;
(-)a/Koha/Schema/Result/Subscription.pm (+454 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Subscription;
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::Subscription
15
16
=cut
17
18
__PACKAGE__->table("subscription");
19
20
=head1 ACCESSORS
21
22
=head2 biblionumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_nullable: 0
27
28
=head2 subscriptionid
29
30
  data_type: 'integer'
31
  is_auto_increment: 1
32
  is_nullable: 0
33
34
=head2 librarian
35
36
  data_type: 'varchar'
37
  default_value: (empty string)
38
  is_nullable: 1
39
  size: 100
40
41
=head2 startdate
42
43
  data_type: 'date'
44
  datetime_undef_if_invalid: 1
45
  is_nullable: 1
46
47
=head2 aqbooksellerid
48
49
  data_type: 'integer'
50
  default_value: 0
51
  is_nullable: 1
52
53
=head2 cost
54
55
  data_type: 'integer'
56
  default_value: 0
57
  is_nullable: 1
58
59
=head2 aqbudgetid
60
61
  data_type: 'integer'
62
  default_value: 0
63
  is_nullable: 1
64
65
=head2 weeklength
66
67
  data_type: 'integer'
68
  default_value: 0
69
  is_nullable: 1
70
71
=head2 monthlength
72
73
  data_type: 'integer'
74
  default_value: 0
75
  is_nullable: 1
76
77
=head2 numberlength
78
79
  data_type: 'integer'
80
  default_value: 0
81
  is_nullable: 1
82
83
=head2 periodicity
84
85
  data_type: 'tinyint'
86
  default_value: 0
87
  is_nullable: 1
88
89
=head2 dow
90
91
  data_type: 'varchar'
92
  default_value: (empty string)
93
  is_nullable: 1
94
  size: 100
95
96
=head2 numberingmethod
97
98
  data_type: 'varchar'
99
  default_value: (empty string)
100
  is_nullable: 1
101
  size: 100
102
103
=head2 notes
104
105
  data_type: 'mediumtext'
106
  is_nullable: 1
107
108
=head2 status
109
110
  data_type: 'varchar'
111
  default_value: (empty string)
112
  is_nullable: 0
113
  size: 100
114
115
=head2 add1
116
117
  data_type: 'integer'
118
  default_value: 0
119
  is_nullable: 1
120
121
=head2 every1
122
123
  data_type: 'integer'
124
  default_value: 0
125
  is_nullable: 1
126
127
=head2 whenmorethan1
128
129
  data_type: 'integer'
130
  default_value: 0
131
  is_nullable: 1
132
133
=head2 setto1
134
135
  data_type: 'integer'
136
  is_nullable: 1
137
138
=head2 lastvalue1
139
140
  data_type: 'integer'
141
  is_nullable: 1
142
143
=head2 add2
144
145
  data_type: 'integer'
146
  default_value: 0
147
  is_nullable: 1
148
149
=head2 every2
150
151
  data_type: 'integer'
152
  default_value: 0
153
  is_nullable: 1
154
155
=head2 whenmorethan2
156
157
  data_type: 'integer'
158
  default_value: 0
159
  is_nullable: 1
160
161
=head2 setto2
162
163
  data_type: 'integer'
164
  is_nullable: 1
165
166
=head2 lastvalue2
167
168
  data_type: 'integer'
169
  is_nullable: 1
170
171
=head2 add3
172
173
  data_type: 'integer'
174
  default_value: 0
175
  is_nullable: 1
176
177
=head2 every3
178
179
  data_type: 'integer'
180
  default_value: 0
181
  is_nullable: 1
182
183
=head2 innerloop1
184
185
  data_type: 'integer'
186
  default_value: 0
187
  is_nullable: 1
188
189
=head2 innerloop2
190
191
  data_type: 'integer'
192
  default_value: 0
193
  is_nullable: 1
194
195
=head2 innerloop3
196
197
  data_type: 'integer'
198
  default_value: 0
199
  is_nullable: 1
200
201
=head2 whenmorethan3
202
203
  data_type: 'integer'
204
  default_value: 0
205
  is_nullable: 1
206
207
=head2 setto3
208
209
  data_type: 'integer'
210
  is_nullable: 1
211
212
=head2 lastvalue3
213
214
  data_type: 'integer'
215
  is_nullable: 1
216
217
=head2 issuesatonce
218
219
  data_type: 'tinyint'
220
  default_value: 1
221
  is_nullable: 0
222
223
=head2 firstacquidate
224
225
  data_type: 'date'
226
  datetime_undef_if_invalid: 1
227
  is_nullable: 1
228
229
=head2 manualhistory
230
231
  data_type: 'tinyint'
232
  default_value: 0
233
  is_nullable: 0
234
235
=head2 irregularity
236
237
  data_type: 'text'
238
  is_nullable: 1
239
240
=head2 letter
241
242
  data_type: 'varchar'
243
  is_nullable: 1
244
  size: 20
245
246
=head2 numberpattern
247
248
  data_type: 'tinyint'
249
  default_value: 0
250
  is_nullable: 1
251
252
=head2 distributedto
253
254
  data_type: 'text'
255
  is_nullable: 1
256
257
=head2 internalnotes
258
259
  data_type: 'longtext'
260
  is_nullable: 1
261
262
=head2 callnumber
263
264
  data_type: 'text'
265
  is_nullable: 1
266
267
=head2 location
268
269
  data_type: 'varchar'
270
  default_value: (empty string)
271
  is_nullable: 1
272
  size: 80
273
274
=head2 branchcode
275
276
  data_type: 'varchar'
277
  default_value: (empty string)
278
  is_nullable: 0
279
  size: 10
280
281
=head2 hemisphere
282
283
  data_type: 'tinyint'
284
  default_value: 0
285
  is_nullable: 1
286
287
=head2 lastbranch
288
289
  data_type: 'varchar'
290
  is_nullable: 1
291
  size: 10
292
293
=head2 serialsadditems
294
295
  data_type: 'tinyint'
296
  default_value: 0
297
  is_nullable: 0
298
299
=head2 staffdisplaycount
300
301
  data_type: 'varchar'
302
  is_nullable: 1
303
  size: 10
304
305
=head2 opacdisplaycount
306
307
  data_type: 'varchar'
308
  is_nullable: 1
309
  size: 10
310
311
=head2 graceperiod
312
313
  data_type: 'integer'
314
  default_value: 0
315
  is_nullable: 0
316
317
=head2 enddate
318
319
  data_type: 'date'
320
  datetime_undef_if_invalid: 1
321
  is_nullable: 1
322
323
=cut
324
325
__PACKAGE__->add_columns(
326
  "biblionumber",
327
  { data_type => "integer", default_value => 0, is_nullable => 0 },
328
  "subscriptionid",
329
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
330
  "librarian",
331
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
332
  "startdate",
333
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
334
  "aqbooksellerid",
335
  { data_type => "integer", default_value => 0, is_nullable => 1 },
336
  "cost",
337
  { data_type => "integer", default_value => 0, is_nullable => 1 },
338
  "aqbudgetid",
339
  { data_type => "integer", default_value => 0, is_nullable => 1 },
340
  "weeklength",
341
  { data_type => "integer", default_value => 0, is_nullable => 1 },
342
  "monthlength",
343
  { data_type => "integer", default_value => 0, is_nullable => 1 },
344
  "numberlength",
345
  { data_type => "integer", default_value => 0, is_nullable => 1 },
346
  "periodicity",
347
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
348
  "dow",
349
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
350
  "numberingmethod",
351
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
352
  "notes",
353
  { data_type => "mediumtext", is_nullable => 1 },
354
  "status",
355
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
356
  "add1",
357
  { data_type => "integer", default_value => 0, is_nullable => 1 },
358
  "every1",
359
  { data_type => "integer", default_value => 0, is_nullable => 1 },
360
  "whenmorethan1",
361
  { data_type => "integer", default_value => 0, is_nullable => 1 },
362
  "setto1",
363
  { data_type => "integer", is_nullable => 1 },
364
  "lastvalue1",
365
  { data_type => "integer", is_nullable => 1 },
366
  "add2",
367
  { data_type => "integer", default_value => 0, is_nullable => 1 },
368
  "every2",
369
  { data_type => "integer", default_value => 0, is_nullable => 1 },
370
  "whenmorethan2",
371
  { data_type => "integer", default_value => 0, is_nullable => 1 },
372
  "setto2",
373
  { data_type => "integer", is_nullable => 1 },
374
  "lastvalue2",
375
  { data_type => "integer", is_nullable => 1 },
376
  "add3",
377
  { data_type => "integer", default_value => 0, is_nullable => 1 },
378
  "every3",
379
  { data_type => "integer", default_value => 0, is_nullable => 1 },
380
  "innerloop1",
381
  { data_type => "integer", default_value => 0, is_nullable => 1 },
382
  "innerloop2",
383
  { data_type => "integer", default_value => 0, is_nullable => 1 },
384
  "innerloop3",
385
  { data_type => "integer", default_value => 0, is_nullable => 1 },
386
  "whenmorethan3",
387
  { data_type => "integer", default_value => 0, is_nullable => 1 },
388
  "setto3",
389
  { data_type => "integer", is_nullable => 1 },
390
  "lastvalue3",
391
  { data_type => "integer", is_nullable => 1 },
392
  "issuesatonce",
393
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
394
  "firstacquidate",
395
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
396
  "manualhistory",
397
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
398
  "irregularity",
399
  { data_type => "text", is_nullable => 1 },
400
  "letter",
401
  { data_type => "varchar", is_nullable => 1, size => 20 },
402
  "numberpattern",
403
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
404
  "distributedto",
405
  { data_type => "text", is_nullable => 1 },
406
  "internalnotes",
407
  { data_type => "longtext", is_nullable => 1 },
408
  "callnumber",
409
  { data_type => "text", is_nullable => 1 },
410
  "location",
411
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 80 },
412
  "branchcode",
413
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
414
  "hemisphere",
415
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
416
  "lastbranch",
417
  { data_type => "varchar", is_nullable => 1, size => 10 },
418
  "serialsadditems",
419
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
420
  "staffdisplaycount",
421
  { data_type => "varchar", is_nullable => 1, size => 10 },
422
  "opacdisplaycount",
423
  { data_type => "varchar", is_nullable => 1, size => 10 },
424
  "graceperiod",
425
  { data_type => "integer", default_value => 0, is_nullable => 0 },
426
  "enddate",
427
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
428
);
429
__PACKAGE__->set_primary_key("subscriptionid");
430
431
=head1 RELATIONS
432
433
=head2 subscriptionroutinglists
434
435
Type: has_many
436
437
Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
438
439
=cut
440
441
__PACKAGE__->has_many(
442
  "subscriptionroutinglists",
443
  "Koha::Schema::Result::Subscriptionroutinglist",
444
  { "foreign.subscriptionid" => "self.subscriptionid" },
445
  { cascade_copy => 0, cascade_delete => 0 },
446
);
447
448
449
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
450
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pXa+CXVm26QnyZb30YRFTw
451
452
453
# You can replace this text with custom code or comments, and it will be preserved on regeneration
454
1;
(-)a/Koha/Schema/Result/Subscriptionhistory.pm (+98 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Subscriptionhistory;
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::Subscriptionhistory
15
16
=cut
17
18
__PACKAGE__->table("subscriptionhistory");
19
20
=head1 ACCESSORS
21
22
=head2 biblionumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_nullable: 0
27
28
=head2 subscriptionid
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_nullable: 0
33
34
=head2 histstartdate
35
36
  data_type: 'date'
37
  datetime_undef_if_invalid: 1
38
  is_nullable: 1
39
40
=head2 histenddate
41
42
  data_type: 'date'
43
  datetime_undef_if_invalid: 1
44
  is_nullable: 1
45
46
=head2 missinglist
47
48
  data_type: 'longtext'
49
  is_nullable: 0
50
51
=head2 recievedlist
52
53
  data_type: 'longtext'
54
  is_nullable: 0
55
56
=head2 opacnote
57
58
  data_type: 'varchar'
59
  default_value: (empty string)
60
  is_nullable: 0
61
  size: 150
62
63
=head2 librariannote
64
65
  data_type: 'varchar'
66
  default_value: (empty string)
67
  is_nullable: 0
68
  size: 150
69
70
=cut
71
72
__PACKAGE__->add_columns(
73
  "biblionumber",
74
  { data_type => "integer", default_value => 0, is_nullable => 0 },
75
  "subscriptionid",
76
  { data_type => "integer", default_value => 0, 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 => "varchar", default_value => "", is_nullable => 0, size => 150 },
87
  "librariannote",
88
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 },
89
);
90
__PACKAGE__->set_primary_key("subscriptionid");
91
92
93
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kzh9PMlyAa9UM/KwDuhBPA
95
96
97
# You can replace this text with custom code or comments, and it will be preserved on regeneration
98
1;
(-)a/Koha/Schema/Result/Subscriptionroutinglist.pm (+98 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Subscriptionroutinglist;
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::Subscriptionroutinglist
15
16
=cut
17
18
__PACKAGE__->table("subscriptionroutinglist");
19
20
=head1 ACCESSORS
21
22
=head2 routingid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 borrowernumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 ranking
35
36
  data_type: 'integer'
37
  is_nullable: 1
38
39
=head2 subscriptionid
40
41
  data_type: 'integer'
42
  is_foreign_key: 1
43
  is_nullable: 0
44
45
=cut
46
47
__PACKAGE__->add_columns(
48
  "routingid",
49
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
50
  "borrowernumber",
51
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
52
  "ranking",
53
  { data_type => "integer", is_nullable => 1 },
54
  "subscriptionid",
55
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
56
);
57
__PACKAGE__->set_primary_key("routingid");
58
__PACKAGE__->add_unique_constraint("subscriptionid", ["subscriptionid", "borrowernumber"]);
59
60
=head1 RELATIONS
61
62
=head2 borrowernumber
63
64
Type: belongs_to
65
66
Related object: L<Koha::Schema::Result::Borrower>
67
68
=cut
69
70
__PACKAGE__->belongs_to(
71
  "borrowernumber",
72
  "Koha::Schema::Result::Borrower",
73
  { borrowernumber => "borrowernumber" },
74
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
75
);
76
77
=head2 subscriptionid
78
79
Type: belongs_to
80
81
Related object: L<Koha::Schema::Result::Subscription>
82
83
=cut
84
85
__PACKAGE__->belongs_to(
86
  "subscriptionid",
87
  "Koha::Schema::Result::Subscription",
88
  { subscriptionid => "subscriptionid" },
89
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90
);
91
92
93
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ht7iEYtWn5KljhfffijXXA
95
96
97
# You can replace this text with custom code or comments, and it will be preserved on regeneration
98
1;
(-)a/Koha/Schema/Result/Suggestion.pm (+292 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Suggestion;
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::Suggestion
15
16
=cut
17
18
__PACKAGE__->table("suggestions");
19
20
=head1 ACCESSORS
21
22
=head2 suggestionid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 suggestedby
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_nullable: 0
33
34
=head2 suggesteddate
35
36
  data_type: 'date'
37
  datetime_undef_if_invalid: 1
38
  default_value: '0000-00-00'
39
  is_nullable: 0
40
41
=head2 managedby
42
43
  data_type: 'integer'
44
  is_nullable: 1
45
46
=head2 manageddate
47
48
  data_type: 'date'
49
  datetime_undef_if_invalid: 1
50
  is_nullable: 1
51
52
=head2 acceptedby
53
54
  data_type: 'integer'
55
  is_nullable: 1
56
57
=head2 accepteddate
58
59
  data_type: 'date'
60
  datetime_undef_if_invalid: 1
61
  is_nullable: 1
62
63
=head2 rejectedby
64
65
  data_type: 'integer'
66
  is_nullable: 1
67
68
=head2 rejecteddate
69
70
  data_type: 'date'
71
  datetime_undef_if_invalid: 1
72
  is_nullable: 1
73
74
=head2 status
75
76
  data_type: 'varchar'
77
  default_value: (empty string)
78
  is_nullable: 0
79
  size: 10
80
81
=head2 note
82
83
  data_type: 'mediumtext'
84
  is_nullable: 1
85
86
=head2 author
87
88
  data_type: 'varchar'
89
  is_nullable: 1
90
  size: 80
91
92
=head2 title
93
94
  data_type: 'varchar'
95
  is_nullable: 1
96
  size: 80
97
98
=head2 copyrightdate
99
100
  data_type: 'smallint'
101
  is_nullable: 1
102
103
=head2 publishercode
104
105
  data_type: 'varchar'
106
  is_nullable: 1
107
  size: 255
108
109
=head2 date
110
111
  data_type: 'timestamp'
112
  datetime_undef_if_invalid: 1
113
  default_value: current_timestamp
114
  is_nullable: 0
115
116
=head2 volumedesc
117
118
  data_type: 'varchar'
119
  is_nullable: 1
120
  size: 255
121
122
=head2 publicationyear
123
124
  data_type: 'smallint'
125
  default_value: 0
126
  is_nullable: 1
127
128
=head2 place
129
130
  data_type: 'varchar'
131
  is_nullable: 1
132
  size: 255
133
134
=head2 isbn
135
136
  data_type: 'varchar'
137
  is_nullable: 1
138
  size: 30
139
140
=head2 mailoverseeing
141
142
  data_type: 'smallint'
143
  default_value: 0
144
  is_nullable: 1
145
146
=head2 biblionumber
147
148
  data_type: 'integer'
149
  is_nullable: 1
150
151
=head2 reason
152
153
  data_type: 'text'
154
  is_nullable: 1
155
156
=head2 patronreason
157
158
  data_type: 'text'
159
  is_nullable: 1
160
161
=head2 budgetid
162
163
  data_type: 'integer'
164
  is_nullable: 1
165
166
=head2 branchcode
167
168
  data_type: 'varchar'
169
  is_nullable: 1
170
  size: 10
171
172
=head2 collectiontitle
173
174
  data_type: 'text'
175
  is_nullable: 1
176
177
=head2 itemtype
178
179
  data_type: 'varchar'
180
  is_nullable: 1
181
  size: 30
182
183
=head2 quantity
184
185
  data_type: 'smallint'
186
  is_nullable: 1
187
188
=head2 currency
189
190
  data_type: 'varchar'
191
  is_nullable: 1
192
  size: 3
193
194
=head2 price
195
196
  data_type: 'decimal'
197
  is_nullable: 1
198
  size: [28,6]
199
200
=head2 total
201
202
  data_type: 'decimal'
203
  is_nullable: 1
204
  size: [28,6]
205
206
=cut
207
208
__PACKAGE__->add_columns(
209
  "suggestionid",
210
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
211
  "suggestedby",
212
  { data_type => "integer", default_value => 0, is_nullable => 0 },
213
  "suggesteddate",
214
  {
215
    data_type => "date",
216
    datetime_undef_if_invalid => 1,
217
    default_value => "0000-00-00",
218
    is_nullable => 0,
219
  },
220
  "managedby",
221
  { data_type => "integer", is_nullable => 1 },
222
  "manageddate",
223
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
224
  "acceptedby",
225
  { data_type => "integer", is_nullable => 1 },
226
  "accepteddate",
227
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
228
  "rejectedby",
229
  { data_type => "integer", is_nullable => 1 },
230
  "rejecteddate",
231
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
232
  "status",
233
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
234
  "note",
235
  { data_type => "mediumtext", is_nullable => 1 },
236
  "author",
237
  { data_type => "varchar", is_nullable => 1, size => 80 },
238
  "title",
239
  { data_type => "varchar", is_nullable => 1, size => 80 },
240
  "copyrightdate",
241
  { data_type => "smallint", is_nullable => 1 },
242
  "publishercode",
243
  { data_type => "varchar", is_nullable => 1, size => 255 },
244
  "date",
245
  {
246
    data_type => "timestamp",
247
    datetime_undef_if_invalid => 1,
248
    default_value => \"current_timestamp",
249
    is_nullable => 0,
250
  },
251
  "volumedesc",
252
  { data_type => "varchar", is_nullable => 1, size => 255 },
253
  "publicationyear",
254
  { data_type => "smallint", default_value => 0, is_nullable => 1 },
255
  "place",
256
  { data_type => "varchar", is_nullable => 1, size => 255 },
257
  "isbn",
258
  { data_type => "varchar", is_nullable => 1, size => 30 },
259
  "mailoverseeing",
260
  { data_type => "smallint", default_value => 0, is_nullable => 1 },
261
  "biblionumber",
262
  { data_type => "integer", is_nullable => 1 },
263
  "reason",
264
  { data_type => "text", is_nullable => 1 },
265
  "patronreason",
266
  { data_type => "text", is_nullable => 1 },
267
  "budgetid",
268
  { data_type => "integer", is_nullable => 1 },
269
  "branchcode",
270
  { data_type => "varchar", is_nullable => 1, size => 10 },
271
  "collectiontitle",
272
  { data_type => "text", is_nullable => 1 },
273
  "itemtype",
274
  { data_type => "varchar", is_nullable => 1, size => 30 },
275
  "quantity",
276
  { data_type => "smallint", is_nullable => 1 },
277
  "currency",
278
  { data_type => "varchar", is_nullable => 1, size => 3 },
279
  "price",
280
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
281
  "total",
282
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
283
);
284
__PACKAGE__->set_primary_key("suggestionid");
285
286
287
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
288
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TB8wAz0nUt9cesy9DHJ+qg
289
290
291
# You can replace this text with custom code or comments, and it will be preserved on regeneration
292
1;
(-)a/Koha/Schema/Result/Systempreference.pm (+72 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Systempreference;
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::systempreferences
15
16
=cut
17
18
__PACKAGE__->table("systempreferences");
19
20
=head1 ACCESSORS
21
22
=head2 variable
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 50
28
29
=head2 value
30
31
  data_type: 'text'
32
  is_nullable: 1
33
34
=head2 options
35
36
  data_type: 'mediumtext'
37
  is_nullable: 1
38
39
=head2 explanation
40
41
  data_type: 'text'
42
  is_nullable: 1
43
44
=head2 type
45
46
  data_type: 'varchar'
47
  is_nullable: 1
48
  size: 20
49
50
=cut
51
52
__PACKAGE__->add_columns(
53
  "variable",
54
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
55
  "value",
56
  { data_type => "text", is_nullable => 1 },
57
  "options",
58
  { data_type => "mediumtext", is_nullable => 1 },
59
  "explanation",
60
  { data_type => "text", is_nullable => 1 },
61
  "type",
62
  { data_type => "varchar", is_nullable => 1, size => 20 },
63
);
64
__PACKAGE__->set_primary_key("variable");
65
66
67
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
68
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rru2fTAfeZyu7cVNn0Wo8A
69
70
71
# You can replace this text with custom code or comments, and it will be preserved on regeneration
72
1;
(-)a/Koha/Schema/Result/Tag.pm (+51 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Tag;
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::Tag
15
16
=cut
17
18
__PACKAGE__->table("tags");
19
20
=head1 ACCESSORS
21
22
=head2 entry
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 255
28
29
=head2 weight
30
31
  data_type: 'bigint'
32
  default_value: 0
33
  is_nullable: 0
34
35
=cut
36
37
__PACKAGE__->add_columns(
38
  "entry",
39
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
40
  "weight",
41
  { data_type => "bigint", default_value => 0, is_nullable => 0 },
42
);
43
__PACKAGE__->set_primary_key("entry");
44
45
46
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cUkr8YhxsGXERugW785qHQ
48
49
50
# You can replace this text with custom code or comments, and it will be preserved on regeneration
51
1;
(-)a/Koha/Schema/Result/TagAll.pm (+117 lines)
Line 0 Link Here
1
package Koha::Schema::Result::TagAll;
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::TagAll
15
16
=cut
17
18
__PACKAGE__->table("tags_all");
19
20
=head1 ACCESSORS
21
22
=head2 tag_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 borrowernumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 biblionumber
35
36
  data_type: 'integer'
37
  is_foreign_key: 1
38
  is_nullable: 0
39
40
=head2 term
41
42
  data_type: 'varchar'
43
  is_nullable: 0
44
  size: 255
45
46
=head2 language
47
48
  data_type: 'integer'
49
  is_nullable: 1
50
51
=head2 date_created
52
53
  data_type: 'datetime'
54
  datetime_undef_if_invalid: 1
55
  is_nullable: 0
56
57
=cut
58
59
__PACKAGE__->add_columns(
60
  "tag_id",
61
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62
  "borrowernumber",
63
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
64
  "biblionumber",
65
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
66
  "term",
67
  { data_type => "varchar", is_nullable => 0, size => 255 },
68
  "language",
69
  { data_type => "integer", is_nullable => 1 },
70
  "date_created",
71
  {
72
    data_type => "datetime",
73
    datetime_undef_if_invalid => 1,
74
    is_nullable => 0,
75
  },
76
);
77
__PACKAGE__->set_primary_key("tag_id");
78
79
=head1 RELATIONS
80
81
=head2 borrowernumber
82
83
Type: belongs_to
84
85
Related object: L<Koha::Schema::Result::Borrower>
86
87
=cut
88
89
__PACKAGE__->belongs_to(
90
  "borrowernumber",
91
  "Koha::Schema::Result::Borrower",
92
  { borrowernumber => "borrowernumber" },
93
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
94
);
95
96
=head2 biblionumber
97
98
Type: belongs_to
99
100
Related object: L<Koha::Schema::Result::Biblio>
101
102
=cut
103
104
__PACKAGE__->belongs_to(
105
  "biblionumber",
106
  "Koha::Schema::Result::Biblio",
107
  { biblionumber => "biblionumber" },
108
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
109
);
110
111
112
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
113
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U3c/wXxKTK8UGWXZMOCfoA
114
115
116
# You can replace this text with custom code or comments, and it will be preserved on regeneration
117
1;
(-)a/Koha/Schema/Result/TagsApproval.pm (+115 lines)
Line 0 Link Here
1
package Koha::Schema::Result::TagsApproval;
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::TagsApproval
15
16
=cut
17
18
__PACKAGE__->table("tags_approval");
19
20
=head1 ACCESSORS
21
22
=head2 term
23
24
  data_type: 'varchar'
25
  is_nullable: 0
26
  size: 255
27
28
=head2 approved
29
30
  data_type: 'integer'
31
  default_value: 0
32
  is_nullable: 0
33
34
=head2 date_approved
35
36
  data_type: 'datetime'
37
  datetime_undef_if_invalid: 1
38
  is_nullable: 1
39
40
=head2 approved_by
41
42
  data_type: 'integer'
43
  is_foreign_key: 1
44
  is_nullable: 1
45
46
=head2 weight_total
47
48
  data_type: 'integer'
49
  default_value: 1
50
  is_nullable: 0
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "term",
56
  { data_type => "varchar", is_nullable => 0, size => 255 },
57
  "approved",
58
  { data_type => "integer", default_value => 0, is_nullable => 0 },
59
  "date_approved",
60
  {
61
    data_type => "datetime",
62
    datetime_undef_if_invalid => 1,
63
    is_nullable => 1,
64
  },
65
  "approved_by",
66
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
67
  "weight_total",
68
  { data_type => "integer", default_value => 1, is_nullable => 0 },
69
);
70
__PACKAGE__->set_primary_key("term");
71
72
=head1 RELATIONS
73
74
=head2 approved_by
75
76
Type: belongs_to
77
78
Related object: L<Koha::Schema::Result::Borrower>
79
80
=cut
81
82
__PACKAGE__->belongs_to(
83
  "approved_by",
84
  "Koha::Schema::Result::Borrower",
85
  { borrowernumber => "approved_by" },
86
  {
87
    is_deferrable => 1,
88
    join_type     => "LEFT",
89
    on_delete     => "CASCADE",
90
    on_update     => "CASCADE",
91
  },
92
);
93
94
=head2 tags_indexes
95
96
Type: has_many
97
98
Related object: L<Koha::Schema::Result::TagsIndex>
99
100
=cut
101
102
__PACKAGE__->has_many(
103
  "tags_indexes",
104
  "Koha::Schema::Result::TagsIndex",
105
  { "foreign.term" => "self.term" },
106
  { cascade_copy => 0, cascade_delete => 0 },
107
);
108
109
110
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
111
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tZcWehHP7d59BXU7ifwzdQ
112
113
114
# You can replace this text with custom code or comments, and it will be preserved on regeneration
115
1;
(-)a/Koha/Schema/Result/TagsIndex.pm (+91 lines)
Line 0 Link Here
1
package Koha::Schema::Result::TagsIndex;
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::TagsIndex
15
16
=cut
17
18
__PACKAGE__->table("tags_index");
19
20
=head1 ACCESSORS
21
22
=head2 term
23
24
  data_type: 'varchar'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
  size: 255
28
29
=head2 biblionumber
30
31
  data_type: 'integer'
32
  is_foreign_key: 1
33
  is_nullable: 0
34
35
=head2 weight
36
37
  data_type: 'integer'
38
  default_value: 1
39
  is_nullable: 0
40
41
=cut
42
43
__PACKAGE__->add_columns(
44
  "term",
45
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 255 },
46
  "biblionumber",
47
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
48
  "weight",
49
  { data_type => "integer", default_value => 1, is_nullable => 0 },
50
);
51
__PACKAGE__->set_primary_key("term", "biblionumber");
52
53
=head1 RELATIONS
54
55
=head2 term
56
57
Type: belongs_to
58
59
Related object: L<Koha::Schema::Result::TagsApproval>
60
61
=cut
62
63
__PACKAGE__->belongs_to(
64
  "term",
65
  "Koha::Schema::Result::TagsApproval",
66
  { term => "term" },
67
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
68
);
69
70
=head2 biblionumber
71
72
Type: belongs_to
73
74
Related object: L<Koha::Schema::Result::Biblio>
75
76
=cut
77
78
__PACKAGE__->belongs_to(
79
  "biblionumber",
80
  "Koha::Schema::Result::Biblio",
81
  { biblionumber => "biblionumber" },
82
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
83
);
84
85
86
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SqWsC9PYGKjn6Z/FU4DXCg
88
89
90
# You can replace this text with custom code or comments, and it will be preserved on regeneration
91
1;
(-)a/Koha/Schema/Result/TmpHoldsqueue.pm (+145 lines)
Line 0 Link Here
1
package Koha::Schema::Result::TmpHoldsqueue;
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::TmpHoldsqueue
15
16
=cut
17
18
__PACKAGE__->table("tmp_holdsqueue");
19
20
=head1 ACCESSORS
21
22
=head2 biblionumber
23
24
  data_type: 'integer'
25
  is_nullable: 1
26
27
=head2 itemnumber
28
29
  data_type: 'integer'
30
  is_nullable: 1
31
32
=head2 barcode
33
34
  data_type: 'varchar'
35
  is_nullable: 1
36
  size: 20
37
38
=head2 surname
39
40
  data_type: 'mediumtext'
41
  is_nullable: 0
42
43
=head2 firstname
44
45
  data_type: 'text'
46
  is_nullable: 1
47
48
=head2 phone
49
50
  data_type: 'text'
51
  is_nullable: 1
52
53
=head2 borrowernumber
54
55
  data_type: 'integer'
56
  is_nullable: 0
57
58
=head2 cardnumber
59
60
  data_type: 'varchar'
61
  is_nullable: 1
62
  size: 16
63
64
=head2 reservedate
65
66
  data_type: 'date'
67
  datetime_undef_if_invalid: 1
68
  is_nullable: 1
69
70
=head2 title
71
72
  data_type: 'mediumtext'
73
  is_nullable: 1
74
75
=head2 itemcallnumber
76
77
  data_type: 'varchar'
78
  is_nullable: 1
79
  size: 255
80
81
=head2 holdingbranch
82
83
  data_type: 'varchar'
84
  is_nullable: 1
85
  size: 10
86
87
=head2 pickbranch
88
89
  data_type: 'varchar'
90
  is_nullable: 1
91
  size: 10
92
93
=head2 notes
94
95
  data_type: 'text'
96
  is_nullable: 1
97
98
=head2 item_level_request
99
100
  data_type: 'tinyint'
101
  default_value: 0
102
  is_nullable: 0
103
104
=cut
105
106
__PACKAGE__->add_columns(
107
  "biblionumber",
108
  { data_type => "integer", is_nullable => 1 },
109
  "itemnumber",
110
  { data_type => "integer", is_nullable => 1 },
111
  "barcode",
112
  { data_type => "varchar", is_nullable => 1, size => 20 },
113
  "surname",
114
  { data_type => "mediumtext", is_nullable => 0 },
115
  "firstname",
116
  { data_type => "text", is_nullable => 1 },
117
  "phone",
118
  { data_type => "text", is_nullable => 1 },
119
  "borrowernumber",
120
  { data_type => "integer", is_nullable => 0 },
121
  "cardnumber",
122
  { data_type => "varchar", is_nullable => 1, size => 16 },
123
  "reservedate",
124
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
125
  "title",
126
  { data_type => "mediumtext", is_nullable => 1 },
127
  "itemcallnumber",
128
  { data_type => "varchar", is_nullable => 1, size => 255 },
129
  "holdingbranch",
130
  { data_type => "varchar", is_nullable => 1, size => 10 },
131
  "pickbranch",
132
  { data_type => "varchar", is_nullable => 1, size => 10 },
133
  "notes",
134
  { data_type => "text", is_nullable => 1 },
135
  "item_level_request",
136
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
137
);
138
139
140
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
141
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5SZ4vl2+HDy/d2+m+EZvkw
142
143
144
# You can replace this text with custom code or comments, and it will be preserved on regeneration
145
1;
(-)a/Koha/Schema/Result/UserPermission.pm (+107 lines)
Line 0 Link Here
1
package Koha::Schema::Result::UserPermission;
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::UserPermission
15
16
=cut
17
18
__PACKAGE__->table("user_permissions");
19
20
=head1 ACCESSORS
21
22
=head2 borrowernumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_foreign_key: 1
27
  is_nullable: 0
28
29
=head2 module_bit
30
31
  data_type: 'integer'
32
  default_value: 0
33
  is_foreign_key: 1
34
  is_nullable: 0
35
36
=head2 code
37
38
  data_type: 'varchar'
39
  is_foreign_key: 1
40
  is_nullable: 1
41
  size: 64
42
43
=cut
44
45
__PACKAGE__->add_columns(
46
  "borrowernumber",
47
  {
48
    data_type      => "integer",
49
    default_value  => 0,
50
    is_foreign_key => 1,
51
    is_nullable    => 0,
52
  },
53
  "module_bit",
54
  {
55
    data_type      => "integer",
56
    default_value  => 0,
57
    is_foreign_key => 1,
58
    is_nullable    => 0,
59
  },
60
  "code",
61
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 64 },
62
);
63
64
=head1 RELATIONS
65
66
=head2 borrowernumber
67
68
Type: belongs_to
69
70
Related object: L<Koha::Schema::Result::Borrower>
71
72
=cut
73
74
__PACKAGE__->belongs_to(
75
  "borrowernumber",
76
  "Koha::Schema::Result::Borrower",
77
  { borrowernumber => "borrowernumber" },
78
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
79
);
80
81
=head2 permission
82
83
Type: belongs_to
84
85
Related object: L<Koha::Schema::Result::Permission>
86
87
=cut
88
89
__PACKAGE__->belongs_to(
90
  "permission",
91
  "Koha::Schema::Result::Permission",
92
  { code => "code", module_bit => "module_bit" },
93
  {
94
    is_deferrable => 1,
95
    join_type     => "LEFT",
96
    on_delete     => "CASCADE",
97
    on_update     => "CASCADE",
98
  },
99
);
100
101
102
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
103
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KIr4VJNs0oSkOPQJDtVihg
104
105
106
# You can replace this text with custom code or comments, and it will be preserved on regeneration
107
1;
(-)a/Koha/Schema/Result/Userflag.pm (+82 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Userflag;
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::Userflag
15
16
=cut
17
18
__PACKAGE__->table("userflags");
19
20
=head1 ACCESSORS
21
22
=head2 bit
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_nullable: 0
27
28
=head2 flag
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 30
33
34
=head2 flagdesc
35
36
  data_type: 'varchar'
37
  is_nullable: 1
38
  size: 255
39
40
=head2 defaulton
41
42
  data_type: 'integer'
43
  is_nullable: 1
44
45
=cut
46
47
__PACKAGE__->add_columns(
48
  "bit",
49
  { data_type => "integer", default_value => 0, is_nullable => 0 },
50
  "flag",
51
  { data_type => "varchar", is_nullable => 1, size => 30 },
52
  "flagdesc",
53
  { data_type => "varchar", is_nullable => 1, size => 255 },
54
  "defaulton",
55
  { data_type => "integer", is_nullable => 1 },
56
);
57
__PACKAGE__->set_primary_key("bit");
58
59
=head1 RELATIONS
60
61
=head2 permissions
62
63
Type: has_many
64
65
Related object: L<Koha::Schema::Result::Permission>
66
67
=cut
68
69
__PACKAGE__->has_many(
70
  "permissions",
71
  "Koha::Schema::Result::Permission",
72
  { "foreign.module_bit" => "self.bit" },
73
  { cascade_copy => 0, cascade_delete => 0 },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jwveYk4qt7FT37lLzx2i+w
79
80
81
# You can replace this text with custom code or comments, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/Virtualshelfcontent.pm (+142 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Virtualshelfcontent;
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::Virtualshelfcontent
15
16
=cut
17
18
__PACKAGE__->table("virtualshelfcontents");
19
20
=head1 ACCESSORS
21
22
=head2 shelfnumber
23
24
  data_type: 'integer'
25
  default_value: 0
26
  is_foreign_key: 1
27
  is_nullable: 0
28
29
=head2 biblionumber
30
31
  data_type: 'integer'
32
  default_value: 0
33
  is_foreign_key: 1
34
  is_nullable: 0
35
36
=head2 flags
37
38
  data_type: 'integer'
39
  is_nullable: 1
40
41
=head2 dateadded
42
43
  data_type: 'timestamp'
44
  datetime_undef_if_invalid: 1
45
  default_value: current_timestamp
46
  is_nullable: 0
47
48
=head2 borrowernumber
49
50
  data_type: 'integer'
51
  is_foreign_key: 1
52
  is_nullable: 1
53
54
=cut
55
56
__PACKAGE__->add_columns(
57
  "shelfnumber",
58
  {
59
    data_type      => "integer",
60
    default_value  => 0,
61
    is_foreign_key => 1,
62
    is_nullable    => 0,
63
  },
64
  "biblionumber",
65
  {
66
    data_type      => "integer",
67
    default_value  => 0,
68
    is_foreign_key => 1,
69
    is_nullable    => 0,
70
  },
71
  "flags",
72
  { data_type => "integer", is_nullable => 1 },
73
  "dateadded",
74
  {
75
    data_type => "timestamp",
76
    datetime_undef_if_invalid => 1,
77
    default_value => \"current_timestamp",
78
    is_nullable => 0,
79
  },
80
  "borrowernumber",
81
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
82
);
83
84
=head1 RELATIONS
85
86
=head2 shelfnumber
87
88
Type: belongs_to
89
90
Related object: L<Koha::Schema::Result::Virtualshelve>
91
92
=cut
93
94
__PACKAGE__->belongs_to(
95
  "shelfnumber",
96
  "Koha::Schema::Result::Virtualshelve",
97
  { shelfnumber => "shelfnumber" },
98
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
99
);
100
101
=head2 biblionumber
102
103
Type: belongs_to
104
105
Related object: L<Koha::Schema::Result::Biblio>
106
107
=cut
108
109
__PACKAGE__->belongs_to(
110
  "biblionumber",
111
  "Koha::Schema::Result::Biblio",
112
  { biblionumber => "biblionumber" },
113
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
114
);
115
116
=head2 borrowernumber
117
118
Type: belongs_to
119
120
Related object: L<Koha::Schema::Result::Borrower>
121
122
=cut
123
124
__PACKAGE__->belongs_to(
125
  "borrowernumber",
126
  "Koha::Schema::Result::Borrower",
127
  { borrowernumber => "borrowernumber" },
128
  {
129
    is_deferrable => 1,
130
    join_type     => "LEFT",
131
    on_delete     => "CASCADE",
132
    on_update     => "CASCADE",
133
  },
134
);
135
136
137
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
138
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ggKcS8IjwImd+QOoXhLA8A
139
140
141
# You can replace this text with custom code or comments, and it will be preserved on regeneration
142
1;
(-)a/Koha/Schema/Result/Virtualshelfshare.pm (+115 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Virtualshelfshare;
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::Virtualshelfshare
15
16
=cut
17
18
__PACKAGE__->table("virtualshelfshares");
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 shelfnumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 borrowernumber
35
36
  data_type: 'integer'
37
  is_foreign_key: 1
38
  is_nullable: 1
39
40
=head2 invitekey
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 10
45
46
=head2 sharedate
47
48
  data_type: 'datetime'
49
  datetime_undef_if_invalid: 1
50
  is_nullable: 1
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "id",
56
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
57
  "shelfnumber",
58
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
59
  "borrowernumber",
60
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
61
  "invitekey",
62
  { data_type => "varchar", is_nullable => 1, size => 10 },
63
  "sharedate",
64
  {
65
    data_type => "datetime",
66
    datetime_undef_if_invalid => 1,
67
    is_nullable => 1,
68
  },
69
);
70
__PACKAGE__->set_primary_key("id");
71
72
=head1 RELATIONS
73
74
=head2 shelfnumber
75
76
Type: belongs_to
77
78
Related object: L<Koha::Schema::Result::Virtualshelve>
79
80
=cut
81
82
__PACKAGE__->belongs_to(
83
  "shelfnumber",
84
  "Koha::Schema::Result::Virtualshelve",
85
  { shelfnumber => "shelfnumber" },
86
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
87
);
88
89
=head2 borrowernumber
90
91
Type: belongs_to
92
93
Related object: L<Koha::Schema::Result::Borrower>
94
95
=cut
96
97
__PACKAGE__->belongs_to(
98
  "borrowernumber",
99
  "Koha::Schema::Result::Borrower",
100
  { borrowernumber => "borrowernumber" },
101
  {
102
    is_deferrable => 1,
103
    join_type     => "LEFT",
104
    on_delete     => "CASCADE",
105
    on_update     => "CASCADE",
106
  },
107
);
108
109
110
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
111
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FwbZsfDRGRdmlqin3RXfDg
112
113
114
# You can replace this text with custom code or comments, and it will be preserved on regeneration
115
1;
(-)a/Koha/Schema/Result/Virtualshelve.pm (+164 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Virtualshelve;
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::Virtualshelve
15
16
=cut
17
18
__PACKAGE__->table("virtualshelves");
19
20
=head1 ACCESSORS
21
22
=head2 shelfnumber
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 shelfname
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 255
33
34
=head2 owner
35
36
  data_type: 'integer'
37
  is_foreign_key: 1
38
  is_nullable: 1
39
40
=head2 category
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 1
45
46
=head2 sortfield
47
48
  data_type: 'varchar'
49
  is_nullable: 1
50
  size: 16
51
52
=head2 lastmodified
53
54
  data_type: 'timestamp'
55
  datetime_undef_if_invalid: 1
56
  default_value: current_timestamp
57
  is_nullable: 0
58
59
=head2 allow_add
60
61
  data_type: 'tinyint'
62
  default_value: 0
63
  is_nullable: 1
64
65
=head2 allow_delete_own
66
67
  data_type: 'tinyint'
68
  default_value: 1
69
  is_nullable: 1
70
71
=head2 allow_delete_other
72
73
  data_type: 'tinyint'
74
  default_value: 0
75
  is_nullable: 1
76
77
=cut
78
79
__PACKAGE__->add_columns(
80
  "shelfnumber",
81
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
82
  "shelfname",
83
  { data_type => "varchar", is_nullable => 1, size => 255 },
84
  "owner",
85
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
86
  "category",
87
  { data_type => "varchar", is_nullable => 1, size => 1 },
88
  "sortfield",
89
  { data_type => "varchar", is_nullable => 1, size => 16 },
90
  "lastmodified",
91
  {
92
    data_type => "timestamp",
93
    datetime_undef_if_invalid => 1,
94
    default_value => \"current_timestamp",
95
    is_nullable => 0,
96
  },
97
  "allow_add",
98
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
99
  "allow_delete_own",
100
  { data_type => "tinyint", default_value => 1, is_nullable => 1 },
101
  "allow_delete_other",
102
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
103
);
104
__PACKAGE__->set_primary_key("shelfnumber");
105
106
=head1 RELATIONS
107
108
=head2 virtualshelfcontents
109
110
Type: has_many
111
112
Related object: L<Koha::Schema::Result::Virtualshelfcontent>
113
114
=cut
115
116
__PACKAGE__->has_many(
117
  "virtualshelfcontents",
118
  "Koha::Schema::Result::Virtualshelfcontent",
119
  { "foreign.shelfnumber" => "self.shelfnumber" },
120
  { cascade_copy => 0, cascade_delete => 0 },
121
);
122
123
=head2 virtualshelfshares
124
125
Type: has_many
126
127
Related object: L<Koha::Schema::Result::Virtualshelfshare>
128
129
=cut
130
131
__PACKAGE__->has_many(
132
  "virtualshelfshares",
133
  "Koha::Schema::Result::Virtualshelfshare",
134
  { "foreign.shelfnumber" => "self.shelfnumber" },
135
  { cascade_copy => 0, cascade_delete => 0 },
136
);
137
138
=head2 owner
139
140
Type: belongs_to
141
142
Related object: L<Koha::Schema::Result::Borrower>
143
144
=cut
145
146
__PACKAGE__->belongs_to(
147
  "owner",
148
  "Koha::Schema::Result::Borrower",
149
  { borrowernumber => "owner" },
150
  {
151
    is_deferrable => 1,
152
    join_type     => "LEFT",
153
    on_delete     => "CASCADE",
154
    on_update     => "CASCADE",
155
  },
156
);
157
158
159
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
160
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vfquVQgLUkYUTY8fmeviXA
161
162
163
# You can replace this text with custom code or comments, and it will be preserved on regeneration
164
1;
(-)a/Koha/Schema/Result/Z3950server.pm (+167 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Z3950server;
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::Z3950server
15
16
=cut
17
18
__PACKAGE__->table("z3950servers");
19
20
=head1 ACCESSORS
21
22
=head2 host
23
24
  data_type: 'varchar'
25
  is_nullable: 1
26
  size: 255
27
28
=head2 port
29
30
  data_type: 'integer'
31
  is_nullable: 1
32
33
=head2 db
34
35
  data_type: 'varchar'
36
  is_nullable: 1
37
  size: 255
38
39
=head2 userid
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 255
44
45
=head2 password
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 255
50
51
=head2 name
52
53
  data_type: 'mediumtext'
54
  is_nullable: 1
55
56
=head2 id
57
58
  data_type: 'integer'
59
  is_auto_increment: 1
60
  is_nullable: 0
61
62
=head2 checked
63
64
  data_type: 'smallint'
65
  is_nullable: 1
66
67
=head2 rank
68
69
  data_type: 'integer'
70
  is_nullable: 1
71
72
=head2 syntax
73
74
  data_type: 'varchar'
75
  is_nullable: 1
76
  size: 80
77
78
=head2 timeout
79
80
  data_type: 'integer'
81
  default_value: 0
82
  is_nullable: 0
83
84
=head2 icon
85
86
  data_type: 'text'
87
  is_nullable: 1
88
89
=head2 position
90
91
  data_type: 'enum'
92
  default_value: 'primary'
93
  extra: {list => ["primary","secondary",""]}
94
  is_nullable: 0
95
96
=head2 type
97
98
  data_type: 'enum'
99
  default_value: 'zed'
100
  extra: {list => ["zed","opensearch"]}
101
  is_nullable: 0
102
103
=head2 encoding
104
105
  data_type: 'text'
106
  is_nullable: 1
107
108
=head2 description
109
110
  data_type: 'text'
111
  is_nullable: 0
112
113
=cut
114
115
__PACKAGE__->add_columns(
116
  "host",
117
  { data_type => "varchar", is_nullable => 1, size => 255 },
118
  "port",
119
  { data_type => "integer", is_nullable => 1 },
120
  "db",
121
  { data_type => "varchar", is_nullable => 1, size => 255 },
122
  "userid",
123
  { data_type => "varchar", is_nullable => 1, size => 255 },
124
  "password",
125
  { data_type => "varchar", is_nullable => 1, size => 255 },
126
  "name",
127
  { data_type => "mediumtext", is_nullable => 1 },
128
  "id",
129
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
130
  "checked",
131
  { data_type => "smallint", is_nullable => 1 },
132
  "rank",
133
  { data_type => "integer", is_nullable => 1 },
134
  "syntax",
135
  { data_type => "varchar", is_nullable => 1, size => 80 },
136
  "timeout",
137
  { data_type => "integer", default_value => 0, is_nullable => 0 },
138
  "icon",
139
  { data_type => "text", is_nullable => 1 },
140
  "position",
141
  {
142
    data_type => "enum",
143
    default_value => "primary",
144
    extra => { list => ["primary", "secondary", ""] },
145
    is_nullable => 0,
146
  },
147
  "type",
148
  {
149
    data_type => "enum",
150
    default_value => "zed",
151
    extra => { list => ["zed", "opensearch"] },
152
    is_nullable => 0,
153
  },
154
  "encoding",
155
  { data_type => "text", is_nullable => 1 },
156
  "description",
157
  { data_type => "text", is_nullable => 0 },
158
);
159
__PACKAGE__->set_primary_key("id");
160
161
162
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EwtBo1aIqlIqmBVL3Xlacg
164
165
166
# You can replace this text with custom code or comments, and it will be preserved on regeneration
167
1;
(-)a/Koha/Schema/Result/Zebraqueue.pm (-1 / +96 lines)
Line 0 Link Here
0
- 
1
package Koha::Schema::Result::Zebraqueue;
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::Zebraqueue
15
16
=cut
17
18
__PACKAGE__->table("zebraqueue");
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 biblio_auth_number
29
30
  data_type: 'bigint'
31
  default_value: 0
32
  extra: {unsigned => 1}
33
  is_nullable: 0
34
35
=head2 operation
36
37
  data_type: 'char'
38
  default_value: (empty string)
39
  is_nullable: 0
40
  size: 20
41
42
=head2 server
43
44
  data_type: 'char'
45
  default_value: (empty string)
46
  is_nullable: 0
47
  size: 20
48
49
=head2 done
50
51
  data_type: 'integer'
52
  default_value: 0
53
  is_nullable: 0
54
55
=head2 time
56
57
  data_type: 'timestamp'
58
  datetime_undef_if_invalid: 1
59
  default_value: current_timestamp
60
  is_nullable: 0
61
62
=cut
63
64
__PACKAGE__->add_columns(
65
  "id",
66
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
67
  "biblio_auth_number",
68
  {
69
    data_type => "bigint",
70
    default_value => 0,
71
    extra => { unsigned => 1 },
72
    is_nullable => 0,
73
  },
74
  "operation",
75
  { data_type => "char", default_value => "", is_nullable => 0, size => 20 },
76
  "server",
77
  { data_type => "char", default_value => "", is_nullable => 0, size => 20 },
78
  "done",
79
  { data_type => "integer", default_value => 0, is_nullable => 0 },
80
  "time",
81
  {
82
    data_type => "timestamp",
83
    datetime_undef_if_invalid => 1,
84
    default_value => \"current_timestamp",
85
    is_nullable => 0,
86
  },
87
);
88
__PACKAGE__->set_primary_key("id");
89
90
91
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5plTy9bbFFnCBvR6wNcFMQ
93
94
95
# You can replace this text with custom code or comments, and it will be preserved on regeneration
96
1;

Return to bug 8309