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

(-)a/C4/Context.pm (-1 lines)
Lines 19-25 package C4::Context; Link Here
19
use strict;
19
use strict;
20
use warnings;
20
use warnings;
21
use vars qw($VERSION $AUTOLOAD $context @context_stack $servers $memcached $ismemcached);
21
use vars qw($VERSION $AUTOLOAD $context @context_stack $servers $memcached $ismemcached);
22
23
BEGIN {
22
BEGIN {
24
	if ($ENV{'HTTP_USER_AGENT'})	{
23
	if ($ENV{'HTTP_USER_AGENT'})	{
25
		require CGI::Carp;
24
		require CGI::Carp;
(-)a/C4/Installer/PerlDependencies.pm (+5 lines)
Lines 54-59 our $PERL_DEPS = { Link Here
54
        'required' => '1',
54
        'required' => '1',
55
        'min_ver'  => '1.53'
55
        'min_ver'  => '1.53'
56
    },
56
    },
57
    'DBIx::Class::Schema::Loader' => {
58
        'usage'    => 'Core',
59
        'required' => '1',
60
        'min_ver'  => '0.07000'
61
    },
57
    'Net::Z3950::ZOOM' => {
62
    'Net::Z3950::ZOOM' => {
58
        'usage'    => 'Core',
63
        'usage'    => 'Core',
59
        'required' => '1',
64
        'required' => '1',
(-)a/Koha/Database.pm (+185 lines)
Line 0 Link Here
1
package Koha::Database;
2
3
# Copyright 2013 Catalyst IT
4
# chrisc@catalyst.net.nz
5
#
6
# This file is part of Koha.
7
#
8
# Koha is free software; you can redistribute it and/or modify it under the
9
# terms of the GNU General Public License as published by the Free Software
10
# Foundation; either version 3 of the License, or (at your option) any later
11
# version.
12
#
13
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
14
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License along
18
# with Koha; if not, write to the Free Software Foundation, Inc.,
19
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
21
=head1 NAME
22
23
Koha::Database
24
25
=head1 SYNOPSIS
26
27
  use Koha::Database;
28
  my $database = Koha::Database->new();
29
  my $schema = $database->schema();
30
31
=head1 FUNCTIONS
32
33
=cut
34
35
$ENV{'DBIC_DONT_VALIDATE_RELS'} = 1; # FIXME once the DBIx schema has its schema adjusted we should remove this
36
37
use Modern::Perl;
38
use Carp;
39
use C4::Context;
40
use Koha::Schema;
41
use base qw(Class::Accessor);
42
43
__PACKAGE__->mk_accessors(qw( ));
44
45
# _new_schema
46
# Internal helper function (not a method!). This creates a new
47
# database connection from the data given in the current context, and
48
# returns it.
49
sub _new_schema {
50
    my $db_driver;
51
    my $context = C4::Context->new();
52
    if ( $context->config("db_scheme") ) {
53
        $db_driver = $context->db_scheme2dbi( $context->config("db_scheme") );
54
    }
55
    else {
56
        $db_driver = "mysql";
57
    }
58
59
    my $db_name   = $context->config("database");
60
    my $db_host   = $context->config("hostname");
61
    my $db_port   = $context->config("port") || '';
62
    my $db_user   = $context->config("user");
63
    my $db_passwd = $context->config("pass");
64
    my $schema    = Koha::Schema->connect(
65
        "DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port",
66
        $db_user, $db_passwd );
67
    return $schema;
68
}
69
70
=head2 schema
71
72
    $schema = $database->schema;
73
74
Returns a database handle connected to the Koha database for the
75
current context. If no connection has yet been made, this method
76
creates one, and connects to the database.
77
78
This database handle is cached for future use: if you call
79
C<$database-E<gt>schema> twice, you will get the same handle both
80
times. If you need a second database handle, use C<&new_schema> and
81
possibly C<&set_schema>.
82
83
=cut
84
85
sub schema {
86
    my $self = shift;
87
    my $sth;
88
    if ( defined( $self->{"schema"} ) && $self->{"schema"}->storage->connected() ) {
89
        return $self->{"schema"};
90
    }
91
92
    # No database handle or it died . Create one.
93
    $self->{"schema"} = &_new_schema();
94
95
    return $self->{"schema"};
96
}
97
98
=head2 new_schema
99
100
  $schema = $database->new_schema;
101
102
Creates a new connection to the Koha database for the current context,
103
and returns the database handle (a C<DBI::db> object).
104
105
The handle is not saved anywhere: this method is strictly a
106
convenience function; the point is that it knows which database to
107
connect to so that the caller doesn't have to know.
108
109
=cut
110
111
#'
112
sub new_schema {
113
    my $self = shift;
114
115
    return &_new_schema();
116
}
117
118
=head2 set_schema
119
120
  $my_schema = $database->new_schema;
121
  $database->set_schema($my_schema);
122
  ...
123
  $database->restore_schema;
124
125
C<&set_schema> and C<&restore_schema> work in a manner analogous to
126
C<&set_context> and C<&restore_context>.
127
128
C<&set_schema> saves the current database handle on a stack, then sets
129
the current database handle to C<$my_schema>.
130
131
C<$my_schema> is assumed to be a good database handle.
132
133
=cut
134
135
sub set_schema {
136
    my $self       = shift;
137
    my $new_schema = shift;
138
139
    # Save the current database handle on the handle stack.
140
    # We assume that $new_schema is all good: if the caller wants to
141
    # screw himself by passing an invalid handle, that's fine by
142
    # us.
143
    push @{ $self->{"schema_stack"} }, $self->{"schema"};
144
    $self->{"schema"} = $new_schema;
145
}
146
147
=head2 restore_schema
148
149
  $database->restore_schema;
150
151
Restores the database handle saved by an earlier call to
152
C<$database-E<gt>set_schema>.
153
154
=cut
155
156
sub restore_schema {
157
    my $self = shift;
158
159
    if ( $#{ $self->{"schema_stack"} } < 0 ) {
160
161
        # Stack underflow
162
        die "SCHEMA stack underflow";
163
    }
164
165
    # Pop the old database handle and set it.
166
    $self->{"schema"} = pop @{ $self->{"schema_stack"} };
167
168
    # FIXME - If it is determined that restore_context should
169
    # return something, then this function should, too.
170
}
171
172
=head2 EXPORT
173
174
None by default.
175
176
177
=head1 AUTHOR
178
179
Chris Cormack, E<lt>chrisc@catalyst.net.nzE<gt>
180
181
=cut
182
183
1;
184
185
__END__
(-)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.07000 @ 2012-09-02 08:44:15
15
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HQBaQAYvjvZj3xPakhjuPw
16
17
18
# You can replace this text with custom content, and it will be preserved on regeneration
19
1;
(-)a/Koha/Schema/Result/Accountline.pm (+199 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 accountlines_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 accountno
36
37
  data_type: 'smallint'
38
  default_value: 0
39
  is_nullable: 0
40
41
=head2 itemnumber
42
43
  data_type: 'integer'
44
  is_foreign_key: 1
45
  is_nullable: 1
46
47
=head2 date
48
49
  data_type: 'date'
50
  is_nullable: 1
51
52
=head2 amount
53
54
  data_type: 'decimal'
55
  is_nullable: 1
56
  size: [28,6]
57
58
=head2 description
59
60
  data_type: 'mediumtext'
61
  is_nullable: 1
62
63
=head2 dispute
64
65
  data_type: 'mediumtext'
66
  is_nullable: 1
67
68
=head2 accounttype
69
70
  data_type: 'varchar'
71
  is_nullable: 1
72
  size: 5
73
74
=head2 amountoutstanding
75
76
  data_type: 'decimal'
77
  is_nullable: 1
78
  size: [28,6]
79
80
=head2 lastincrement
81
82
  data_type: 'decimal'
83
  is_nullable: 1
84
  size: [28,6]
85
86
=head2 timestamp
87
88
  data_type: 'timestamp'
89
  default_value: current_timestamp
90
  is_nullable: 0
91
92
=head2 notify_id
93
94
  data_type: 'integer'
95
  default_value: 0
96
  is_nullable: 0
97
98
=head2 notify_level
99
100
  data_type: 'integer'
101
  default_value: 0
102
  is_nullable: 0
103
104
=head2 note
105
106
  data_type: 'text'
107
  is_nullable: 1
108
109
=head2 manager_id
110
111
  data_type: 'integer'
112
  is_nullable: 1
113
114
=cut
115
116
__PACKAGE__->add_columns(
117
  "accountlines_id",
118
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
119
  "borrowernumber",
120
  {
121
    data_type      => "integer",
122
    default_value  => 0,
123
    is_foreign_key => 1,
124
    is_nullable    => 0,
125
  },
126
  "accountno",
127
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
128
  "itemnumber",
129
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
130
  "date",
131
  { data_type => "date", is_nullable => 1 },
132
  "amount",
133
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
134
  "description",
135
  { data_type => "mediumtext", is_nullable => 1 },
136
  "dispute",
137
  { data_type => "mediumtext", is_nullable => 1 },
138
  "accounttype",
139
  { data_type => "varchar", is_nullable => 1, size => 5 },
140
  "amountoutstanding",
141
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
142
  "lastincrement",
143
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
144
  "timestamp",
145
  {
146
    data_type     => "timestamp",
147
    default_value => \"current_timestamp",
148
    is_nullable   => 0,
149
  },
150
  "notify_id",
151
  { data_type => "integer", default_value => 0, is_nullable => 0 },
152
  "notify_level",
153
  { data_type => "integer", default_value => 0, is_nullable => 0 },
154
  "note",
155
  { data_type => "text", is_nullable => 1 },
156
  "manager_id",
157
  { data_type => "integer", is_nullable => 1 },
158
);
159
__PACKAGE__->set_primary_key("accountlines_id");
160
161
=head1 RELATIONS
162
163
=head2 borrowernumber
164
165
Type: belongs_to
166
167
Related object: L<Koha::Schema::Result::Borrower>
168
169
=cut
170
171
__PACKAGE__->belongs_to(
172
  "borrowernumber",
173
  "Koha::Schema::Result::Borrower",
174
  { borrowernumber => "borrowernumber" },
175
  { on_delete => "CASCADE", on_update => "CASCADE" },
176
);
177
178
=head2 itemnumber
179
180
Type: belongs_to
181
182
Related object: L<Koha::Schema::Result::Item>
183
184
=cut
185
186
__PACKAGE__->belongs_to(
187
  "itemnumber",
188
  "Koha::Schema::Result::Item",
189
  { itemnumber => "itemnumber" },
190
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
191
);
192
193
194
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
195
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+AbxKjLUR7hQsP2dpsyAPw
196
197
198
# You can replace this text with custom content, and it will be preserved on regeneration
199
1;
(-)a/Koha/Schema/Result/Accountoffset.pm (+100 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
  default_value: current_timestamp
51
  is_nullable: 0
52
53
=cut
54
55
__PACKAGE__->add_columns(
56
  "borrowernumber",
57
  {
58
    data_type      => "integer",
59
    default_value  => 0,
60
    is_foreign_key => 1,
61
    is_nullable    => 0,
62
  },
63
  "accountno",
64
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
65
  "offsetaccount",
66
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
67
  "offsetamount",
68
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
69
  "timestamp",
70
  {
71
    data_type     => "timestamp",
72
    default_value => \"current_timestamp",
73
    is_nullable   => 0,
74
  },
75
);
76
77
=head1 RELATIONS
78
79
=head2 borrowernumber
80
81
Type: belongs_to
82
83
Related object: L<Koha::Schema::Result::Borrower>
84
85
=cut
86
87
__PACKAGE__->belongs_to(
88
  "borrowernumber",
89
  "Koha::Schema::Result::Borrower",
90
  { borrowernumber => "borrowernumber" },
91
  { on_delete => "CASCADE", on_update => "CASCADE" },
92
);
93
94
95
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EgbEZx495kZ40/HqRcPXfA
97
98
99
# You can replace this text with custom content, and it will be preserved on regeneration
100
1;
(-)a/Koha/Schema/Result/ActionLogs.pm (+90 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ActionLogs;
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::ActionLogs
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
  default_value: current_timestamp
32
  is_nullable: 0
33
34
=head2 user
35
36
  data_type: 'integer'
37
  default_value: 0
38
  is_nullable: 0
39
40
=head2 module
41
42
  data_type: 'text'
43
  is_nullable: 1
44
45
=head2 action
46
47
  data_type: 'text'
48
  is_nullable: 1
49
50
=head2 object
51
52
  data_type: 'integer'
53
  is_nullable: 1
54
55
=head2 info
56
57
  data_type: 'text'
58
  is_nullable: 1
59
60
=cut
61
62
__PACKAGE__->add_columns(
63
  "action_id",
64
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
65
  "timestamp",
66
  {
67
    data_type     => "timestamp",
68
    default_value => \"current_timestamp",
69
    is_nullable   => 0,
70
  },
71
  "user",
72
  { data_type => "integer", default_value => 0, is_nullable => 0 },
73
  "module",
74
  { data_type => "text", is_nullable => 1 },
75
  "action",
76
  { data_type => "text", is_nullable => 1 },
77
  "object",
78
  { data_type => "integer", is_nullable => 1 },
79
  "info",
80
  { data_type => "text", is_nullable => 1 },
81
);
82
__PACKAGE__->set_primary_key("action_id");
83
84
85
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9VN0SGNBYM/thO7QzQB4Bg
87
88
89
# You can replace this text with custom content, and it will be preserved on regeneration
90
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.07000 @ 2012-09-02 08:44:15
64
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MH/2E3A0Zh8EpLye/qojPw
65
66
67
# You can replace this text with custom content, and it will be preserved on regeneration
68
1;
(-)a/Koha/Schema/Result/Aqbasket.pm (+201 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
  is_nullable: 1
54
55
=head2 closedate
56
57
  data_type: 'date'
58
  is_nullable: 1
59
60
=head2 booksellerid
61
62
  data_type: 'integer'
63
  default_value: 1
64
  is_foreign_key: 1
65
  is_nullable: 0
66
67
=head2 authorisedby
68
69
  data_type: 'varchar'
70
  is_nullable: 1
71
  size: 10
72
73
=head2 booksellerinvoicenumber
74
75
  data_type: 'mediumtext'
76
  is_nullable: 1
77
78
=head2 basketgroupid
79
80
  data_type: 'integer'
81
  is_foreign_key: 1
82
  is_nullable: 1
83
84
=head2 deliveryplace
85
86
  data_type: 'varchar'
87
  is_nullable: 1
88
  size: 10
89
90
=head2 billingplace
91
92
  data_type: 'varchar'
93
  is_nullable: 1
94
  size: 10
95
96
=cut
97
98
__PACKAGE__->add_columns(
99
  "basketno",
100
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
101
  "basketname",
102
  { data_type => "varchar", is_nullable => 1, size => 50 },
103
  "note",
104
  { data_type => "mediumtext", is_nullable => 1 },
105
  "booksellernote",
106
  { data_type => "mediumtext", is_nullable => 1 },
107
  "contractnumber",
108
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
109
  "creationdate",
110
  { data_type => "date", is_nullable => 1 },
111
  "closedate",
112
  { data_type => "date", is_nullable => 1 },
113
  "booksellerid",
114
  {
115
    data_type      => "integer",
116
    default_value  => 1,
117
    is_foreign_key => 1,
118
    is_nullable    => 0,
119
  },
120
  "authorisedby",
121
  { data_type => "varchar", is_nullable => 1, size => 10 },
122
  "booksellerinvoicenumber",
123
  { data_type => "mediumtext", is_nullable => 1 },
124
  "basketgroupid",
125
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
126
  "deliveryplace",
127
  { data_type => "varchar", is_nullable => 1, size => 10 },
128
  "billingplace",
129
  { data_type => "varchar", is_nullable => 1, size => 10 },
130
);
131
__PACKAGE__->set_primary_key("basketno");
132
133
=head1 RELATIONS
134
135
=head2 booksellerid
136
137
Type: belongs_to
138
139
Related object: L<Koha::Schema::Result::Aqbookseller>
140
141
=cut
142
143
__PACKAGE__->belongs_to(
144
  "booksellerid",
145
  "Koha::Schema::Result::Aqbookseller",
146
  { id => "booksellerid" },
147
  { on_delete => "CASCADE", on_update => "CASCADE" },
148
);
149
150
=head2 contractnumber
151
152
Type: belongs_to
153
154
Related object: L<Koha::Schema::Result::Aqcontract>
155
156
=cut
157
158
__PACKAGE__->belongs_to(
159
  "contractnumber",
160
  "Koha::Schema::Result::Aqcontract",
161
  { contractnumber => "contractnumber" },
162
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
163
);
164
165
=head2 basketgroupid
166
167
Type: belongs_to
168
169
Related object: L<Koha::Schema::Result::Aqbasketgroup>
170
171
=cut
172
173
__PACKAGE__->belongs_to(
174
  "basketgroupid",
175
  "Koha::Schema::Result::Aqbasketgroup",
176
  { id => "basketgroupid" },
177
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
178
);
179
180
=head2 aqorders
181
182
Type: has_many
183
184
Related object: L<Koha::Schema::Result::Aqorder>
185
186
=cut
187
188
__PACKAGE__->has_many(
189
  "aqorders",
190
  "Koha::Schema::Result::Aqorder",
191
  { "foreign.basketno" => "self.basketno" },
192
  { cascade_copy => 0, cascade_delete => 0 },
193
);
194
195
196
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
197
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dtVubmNVtOouPnHgut95og
198
199
200
# You can replace this text with custom content, and it will be preserved on regeneration
201
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
  { on_delete => "CASCADE", on_update => "CASCADE" },
120
);
121
122
123
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
124
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fm4sF0IGJYdSejZIB4uoBQ
125
126
127
# You can replace this text with custom content, and it will be preserved on regeneration
128
1;
(-)a/Koha/Schema/Result/Aqbookseller.pm (+375 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
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
322
);
323
324
=head2 invoiceprice
325
326
Type: belongs_to
327
328
Related object: L<Koha::Schema::Result::Currency>
329
330
=cut
331
332
__PACKAGE__->belongs_to(
333
  "invoiceprice",
334
  "Koha::Schema::Result::Currency",
335
  { currency => "invoiceprice" },
336
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
337
);
338
339
=head2 aqcontracts
340
341
Type: has_many
342
343
Related object: L<Koha::Schema::Result::Aqcontract>
344
345
=cut
346
347
__PACKAGE__->has_many(
348
  "aqcontracts",
349
  "Koha::Schema::Result::Aqcontract",
350
  { "foreign.booksellerid" => "self.id" },
351
  { cascade_copy => 0, cascade_delete => 0 },
352
);
353
354
=head2 aqinvoices
355
356
Type: has_many
357
358
Related object: L<Koha::Schema::Result::Aqinvoice>
359
360
=cut
361
362
__PACKAGE__->has_many(
363
  "aqinvoices",
364
  "Koha::Schema::Result::Aqinvoice",
365
  { "foreign.booksellerid" => "self.id" },
366
  { cascade_copy => 0, cascade_delete => 0 },
367
);
368
369
370
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
371
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rie+pN0FWfYl8iqGV+svZQ
372
373
374
# You can replace this text with custom content, and it will be preserved on regeneration
375
1;
(-)a/Koha/Schema/Result/Aqbudget.pm (+219 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
  default_value: current_timestamp
81
  is_nullable: 0
82
83
=head2 budget_period_id
84
85
  data_type: 'integer'
86
  is_nullable: 1
87
88
=head2 sort1_authcat
89
90
  data_type: 'varchar'
91
  is_nullable: 1
92
  size: 80
93
94
=head2 sort2_authcat
95
96
  data_type: 'varchar'
97
  is_nullable: 1
98
  size: 80
99
100
=head2 budget_owner_id
101
102
  data_type: 'integer'
103
  is_nullable: 1
104
105
=head2 budget_permission
106
107
  data_type: 'integer'
108
  default_value: 0
109
  is_nullable: 1
110
111
=cut
112
113
__PACKAGE__->add_columns(
114
  "budget_id",
115
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
116
  "budget_parent_id",
117
  { data_type => "integer", is_nullable => 1 },
118
  "budget_code",
119
  { data_type => "varchar", is_nullable => 1, size => 30 },
120
  "budget_name",
121
  { data_type => "varchar", is_nullable => 1, size => 80 },
122
  "budget_branchcode",
123
  { data_type => "varchar", is_nullable => 1, size => 10 },
124
  "budget_amount",
125
  {
126
    data_type => "decimal",
127
    default_value => "0.000000",
128
    is_nullable => 1,
129
    size => [28, 6],
130
  },
131
  "budget_encumb",
132
  {
133
    data_type => "decimal",
134
    default_value => "0.000000",
135
    is_nullable => 1,
136
    size => [28, 6],
137
  },
138
  "budget_expend",
139
  {
140
    data_type => "decimal",
141
    default_value => "0.000000",
142
    is_nullable => 1,
143
    size => [28, 6],
144
  },
145
  "budget_notes",
146
  { data_type => "mediumtext", is_nullable => 1 },
147
  "timestamp",
148
  {
149
    data_type     => "timestamp",
150
    default_value => \"current_timestamp",
151
    is_nullable   => 0,
152
  },
153
  "budget_period_id",
154
  { data_type => "integer", is_nullable => 1 },
155
  "sort1_authcat",
156
  { data_type => "varchar", is_nullable => 1, size => 80 },
157
  "sort2_authcat",
158
  { data_type => "varchar", is_nullable => 1, size => 80 },
159
  "budget_owner_id",
160
  { data_type => "integer", is_nullable => 1 },
161
  "budget_permission",
162
  { data_type => "integer", default_value => 0, is_nullable => 1 },
163
);
164
__PACKAGE__->set_primary_key("budget_id");
165
166
=head1 RELATIONS
167
168
=head2 aqbudgetborrowers
169
170
Type: has_many
171
172
Related object: L<Koha::Schema::Result::Aqbudgetborrower>
173
174
=cut
175
176
__PACKAGE__->has_many(
177
  "aqbudgetborrowers",
178
  "Koha::Schema::Result::Aqbudgetborrower",
179
  { "foreign.budget_id" => "self.budget_id" },
180
  { cascade_copy => 0, cascade_delete => 0 },
181
);
182
183
=head2 aqbudgets_plannings
184
185
Type: has_many
186
187
Related object: L<Koha::Schema::Result::AqbudgetsPlanning>
188
189
=cut
190
191
__PACKAGE__->has_many(
192
  "aqbudgets_plannings",
193
  "Koha::Schema::Result::AqbudgetsPlanning",
194
  { "foreign.budget_id" => "self.budget_id" },
195
  { cascade_copy => 0, cascade_delete => 0 },
196
);
197
198
=head2 aqinvoices
199
200
Type: has_many
201
202
Related object: L<Koha::Schema::Result::Aqinvoice>
203
204
=cut
205
206
__PACKAGE__->has_many(
207
  "aqinvoices",
208
  "Koha::Schema::Result::Aqinvoice",
209
  { "foreign.shipmentcost_budgetid" => "self.budget_id" },
210
  { cascade_copy => 0, cascade_delete => 0 },
211
);
212
213
214
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
215
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qMHMlKGUX5xPXM2fmjnBgQ
216
217
218
# You can replace this text with custom content, and it will be preserved on regeneration
219
1;
(-)a/Koha/Schema/Result/Aqbudgetborrower.pm (+82 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Aqbudgetborrower;
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::Aqbudgetborrower
15
16
=cut
17
18
__PACKAGE__->table("aqbudgetborrowers");
19
20
=head1 ACCESSORS
21
22
=head2 budget_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 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
=cut
35
36
__PACKAGE__->add_columns(
37
  "budget_id",
38
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
39
  "borrowernumber",
40
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
41
);
42
__PACKAGE__->set_primary_key("budget_id", "borrowernumber");
43
44
=head1 RELATIONS
45
46
=head2 budget
47
48
Type: belongs_to
49
50
Related object: L<Koha::Schema::Result::Aqbudget>
51
52
=cut
53
54
__PACKAGE__->belongs_to(
55
  "budget",
56
  "Koha::Schema::Result::Aqbudget",
57
  { budget_id => "budget_id" },
58
  { on_delete => "CASCADE", on_update => "CASCADE" },
59
);
60
61
=head2 borrowernumber
62
63
Type: belongs_to
64
65
Related object: L<Koha::Schema::Result::Borrower>
66
67
=cut
68
69
__PACKAGE__->belongs_to(
70
  "borrowernumber",
71
  "Koha::Schema::Result::Borrower",
72
  { borrowernumber => "borrowernumber" },
73
  { on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yyTHiYgSk9l/r976XwuYog
79
80
81
# You can replace this text with custom content, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/Aqbudgetperiod.pm (+102 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
  is_nullable: 0
32
33
=head2 budget_period_enddate
34
35
  data_type: 'date'
36
  is_nullable: 0
37
38
=head2 budget_period_active
39
40
  data_type: 'tinyint'
41
  default_value: 0
42
  is_nullable: 1
43
44
=head2 budget_period_description
45
46
  data_type: 'mediumtext'
47
  is_nullable: 1
48
49
=head2 budget_period_total
50
51
  data_type: 'decimal'
52
  is_nullable: 1
53
  size: [28,6]
54
55
=head2 budget_period_locked
56
57
  data_type: 'tinyint'
58
  is_nullable: 1
59
60
=head2 sort1_authcat
61
62
  data_type: 'varchar'
63
  is_nullable: 1
64
  size: 10
65
66
=head2 sort2_authcat
67
68
  data_type: 'varchar'
69
  is_nullable: 1
70
  size: 10
71
72
=cut
73
74
__PACKAGE__->add_columns(
75
  "budget_period_id",
76
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
77
  "budget_period_startdate",
78
  { data_type => "date", is_nullable => 0 },
79
  "budget_period_enddate",
80
  { data_type => "date", is_nullable => 0 },
81
  "budget_period_active",
82
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
83
  "budget_period_description",
84
  { data_type => "mediumtext", is_nullable => 1 },
85
  "budget_period_total",
86
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
87
  "budget_period_locked",
88
  { data_type => "tinyint", is_nullable => 1 },
89
  "sort1_authcat",
90
  { data_type => "varchar", is_nullable => 1, size => 10 },
91
  "sort2_authcat",
92
  { data_type => "varchar", is_nullable => 1, size => 10 },
93
);
94
__PACKAGE__->set_primary_key("budget_period_id");
95
96
97
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
98
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MKnUsWU+v4zWADuLVahIuQ
99
100
101
# You can replace this text with custom content, and it will be preserved on regeneration
102
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
  { on_delete => "CASCADE", on_update => "CASCADE" },
98
);
99
100
101
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0yahPlMJfcJkYkG94ANfQA
103
104
105
# You can replace this text with custom content, and it will be preserved on regeneration
106
1;
(-)a/Koha/Schema/Result/Aqcontract.pm (+111 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
  is_nullable: 1
32
33
=head2 contractenddate
34
35
  data_type: 'date'
36
  is_nullable: 1
37
38
=head2 contractname
39
40
  data_type: 'varchar'
41
  is_nullable: 1
42
  size: 50
43
44
=head2 contractdescription
45
46
  data_type: 'mediumtext'
47
  is_nullable: 1
48
49
=head2 booksellerid
50
51
  data_type: 'integer'
52
  is_foreign_key: 1
53
  is_nullable: 0
54
55
=cut
56
57
__PACKAGE__->add_columns(
58
  "contractnumber",
59
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60
  "contractstartdate",
61
  { data_type => "date", is_nullable => 1 },
62
  "contractenddate",
63
  { data_type => "date", is_nullable => 1 },
64
  "contractname",
65
  { data_type => "varchar", is_nullable => 1, size => 50 },
66
  "contractdescription",
67
  { data_type => "mediumtext", is_nullable => 1 },
68
  "booksellerid",
69
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
70
);
71
__PACKAGE__->set_primary_key("contractnumber");
72
73
=head1 RELATIONS
74
75
=head2 aqbaskets
76
77
Type: has_many
78
79
Related object: L<Koha::Schema::Result::Aqbasket>
80
81
=cut
82
83
__PACKAGE__->has_many(
84
  "aqbaskets",
85
  "Koha::Schema::Result::Aqbasket",
86
  { "foreign.contractnumber" => "self.contractnumber" },
87
  { cascade_copy => 0, cascade_delete => 0 },
88
);
89
90
=head2 booksellerid
91
92
Type: belongs_to
93
94
Related object: L<Koha::Schema::Result::Aqbookseller>
95
96
=cut
97
98
__PACKAGE__->belongs_to(
99
  "booksellerid",
100
  "Koha::Schema::Result::Aqbookseller",
101
  { id => "booksellerid" },
102
  { on_delete => "CASCADE", on_update => "CASCADE" },
103
);
104
105
106
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ycOR9kVN0T7MmqtyS5ymww
108
109
110
# You can replace this text with custom content, and it will be preserved on regeneration
111
1;
(-)a/Koha/Schema/Result/Aqinvoice.pm (+141 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Aqinvoice;
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::Aqinvoice
15
16
=cut
17
18
__PACKAGE__->table("aqinvoices");
19
20
=head1 ACCESSORS
21
22
=head2 invoiceid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 invoicenumber
29
30
  data_type: 'mediumtext'
31
  is_nullable: 0
32
33
=head2 booksellerid
34
35
  data_type: 'integer'
36
  is_foreign_key: 1
37
  is_nullable: 0
38
39
=head2 shipmentdate
40
41
  data_type: 'date'
42
  is_nullable: 1
43
44
=head2 billingdate
45
46
  data_type: 'date'
47
  is_nullable: 1
48
49
=head2 closedate
50
51
  data_type: 'date'
52
  is_nullable: 1
53
54
=head2 shipmentcost
55
56
  data_type: 'decimal'
57
  is_nullable: 1
58
  size: [28,6]
59
60
=head2 shipmentcost_budgetid
61
62
  data_type: 'integer'
63
  is_foreign_key: 1
64
  is_nullable: 1
65
66
=cut
67
68
__PACKAGE__->add_columns(
69
  "invoiceid",
70
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
71
  "invoicenumber",
72
  { data_type => "mediumtext", is_nullable => 0 },
73
  "booksellerid",
74
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75
  "shipmentdate",
76
  { data_type => "date", is_nullable => 1 },
77
  "billingdate",
78
  { data_type => "date", is_nullable => 1 },
79
  "closedate",
80
  { data_type => "date", is_nullable => 1 },
81
  "shipmentcost",
82
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
83
  "shipmentcost_budgetid",
84
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
85
);
86
__PACKAGE__->set_primary_key("invoiceid");
87
88
=head1 RELATIONS
89
90
=head2 booksellerid
91
92
Type: belongs_to
93
94
Related object: L<Koha::Schema::Result::Aqbookseller>
95
96
=cut
97
98
__PACKAGE__->belongs_to(
99
  "booksellerid",
100
  "Koha::Schema::Result::Aqbookseller",
101
  { id => "booksellerid" },
102
  { on_delete => "CASCADE", on_update => "CASCADE" },
103
);
104
105
=head2 shipmentcost_budgetid
106
107
Type: belongs_to
108
109
Related object: L<Koha::Schema::Result::Aqbudget>
110
111
=cut
112
113
__PACKAGE__->belongs_to(
114
  "shipmentcost_budgetid",
115
  "Koha::Schema::Result::Aqbudget",
116
  { budget_id => "shipmentcost_budgetid" },
117
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
118
);
119
120
=head2 aqorders
121
122
Type: has_many
123
124
Related object: L<Koha::Schema::Result::Aqorder>
125
126
=cut
127
128
__PACKAGE__->has_many(
129
  "aqorders",
130
  "Koha::Schema::Result::Aqorder",
131
  { "foreign.invoiceid" => "self.invoiceid" },
132
  { cascade_copy => 0, cascade_delete => 0 },
133
);
134
135
136
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
137
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O5JnKjtyloB4VdJzZMpQng
138
139
140
# You can replace this text with custom content, and it will be preserved on regeneration
141
1;
(-)a/Koha/Schema/Result/Aqorder.pm (+389 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
  is_nullable: 1
38
39
=head2 quantity
40
41
  data_type: 'smallint'
42
  is_nullable: 1
43
44
=head2 currency
45
46
  data_type: 'varchar'
47
  is_nullable: 1
48
  size: 3
49
50
=head2 listprice
51
52
  data_type: 'decimal'
53
  is_nullable: 1
54
  size: [28,6]
55
56
=head2 totalamount
57
58
  data_type: 'decimal'
59
  is_nullable: 1
60
  size: [28,6]
61
62
=head2 datereceived
63
64
  data_type: 'date'
65
  is_nullable: 1
66
67
=head2 invoiceid
68
69
  data_type: 'integer'
70
  is_foreign_key: 1
71
  is_nullable: 1
72
73
=head2 freight
74
75
  data_type: 'decimal'
76
  is_nullable: 1
77
  size: [28,6]
78
79
=head2 unitprice
80
81
  data_type: 'decimal'
82
  is_nullable: 1
83
  size: [28,6]
84
85
=head2 quantityreceived
86
87
  data_type: 'smallint'
88
  default_value: 0
89
  is_nullable: 0
90
91
=head2 cancelledby
92
93
  data_type: 'varchar'
94
  is_nullable: 1
95
  size: 10
96
97
=head2 datecancellationprinted
98
99
  data_type: 'date'
100
  is_nullable: 1
101
102
=head2 notes
103
104
  data_type: 'mediumtext'
105
  is_nullable: 1
106
107
=head2 supplierreference
108
109
  data_type: 'mediumtext'
110
  is_nullable: 1
111
112
=head2 purchaseordernumber
113
114
  data_type: 'mediumtext'
115
  is_nullable: 1
116
117
=head2 basketno
118
119
  data_type: 'integer'
120
  is_foreign_key: 1
121
  is_nullable: 1
122
123
=head2 biblioitemnumber
124
125
  data_type: 'integer'
126
  is_nullable: 1
127
128
=head2 timestamp
129
130
  data_type: 'timestamp'
131
  default_value: current_timestamp
132
  is_nullable: 0
133
134
=head2 rrp
135
136
  data_type: 'decimal'
137
  is_nullable: 1
138
  size: [13,2]
139
140
=head2 ecost
141
142
  data_type: 'decimal'
143
  is_nullable: 1
144
  size: [13,2]
145
146
=head2 gstrate
147
148
  data_type: 'decimal'
149
  is_nullable: 1
150
  size: [6,4]
151
152
=head2 discount
153
154
  data_type: 'float'
155
  is_nullable: 1
156
  size: [6,4]
157
158
=head2 budget_id
159
160
  data_type: 'integer'
161
  is_nullable: 0
162
163
=head2 budgetgroup_id
164
165
  data_type: 'integer'
166
  is_nullable: 0
167
168
=head2 budgetdate
169
170
  data_type: 'date'
171
  is_nullable: 1
172
173
=head2 sort1
174
175
  data_type: 'varchar'
176
  is_nullable: 1
177
  size: 80
178
179
=head2 sort2
180
181
  data_type: 'varchar'
182
  is_nullable: 1
183
  size: 80
184
185
=head2 sort1_authcat
186
187
  data_type: 'varchar'
188
  is_nullable: 1
189
  size: 10
190
191
=head2 sort2_authcat
192
193
  data_type: 'varchar'
194
  is_nullable: 1
195
  size: 10
196
197
=head2 uncertainprice
198
199
  data_type: 'tinyint'
200
  is_nullable: 1
201
202
=head2 claims_count
203
204
  data_type: 'integer'
205
  default_value: 0
206
  is_nullable: 1
207
208
=head2 claimed_date
209
210
  data_type: 'date'
211
  is_nullable: 1
212
213
=head2 subscriptionid
214
215
  data_type: 'integer'
216
  is_foreign_key: 1
217
  is_nullable: 1
218
219
=head2 parent_ordernumber
220
221
  data_type: 'integer'
222
  is_nullable: 1
223
224
=cut
225
226
__PACKAGE__->add_columns(
227
  "ordernumber",
228
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
229
  "biblionumber",
230
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
231
  "entrydate",
232
  { data_type => "date", is_nullable => 1 },
233
  "quantity",
234
  { data_type => "smallint", is_nullable => 1 },
235
  "currency",
236
  { data_type => "varchar", is_nullable => 1, size => 3 },
237
  "listprice",
238
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
239
  "totalamount",
240
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
241
  "datereceived",
242
  { data_type => "date", is_nullable => 1 },
243
  "invoiceid",
244
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
245
  "freight",
246
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
247
  "unitprice",
248
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
249
  "quantityreceived",
250
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
251
  "cancelledby",
252
  { data_type => "varchar", is_nullable => 1, size => 10 },
253
  "datecancellationprinted",
254
  { data_type => "date", is_nullable => 1 },
255
  "notes",
256
  { data_type => "mediumtext", is_nullable => 1 },
257
  "supplierreference",
258
  { data_type => "mediumtext", is_nullable => 1 },
259
  "purchaseordernumber",
260
  { data_type => "mediumtext", is_nullable => 1 },
261
  "basketno",
262
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
263
  "biblioitemnumber",
264
  { data_type => "integer", is_nullable => 1 },
265
  "timestamp",
266
  {
267
    data_type     => "timestamp",
268
    default_value => \"current_timestamp",
269
    is_nullable   => 0,
270
  },
271
  "rrp",
272
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
273
  "ecost",
274
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
275
  "gstrate",
276
  { data_type => "decimal", is_nullable => 1, size => [6, 4] },
277
  "discount",
278
  { data_type => "float", is_nullable => 1, size => [6, 4] },
279
  "budget_id",
280
  { data_type => "integer", is_nullable => 0 },
281
  "budgetgroup_id",
282
  { data_type => "integer", is_nullable => 0 },
283
  "budgetdate",
284
  { data_type => "date", is_nullable => 1 },
285
  "sort1",
286
  { data_type => "varchar", is_nullable => 1, size => 80 },
287
  "sort2",
288
  { data_type => "varchar", is_nullable => 1, size => 80 },
289
  "sort1_authcat",
290
  { data_type => "varchar", is_nullable => 1, size => 10 },
291
  "sort2_authcat",
292
  { data_type => "varchar", is_nullable => 1, size => 10 },
293
  "uncertainprice",
294
  { data_type => "tinyint", is_nullable => 1 },
295
  "claims_count",
296
  { data_type => "integer", default_value => 0, is_nullable => 1 },
297
  "claimed_date",
298
  { data_type => "date", is_nullable => 1 },
299
  "subscriptionid",
300
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
301
  "parent_ordernumber",
302
  { data_type => "integer", is_nullable => 1 },
303
);
304
__PACKAGE__->set_primary_key("ordernumber");
305
306
=head1 RELATIONS
307
308
=head2 basketno
309
310
Type: belongs_to
311
312
Related object: L<Koha::Schema::Result::Aqbasket>
313
314
=cut
315
316
__PACKAGE__->belongs_to(
317
  "basketno",
318
  "Koha::Schema::Result::Aqbasket",
319
  { basketno => "basketno" },
320
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
321
);
322
323
=head2 biblionumber
324
325
Type: belongs_to
326
327
Related object: L<Koha::Schema::Result::Biblio>
328
329
=cut
330
331
__PACKAGE__->belongs_to(
332
  "biblionumber",
333
  "Koha::Schema::Result::Biblio",
334
  { biblionumber => "biblionumber" },
335
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
336
);
337
338
=head2 invoiceid
339
340
Type: belongs_to
341
342
Related object: L<Koha::Schema::Result::Aqinvoice>
343
344
=cut
345
346
__PACKAGE__->belongs_to(
347
  "invoiceid",
348
  "Koha::Schema::Result::Aqinvoice",
349
  { invoiceid => "invoiceid" },
350
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
351
);
352
353
=head2 subscriptionid
354
355
Type: belongs_to
356
357
Related object: L<Koha::Schema::Result::Subscription>
358
359
=cut
360
361
__PACKAGE__->belongs_to(
362
  "subscriptionid",
363
  "Koha::Schema::Result::Subscription",
364
  { subscriptionid => "subscriptionid" },
365
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
366
);
367
368
=head2 aqorders_items
369
370
Type: has_many
371
372
Related object: L<Koha::Schema::Result::AqordersItem>
373
374
=cut
375
376
__PACKAGE__->has_many(
377
  "aqorders_items",
378
  "Koha::Schema::Result::AqordersItem",
379
  { "foreign.ordernumber" => "self.ordernumber" },
380
  { cascade_copy => 0, cascade_delete => 0 },
381
);
382
383
384
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
385
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H1fME9Sli2LWh6zAmpzK8A
386
387
388
# You can replace this text with custom content, and it will be preserved on regeneration
389
1;
(-)a/Koha/Schema/Result/Aqorderdelivery.pm (+70 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
  is_nullable: 1
26
27
=head2 deliverynumber
28
29
  data_type: 'smallint'
30
  default_value: 0
31
  is_nullable: 0
32
33
=head2 deliverydate
34
35
  data_type: 'varchar'
36
  is_nullable: 1
37
  size: 18
38
39
=head2 qtydelivered
40
41
  data_type: 'smallint'
42
  is_nullable: 1
43
44
=head2 deliverycomments
45
46
  data_type: 'mediumtext'
47
  is_nullable: 1
48
49
=cut
50
51
__PACKAGE__->add_columns(
52
  "ordernumber",
53
  { data_type => "date", is_nullable => 1 },
54
  "deliverynumber",
55
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
56
  "deliverydate",
57
  { data_type => "varchar", is_nullable => 1, size => 18 },
58
  "qtydelivered",
59
  { data_type => "smallint", is_nullable => 1 },
60
  "deliverycomments",
61
  { data_type => "mediumtext", is_nullable => 1 },
62
);
63
64
65
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
66
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LOGL7qHtUGwgWbKJ1HguXA
67
68
69
# You can replace this text with custom content, and it will be preserved on regeneration
70
1;
(-)a/Koha/Schema/Result/AqordersItem.pm (+78 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_foreign_key: 1
26
  is_nullable: 0
27
28
=head2 itemnumber
29
30
  data_type: 'integer'
31
  is_nullable: 0
32
33
=head2 timestamp
34
35
  data_type: 'timestamp'
36
  default_value: current_timestamp
37
  is_nullable: 0
38
39
=cut
40
41
__PACKAGE__->add_columns(
42
  "ordernumber",
43
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
44
  "itemnumber",
45
  { data_type => "integer", is_nullable => 0 },
46
  "timestamp",
47
  {
48
    data_type     => "timestamp",
49
    default_value => \"current_timestamp",
50
    is_nullable   => 0,
51
  },
52
);
53
__PACKAGE__->set_primary_key("itemnumber");
54
55
=head1 RELATIONS
56
57
=head2 ordernumber
58
59
Type: belongs_to
60
61
Related object: L<Koha::Schema::Result::Aqorder>
62
63
=cut
64
65
__PACKAGE__->belongs_to(
66
  "ordernumber",
67
  "Koha::Schema::Result::Aqorder",
68
  { ordernumber => "ordernumber" },
69
  { on_delete => "CASCADE", on_update => "CASCADE" },
70
);
71
72
73
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
74
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9KFzTfBzan4H1BxT1suyXA
75
76
77
# You can replace this text with custom content, and it will be preserved on regeneration
78
1;
(-)a/Koha/Schema/Result/AuthHeader.pm (+107 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
  is_nullable: 1
40
41
=head2 datemodified
42
43
  data_type: 'date'
44
  is_nullable: 1
45
46
=head2 origincode
47
48
  data_type: 'varchar'
49
  is_nullable: 1
50
  size: 20
51
52
=head2 authtrees
53
54
  data_type: 'mediumtext'
55
  is_nullable: 1
56
57
=head2 marc
58
59
  data_type: 'blob'
60
  is_nullable: 1
61
62
=head2 linkid
63
64
  data_type: 'bigint'
65
  is_nullable: 1
66
67
=head2 marcxml
68
69
  data_type: 'longtext'
70
  is_nullable: 0
71
72
=cut
73
74
__PACKAGE__->add_columns(
75
  "authid",
76
  {
77
    data_type => "bigint",
78
    extra => { unsigned => 1 },
79
    is_auto_increment => 1,
80
    is_nullable => 0,
81
  },
82
  "authtypecode",
83
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
84
  "datecreated",
85
  { data_type => "date", is_nullable => 1 },
86
  "datemodified",
87
  { data_type => "date", is_nullable => 1 },
88
  "origincode",
89
  { data_type => "varchar", is_nullable => 1, size => 20 },
90
  "authtrees",
91
  { data_type => "mediumtext", is_nullable => 1 },
92
  "marc",
93
  { data_type => "blob", is_nullable => 1 },
94
  "linkid",
95
  { data_type => "bigint", is_nullable => 1 },
96
  "marcxml",
97
  { data_type => "longtext", is_nullable => 0 },
98
);
99
__PACKAGE__->set_primary_key("authid");
100
101
102
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
103
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NVcyurExTIYMqdmRcU0hSA
104
105
106
# You can replace this text with custom content, and it will be preserved on regeneration
107
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.07000 @ 2012-09-02 08:44:15
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8Au8FV34qkqLZqlpt3mXPA
164
165
166
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
110
);
111
112
113
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
114
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EIrlKC3v6sYrPt9F21xeag
115
116
117
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
81
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n40JCBQ6mHTaHDRGG8mk2w
82
83
84
# You can replace this text with custom content, and it will be preserved on regeneration
85
1;
(-)a/Koha/Schema/Result/AuthorisedValue.pm (+101 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: 16
34
35
=head2 authorised_value
36
37
  data_type: 'varchar'
38
  default_value: (empty string)
39
  is_nullable: 0
40
  size: 80
41
42
=head2 lib
43
44
  data_type: 'varchar'
45
  is_nullable: 1
46
  size: 200
47
48
=head2 lib_opac
49
50
  data_type: 'varchar'
51
  is_nullable: 1
52
  size: 200
53
54
=head2 imageurl
55
56
  data_type: 'varchar'
57
  is_nullable: 1
58
  size: 200
59
60
=cut
61
62
__PACKAGE__->add_columns(
63
  "id",
64
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
65
  "category",
66
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 },
67
  "authorised_value",
68
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 },
69
  "lib",
70
  { data_type => "varchar", is_nullable => 1, size => 200 },
71
  "lib_opac",
72
  { data_type => "varchar", is_nullable => 1, size => 200 },
73
  "imageurl",
74
  { data_type => "varchar", is_nullable => 1, size => 200 },
75
);
76
__PACKAGE__->set_primary_key("id");
77
78
=head1 RELATIONS
79
80
=head2 authorised_values_branches
81
82
Type: has_many
83
84
Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
85
86
=cut
87
88
__PACKAGE__->has_many(
89
  "authorised_values_branches",
90
  "Koha::Schema::Result::AuthorisedValuesBranch",
91
  { "foreign.av_id" => "self.id" },
92
  { cascade_copy => 0, cascade_delete => 0 },
93
);
94
95
96
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
97
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UQnP1vJKTnc7KwuTT20Orw
98
99
100
# You can replace this text with custom content, and it will be preserved on regeneration
101
1;
(-)a/Koha/Schema/Result/AuthorisedValuesBranch.pm (+82 lines)
Line 0 Link Here
1
package Koha::Schema::Result::AuthorisedValuesBranch;
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::AuthorisedValuesBranch
15
16
=cut
17
18
__PACKAGE__->table("authorised_values_branches");
19
20
=head1 ACCESSORS
21
22
=head2 av_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 1
26
  is_nullable: 1
27
28
=head2 branchcode
29
30
  data_type: 'varchar'
31
  is_foreign_key: 1
32
  is_nullable: 1
33
  size: 10
34
35
=cut
36
37
__PACKAGE__->add_columns(
38
  "av_id",
39
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
40
  "branchcode",
41
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
42
);
43
44
=head1 RELATIONS
45
46
=head2 av
47
48
Type: belongs_to
49
50
Related object: L<Koha::Schema::Result::AuthorisedValue>
51
52
=cut
53
54
__PACKAGE__->belongs_to(
55
  "av",
56
  "Koha::Schema::Result::AuthorisedValue",
57
  { id => "av_id" },
58
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
59
);
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
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yPaKXjOzZX76bddoMqxKmA
79
80
81
# You can replace this text with custom content, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/Biblio.pm (+308 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
  default_value: current_timestamp
74
  is_nullable: 0
75
76
=head2 datecreated
77
78
  data_type: 'date'
79
  is_nullable: 0
80
81
=head2 abstract
82
83
  data_type: 'mediumtext'
84
  is_nullable: 1
85
86
=cut
87
88
__PACKAGE__->add_columns(
89
  "biblionumber",
90
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
91
  "frameworkcode",
92
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
93
  "author",
94
  { data_type => "mediumtext", is_nullable => 1 },
95
  "title",
96
  { data_type => "mediumtext", is_nullable => 1 },
97
  "unititle",
98
  { data_type => "mediumtext", is_nullable => 1 },
99
  "notes",
100
  { data_type => "mediumtext", is_nullable => 1 },
101
  "serial",
102
  { data_type => "tinyint", is_nullable => 1 },
103
  "seriestitle",
104
  { data_type => "mediumtext", is_nullable => 1 },
105
  "copyrightdate",
106
  { data_type => "smallint", is_nullable => 1 },
107
  "timestamp",
108
  {
109
    data_type     => "timestamp",
110
    default_value => \"current_timestamp",
111
    is_nullable   => 0,
112
  },
113
  "datecreated",
114
  { data_type => "date", is_nullable => 0 },
115
  "abstract",
116
  { data_type => "mediumtext", is_nullable => 1 },
117
);
118
__PACKAGE__->set_primary_key("biblionumber");
119
120
=head1 RELATIONS
121
122
=head2 aqorders
123
124
Type: has_many
125
126
Related object: L<Koha::Schema::Result::Aqorder>
127
128
=cut
129
130
__PACKAGE__->has_many(
131
  "aqorders",
132
  "Koha::Schema::Result::Aqorder",
133
  { "foreign.biblionumber" => "self.biblionumber" },
134
  { cascade_copy => 0, cascade_delete => 0 },
135
);
136
137
=head2 biblioimages
138
139
Type: has_many
140
141
Related object: L<Koha::Schema::Result::Biblioimage>
142
143
=cut
144
145
__PACKAGE__->has_many(
146
  "biblioimages",
147
  "Koha::Schema::Result::Biblioimage",
148
  { "foreign.biblionumber" => "self.biblionumber" },
149
  { cascade_copy => 0, cascade_delete => 0 },
150
);
151
152
=head2 biblioitems
153
154
Type: has_many
155
156
Related object: L<Koha::Schema::Result::Biblioitem>
157
158
=cut
159
160
__PACKAGE__->has_many(
161
  "biblioitems",
162
  "Koha::Schema::Result::Biblioitem",
163
  { "foreign.biblionumber" => "self.biblionumber" },
164
  { cascade_copy => 0, cascade_delete => 0 },
165
);
166
167
=head2 hold_fill_targets
168
169
Type: has_many
170
171
Related object: L<Koha::Schema::Result::HoldFillTarget>
172
173
=cut
174
175
__PACKAGE__->has_many(
176
  "hold_fill_targets",
177
  "Koha::Schema::Result::HoldFillTarget",
178
  { "foreign.biblionumber" => "self.biblionumber" },
179
  { cascade_copy => 0, cascade_delete => 0 },
180
);
181
182
=head2 oai_sets_biblios
183
184
Type: has_many
185
186
Related object: L<Koha::Schema::Result::OaiSetsBiblio>
187
188
=cut
189
190
__PACKAGE__->has_many(
191
  "oai_sets_biblios",
192
  "Koha::Schema::Result::OaiSetsBiblio",
193
  { "foreign.biblionumber" => "self.biblionumber" },
194
  { cascade_copy => 0, cascade_delete => 0 },
195
);
196
197
=head2 old_reserves
198
199
Type: has_many
200
201
Related object: L<Koha::Schema::Result::OldReserve>
202
203
=cut
204
205
__PACKAGE__->has_many(
206
  "old_reserves",
207
  "Koha::Schema::Result::OldReserve",
208
  { "foreign.biblionumber" => "self.biblionumber" },
209
  { cascade_copy => 0, cascade_delete => 0 },
210
);
211
212
=head2 ratings
213
214
Type: has_many
215
216
Related object: L<Koha::Schema::Result::Rating>
217
218
=cut
219
220
__PACKAGE__->has_many(
221
  "ratings",
222
  "Koha::Schema::Result::Rating",
223
  { "foreign.biblionumber" => "self.biblionumber" },
224
  { cascade_copy => 0, cascade_delete => 0 },
225
);
226
227
=head2 reserves
228
229
Type: has_many
230
231
Related object: L<Koha::Schema::Result::Reserve>
232
233
=cut
234
235
__PACKAGE__->has_many(
236
  "reserves",
237
  "Koha::Schema::Result::Reserve",
238
  { "foreign.biblionumber" => "self.biblionumber" },
239
  { cascade_copy => 0, cascade_delete => 0 },
240
);
241
242
=head2 reviews
243
244
Type: has_many
245
246
Related object: L<Koha::Schema::Result::Review>
247
248
=cut
249
250
__PACKAGE__->has_many(
251
  "reviews",
252
  "Koha::Schema::Result::Review",
253
  { "foreign.biblionumber" => "self.biblionumber" },
254
  { cascade_copy => 0, cascade_delete => 0 },
255
);
256
257
=head2 tags_all
258
259
Type: has_many
260
261
Related object: L<Koha::Schema::Result::TagAll>
262
263
=cut
264
265
__PACKAGE__->has_many(
266
  "tags_all",
267
  "Koha::Schema::Result::TagAll",
268
  { "foreign.biblionumber" => "self.biblionumber" },
269
  { cascade_copy => 0, cascade_delete => 0 },
270
);
271
272
=head2 tags_indexes
273
274
Type: has_many
275
276
Related object: L<Koha::Schema::Result::TagsIndex>
277
278
=cut
279
280
__PACKAGE__->has_many(
281
  "tags_indexes",
282
  "Koha::Schema::Result::TagsIndex",
283
  { "foreign.biblionumber" => "self.biblionumber" },
284
  { cascade_copy => 0, cascade_delete => 0 },
285
);
286
287
=head2 virtualshelfcontents
288
289
Type: has_many
290
291
Related object: L<Koha::Schema::Result::Virtualshelfcontent>
292
293
=cut
294
295
__PACKAGE__->has_many(
296
  "virtualshelfcontents",
297
  "Koha::Schema::Result::Virtualshelfcontent",
298
  { "foreign.biblionumber" => "self.biblionumber" },
299
  { cascade_copy => 0, cascade_delete => 0 },
300
);
301
302
303
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
304
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NwOZPwmnB/44XMp45TzWVg
305
306
307
# You can replace this text with custom content, and it will be preserved on regeneration
308
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.07000 @ 2012-09-02 08:44:15
48
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tEQykJXvhOfUAxNs4DnBaQ
49
50
51
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
81
);
82
83
84
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9P2Yp+Ye/tJ3+aG7mQR8sQ
86
87
88
# You can replace this text with custom content, and it will be preserved on regeneration
89
1;
(-)a/Koha/Schema/Result/Biblioitem.pm (+334 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
  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
  default_value: current_timestamp
119
  is_nullable: 0
120
121
=head2 illus
122
123
  data_type: 'varchar'
124
  is_nullable: 1
125
  size: 255
126
127
=head2 pages
128
129
  data_type: 'varchar'
130
  is_nullable: 1
131
  size: 255
132
133
=head2 notes
134
135
  data_type: 'mediumtext'
136
  is_nullable: 1
137
138
=head2 size
139
140
  data_type: 'varchar'
141
  is_nullable: 1
142
  size: 255
143
144
=head2 place
145
146
  data_type: 'varchar'
147
  is_nullable: 1
148
  size: 255
149
150
=head2 lccn
151
152
  data_type: 'varchar'
153
  is_nullable: 1
154
  size: 25
155
156
=head2 marc
157
158
  data_type: 'longblob'
159
  is_nullable: 1
160
161
=head2 url
162
163
  data_type: 'varchar'
164
  is_nullable: 1
165
  size: 255
166
167
=head2 cn_source
168
169
  data_type: 'varchar'
170
  is_nullable: 1
171
  size: 10
172
173
=head2 cn_class
174
175
  data_type: 'varchar'
176
  is_nullable: 1
177
  size: 30
178
179
=head2 cn_item
180
181
  data_type: 'varchar'
182
  is_nullable: 1
183
  size: 10
184
185
=head2 cn_suffix
186
187
  data_type: 'varchar'
188
  is_nullable: 1
189
  size: 10
190
191
=head2 cn_sort
192
193
  data_type: 'varchar'
194
  is_nullable: 1
195
  size: 30
196
197
=head2 agerestriction
198
199
  data_type: 'varchar'
200
  is_nullable: 1
201
  size: 255
202
203
=head2 totalissues
204
205
  data_type: 'integer'
206
  is_nullable: 1
207
208
=head2 marcxml
209
210
  data_type: 'longtext'
211
  is_nullable: 0
212
213
=cut
214
215
__PACKAGE__->add_columns(
216
  "biblioitemnumber",
217
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
218
  "biblionumber",
219
  {
220
    data_type      => "integer",
221
    default_value  => 0,
222
    is_foreign_key => 1,
223
    is_nullable    => 0,
224
  },
225
  "volume",
226
  { data_type => "mediumtext", is_nullable => 1 },
227
  "number",
228
  { data_type => "mediumtext", is_nullable => 1 },
229
  "itemtype",
230
  { data_type => "varchar", is_nullable => 1, size => 10 },
231
  "isbn",
232
  { data_type => "varchar", is_nullable => 1, size => 30 },
233
  "issn",
234
  { data_type => "varchar", is_nullable => 1, size => 9 },
235
  "ean",
236
  { data_type => "varchar", is_nullable => 1, size => 13 },
237
  "publicationyear",
238
  { data_type => "text", is_nullable => 1 },
239
  "publishercode",
240
  { data_type => "varchar", is_nullable => 1, size => 255 },
241
  "volumedate",
242
  { data_type => "date", is_nullable => 1 },
243
  "volumedesc",
244
  { data_type => "text", is_nullable => 1 },
245
  "collectiontitle",
246
  { data_type => "mediumtext", is_nullable => 1 },
247
  "collectionissn",
248
  { data_type => "text", is_nullable => 1 },
249
  "collectionvolume",
250
  { data_type => "mediumtext", is_nullable => 1 },
251
  "editionstatement",
252
  { data_type => "text", is_nullable => 1 },
253
  "editionresponsibility",
254
  { data_type => "text", is_nullable => 1 },
255
  "timestamp",
256
  {
257
    data_type     => "timestamp",
258
    default_value => \"current_timestamp",
259
    is_nullable   => 0,
260
  },
261
  "illus",
262
  { data_type => "varchar", is_nullable => 1, size => 255 },
263
  "pages",
264
  { data_type => "varchar", is_nullable => 1, size => 255 },
265
  "notes",
266
  { data_type => "mediumtext", is_nullable => 1 },
267
  "size",
268
  { data_type => "varchar", is_nullable => 1, size => 255 },
269
  "place",
270
  { data_type => "varchar", is_nullable => 1, size => 255 },
271
  "lccn",
272
  { data_type => "varchar", is_nullable => 1, size => 25 },
273
  "marc",
274
  { data_type => "longblob", is_nullable => 1 },
275
  "url",
276
  { data_type => "varchar", is_nullable => 1, size => 255 },
277
  "cn_source",
278
  { data_type => "varchar", is_nullable => 1, size => 10 },
279
  "cn_class",
280
  { data_type => "varchar", is_nullable => 1, size => 30 },
281
  "cn_item",
282
  { data_type => "varchar", is_nullable => 1, size => 10 },
283
  "cn_suffix",
284
  { data_type => "varchar", is_nullable => 1, size => 10 },
285
  "cn_sort",
286
  { data_type => "varchar", is_nullable => 1, size => 30 },
287
  "agerestriction",
288
  { data_type => "varchar", is_nullable => 1, size => 255 },
289
  "totalissues",
290
  { data_type => "integer", is_nullable => 1 },
291
  "marcxml",
292
  { data_type => "longtext", is_nullable => 0 },
293
);
294
__PACKAGE__->set_primary_key("biblioitemnumber");
295
296
=head1 RELATIONS
297
298
=head2 biblionumber
299
300
Type: belongs_to
301
302
Related object: L<Koha::Schema::Result::Biblio>
303
304
=cut
305
306
__PACKAGE__->belongs_to(
307
  "biblionumber",
308
  "Koha::Schema::Result::Biblio",
309
  { biblionumber => "biblionumber" },
310
  { on_delete => "CASCADE", on_update => "CASCADE" },
311
);
312
313
=head2 items
314
315
Type: has_many
316
317
Related object: L<Koha::Schema::Result::Item>
318
319
=cut
320
321
__PACKAGE__->has_many(
322
  "items",
323
  "Koha::Schema::Result::Item",
324
  { "foreign.biblioitemnumber" => "self.biblioitemnumber" },
325
  { cascade_copy => 0, cascade_delete => 0 },
326
);
327
328
329
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
330
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:j5xMUqTsOxa/ieu7yPnOaA
331
332
333
# You can replace this text with custom content, and it will be preserved on regeneration
334
1;
(-)a/Koha/Schema/Result/Borrower.pm (+958 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
  is_nullable: 1
191
192
=head2 branchcode
193
194
  data_type: 'varchar'
195
  default_value: (empty string)
196
  is_foreign_key: 1
197
  is_nullable: 0
198
  size: 10
199
200
=head2 categorycode
201
202
  data_type: 'varchar'
203
  default_value: (empty string)
204
  is_foreign_key: 1
205
  is_nullable: 0
206
  size: 10
207
208
=head2 dateenrolled
209
210
  data_type: 'date'
211
  is_nullable: 1
212
213
=head2 dateexpiry
214
215
  data_type: 'date'
216
  is_nullable: 1
217
218
=head2 gonenoaddress
219
220
  data_type: 'tinyint'
221
  is_nullable: 1
222
223
=head2 lost
224
225
  data_type: 'tinyint'
226
  is_nullable: 1
227
228
=head2 debarred
229
230
  data_type: 'date'
231
  is_nullable: 1
232
233
=head2 debarredcomment
234
235
  data_type: 'varchar'
236
  is_nullable: 1
237
  size: 255
238
239
=head2 contactname
240
241
  data_type: 'mediumtext'
242
  is_nullable: 1
243
244
=head2 contactfirstname
245
246
  data_type: 'text'
247
  is_nullable: 1
248
249
=head2 contacttitle
250
251
  data_type: 'text'
252
  is_nullable: 1
253
254
=head2 guarantorid
255
256
  data_type: 'integer'
257
  is_nullable: 1
258
259
=head2 borrowernotes
260
261
  data_type: 'mediumtext'
262
  is_nullable: 1
263
264
=head2 relationship
265
266
  data_type: 'varchar'
267
  is_nullable: 1
268
  size: 100
269
270
=head2 ethnicity
271
272
  data_type: 'varchar'
273
  is_nullable: 1
274
  size: 50
275
276
=head2 ethnotes
277
278
  data_type: 'varchar'
279
  is_nullable: 1
280
  size: 255
281
282
=head2 sex
283
284
  data_type: 'varchar'
285
  is_nullable: 1
286
  size: 1
287
288
=head2 password
289
290
  data_type: 'varchar'
291
  is_nullable: 1
292
  size: 30
293
294
=head2 flags
295
296
  data_type: 'integer'
297
  is_nullable: 1
298
299
=head2 userid
300
301
  data_type: 'varchar'
302
  is_nullable: 1
303
  size: 75
304
305
=head2 opacnote
306
307
  data_type: 'mediumtext'
308
  is_nullable: 1
309
310
=head2 contactnote
311
312
  data_type: 'varchar'
313
  is_nullable: 1
314
  size: 255
315
316
=head2 sort1
317
318
  data_type: 'varchar'
319
  is_nullable: 1
320
  size: 80
321
322
=head2 sort2
323
324
  data_type: 'varchar'
325
  is_nullable: 1
326
  size: 80
327
328
=head2 altcontactfirstname
329
330
  data_type: 'varchar'
331
  is_nullable: 1
332
  size: 255
333
334
=head2 altcontactsurname
335
336
  data_type: 'varchar'
337
  is_nullable: 1
338
  size: 255
339
340
=head2 altcontactaddress1
341
342
  data_type: 'varchar'
343
  is_nullable: 1
344
  size: 255
345
346
=head2 altcontactaddress2
347
348
  data_type: 'varchar'
349
  is_nullable: 1
350
  size: 255
351
352
=head2 altcontactaddress3
353
354
  data_type: 'varchar'
355
  is_nullable: 1
356
  size: 255
357
358
=head2 altcontactstate
359
360
  data_type: 'text'
361
  is_nullable: 1
362
363
=head2 altcontactzipcode
364
365
  data_type: 'varchar'
366
  is_nullable: 1
367
  size: 50
368
369
=head2 altcontactcountry
370
371
  data_type: 'text'
372
  is_nullable: 1
373
374
=head2 altcontactphone
375
376
  data_type: 'varchar'
377
  is_nullable: 1
378
  size: 50
379
380
=head2 smsalertnumber
381
382
  data_type: 'varchar'
383
  is_nullable: 1
384
  size: 50
385
386
=head2 privacy
387
388
  data_type: 'integer'
389
  default_value: 1
390
  is_nullable: 0
391
392
=cut
393
394
__PACKAGE__->add_columns(
395
  "borrowernumber",
396
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
397
  "cardnumber",
398
  { data_type => "varchar", is_nullable => 1, size => 16 },
399
  "surname",
400
  { data_type => "mediumtext", is_nullable => 0 },
401
  "firstname",
402
  { data_type => "text", is_nullable => 1 },
403
  "title",
404
  { data_type => "mediumtext", is_nullable => 1 },
405
  "othernames",
406
  { data_type => "mediumtext", is_nullable => 1 },
407
  "initials",
408
  { data_type => "text", is_nullable => 1 },
409
  "streetnumber",
410
  { data_type => "varchar", is_nullable => 1, size => 10 },
411
  "streettype",
412
  { data_type => "varchar", is_nullable => 1, size => 50 },
413
  "address",
414
  { data_type => "mediumtext", is_nullable => 0 },
415
  "address2",
416
  { data_type => "text", is_nullable => 1 },
417
  "city",
418
  { data_type => "mediumtext", is_nullable => 0 },
419
  "state",
420
  { data_type => "text", is_nullable => 1 },
421
  "zipcode",
422
  { data_type => "varchar", is_nullable => 1, size => 25 },
423
  "country",
424
  { data_type => "text", is_nullable => 1 },
425
  "email",
426
  { data_type => "mediumtext", is_nullable => 1 },
427
  "phone",
428
  { data_type => "text", is_nullable => 1 },
429
  "mobile",
430
  { data_type => "varchar", is_nullable => 1, size => 50 },
431
  "fax",
432
  { data_type => "mediumtext", is_nullable => 1 },
433
  "emailpro",
434
  { data_type => "text", is_nullable => 1 },
435
  "phonepro",
436
  { data_type => "text", is_nullable => 1 },
437
  "b_streetnumber",
438
  { data_type => "varchar", is_nullable => 1, size => 10 },
439
  "b_streettype",
440
  { data_type => "varchar", is_nullable => 1, size => 50 },
441
  "b_address",
442
  { data_type => "varchar", is_nullable => 1, size => 100 },
443
  "b_address2",
444
  { data_type => "text", is_nullable => 1 },
445
  "b_city",
446
  { data_type => "mediumtext", is_nullable => 1 },
447
  "b_state",
448
  { data_type => "text", is_nullable => 1 },
449
  "b_zipcode",
450
  { data_type => "varchar", is_nullable => 1, size => 25 },
451
  "b_country",
452
  { data_type => "text", is_nullable => 1 },
453
  "b_email",
454
  { data_type => "text", is_nullable => 1 },
455
  "b_phone",
456
  { data_type => "mediumtext", is_nullable => 1 },
457
  "dateofbirth",
458
  { data_type => "date", is_nullable => 1 },
459
  "branchcode",
460
  {
461
    data_type => "varchar",
462
    default_value => "",
463
    is_foreign_key => 1,
464
    is_nullable => 0,
465
    size => 10,
466
  },
467
  "categorycode",
468
  {
469
    data_type => "varchar",
470
    default_value => "",
471
    is_foreign_key => 1,
472
    is_nullable => 0,
473
    size => 10,
474
  },
475
  "dateenrolled",
476
  { data_type => "date", is_nullable => 1 },
477
  "dateexpiry",
478
  { data_type => "date", is_nullable => 1 },
479
  "gonenoaddress",
480
  { data_type => "tinyint", is_nullable => 1 },
481
  "lost",
482
  { data_type => "tinyint", is_nullable => 1 },
483
  "debarred",
484
  { data_type => "date", is_nullable => 1 },
485
  "debarredcomment",
486
  { data_type => "varchar", is_nullable => 1, size => 255 },
487
  "contactname",
488
  { data_type => "mediumtext", is_nullable => 1 },
489
  "contactfirstname",
490
  { data_type => "text", is_nullable => 1 },
491
  "contacttitle",
492
  { data_type => "text", is_nullable => 1 },
493
  "guarantorid",
494
  { data_type => "integer", is_nullable => 1 },
495
  "borrowernotes",
496
  { data_type => "mediumtext", is_nullable => 1 },
497
  "relationship",
498
  { data_type => "varchar", is_nullable => 1, size => 100 },
499
  "ethnicity",
500
  { data_type => "varchar", is_nullable => 1, size => 50 },
501
  "ethnotes",
502
  { data_type => "varchar", is_nullable => 1, size => 255 },
503
  "sex",
504
  { data_type => "varchar", is_nullable => 1, size => 1 },
505
  "password",
506
  { data_type => "varchar", is_nullable => 1, size => 30 },
507
  "flags",
508
  { data_type => "integer", is_nullable => 1 },
509
  "userid",
510
  { data_type => "varchar", is_nullable => 1, size => 75 },
511
  "opacnote",
512
  { data_type => "mediumtext", is_nullable => 1 },
513
  "contactnote",
514
  { data_type => "varchar", is_nullable => 1, size => 255 },
515
  "sort1",
516
  { data_type => "varchar", is_nullable => 1, size => 80 },
517
  "sort2",
518
  { data_type => "varchar", is_nullable => 1, size => 80 },
519
  "altcontactfirstname",
520
  { data_type => "varchar", is_nullable => 1, size => 255 },
521
  "altcontactsurname",
522
  { data_type => "varchar", is_nullable => 1, size => 255 },
523
  "altcontactaddress1",
524
  { data_type => "varchar", is_nullable => 1, size => 255 },
525
  "altcontactaddress2",
526
  { data_type => "varchar", is_nullable => 1, size => 255 },
527
  "altcontactaddress3",
528
  { data_type => "varchar", is_nullable => 1, size => 255 },
529
  "altcontactstate",
530
  { data_type => "text", is_nullable => 1 },
531
  "altcontactzipcode",
532
  { data_type => "varchar", is_nullable => 1, size => 50 },
533
  "altcontactcountry",
534
  { data_type => "text", is_nullable => 1 },
535
  "altcontactphone",
536
  { data_type => "varchar", is_nullable => 1, size => 50 },
537
  "smsalertnumber",
538
  { data_type => "varchar", is_nullable => 1, size => 50 },
539
  "privacy",
540
  { data_type => "integer", default_value => 1, is_nullable => 0 },
541
);
542
__PACKAGE__->set_primary_key("borrowernumber");
543
__PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]);
544
545
=head1 RELATIONS
546
547
=head2 accountlines
548
549
Type: has_many
550
551
Related object: L<Koha::Schema::Result::Accountline>
552
553
=cut
554
555
__PACKAGE__->has_many(
556
  "accountlines",
557
  "Koha::Schema::Result::Accountline",
558
  { "foreign.borrowernumber" => "self.borrowernumber" },
559
  { cascade_copy => 0, cascade_delete => 0 },
560
);
561
562
=head2 accountoffsets
563
564
Type: has_many
565
566
Related object: L<Koha::Schema::Result::Accountoffset>
567
568
=cut
569
570
__PACKAGE__->has_many(
571
  "accountoffsets",
572
  "Koha::Schema::Result::Accountoffset",
573
  { "foreign.borrowernumber" => "self.borrowernumber" },
574
  { cascade_copy => 0, cascade_delete => 0 },
575
);
576
577
=head2 aqbudgetborrowers
578
579
Type: has_many
580
581
Related object: L<Koha::Schema::Result::Aqbudgetborrower>
582
583
=cut
584
585
__PACKAGE__->has_many(
586
  "aqbudgetborrowers",
587
  "Koha::Schema::Result::Aqbudgetborrower",
588
  { "foreign.borrowernumber" => "self.borrowernumber" },
589
  { cascade_copy => 0, cascade_delete => 0 },
590
);
591
592
=head2 borrower_attributes
593
594
Type: has_many
595
596
Related object: L<Koha::Schema::Result::BorrowerAttribute>
597
598
=cut
599
600
__PACKAGE__->has_many(
601
  "borrower_attributes",
602
  "Koha::Schema::Result::BorrowerAttribute",
603
  { "foreign.borrowernumber" => "self.borrowernumber" },
604
  { cascade_copy => 0, cascade_delete => 0 },
605
);
606
607
=head2 borrower_files
608
609
Type: has_many
610
611
Related object: L<Koha::Schema::Result::BorrowerFile>
612
613
=cut
614
615
__PACKAGE__->has_many(
616
  "borrower_files",
617
  "Koha::Schema::Result::BorrowerFile",
618
  { "foreign.borrowernumber" => "self.borrowernumber" },
619
  { cascade_copy => 0, cascade_delete => 0 },
620
);
621
622
=head2 borrower_message_preferences
623
624
Type: has_many
625
626
Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
627
628
=cut
629
630
__PACKAGE__->has_many(
631
  "borrower_message_preferences",
632
  "Koha::Schema::Result::BorrowerMessagePreference",
633
  { "foreign.borrowernumber" => "self.borrowernumber" },
634
  { cascade_copy => 0, cascade_delete => 0 },
635
);
636
637
=head2 categorycode
638
639
Type: belongs_to
640
641
Related object: L<Koha::Schema::Result::Category>
642
643
=cut
644
645
__PACKAGE__->belongs_to(
646
  "categorycode",
647
  "Koha::Schema::Result::Category",
648
  { categorycode => "categorycode" },
649
  { on_delete => "CASCADE", on_update => "CASCADE" },
650
);
651
652
=head2 branchcode
653
654
Type: belongs_to
655
656
Related object: L<Koha::Schema::Result::Branch>
657
658
=cut
659
660
__PACKAGE__->belongs_to(
661
  "branchcode",
662
  "Koha::Schema::Result::Branch",
663
  { branchcode => "branchcode" },
664
  { on_delete => "CASCADE", on_update => "CASCADE" },
665
);
666
667
=head2 course_instructors
668
669
Type: has_many
670
671
Related object: L<Koha::Schema::Result::CourseInstructor>
672
673
=cut
674
675
__PACKAGE__->has_many(
676
  "course_instructors",
677
  "Koha::Schema::Result::CourseInstructor",
678
  { "foreign.borrowernumber" => "self.borrowernumber" },
679
  { cascade_copy => 0, cascade_delete => 0 },
680
);
681
682
=head2 creator_batches
683
684
Type: has_many
685
686
Related object: L<Koha::Schema::Result::CreatorBatch>
687
688
=cut
689
690
__PACKAGE__->has_many(
691
  "creator_batches",
692
  "Koha::Schema::Result::CreatorBatch",
693
  { "foreign.borrower_number" => "self.borrowernumber" },
694
  { cascade_copy => 0, cascade_delete => 0 },
695
);
696
697
=head2 hold_fill_targets
698
699
Type: has_many
700
701
Related object: L<Koha::Schema::Result::HoldFillTarget>
702
703
=cut
704
705
__PACKAGE__->has_many(
706
  "hold_fill_targets",
707
  "Koha::Schema::Result::HoldFillTarget",
708
  { "foreign.borrowernumber" => "self.borrowernumber" },
709
  { cascade_copy => 0, cascade_delete => 0 },
710
);
711
712
=head2 issues
713
714
Type: has_many
715
716
Related object: L<Koha::Schema::Result::Issue>
717
718
=cut
719
720
__PACKAGE__->has_many(
721
  "issues",
722
  "Koha::Schema::Result::Issue",
723
  { "foreign.borrowernumber" => "self.borrowernumber" },
724
  { cascade_copy => 0, cascade_delete => 0 },
725
);
726
727
=head2 message_queues
728
729
Type: has_many
730
731
Related object: L<Koha::Schema::Result::MessageQueue>
732
733
=cut
734
735
__PACKAGE__->has_many(
736
  "message_queues",
737
  "Koha::Schema::Result::MessageQueue",
738
  { "foreign.borrowernumber" => "self.borrowernumber" },
739
  { cascade_copy => 0, cascade_delete => 0 },
740
);
741
742
=head2 old_issues
743
744
Type: has_many
745
746
Related object: L<Koha::Schema::Result::OldIssue>
747
748
=cut
749
750
__PACKAGE__->has_many(
751
  "old_issues",
752
  "Koha::Schema::Result::OldIssue",
753
  { "foreign.borrowernumber" => "self.borrowernumber" },
754
  { cascade_copy => 0, cascade_delete => 0 },
755
);
756
757
=head2 old_reserves
758
759
Type: has_many
760
761
Related object: L<Koha::Schema::Result::OldReserve>
762
763
=cut
764
765
__PACKAGE__->has_many(
766
  "old_reserves",
767
  "Koha::Schema::Result::OldReserve",
768
  { "foreign.borrowernumber" => "self.borrowernumber" },
769
  { cascade_copy => 0, cascade_delete => 0 },
770
);
771
772
=head2 patroncards
773
774
Type: has_many
775
776
Related object: L<Koha::Schema::Result::Patroncard>
777
778
=cut
779
780
__PACKAGE__->has_many(
781
  "patroncards",
782
  "Koha::Schema::Result::Patroncard",
783
  { "foreign.borrowernumber" => "self.borrowernumber" },
784
  { cascade_copy => 0, cascade_delete => 0 },
785
);
786
787
=head2 patronimage
788
789
Type: might_have
790
791
Related object: L<Koha::Schema::Result::Patronimage>
792
793
=cut
794
795
__PACKAGE__->might_have(
796
  "patronimage",
797
  "Koha::Schema::Result::Patronimage",
798
  { "foreign.cardnumber" => "self.cardnumber" },
799
  { cascade_copy => 0, cascade_delete => 0 },
800
);
801
802
=head2 ratings
803
804
Type: has_many
805
806
Related object: L<Koha::Schema::Result::Rating>
807
808
=cut
809
810
__PACKAGE__->has_many(
811
  "ratings",
812
  "Koha::Schema::Result::Rating",
813
  { "foreign.borrowernumber" => "self.borrowernumber" },
814
  { cascade_copy => 0, cascade_delete => 0 },
815
);
816
817
=head2 reserves
818
819
Type: has_many
820
821
Related object: L<Koha::Schema::Result::Reserve>
822
823
=cut
824
825
__PACKAGE__->has_many(
826
  "reserves",
827
  "Koha::Schema::Result::Reserve",
828
  { "foreign.borrowernumber" => "self.borrowernumber" },
829
  { cascade_copy => 0, cascade_delete => 0 },
830
);
831
832
=head2 reviews
833
834
Type: has_many
835
836
Related object: L<Koha::Schema::Result::Review>
837
838
=cut
839
840
__PACKAGE__->has_many(
841
  "reviews",
842
  "Koha::Schema::Result::Review",
843
  { "foreign.borrowernumber" => "self.borrowernumber" },
844
  { cascade_copy => 0, cascade_delete => 0 },
845
);
846
847
=head2 subscriptionroutinglists
848
849
Type: has_many
850
851
Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
852
853
=cut
854
855
__PACKAGE__->has_many(
856
  "subscriptionroutinglists",
857
  "Koha::Schema::Result::Subscriptionroutinglist",
858
  { "foreign.borrowernumber" => "self.borrowernumber" },
859
  { cascade_copy => 0, cascade_delete => 0 },
860
);
861
862
=head2 tags_all
863
864
Type: has_many
865
866
Related object: L<Koha::Schema::Result::TagAll>
867
868
=cut
869
870
__PACKAGE__->has_many(
871
  "tags_all",
872
  "Koha::Schema::Result::TagAll",
873
  { "foreign.borrowernumber" => "self.borrowernumber" },
874
  { cascade_copy => 0, cascade_delete => 0 },
875
);
876
877
=head2 tags_approvals
878
879
Type: has_many
880
881
Related object: L<Koha::Schema::Result::TagsApproval>
882
883
=cut
884
885
__PACKAGE__->has_many(
886
  "tags_approvals",
887
  "Koha::Schema::Result::TagsApproval",
888
  { "foreign.approved_by" => "self.borrowernumber" },
889
  { cascade_copy => 0, cascade_delete => 0 },
890
);
891
892
=head2 user_permissions
893
894
Type: has_many
895
896
Related object: L<Koha::Schema::Result::UserPermission>
897
898
=cut
899
900
__PACKAGE__->has_many(
901
  "user_permissions",
902
  "Koha::Schema::Result::UserPermission",
903
  { "foreign.borrowernumber" => "self.borrowernumber" },
904
  { cascade_copy => 0, cascade_delete => 0 },
905
);
906
907
=head2 virtualshelfcontents
908
909
Type: has_many
910
911
Related object: L<Koha::Schema::Result::Virtualshelfcontent>
912
913
=cut
914
915
__PACKAGE__->has_many(
916
  "virtualshelfcontents",
917
  "Koha::Schema::Result::Virtualshelfcontent",
918
  { "foreign.borrowernumber" => "self.borrowernumber" },
919
  { cascade_copy => 0, cascade_delete => 0 },
920
);
921
922
=head2 virtualshelfshares
923
924
Type: has_many
925
926
Related object: L<Koha::Schema::Result::Virtualshelfshare>
927
928
=cut
929
930
__PACKAGE__->has_many(
931
  "virtualshelfshares",
932
  "Koha::Schema::Result::Virtualshelfshare",
933
  { "foreign.borrowernumber" => "self.borrowernumber" },
934
  { cascade_copy => 0, cascade_delete => 0 },
935
);
936
937
=head2 virtualshelves
938
939
Type: has_many
940
941
Related object: L<Koha::Schema::Result::Virtualshelve>
942
943
=cut
944
945
__PACKAGE__->has_many(
946
  "virtualshelves",
947
  "Koha::Schema::Result::Virtualshelve",
948
  { "foreign.owner" => "self.borrowernumber" },
949
  { cascade_copy => 0, cascade_delete => 0 },
950
);
951
952
953
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
954
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RZG8l5yFKXZzsAY8CenNeA
955
956
957
# You can replace this text with custom content, and it will be preserved on regeneration
958
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: 255
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 => 255 },
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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
90
);
91
92
93
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LWaFw4Fk0Bj+K6JgDpicmA
95
96
97
# You can replace this text with custom content, and it will be preserved on regeneration
98
1;
(-)a/Koha/Schema/Result/BorrowerAttributeType.pm (+155 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: 10
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 => 10 },
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_attribute_types_branches
120
121
Type: has_many
122
123
Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
124
125
=cut
126
127
__PACKAGE__->has_many(
128
  "borrower_attribute_types_branches",
129
  "Koha::Schema::Result::BorrowerAttributeTypesBranch",
130
  { "foreign.bat_code" => "self.code" },
131
  { cascade_copy => 0, cascade_delete => 0 },
132
);
133
134
=head2 borrower_attributes
135
136
Type: has_many
137
138
Related object: L<Koha::Schema::Result::BorrowerAttribute>
139
140
=cut
141
142
__PACKAGE__->has_many(
143
  "borrower_attributes",
144
  "Koha::Schema::Result::BorrowerAttribute",
145
  { "foreign.code" => "self.code" },
146
  { cascade_copy => 0, cascade_delete => 0 },
147
);
148
149
150
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
151
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vwni0x6JLQPsjX8UOSnr4Q
152
153
154
# You can replace this text with custom content, and it will be preserved on regeneration
155
1;
(-)a/Koha/Schema/Result/BorrowerAttributeTypesBranch.pm (+83 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BorrowerAttributeTypesBranch;
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::BorrowerAttributeTypesBranch
15
16
=cut
17
18
__PACKAGE__->table("borrower_attribute_types_branches");
19
20
=head1 ACCESSORS
21
22
=head2 bat_code
23
24
  data_type: 'varchar'
25
  is_foreign_key: 1
26
  is_nullable: 1
27
  size: 10
28
29
=head2 b_branchcode
30
31
  data_type: 'varchar'
32
  is_foreign_key: 1
33
  is_nullable: 1
34
  size: 10
35
36
=cut
37
38
__PACKAGE__->add_columns(
39
  "bat_code",
40
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
41
  "b_branchcode",
42
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
43
);
44
45
=head1 RELATIONS
46
47
=head2 bat_code
48
49
Type: belongs_to
50
51
Related object: L<Koha::Schema::Result::BorrowerAttributeType>
52
53
=cut
54
55
__PACKAGE__->belongs_to(
56
  "bat_code",
57
  "Koha::Schema::Result::BorrowerAttributeType",
58
  { code => "bat_code" },
59
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
60
);
61
62
=head2 b_branchcode
63
64
Type: belongs_to
65
66
Related object: L<Koha::Schema::Result::Branch>
67
68
=cut
69
70
__PACKAGE__->belongs_to(
71
  "b_branchcode",
72
  "Koha::Schema::Result::Branch",
73
  { branchcode => "b_branchcode" },
74
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
75
);
76
77
78
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z/zsaV00AbPzi/YfCh+cwA
80
81
82
# You can replace this text with custom content, and it will be preserved on regeneration
83
1;
(-)a/Koha/Schema/Result/BorrowerFile.pm (+110 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BorrowerFile;
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::BorrowerFile
15
16
=cut
17
18
__PACKAGE__->table("borrower_files");
19
20
=head1 ACCESSORS
21
22
=head2 file_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 file_name
35
36
  data_type: 'varchar'
37
  is_nullable: 0
38
  size: 255
39
40
=head2 file_type
41
42
  data_type: 'varchar'
43
  is_nullable: 0
44
  size: 255
45
46
=head2 file_description
47
48
  data_type: 'varchar'
49
  is_nullable: 1
50
  size: 255
51
52
=head2 file_content
53
54
  data_type: 'longblob'
55
  is_nullable: 0
56
57
=head2 date_uploaded
58
59
  data_type: 'timestamp'
60
  default_value: current_timestamp
61
  is_nullable: 0
62
63
=cut
64
65
__PACKAGE__->add_columns(
66
  "file_id",
67
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
68
  "borrowernumber",
69
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
70
  "file_name",
71
  { data_type => "varchar", is_nullable => 0, size => 255 },
72
  "file_type",
73
  { data_type => "varchar", is_nullable => 0, size => 255 },
74
  "file_description",
75
  { data_type => "varchar", is_nullable => 1, size => 255 },
76
  "file_content",
77
  { data_type => "longblob", is_nullable => 0 },
78
  "date_uploaded",
79
  {
80
    data_type     => "timestamp",
81
    default_value => \"current_timestamp",
82
    is_nullable   => 0,
83
  },
84
);
85
__PACKAGE__->set_primary_key("file_id");
86
87
=head1 RELATIONS
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
  { on_delete => "CASCADE", on_update => "CASCADE" },
102
);
103
104
105
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5nM5pPcZmdSjcoBGIlTp9A
107
108
109
# You can replace this text with custom content, and it will be preserved on regeneration
110
1;
(-)a/Koha/Schema/Result/BorrowerMessagePreference.pm (+153 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
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
98
);
99
100
=head2 message_attribute
101
102
Type: belongs_to
103
104
Related object: L<Koha::Schema::Result::MessageAttribute>
105
106
=cut
107
108
__PACKAGE__->belongs_to(
109
  "message_attribute",
110
  "Koha::Schema::Result::MessageAttribute",
111
  { message_attribute_id => "message_attribute_id" },
112
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
113
);
114
115
=head2 categorycode
116
117
Type: belongs_to
118
119
Related object: L<Koha::Schema::Result::Category>
120
121
=cut
122
123
__PACKAGE__->belongs_to(
124
  "categorycode",
125
  "Koha::Schema::Result::Category",
126
  { categorycode => "categorycode" },
127
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
128
);
129
130
=head2 borrower_message_transport_preferences
131
132
Type: has_many
133
134
Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference>
135
136
=cut
137
138
__PACKAGE__->has_many(
139
  "borrower_message_transport_preferences",
140
  "Koha::Schema::Result::BorrowerMessageTransportPreference",
141
  {
142
    "foreign.borrower_message_preference_id" => "self.borrower_message_preference_id",
143
  },
144
  { cascade_copy => 0, cascade_delete => 0 },
145
);
146
147
148
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
149
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dP6LspN4dP65EGfApx6xIw
150
151
152
# You can replace this text with custom content, and it will be preserved on regeneration
153
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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
90
);
91
92
93
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Pqunp568ul/dBpW5ISwr7Q
95
96
97
# You can replace this text with custom content, and it will be preserved on regeneration
98
1;
(-)a/Koha/Schema/Result/BorrowerModification.pm (+554 lines)
Line 0 Link Here
1
package Koha::Schema::Result::BorrowerModification;
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::BorrowerModification
15
16
=cut
17
18
__PACKAGE__->table("borrower_modifications");
19
20
=head1 ACCESSORS
21
22
=head2 timestamp
23
24
  data_type: 'timestamp'
25
  default_value: current_timestamp
26
  is_nullable: 0
27
28
=head2 verification_token
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 255
34
35
=head2 borrowernumber
36
37
  data_type: 'integer'
38
  default_value: 0
39
  is_nullable: 0
40
41
=head2 cardnumber
42
43
  data_type: 'varchar'
44
  is_nullable: 1
45
  size: 16
46
47
=head2 surname
48
49
  data_type: 'mediumtext'
50
  is_nullable: 1
51
52
=head2 firstname
53
54
  data_type: 'text'
55
  is_nullable: 1
56
57
=head2 title
58
59
  data_type: 'mediumtext'
60
  is_nullable: 1
61
62
=head2 othernames
63
64
  data_type: 'mediumtext'
65
  is_nullable: 1
66
67
=head2 initials
68
69
  data_type: 'text'
70
  is_nullable: 1
71
72
=head2 streetnumber
73
74
  data_type: 'varchar'
75
  is_nullable: 1
76
  size: 10
77
78
=head2 streettype
79
80
  data_type: 'varchar'
81
  is_nullable: 1
82
  size: 50
83
84
=head2 address
85
86
  data_type: 'mediumtext'
87
  is_nullable: 1
88
89
=head2 address2
90
91
  data_type: 'text'
92
  is_nullable: 1
93
94
=head2 city
95
96
  data_type: 'mediumtext'
97
  is_nullable: 1
98
99
=head2 state
100
101
  data_type: 'text'
102
  is_nullable: 1
103
104
=head2 zipcode
105
106
  data_type: 'varchar'
107
  is_nullable: 1
108
  size: 25
109
110
=head2 country
111
112
  data_type: 'text'
113
  is_nullable: 1
114
115
=head2 email
116
117
  data_type: 'mediumtext'
118
  is_nullable: 1
119
120
=head2 phone
121
122
  data_type: 'text'
123
  is_nullable: 1
124
125
=head2 mobile
126
127
  data_type: 'varchar'
128
  is_nullable: 1
129
  size: 50
130
131
=head2 fax
132
133
  data_type: 'mediumtext'
134
  is_nullable: 1
135
136
=head2 emailpro
137
138
  data_type: 'text'
139
  is_nullable: 1
140
141
=head2 phonepro
142
143
  data_type: 'text'
144
  is_nullable: 1
145
146
=head2 b_streetnumber
147
148
  data_type: 'varchar'
149
  is_nullable: 1
150
  size: 10
151
152
=head2 b_streettype
153
154
  data_type: 'varchar'
155
  is_nullable: 1
156
  size: 50
157
158
=head2 b_address
159
160
  data_type: 'varchar'
161
  is_nullable: 1
162
  size: 100
163
164
=head2 b_address2
165
166
  data_type: 'text'
167
  is_nullable: 1
168
169
=head2 b_city
170
171
  data_type: 'mediumtext'
172
  is_nullable: 1
173
174
=head2 b_state
175
176
  data_type: 'text'
177
  is_nullable: 1
178
179
=head2 b_zipcode
180
181
  data_type: 'varchar'
182
  is_nullable: 1
183
  size: 25
184
185
=head2 b_country
186
187
  data_type: 'text'
188
  is_nullable: 1
189
190
=head2 b_email
191
192
  data_type: 'text'
193
  is_nullable: 1
194
195
=head2 b_phone
196
197
  data_type: 'mediumtext'
198
  is_nullable: 1
199
200
=head2 dateofbirth
201
202
  data_type: 'date'
203
  is_nullable: 1
204
205
=head2 branchcode
206
207
  data_type: 'varchar'
208
  is_nullable: 1
209
  size: 10
210
211
=head2 categorycode
212
213
  data_type: 'varchar'
214
  is_nullable: 1
215
  size: 10
216
217
=head2 dateenrolled
218
219
  data_type: 'date'
220
  is_nullable: 1
221
222
=head2 dateexpiry
223
224
  data_type: 'date'
225
  is_nullable: 1
226
227
=head2 gonenoaddress
228
229
  data_type: 'tinyint'
230
  is_nullable: 1
231
232
=head2 lost
233
234
  data_type: 'tinyint'
235
  is_nullable: 1
236
237
=head2 debarred
238
239
  data_type: 'date'
240
  is_nullable: 1
241
242
=head2 debarredcomment
243
244
  data_type: 'varchar'
245
  is_nullable: 1
246
  size: 255
247
248
=head2 contactname
249
250
  data_type: 'mediumtext'
251
  is_nullable: 1
252
253
=head2 contactfirstname
254
255
  data_type: 'text'
256
  is_nullable: 1
257
258
=head2 contacttitle
259
260
  data_type: 'text'
261
  is_nullable: 1
262
263
=head2 guarantorid
264
265
  data_type: 'integer'
266
  is_nullable: 1
267
268
=head2 borrowernotes
269
270
  data_type: 'mediumtext'
271
  is_nullable: 1
272
273
=head2 relationship
274
275
  data_type: 'varchar'
276
  is_nullable: 1
277
  size: 100
278
279
=head2 ethnicity
280
281
  data_type: 'varchar'
282
  is_nullable: 1
283
  size: 50
284
285
=head2 ethnotes
286
287
  data_type: 'varchar'
288
  is_nullable: 1
289
  size: 255
290
291
=head2 sex
292
293
  data_type: 'varchar'
294
  is_nullable: 1
295
  size: 1
296
297
=head2 password
298
299
  data_type: 'varchar'
300
  is_nullable: 1
301
  size: 30
302
303
=head2 flags
304
305
  data_type: 'integer'
306
  is_nullable: 1
307
308
=head2 userid
309
310
  data_type: 'varchar'
311
  is_nullable: 1
312
  size: 75
313
314
=head2 opacnote
315
316
  data_type: 'mediumtext'
317
  is_nullable: 1
318
319
=head2 contactnote
320
321
  data_type: 'varchar'
322
  is_nullable: 1
323
  size: 255
324
325
=head2 sort1
326
327
  data_type: 'varchar'
328
  is_nullable: 1
329
  size: 80
330
331
=head2 sort2
332
333
  data_type: 'varchar'
334
  is_nullable: 1
335
  size: 80
336
337
=head2 altcontactfirstname
338
339
  data_type: 'varchar'
340
  is_nullable: 1
341
  size: 255
342
343
=head2 altcontactsurname
344
345
  data_type: 'varchar'
346
  is_nullable: 1
347
  size: 255
348
349
=head2 altcontactaddress1
350
351
  data_type: 'varchar'
352
  is_nullable: 1
353
  size: 255
354
355
=head2 altcontactaddress2
356
357
  data_type: 'varchar'
358
  is_nullable: 1
359
  size: 255
360
361
=head2 altcontactaddress3
362
363
  data_type: 'varchar'
364
  is_nullable: 1
365
  size: 255
366
367
=head2 altcontactstate
368
369
  data_type: 'text'
370
  is_nullable: 1
371
372
=head2 altcontactzipcode
373
374
  data_type: 'varchar'
375
  is_nullable: 1
376
  size: 50
377
378
=head2 altcontactcountry
379
380
  data_type: 'text'
381
  is_nullable: 1
382
383
=head2 altcontactphone
384
385
  data_type: 'varchar'
386
  is_nullable: 1
387
  size: 50
388
389
=head2 smsalertnumber
390
391
  data_type: 'varchar'
392
  is_nullable: 1
393
  size: 50
394
395
=head2 privacy
396
397
  data_type: 'integer'
398
  is_nullable: 1
399
400
=cut
401
402
__PACKAGE__->add_columns(
403
  "timestamp",
404
  {
405
    data_type     => "timestamp",
406
    default_value => \"current_timestamp",
407
    is_nullable   => 0,
408
  },
409
  "verification_token",
410
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
411
  "borrowernumber",
412
  { data_type => "integer", default_value => 0, is_nullable => 0 },
413
  "cardnumber",
414
  { data_type => "varchar", is_nullable => 1, size => 16 },
415
  "surname",
416
  { data_type => "mediumtext", is_nullable => 1 },
417
  "firstname",
418
  { data_type => "text", is_nullable => 1 },
419
  "title",
420
  { data_type => "mediumtext", is_nullable => 1 },
421
  "othernames",
422
  { data_type => "mediumtext", is_nullable => 1 },
423
  "initials",
424
  { data_type => "text", is_nullable => 1 },
425
  "streetnumber",
426
  { data_type => "varchar", is_nullable => 1, size => 10 },
427
  "streettype",
428
  { data_type => "varchar", is_nullable => 1, size => 50 },
429
  "address",
430
  { data_type => "mediumtext", is_nullable => 1 },
431
  "address2",
432
  { data_type => "text", is_nullable => 1 },
433
  "city",
434
  { data_type => "mediumtext", is_nullable => 1 },
435
  "state",
436
  { data_type => "text", is_nullable => 1 },
437
  "zipcode",
438
  { data_type => "varchar", is_nullable => 1, size => 25 },
439
  "country",
440
  { data_type => "text", is_nullable => 1 },
441
  "email",
442
  { data_type => "mediumtext", is_nullable => 1 },
443
  "phone",
444
  { data_type => "text", is_nullable => 1 },
445
  "mobile",
446
  { data_type => "varchar", is_nullable => 1, size => 50 },
447
  "fax",
448
  { data_type => "mediumtext", is_nullable => 1 },
449
  "emailpro",
450
  { data_type => "text", is_nullable => 1 },
451
  "phonepro",
452
  { data_type => "text", is_nullable => 1 },
453
  "b_streetnumber",
454
  { data_type => "varchar", is_nullable => 1, size => 10 },
455
  "b_streettype",
456
  { data_type => "varchar", is_nullable => 1, size => 50 },
457
  "b_address",
458
  { data_type => "varchar", is_nullable => 1, size => 100 },
459
  "b_address2",
460
  { data_type => "text", is_nullable => 1 },
461
  "b_city",
462
  { data_type => "mediumtext", is_nullable => 1 },
463
  "b_state",
464
  { data_type => "text", is_nullable => 1 },
465
  "b_zipcode",
466
  { data_type => "varchar", is_nullable => 1, size => 25 },
467
  "b_country",
468
  { data_type => "text", is_nullable => 1 },
469
  "b_email",
470
  { data_type => "text", is_nullable => 1 },
471
  "b_phone",
472
  { data_type => "mediumtext", is_nullable => 1 },
473
  "dateofbirth",
474
  { data_type => "date", is_nullable => 1 },
475
  "branchcode",
476
  { data_type => "varchar", is_nullable => 1, size => 10 },
477
  "categorycode",
478
  { data_type => "varchar", is_nullable => 1, size => 10 },
479
  "dateenrolled",
480
  { data_type => "date", is_nullable => 1 },
481
  "dateexpiry",
482
  { data_type => "date", 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", 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", is_nullable => 1 },
545
);
546
__PACKAGE__->set_primary_key("verification_token", "borrowernumber");
547
548
549
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
550
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F50fjkEjqHuyl7zaEDV+3A
551
552
553
# You can replace this text with custom content, and it will be preserved on regeneration
554
1;
(-)a/Koha/Schema/Result/Branch.pm (+437 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 authorised_values_branches
162
163
Type: has_many
164
165
Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
166
167
=cut
168
169
__PACKAGE__->has_many(
170
  "authorised_values_branches",
171
  "Koha::Schema::Result::AuthorisedValuesBranch",
172
  { "foreign.branchcode" => "self.branchcode" },
173
  { cascade_copy => 0, cascade_delete => 0 },
174
);
175
176
=head2 borrower_attribute_types_branches
177
178
Type: has_many
179
180
Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
181
182
=cut
183
184
__PACKAGE__->has_many(
185
  "borrower_attribute_types_branches",
186
  "Koha::Schema::Result::BorrowerAttributeTypesBranch",
187
  { "foreign.b_branchcode" => "self.branchcode" },
188
  { cascade_copy => 0, cascade_delete => 0 },
189
);
190
191
=head2 borrowers
192
193
Type: has_many
194
195
Related object: L<Koha::Schema::Result::Borrower>
196
197
=cut
198
199
__PACKAGE__->has_many(
200
  "borrowers",
201
  "Koha::Schema::Result::Borrower",
202
  { "foreign.branchcode" => "self.branchcode" },
203
  { cascade_copy => 0, cascade_delete => 0 },
204
);
205
206
=head2 branch_borrower_circ_rules
207
208
Type: has_many
209
210
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
211
212
=cut
213
214
__PACKAGE__->has_many(
215
  "branch_borrower_circ_rules",
216
  "Koha::Schema::Result::BranchBorrowerCircRule",
217
  { "foreign.branchcode" => "self.branchcode" },
218
  { cascade_copy => 0, cascade_delete => 0 },
219
);
220
221
=head2 branch_item_rules
222
223
Type: has_many
224
225
Related object: L<Koha::Schema::Result::BranchItemRule>
226
227
=cut
228
229
__PACKAGE__->has_many(
230
  "branch_item_rules",
231
  "Koha::Schema::Result::BranchItemRule",
232
  { "foreign.branchcode" => "self.branchcode" },
233
  { cascade_copy => 0, cascade_delete => 0 },
234
);
235
236
=head2 branchrelations
237
238
Type: has_many
239
240
Related object: L<Koha::Schema::Result::Branchrelation>
241
242
=cut
243
244
__PACKAGE__->has_many(
245
  "branchrelations",
246
  "Koha::Schema::Result::Branchrelation",
247
  { "foreign.branchcode" => "self.branchcode" },
248
  { cascade_copy => 0, cascade_delete => 0 },
249
);
250
251
=head2 branchtransfers_frombranches
252
253
Type: has_many
254
255
Related object: L<Koha::Schema::Result::Branchtransfer>
256
257
=cut
258
259
__PACKAGE__->has_many(
260
  "branchtransfers_frombranches",
261
  "Koha::Schema::Result::Branchtransfer",
262
  { "foreign.frombranch" => "self.branchcode" },
263
  { cascade_copy => 0, cascade_delete => 0 },
264
);
265
266
=head2 branchtransfers_tobranches
267
268
Type: has_many
269
270
Related object: L<Koha::Schema::Result::Branchtransfer>
271
272
=cut
273
274
__PACKAGE__->has_many(
275
  "branchtransfers_tobranches",
276
  "Koha::Schema::Result::Branchtransfer",
277
  { "foreign.tobranch" => "self.branchcode" },
278
  { cascade_copy => 0, cascade_delete => 0 },
279
);
280
281
=head2 categories_branches
282
283
Type: has_many
284
285
Related object: L<Koha::Schema::Result::CategoriesBranch>
286
287
=cut
288
289
__PACKAGE__->has_many(
290
  "categories_branches",
291
  "Koha::Schema::Result::CategoriesBranch",
292
  { "foreign.branchcode" => "self.branchcode" },
293
  { cascade_copy => 0, cascade_delete => 0 },
294
);
295
296
=head2 course_items
297
298
Type: has_many
299
300
Related object: L<Koha::Schema::Result::CourseItem>
301
302
=cut
303
304
__PACKAGE__->has_many(
305
  "course_items",
306
  "Koha::Schema::Result::CourseItem",
307
  { "foreign.holdingbranch" => "self.branchcode" },
308
  { cascade_copy => 0, cascade_delete => 0 },
309
);
310
311
=head2 creator_batches
312
313
Type: has_many
314
315
Related object: L<Koha::Schema::Result::CreatorBatch>
316
317
=cut
318
319
__PACKAGE__->has_many(
320
  "creator_batches",
321
  "Koha::Schema::Result::CreatorBatch",
322
  { "foreign.branch_code" => "self.branchcode" },
323
  { cascade_copy => 0, cascade_delete => 0 },
324
);
325
326
=head2 default_branch_circ_rule
327
328
Type: might_have
329
330
Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
331
332
=cut
333
334
__PACKAGE__->might_have(
335
  "default_branch_circ_rule",
336
  "Koha::Schema::Result::DefaultBranchCircRule",
337
  { "foreign.branchcode" => "self.branchcode" },
338
  { cascade_copy => 0, cascade_delete => 0 },
339
);
340
341
=head2 hold_fill_targets
342
343
Type: has_many
344
345
Related object: L<Koha::Schema::Result::HoldFillTarget>
346
347
=cut
348
349
__PACKAGE__->has_many(
350
  "hold_fill_targets",
351
  "Koha::Schema::Result::HoldFillTarget",
352
  { "foreign.source_branchcode" => "self.branchcode" },
353
  { cascade_copy => 0, cascade_delete => 0 },
354
);
355
356
=head2 items_homebranches
357
358
Type: has_many
359
360
Related object: L<Koha::Schema::Result::Item>
361
362
=cut
363
364
__PACKAGE__->has_many(
365
  "items_homebranches",
366
  "Koha::Schema::Result::Item",
367
  { "foreign.homebranch" => "self.branchcode" },
368
  { cascade_copy => 0, cascade_delete => 0 },
369
);
370
371
=head2 items_holdingbranches
372
373
Type: has_many
374
375
Related object: L<Koha::Schema::Result::Item>
376
377
=cut
378
379
__PACKAGE__->has_many(
380
  "items_holdingbranches",
381
  "Koha::Schema::Result::Item",
382
  { "foreign.holdingbranch" => "self.branchcode" },
383
  { cascade_copy => 0, cascade_delete => 0 },
384
);
385
386
=head2 reserves
387
388
Type: has_many
389
390
Related object: L<Koha::Schema::Result::Reserve>
391
392
=cut
393
394
__PACKAGE__->has_many(
395
  "reserves",
396
  "Koha::Schema::Result::Reserve",
397
  { "foreign.branchcode" => "self.branchcode" },
398
  { cascade_copy => 0, cascade_delete => 0 },
399
);
400
401
=head2 transport_cost_frombranches
402
403
Type: has_many
404
405
Related object: L<Koha::Schema::Result::TransportCost>
406
407
=cut
408
409
__PACKAGE__->has_many(
410
  "transport_cost_frombranches",
411
  "Koha::Schema::Result::TransportCost",
412
  { "foreign.frombranch" => "self.branchcode" },
413
  { cascade_copy => 0, cascade_delete => 0 },
414
);
415
416
=head2 transport_cost_tobranches
417
418
Type: has_many
419
420
Related object: L<Koha::Schema::Result::TransportCost>
421
422
=cut
423
424
__PACKAGE__->has_many(
425
  "transport_cost_tobranches",
426
  "Koha::Schema::Result::TransportCost",
427
  { "foreign.tobranch" => "self.branchcode" },
428
  { cascade_copy => 0, cascade_delete => 0 },
429
);
430
431
432
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
433
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BS/6xtFAoMSKsXho4IXXjQ
434
435
436
# You can replace this text with custom content, and it will be preserved on regeneration
437
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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
83
);
84
85
86
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Urf4PD4Ob8D3kqgvz7PGtA
88
89
90
# You can replace this text with custom content, 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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
91
);
92
93
94
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Pbf8S6Y9k2teX1337IGIA
96
97
98
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5tloMmwsDVXChfqSMEPOoA
71
72
73
# You can replace this text with custom content, and it will be preserved on regeneration
74
1;
(-)a/Koha/Schema/Result/Branchcategory.pm (+91 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
=head2 show_in_pulldown
47
48
  data_type: 'tinyint'
49
  default_value: 0
50
  is_nullable: 0
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "categorycode",
56
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
57
  "categoryname",
58
  { data_type => "varchar", is_nullable => 1, size => 32 },
59
  "codedescription",
60
  { data_type => "mediumtext", is_nullable => 1 },
61
  "categorytype",
62
  { data_type => "varchar", is_nullable => 1, size => 16 },
63
  "show_in_pulldown",
64
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
65
);
66
__PACKAGE__->set_primary_key("categorycode");
67
68
=head1 RELATIONS
69
70
=head2 branchrelations
71
72
Type: has_many
73
74
Related object: L<Koha::Schema::Result::Branchrelation>
75
76
=cut
77
78
__PACKAGE__->has_many(
79
  "branchrelations",
80
  "Koha::Schema::Result::Branchrelation",
81
  { "foreign.categorycode" => "self.categorycode" },
82
  { cascade_copy => 0, cascade_delete => 0 },
83
);
84
85
86
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VkvImio07fpqmHCntPn5+w
88
89
90
# You can replace this text with custom content, and it will be preserved on regeneration
91
1;
(-)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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
90
);
91
92
93
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VFoJV/KyMCVH7/fD5bSY/w
95
96
97
# You can replace this text with custom content, and it will be preserved on regeneration
98
1;
(-)a/Koha/Schema/Result/Branchtransfer.pm (+147 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
  is_nullable: 1
33
34
=head2 frombranch
35
36
  data_type: 'varchar'
37
  default_value: (empty string)
38
  is_foreign_key: 1
39
  is_nullable: 0
40
  size: 10
41
42
=head2 datearrived
43
44
  data_type: 'datetime'
45
  is_nullable: 1
46
47
=head2 tobranch
48
49
  data_type: 'varchar'
50
  default_value: (empty string)
51
  is_foreign_key: 1
52
  is_nullable: 0
53
  size: 10
54
55
=head2 comments
56
57
  data_type: 'mediumtext'
58
  is_nullable: 1
59
60
=cut
61
62
__PACKAGE__->add_columns(
63
  "itemnumber",
64
  {
65
    data_type      => "integer",
66
    default_value  => 0,
67
    is_foreign_key => 1,
68
    is_nullable    => 0,
69
  },
70
  "datesent",
71
  { data_type => "datetime", is_nullable => 1 },
72
  "frombranch",
73
  {
74
    data_type => "varchar",
75
    default_value => "",
76
    is_foreign_key => 1,
77
    is_nullable => 0,
78
    size => 10,
79
  },
80
  "datearrived",
81
  { data_type => "datetime", is_nullable => 1 },
82
  "tobranch",
83
  {
84
    data_type => "varchar",
85
    default_value => "",
86
    is_foreign_key => 1,
87
    is_nullable => 0,
88
    size => 10,
89
  },
90
  "comments",
91
  { data_type => "mediumtext", is_nullable => 1 },
92
);
93
94
=head1 RELATIONS
95
96
=head2 frombranch
97
98
Type: belongs_to
99
100
Related object: L<Koha::Schema::Result::Branch>
101
102
=cut
103
104
__PACKAGE__->belongs_to(
105
  "frombranch",
106
  "Koha::Schema::Result::Branch",
107
  { branchcode => "frombranch" },
108
  { on_delete => "CASCADE", on_update => "CASCADE" },
109
);
110
111
=head2 tobranch
112
113
Type: belongs_to
114
115
Related object: L<Koha::Schema::Result::Branch>
116
117
=cut
118
119
__PACKAGE__->belongs_to(
120
  "tobranch",
121
  "Koha::Schema::Result::Branch",
122
  { branchcode => "tobranch" },
123
  { on_delete => "CASCADE", on_update => "CASCADE" },
124
);
125
126
=head2 itemnumber
127
128
Type: belongs_to
129
130
Related object: L<Koha::Schema::Result::Item>
131
132
=cut
133
134
__PACKAGE__->belongs_to(
135
  "itemnumber",
136
  "Koha::Schema::Result::Item",
137
  { itemnumber => "itemnumber" },
138
  { on_delete => "CASCADE", on_update => "CASCADE" },
139
);
140
141
142
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
143
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ojdZ8a0zDyBQi7MaMtCSuQ
144
145
146
# You can replace this text with custom content, and it will be preserved on regeneration
147
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.07000 @ 2012-09-02 08:44:15
66
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PdemP//rSRmiSjwhmhigdA
67
68
69
# You can replace this text with custom content, and it will be preserved on regeneration
70
1;
(-)a/Koha/Schema/Result/CategoriesBranch.pm (+83 lines)
Line 0 Link Here
1
package Koha::Schema::Result::CategoriesBranch;
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::CategoriesBranch
15
16
=cut
17
18
__PACKAGE__->table("categories_branches");
19
20
=head1 ACCESSORS
21
22
=head2 categorycode
23
24
  data_type: 'varchar'
25
  is_foreign_key: 1
26
  is_nullable: 1
27
  size: 10
28
29
=head2 branchcode
30
31
  data_type: 'varchar'
32
  is_foreign_key: 1
33
  is_nullable: 1
34
  size: 10
35
36
=cut
37
38
__PACKAGE__->add_columns(
39
  "categorycode",
40
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
41
  "branchcode",
42
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
43
);
44
45
=head1 RELATIONS
46
47
=head2 categorycode
48
49
Type: belongs_to
50
51
Related object: L<Koha::Schema::Result::Category>
52
53
=cut
54
55
__PACKAGE__->belongs_to(
56
  "categorycode",
57
  "Koha::Schema::Result::Category",
58
  { categorycode => "categorycode" },
59
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
60
);
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
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
75
);
76
77
78
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SVolMqOZ2fpkPdSCSjpDUA
80
81
82
# You can replace this text with custom content, and it will be preserved on regeneration
83
1;
(-)a/Koha/Schema/Result/Category.pm (+217 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
  is_nullable: 1
43
44
=head2 upperagelimit
45
46
  data_type: 'smallint'
47
  is_nullable: 1
48
49
=head2 dateofbirthrequired
50
51
  data_type: 'tinyint'
52
  is_nullable: 1
53
54
=head2 finetype
55
56
  data_type: 'varchar'
57
  is_nullable: 1
58
  size: 30
59
60
=head2 bulk
61
62
  data_type: 'tinyint'
63
  is_nullable: 1
64
65
=head2 enrolmentfee
66
67
  data_type: 'decimal'
68
  is_nullable: 1
69
  size: [28,6]
70
71
=head2 overduenoticerequired
72
73
  data_type: 'tinyint'
74
  is_nullable: 1
75
76
=head2 issuelimit
77
78
  data_type: 'smallint'
79
  is_nullable: 1
80
81
=head2 reservefee
82
83
  data_type: 'decimal'
84
  is_nullable: 1
85
  size: [28,6]
86
87
=head2 hidelostitems
88
89
  data_type: 'tinyint'
90
  default_value: 0
91
  is_nullable: 0
92
93
=head2 category_type
94
95
  data_type: 'varchar'
96
  default_value: 'A'
97
  is_nullable: 0
98
  size: 1
99
100
=cut
101
102
__PACKAGE__->add_columns(
103
  "categorycode",
104
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
105
  "description",
106
  { data_type => "mediumtext", is_nullable => 1 },
107
  "enrolmentperiod",
108
  { data_type => "smallint", is_nullable => 1 },
109
  "enrolmentperioddate",
110
  { data_type => "date", is_nullable => 1 },
111
  "upperagelimit",
112
  { data_type => "smallint", is_nullable => 1 },
113
  "dateofbirthrequired",
114
  { data_type => "tinyint", is_nullable => 1 },
115
  "finetype",
116
  { data_type => "varchar", is_nullable => 1, size => 30 },
117
  "bulk",
118
  { data_type => "tinyint", is_nullable => 1 },
119
  "enrolmentfee",
120
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
121
  "overduenoticerequired",
122
  { data_type => "tinyint", is_nullable => 1 },
123
  "issuelimit",
124
  { data_type => "smallint", is_nullable => 1 },
125
  "reservefee",
126
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
127
  "hidelostitems",
128
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
129
  "category_type",
130
  { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 },
131
);
132
__PACKAGE__->set_primary_key("categorycode");
133
134
=head1 RELATIONS
135
136
=head2 borrower_message_preferences
137
138
Type: has_many
139
140
Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
141
142
=cut
143
144
__PACKAGE__->has_many(
145
  "borrower_message_preferences",
146
  "Koha::Schema::Result::BorrowerMessagePreference",
147
  { "foreign.categorycode" => "self.categorycode" },
148
  { cascade_copy => 0, cascade_delete => 0 },
149
);
150
151
=head2 borrowers
152
153
Type: has_many
154
155
Related object: L<Koha::Schema::Result::Borrower>
156
157
=cut
158
159
__PACKAGE__->has_many(
160
  "borrowers",
161
  "Koha::Schema::Result::Borrower",
162
  { "foreign.categorycode" => "self.categorycode" },
163
  { cascade_copy => 0, cascade_delete => 0 },
164
);
165
166
=head2 branch_borrower_circ_rules
167
168
Type: has_many
169
170
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
171
172
=cut
173
174
__PACKAGE__->has_many(
175
  "branch_borrower_circ_rules",
176
  "Koha::Schema::Result::BranchBorrowerCircRule",
177
  { "foreign.categorycode" => "self.categorycode" },
178
  { cascade_copy => 0, cascade_delete => 0 },
179
);
180
181
=head2 categories_branches
182
183
Type: has_many
184
185
Related object: L<Koha::Schema::Result::CategoriesBranch>
186
187
=cut
188
189
__PACKAGE__->has_many(
190
  "categories_branches",
191
  "Koha::Schema::Result::CategoriesBranch",
192
  { "foreign.categorycode" => "self.categorycode" },
193
  { cascade_copy => 0, cascade_delete => 0 },
194
);
195
196
=head2 default_borrower_circ_rule
197
198
Type: might_have
199
200
Related object: L<Koha::Schema::Result::DefaultBorrowerCircRule>
201
202
=cut
203
204
__PACKAGE__->might_have(
205
  "default_borrower_circ_rule",
206
  "Koha::Schema::Result::DefaultBorrowerCircRule",
207
  { "foreign.categorycode" => "self.categorycode" },
208
  { cascade_copy => 0, cascade_delete => 0 },
209
);
210
211
212
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
213
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rQnbpUtXD6tNSnSGpowcaw
214
215
216
# You can replace this text with custom content, and it will be preserved on regeneration
217
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.07000 @ 2013-06-18 13:13:57
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ziAiH8vvSS8OzKHZBcpUow
72
73
74
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
72
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3JLMzBsuge+hUAqcXVtgzQ
73
74
75
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
83
);
84
85
86
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fot5u8I5lS5/W0bHPD0Rpw
88
89
90
# You can replace this text with custom content, and it will be preserved on regeneration
91
1;
(-)a/Koha/Schema/Result/Closure.pm (+79 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Closure;
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::Closure
15
16
=cut
17
18
__PACKAGE__->table("closure");
19
20
=head1 ACCESSORS
21
22
=head2 closureid
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 description
29
30
  data_type: 'text'
31
  is_nullable: 1
32
33
=head2 branchcode
34
35
  data_type: 'varchar'
36
  is_nullable: 0
37
  size: 10
38
39
=head2 title
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 255
44
45
=head2 event_start
46
47
  data_type: 'datetime'
48
  is_nullable: 1
49
50
=head2 event_end
51
52
  data_type: 'datetime'
53
  is_nullable: 1
54
55
=cut
56
57
__PACKAGE__->add_columns(
58
  "closureid",
59
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60
  "description",
61
  { data_type => "text", is_nullable => 1 },
62
  "branchcode",
63
  { data_type => "varchar", is_nullable => 0, size => 10 },
64
  "title",
65
  { data_type => "varchar", is_nullable => 1, size => 255 },
66
  "event_start",
67
  { data_type => "datetime", is_nullable => 1 },
68
  "event_end",
69
  { data_type => "datetime", is_nullable => 1 },
70
);
71
__PACKAGE__->set_primary_key("closureid");
72
73
74
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
75
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yA2qWZ8+Om9n0UAev2wl1Q
76
77
78
# You can replace this text with custom content, and it will be preserved on regeneration
79
1;
(-)a/Koha/Schema/Result/ClosureRrule.pm (+69 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ClosureRrule;
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::ClosureRrule
15
16
=cut
17
18
__PACKAGE__->table("closure_rrule");
19
20
=head1 ACCESSORS
21
22
=head2 closureid
23
24
  data_type: 'integer'
25
  is_nullable: 1
26
27
=head2 recurrence_start
28
29
  data_type: 'datetime'
30
  is_nullable: 1
31
32
=head2 recurrence_end
33
34
  data_type: 'datetime'
35
  is_nullable: 1
36
37
=head2 frequency
38
39
  data_type: 'varchar'
40
  is_nullable: 1
41
  size: 10
42
43
=head2 days_interval
44
45
  data_type: 'integer'
46
  is_nullable: 1
47
48
=cut
49
50
__PACKAGE__->add_columns(
51
  "closureid",
52
  { data_type => "integer", is_nullable => 1 },
53
  "recurrence_start",
54
  { data_type => "datetime", is_nullable => 1 },
55
  "recurrence_end",
56
  { data_type => "datetime", is_nullable => 1 },
57
  "frequency",
58
  { data_type => "varchar", is_nullable => 1, size => 10 },
59
  "days_interval",
60
  { data_type => "integer", is_nullable => 1 },
61
);
62
63
64
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
65
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g4CMCw0JgKii7mgfHkqThQ
66
67
68
# You can replace this text with custom content, and it will be preserved on regeneration
69
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.07000 @ 2012-09-02 08:44:15
62
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MCaPTe+sCHOw8R6O+qFRIA
63
64
65
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
54
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OV5D03dIIo/pCuRSBPsXsg
55
56
57
# You can replace this text with custom content, and it will be preserved on regeneration
58
1;
(-)a/Koha/Schema/Result/Course.pm (+162 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Course;
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::Course
15
16
=cut
17
18
__PACKAGE__->table("courses");
19
20
=head1 ACCESSORS
21
22
=head2 course_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 department
29
30
  data_type: 'varchar'
31
  is_nullable: 1
32
  size: 20
33
34
=head2 course_number
35
36
  data_type: 'varchar'
37
  is_nullable: 1
38
  size: 255
39
40
=head2 section
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 255
45
46
=head2 course_name
47
48
  data_type: 'varchar'
49
  is_nullable: 1
50
  size: 255
51
52
=head2 term
53
54
  data_type: 'varchar'
55
  is_nullable: 1
56
  size: 20
57
58
=head2 staff_note
59
60
  data_type: 'mediumtext'
61
  is_nullable: 1
62
63
=head2 public_note
64
65
  data_type: 'mediumtext'
66
  is_nullable: 1
67
68
=head2 students_count
69
70
  data_type: 'varchar'
71
  is_nullable: 1
72
  size: 20
73
74
=head2 enabled
75
76
  data_type: 'enum'
77
  default_value: 'yes'
78
  extra: {list => ["yes","no"]}
79
  is_nullable: 0
80
81
=head2 timestamp
82
83
  data_type: 'timestamp'
84
  default_value: current_timestamp
85
  is_nullable: 0
86
87
=cut
88
89
__PACKAGE__->add_columns(
90
  "course_id",
91
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
92
  "department",
93
  { data_type => "varchar", is_nullable => 1, size => 20 },
94
  "course_number",
95
  { data_type => "varchar", is_nullable => 1, size => 255 },
96
  "section",
97
  { data_type => "varchar", is_nullable => 1, size => 255 },
98
  "course_name",
99
  { data_type => "varchar", is_nullable => 1, size => 255 },
100
  "term",
101
  { data_type => "varchar", is_nullable => 1, size => 20 },
102
  "staff_note",
103
  { data_type => "mediumtext", is_nullable => 1 },
104
  "public_note",
105
  { data_type => "mediumtext", is_nullable => 1 },
106
  "students_count",
107
  { data_type => "varchar", is_nullable => 1, size => 20 },
108
  "enabled",
109
  {
110
    data_type => "enum",
111
    default_value => "yes",
112
    extra => { list => ["yes", "no"] },
113
    is_nullable => 0,
114
  },
115
  "timestamp",
116
  {
117
    data_type     => "timestamp",
118
    default_value => \"current_timestamp",
119
    is_nullable   => 0,
120
  },
121
);
122
__PACKAGE__->set_primary_key("course_id");
123
124
=head1 RELATIONS
125
126
=head2 course_instructors
127
128
Type: has_many
129
130
Related object: L<Koha::Schema::Result::CourseInstructor>
131
132
=cut
133
134
__PACKAGE__->has_many(
135
  "course_instructors",
136
  "Koha::Schema::Result::CourseInstructor",
137
  { "foreign.course_id" => "self.course_id" },
138
  { cascade_copy => 0, cascade_delete => 0 },
139
);
140
141
=head2 course_reserves
142
143
Type: has_many
144
145
Related object: L<Koha::Schema::Result::CourseReserve>
146
147
=cut
148
149
__PACKAGE__->has_many(
150
  "course_reserves",
151
  "Koha::Schema::Result::CourseReserve",
152
  { "foreign.course_id" => "self.course_id" },
153
  { cascade_copy => 0, cascade_delete => 0 },
154
);
155
156
157
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
158
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SN5SfQi+SbfPr069wck64w
159
160
161
# You can replace this text with custom content, and it will be preserved on regeneration
162
1;
(-)a/Koha/Schema/Result/CourseInstructor.pm (+82 lines)
Line 0 Link Here
1
package Koha::Schema::Result::CourseInstructor;
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::CourseInstructor
15
16
=cut
17
18
__PACKAGE__->table("course_instructors");
19
20
=head1 ACCESSORS
21
22
=head2 course_id
23
24
  data_type: 'integer'
25
  is_foreign_key: 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
=cut
35
36
__PACKAGE__->add_columns(
37
  "course_id",
38
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
39
  "borrowernumber",
40
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
41
);
42
__PACKAGE__->set_primary_key("course_id", "borrowernumber");
43
44
=head1 RELATIONS
45
46
=head2 course
47
48
Type: belongs_to
49
50
Related object: L<Koha::Schema::Result::Course>
51
52
=cut
53
54
__PACKAGE__->belongs_to(
55
  "course",
56
  "Koha::Schema::Result::Course",
57
  { course_id => "course_id" },
58
  { on_delete => "CASCADE", on_update => "CASCADE" },
59
);
60
61
=head2 borrowernumber
62
63
Type: belongs_to
64
65
Related object: L<Koha::Schema::Result::Borrower>
66
67
=cut
68
69
__PACKAGE__->belongs_to(
70
  "borrowernumber",
71
  "Koha::Schema::Result::Borrower",
72
  { borrowernumber => "borrowernumber" },
73
  { on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zPwefIbI2Pz0pX03KpS1eQ
79
80
81
# You can replace this text with custom content, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/CourseItem.pm (+142 lines)
Line 0 Link Here
1
package Koha::Schema::Result::CourseItem;
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::CourseItem
15
16
=cut
17
18
__PACKAGE__->table("course_items");
19
20
=head1 ACCESSORS
21
22
=head2 ci_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 itemnumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 itype
35
36
  data_type: 'varchar'
37
  is_nullable: 1
38
  size: 10
39
40
=head2 ccode
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 10
45
46
=head2 holdingbranch
47
48
  data_type: 'varchar'
49
  is_foreign_key: 1
50
  is_nullable: 1
51
  size: 10
52
53
=head2 location
54
55
  data_type: 'varchar'
56
  is_nullable: 1
57
  size: 80
58
59
=head2 enabled
60
61
  data_type: 'enum'
62
  default_value: 'no'
63
  extra: {list => ["yes","no"]}
64
  is_nullable: 0
65
66
=head2 timestamp
67
68
  data_type: 'timestamp'
69
  default_value: current_timestamp
70
  is_nullable: 0
71
72
=cut
73
74
__PACKAGE__->add_columns(
75
  "ci_id",
76
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
77
  "itemnumber",
78
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
79
  "itype",
80
  { data_type => "varchar", is_nullable => 1, size => 10 },
81
  "ccode",
82
  { data_type => "varchar", is_nullable => 1, size => 10 },
83
  "holdingbranch",
84
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
85
  "location",
86
  { data_type => "varchar", is_nullable => 1, size => 80 },
87
  "enabled",
88
  {
89
    data_type => "enum",
90
    default_value => "no",
91
    extra => { list => ["yes", "no"] },
92
    is_nullable => 0,
93
  },
94
  "timestamp",
95
  {
96
    data_type     => "timestamp",
97
    default_value => \"current_timestamp",
98
    is_nullable   => 0,
99
  },
100
);
101
__PACKAGE__->set_primary_key("ci_id");
102
__PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]);
103
104
=head1 RELATIONS
105
106
=head2 holdingbranch
107
108
Type: belongs_to
109
110
Related object: L<Koha::Schema::Result::Branch>
111
112
=cut
113
114
__PACKAGE__->belongs_to(
115
  "holdingbranch",
116
  "Koha::Schema::Result::Branch",
117
  { branchcode => "holdingbranch" },
118
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
119
);
120
121
=head2 itemnumber
122
123
Type: belongs_to
124
125
Related object: L<Koha::Schema::Result::Item>
126
127
=cut
128
129
__PACKAGE__->belongs_to(
130
  "itemnumber",
131
  "Koha::Schema::Result::Item",
132
  { itemnumber => "itemnumber" },
133
  { on_delete => "CASCADE", on_update => "CASCADE" },
134
);
135
136
137
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
138
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BAqW3ImuEzBoIMWAeM12qA
139
140
141
# You can replace this text with custom content, and it will be preserved on regeneration
142
1;
(-)a/Koha/Schema/Result/CourseReserve.pm (+101 lines)
Line 0 Link Here
1
package Koha::Schema::Result::CourseReserve;
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::CourseReserve
15
16
=cut
17
18
__PACKAGE__->table("course_reserves");
19
20
=head1 ACCESSORS
21
22
=head2 cr_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 course_id
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
33
34
=head2 ci_id
35
36
  data_type: 'integer'
37
  is_nullable: 0
38
39
=head2 staff_note
40
41
  data_type: 'mediumtext'
42
  is_nullable: 1
43
44
=head2 public_note
45
46
  data_type: 'mediumtext'
47
  is_nullable: 1
48
49
=head2 timestamp
50
51
  data_type: 'timestamp'
52
  default_value: current_timestamp
53
  is_nullable: 0
54
55
=cut
56
57
__PACKAGE__->add_columns(
58
  "cr_id",
59
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60
  "course_id",
61
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62
  "ci_id",
63
  { data_type => "integer", is_nullable => 0 },
64
  "staff_note",
65
  { data_type => "mediumtext", is_nullable => 1 },
66
  "public_note",
67
  { data_type => "mediumtext", is_nullable => 1 },
68
  "timestamp",
69
  {
70
    data_type     => "timestamp",
71
    default_value => \"current_timestamp",
72
    is_nullable   => 0,
73
  },
74
);
75
__PACKAGE__->set_primary_key("cr_id");
76
__PACKAGE__->add_unique_constraint("pseudo_key", ["course_id", "ci_id"]);
77
78
=head1 RELATIONS
79
80
=head2 course
81
82
Type: belongs_to
83
84
Related object: L<Koha::Schema::Result::Course>
85
86
=cut
87
88
__PACKAGE__->belongs_to(
89
  "course",
90
  "Koha::Schema::Result::Course",
91
  { course_id => "course_id" },
92
  { on_delete => "CASCADE", on_update => "CASCADE" },
93
);
94
95
96
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
97
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LUZRTXuhywezgITcSqqDJQ
98
99
100
# You can replace this text with custom content, and it will be preserved on regeneration
101
1;
(-)a/Koha/Schema/Result/CreatorBatch.pm (+155 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
  default_value: current_timestamp
50
  is_nullable: 0
51
52
=head2 branch_code
53
54
  data_type: 'varchar'
55
  default_value: 'NB'
56
  is_foreign_key: 1
57
  is_nullable: 0
58
  size: 10
59
60
=head2 creator
61
62
  data_type: 'char'
63
  default_value: 'Labels'
64
  is_nullable: 0
65
  size: 15
66
67
=cut
68
69
__PACKAGE__->add_columns(
70
  "label_id",
71
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
72
  "batch_id",
73
  { data_type => "integer", default_value => 1, is_nullable => 0 },
74
  "item_number",
75
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
76
  "borrower_number",
77
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
78
  "timestamp",
79
  {
80
    data_type     => "timestamp",
81
    default_value => \"current_timestamp",
82
    is_nullable   => 0,
83
  },
84
  "branch_code",
85
  {
86
    data_type => "varchar",
87
    default_value => "NB",
88
    is_foreign_key => 1,
89
    is_nullable => 0,
90
    size => 10,
91
  },
92
  "creator",
93
  {
94
    data_type => "char",
95
    default_value => "Labels",
96
    is_nullable => 0,
97
    size => 15,
98
  },
99
);
100
__PACKAGE__->set_primary_key("label_id");
101
102
=head1 RELATIONS
103
104
=head2 borrower_number
105
106
Type: belongs_to
107
108
Related object: L<Koha::Schema::Result::Borrower>
109
110
=cut
111
112
__PACKAGE__->belongs_to(
113
  "borrower_number",
114
  "Koha::Schema::Result::Borrower",
115
  { borrowernumber => "borrower_number" },
116
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
117
);
118
119
=head2 branch_code
120
121
Type: belongs_to
122
123
Related object: L<Koha::Schema::Result::Branch>
124
125
=cut
126
127
__PACKAGE__->belongs_to(
128
  "branch_code",
129
  "Koha::Schema::Result::Branch",
130
  { branchcode => "branch_code" },
131
  { on_delete => "CASCADE", on_update => "CASCADE" },
132
);
133
134
=head2 item_number
135
136
Type: belongs_to
137
138
Related object: L<Koha::Schema::Result::Item>
139
140
=cut
141
142
__PACKAGE__->belongs_to(
143
  "item_number",
144
  "Koha::Schema::Result::Item",
145
  { itemnumber => "item_number" },
146
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
147
);
148
149
150
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
151
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ei9dbdCUspCrRrhIBHQG6w
152
153
154
# You can replace this text with custom content, and it will be preserved on regeneration
155
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.07000 @ 2012-09-02 08:44:15
60
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5s/Ejf4/8x2uRb1aDvLhqA
61
62
63
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
169
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NARlAl2b7wt4a8MmUr0giw
170
171
172
# You can replace this text with custom content, 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_templates");
19
20
=head1 ACCESSORS
21
22
=head2 template_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 template_code
34
35
  data_type: 'char'
36
  default_value: 'DEFAULT TEMPLATE'
37
  is_nullable: 0
38
  size: 100
39
40
=head2 template_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
  "template_id",
137
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
138
  "profile_id",
139
  { data_type => "integer", is_nullable => 1 },
140
  "template_code",
141
  {
142
    data_type => "char",
143
    default_value => "DEFAULT TEMPLATE",
144
    is_nullable => 0,
145
    size => 100,
146
  },
147
  "template_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("template_id");
189
190
191
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
192
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7+6xi7FTvNEbXqNlPfzQSw
193
194
195
# You can replace this text with custom content, and it will be preserved on regeneration
196
1;
(-)a/Koha/Schema/Result/Currency.pm (+110 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
  default_value: current_timestamp
39
  is_nullable: 0
40
41
=head2 rate
42
43
  data_type: 'float'
44
  is_nullable: 1
45
  size: [15,5]
46
47
=head2 active
48
49
  data_type: 'tinyint'
50
  is_nullable: 1
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "currency",
56
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
57
  "symbol",
58
  { data_type => "varchar", is_nullable => 1, size => 5 },
59
  "timestamp",
60
  {
61
    data_type     => "timestamp",
62
    default_value => \"current_timestamp",
63
    is_nullable   => 0,
64
  },
65
  "rate",
66
  { data_type => "float", is_nullable => 1, size => [15, 5] },
67
  "active",
68
  { data_type => "tinyint", is_nullable => 1 },
69
);
70
__PACKAGE__->set_primary_key("currency");
71
72
=head1 RELATIONS
73
74
=head2 aqbooksellers_listprices
75
76
Type: has_many
77
78
Related object: L<Koha::Schema::Result::Aqbookseller>
79
80
=cut
81
82
__PACKAGE__->has_many(
83
  "aqbooksellers_listprices",
84
  "Koha::Schema::Result::Aqbookseller",
85
  { "foreign.listprice" => "self.currency" },
86
  { cascade_copy => 0, cascade_delete => 0 },
87
);
88
89
=head2 aqbooksellers_invoiceprices
90
91
Type: has_many
92
93
Related object: L<Koha::Schema::Result::Aqbookseller>
94
95
=cut
96
97
__PACKAGE__->has_many(
98
  "aqbooksellers_invoiceprices",
99
  "Koha::Schema::Result::Aqbookseller",
100
  { "foreign.invoiceprice" => "self.currency" },
101
  { cascade_copy => 0, cascade_delete => 0 },
102
);
103
104
105
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6SWDTY33KjtpW71Elgs69g
107
108
109
# You can replace this text with custom content, and it will be preserved on regeneration
110
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
  { on_delete => "CASCADE", on_update => "CASCADE" },
59
);
60
61
62
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
63
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Z6tiOK5+uLufdewEsUrAEQ
64
65
66
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yCrCqkdVhV80/WtxZPK6Kw
79
80
81
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
67
);
68
69
70
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N5e8mgI8+T/E4CchVMYIoQ
72
73
74
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
66
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PSMIlns1Q2e5Kun60SzKYg
67
68
69
# You can replace this text with custom content, and it will be preserved on regeneration
70
1;
(-)a/Koha/Schema/Result/Deletedbiblio.pm (+126 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
  default_value: current_timestamp
74
  is_nullable: 0
75
76
=head2 datecreated
77
78
  data_type: 'date'
79
  is_nullable: 0
80
81
=head2 abstract
82
83
  data_type: 'mediumtext'
84
  is_nullable: 1
85
86
=cut
87
88
__PACKAGE__->add_columns(
89
  "biblionumber",
90
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
91
  "frameworkcode",
92
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
93
  "author",
94
  { data_type => "mediumtext", is_nullable => 1 },
95
  "title",
96
  { data_type => "mediumtext", is_nullable => 1 },
97
  "unititle",
98
  { data_type => "mediumtext", is_nullable => 1 },
99
  "notes",
100
  { data_type => "mediumtext", is_nullable => 1 },
101
  "serial",
102
  { data_type => "tinyint", is_nullable => 1 },
103
  "seriestitle",
104
  { data_type => "mediumtext", is_nullable => 1 },
105
  "copyrightdate",
106
  { data_type => "smallint", is_nullable => 1 },
107
  "timestamp",
108
  {
109
    data_type     => "timestamp",
110
    default_value => \"current_timestamp",
111
    is_nullable   => 0,
112
  },
113
  "datecreated",
114
  { data_type => "date", is_nullable => 0 },
115
  "abstract",
116
  { data_type => "mediumtext", is_nullable => 1 },
117
);
118
__PACKAGE__->set_primary_key("biblionumber");
119
120
121
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
122
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NeMRnyT+TXPaypKdluD7BQ
123
124
125
# You can replace this text with custom content, and it will be preserved on regeneration
126
1;
(-)a/Koha/Schema/Result/Deletedbiblioitem.pm (+296 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
  is_nullable: 1
83
84
=head2 volumedesc
85
86
  data_type: 'text'
87
  is_nullable: 1
88
89
=head2 collectiontitle
90
91
  data_type: 'mediumtext'
92
  is_nullable: 1
93
94
=head2 collectionissn
95
96
  data_type: 'text'
97
  is_nullable: 1
98
99
=head2 collectionvolume
100
101
  data_type: 'mediumtext'
102
  is_nullable: 1
103
104
=head2 editionstatement
105
106
  data_type: 'text'
107
  is_nullable: 1
108
109
=head2 editionresponsibility
110
111
  data_type: 'text'
112
  is_nullable: 1
113
114
=head2 timestamp
115
116
  data_type: 'timestamp'
117
  default_value: current_timestamp
118
  is_nullable: 0
119
120
=head2 illus
121
122
  data_type: 'varchar'
123
  is_nullable: 1
124
  size: 255
125
126
=head2 pages
127
128
  data_type: 'varchar'
129
  is_nullable: 1
130
  size: 255
131
132
=head2 notes
133
134
  data_type: 'mediumtext'
135
  is_nullable: 1
136
137
=head2 size
138
139
  data_type: 'varchar'
140
  is_nullable: 1
141
  size: 255
142
143
=head2 place
144
145
  data_type: 'varchar'
146
  is_nullable: 1
147
  size: 255
148
149
=head2 lccn
150
151
  data_type: 'varchar'
152
  is_nullable: 1
153
  size: 25
154
155
=head2 marc
156
157
  data_type: 'longblob'
158
  is_nullable: 1
159
160
=head2 url
161
162
  data_type: 'varchar'
163
  is_nullable: 1
164
  size: 255
165
166
=head2 cn_source
167
168
  data_type: 'varchar'
169
  is_nullable: 1
170
  size: 10
171
172
=head2 cn_class
173
174
  data_type: 'varchar'
175
  is_nullable: 1
176
  size: 30
177
178
=head2 cn_item
179
180
  data_type: 'varchar'
181
  is_nullable: 1
182
  size: 10
183
184
=head2 cn_suffix
185
186
  data_type: 'varchar'
187
  is_nullable: 1
188
  size: 10
189
190
=head2 cn_sort
191
192
  data_type: 'varchar'
193
  is_nullable: 1
194
  size: 30
195
196
=head2 agerestriction
197
198
  data_type: 'varchar'
199
  is_nullable: 1
200
  size: 255
201
202
=head2 totalissues
203
204
  data_type: 'integer'
205
  is_nullable: 1
206
207
=head2 marcxml
208
209
  data_type: 'longtext'
210
  is_nullable: 0
211
212
=cut
213
214
__PACKAGE__->add_columns(
215
  "biblioitemnumber",
216
  { data_type => "integer", default_value => 0, is_nullable => 0 },
217
  "biblionumber",
218
  { data_type => "integer", default_value => 0, is_nullable => 0 },
219
  "volume",
220
  { data_type => "mediumtext", is_nullable => 1 },
221
  "number",
222
  { data_type => "mediumtext", is_nullable => 1 },
223
  "itemtype",
224
  { data_type => "varchar", is_nullable => 1, size => 10 },
225
  "isbn",
226
  { data_type => "varchar", is_nullable => 1, size => 30 },
227
  "issn",
228
  { data_type => "varchar", is_nullable => 1, size => 9 },
229
  "ean",
230
  { data_type => "varchar", is_nullable => 1, size => 13 },
231
  "publicationyear",
232
  { data_type => "text", is_nullable => 1 },
233
  "publishercode",
234
  { data_type => "varchar", is_nullable => 1, size => 255 },
235
  "volumedate",
236
  { data_type => "date", is_nullable => 1 },
237
  "volumedesc",
238
  { data_type => "text", is_nullable => 1 },
239
  "collectiontitle",
240
  { data_type => "mediumtext", is_nullable => 1 },
241
  "collectionissn",
242
  { data_type => "text", is_nullable => 1 },
243
  "collectionvolume",
244
  { data_type => "mediumtext", is_nullable => 1 },
245
  "editionstatement",
246
  { data_type => "text", is_nullable => 1 },
247
  "editionresponsibility",
248
  { data_type => "text", is_nullable => 1 },
249
  "timestamp",
250
  {
251
    data_type     => "timestamp",
252
    default_value => \"current_timestamp",
253
    is_nullable   => 0,
254
  },
255
  "illus",
256
  { data_type => "varchar", is_nullable => 1, size => 255 },
257
  "pages",
258
  { data_type => "varchar", is_nullable => 1, size => 255 },
259
  "notes",
260
  { data_type => "mediumtext", is_nullable => 1 },
261
  "size",
262
  { data_type => "varchar", is_nullable => 1, size => 255 },
263
  "place",
264
  { data_type => "varchar", is_nullable => 1, size => 255 },
265
  "lccn",
266
  { data_type => "varchar", is_nullable => 1, size => 25 },
267
  "marc",
268
  { data_type => "longblob", is_nullable => 1 },
269
  "url",
270
  { data_type => "varchar", is_nullable => 1, size => 255 },
271
  "cn_source",
272
  { data_type => "varchar", is_nullable => 1, size => 10 },
273
  "cn_class",
274
  { data_type => "varchar", is_nullable => 1, size => 30 },
275
  "cn_item",
276
  { data_type => "varchar", is_nullable => 1, size => 10 },
277
  "cn_suffix",
278
  { data_type => "varchar", is_nullable => 1, size => 10 },
279
  "cn_sort",
280
  { data_type => "varchar", is_nullable => 1, size => 30 },
281
  "agerestriction",
282
  { data_type => "varchar", is_nullable => 1, size => 255 },
283
  "totalissues",
284
  { data_type => "integer", is_nullable => 1 },
285
  "marcxml",
286
  { data_type => "longtext", is_nullable => 0 },
287
);
288
__PACKAGE__->set_primary_key("biblioitemnumber");
289
290
291
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
292
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+7zlVHfXJbuk7GfMYsooXw
293
294
295
# You can replace this text with custom content, and it will be preserved on regeneration
296
1;
(-)a/Koha/Schema/Result/Deletedborrower.pm (+535 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
  is_nullable: 1
191
192
=head2 branchcode
193
194
  data_type: 'varchar'
195
  default_value: (empty string)
196
  is_nullable: 0
197
  size: 10
198
199
=head2 categorycode
200
201
  data_type: 'varchar'
202
  default_value: (empty string)
203
  is_nullable: 0
204
  size: 10
205
206
=head2 dateenrolled
207
208
  data_type: 'date'
209
  is_nullable: 1
210
211
=head2 dateexpiry
212
213
  data_type: 'date'
214
  is_nullable: 1
215
216
=head2 gonenoaddress
217
218
  data_type: 'tinyint'
219
  is_nullable: 1
220
221
=head2 lost
222
223
  data_type: 'tinyint'
224
  is_nullable: 1
225
226
=head2 debarred
227
228
  data_type: 'date'
229
  is_nullable: 1
230
231
=head2 debarredcomment
232
233
  data_type: 'varchar'
234
  is_nullable: 1
235
  size: 255
236
237
=head2 contactname
238
239
  data_type: 'mediumtext'
240
  is_nullable: 1
241
242
=head2 contactfirstname
243
244
  data_type: 'text'
245
  is_nullable: 1
246
247
=head2 contacttitle
248
249
  data_type: 'text'
250
  is_nullable: 1
251
252
=head2 guarantorid
253
254
  data_type: 'integer'
255
  is_nullable: 1
256
257
=head2 borrowernotes
258
259
  data_type: 'mediumtext'
260
  is_nullable: 1
261
262
=head2 relationship
263
264
  data_type: 'varchar'
265
  is_nullable: 1
266
  size: 100
267
268
=head2 ethnicity
269
270
  data_type: 'varchar'
271
  is_nullable: 1
272
  size: 50
273
274
=head2 ethnotes
275
276
  data_type: 'varchar'
277
  is_nullable: 1
278
  size: 255
279
280
=head2 sex
281
282
  data_type: 'varchar'
283
  is_nullable: 1
284
  size: 1
285
286
=head2 password
287
288
  data_type: 'varchar'
289
  is_nullable: 1
290
  size: 30
291
292
=head2 flags
293
294
  data_type: 'integer'
295
  is_nullable: 1
296
297
=head2 userid
298
299
  data_type: 'varchar'
300
  is_nullable: 1
301
  size: 30
302
303
=head2 opacnote
304
305
  data_type: 'mediumtext'
306
  is_nullable: 1
307
308
=head2 contactnote
309
310
  data_type: 'varchar'
311
  is_nullable: 1
312
  size: 255
313
314
=head2 sort1
315
316
  data_type: 'varchar'
317
  is_nullable: 1
318
  size: 80
319
320
=head2 sort2
321
322
  data_type: 'varchar'
323
  is_nullable: 1
324
  size: 80
325
326
=head2 altcontactfirstname
327
328
  data_type: 'varchar'
329
  is_nullable: 1
330
  size: 255
331
332
=head2 altcontactsurname
333
334
  data_type: 'varchar'
335
  is_nullable: 1
336
  size: 255
337
338
=head2 altcontactaddress1
339
340
  data_type: 'varchar'
341
  is_nullable: 1
342
  size: 255
343
344
=head2 altcontactaddress2
345
346
  data_type: 'varchar'
347
  is_nullable: 1
348
  size: 255
349
350
=head2 altcontactaddress3
351
352
  data_type: 'varchar'
353
  is_nullable: 1
354
  size: 255
355
356
=head2 altcontactstate
357
358
  data_type: 'text'
359
  is_nullable: 1
360
361
=head2 altcontactzipcode
362
363
  data_type: 'varchar'
364
  is_nullable: 1
365
  size: 50
366
367
=head2 altcontactcountry
368
369
  data_type: 'text'
370
  is_nullable: 1
371
372
=head2 altcontactphone
373
374
  data_type: 'varchar'
375
  is_nullable: 1
376
  size: 50
377
378
=head2 smsalertnumber
379
380
  data_type: 'varchar'
381
  is_nullable: 1
382
  size: 50
383
384
=head2 privacy
385
386
  data_type: 'integer'
387
  default_value: 1
388
  is_nullable: 0
389
390
=cut
391
392
__PACKAGE__->add_columns(
393
  "borrowernumber",
394
  { data_type => "integer", default_value => 0, is_nullable => 0 },
395
  "cardnumber",
396
  { data_type => "varchar", is_nullable => 1, size => 16 },
397
  "surname",
398
  { data_type => "mediumtext", is_nullable => 0 },
399
  "firstname",
400
  { data_type => "text", is_nullable => 1 },
401
  "title",
402
  { data_type => "mediumtext", is_nullable => 1 },
403
  "othernames",
404
  { data_type => "mediumtext", is_nullable => 1 },
405
  "initials",
406
  { data_type => "text", is_nullable => 1 },
407
  "streetnumber",
408
  { data_type => "varchar", is_nullable => 1, size => 10 },
409
  "streettype",
410
  { data_type => "varchar", is_nullable => 1, size => 50 },
411
  "address",
412
  { data_type => "mediumtext", is_nullable => 0 },
413
  "address2",
414
  { data_type => "text", is_nullable => 1 },
415
  "city",
416
  { data_type => "mediumtext", is_nullable => 0 },
417
  "state",
418
  { data_type => "text", is_nullable => 1 },
419
  "zipcode",
420
  { data_type => "varchar", is_nullable => 1, size => 25 },
421
  "country",
422
  { data_type => "text", is_nullable => 1 },
423
  "email",
424
  { data_type => "mediumtext", is_nullable => 1 },
425
  "phone",
426
  { data_type => "text", is_nullable => 1 },
427
  "mobile",
428
  { data_type => "varchar", is_nullable => 1, size => 50 },
429
  "fax",
430
  { data_type => "mediumtext", is_nullable => 1 },
431
  "emailpro",
432
  { data_type => "text", is_nullable => 1 },
433
  "phonepro",
434
  { data_type => "text", is_nullable => 1 },
435
  "b_streetnumber",
436
  { data_type => "varchar", is_nullable => 1, size => 10 },
437
  "b_streettype",
438
  { data_type => "varchar", is_nullable => 1, size => 50 },
439
  "b_address",
440
  { data_type => "varchar", is_nullable => 1, size => 100 },
441
  "b_address2",
442
  { data_type => "text", is_nullable => 1 },
443
  "b_city",
444
  { data_type => "mediumtext", is_nullable => 1 },
445
  "b_state",
446
  { data_type => "text", is_nullable => 1 },
447
  "b_zipcode",
448
  { data_type => "varchar", is_nullable => 1, size => 25 },
449
  "b_country",
450
  { data_type => "text", is_nullable => 1 },
451
  "b_email",
452
  { data_type => "text", is_nullable => 1 },
453
  "b_phone",
454
  { data_type => "mediumtext", is_nullable => 1 },
455
  "dateofbirth",
456
  { data_type => "date", is_nullable => 1 },
457
  "branchcode",
458
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
459
  "categorycode",
460
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
461
  "dateenrolled",
462
  { data_type => "date", is_nullable => 1 },
463
  "dateexpiry",
464
  { data_type => "date", is_nullable => 1 },
465
  "gonenoaddress",
466
  { data_type => "tinyint", is_nullable => 1 },
467
  "lost",
468
  { data_type => "tinyint", is_nullable => 1 },
469
  "debarred",
470
  { data_type => "date", is_nullable => 1 },
471
  "debarredcomment",
472
  { data_type => "varchar", is_nullable => 1, size => 255 },
473
  "contactname",
474
  { data_type => "mediumtext", is_nullable => 1 },
475
  "contactfirstname",
476
  { data_type => "text", is_nullable => 1 },
477
  "contacttitle",
478
  { data_type => "text", is_nullable => 1 },
479
  "guarantorid",
480
  { data_type => "integer", is_nullable => 1 },
481
  "borrowernotes",
482
  { data_type => "mediumtext", is_nullable => 1 },
483
  "relationship",
484
  { data_type => "varchar", is_nullable => 1, size => 100 },
485
  "ethnicity",
486
  { data_type => "varchar", is_nullable => 1, size => 50 },
487
  "ethnotes",
488
  { data_type => "varchar", is_nullable => 1, size => 255 },
489
  "sex",
490
  { data_type => "varchar", is_nullable => 1, size => 1 },
491
  "password",
492
  { data_type => "varchar", is_nullable => 1, size => 30 },
493
  "flags",
494
  { data_type => "integer", is_nullable => 1 },
495
  "userid",
496
  { data_type => "varchar", is_nullable => 1, size => 30 },
497
  "opacnote",
498
  { data_type => "mediumtext", is_nullable => 1 },
499
  "contactnote",
500
  { data_type => "varchar", is_nullable => 1, size => 255 },
501
  "sort1",
502
  { data_type => "varchar", is_nullable => 1, size => 80 },
503
  "sort2",
504
  { data_type => "varchar", is_nullable => 1, size => 80 },
505
  "altcontactfirstname",
506
  { data_type => "varchar", is_nullable => 1, size => 255 },
507
  "altcontactsurname",
508
  { data_type => "varchar", is_nullable => 1, size => 255 },
509
  "altcontactaddress1",
510
  { data_type => "varchar", is_nullable => 1, size => 255 },
511
  "altcontactaddress2",
512
  { data_type => "varchar", is_nullable => 1, size => 255 },
513
  "altcontactaddress3",
514
  { data_type => "varchar", is_nullable => 1, size => 255 },
515
  "altcontactstate",
516
  { data_type => "text", is_nullable => 1 },
517
  "altcontactzipcode",
518
  { data_type => "varchar", is_nullable => 1, size => 50 },
519
  "altcontactcountry",
520
  { data_type => "text", is_nullable => 1 },
521
  "altcontactphone",
522
  { data_type => "varchar", is_nullable => 1, size => 50 },
523
  "smsalertnumber",
524
  { data_type => "varchar", is_nullable => 1, size => 50 },
525
  "privacy",
526
  { data_type => "integer", default_value => 1, is_nullable => 0 },
527
);
528
529
530
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
531
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1D2zAd8OsHXZ2s9cEVevug
532
533
534
# You can replace this text with custom content, and it will be preserved on regeneration
535
1;
(-)a/Koha/Schema/Result/Deleteditem.pm (+350 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
  is_nullable: 1
50
51
=head2 booksellerid
52
53
  data_type: 'mediumtext'
54
  is_nullable: 1
55
56
=head2 homebranch
57
58
  data_type: 'varchar'
59
  is_nullable: 1
60
  size: 10
61
62
=head2 price
63
64
  data_type: 'decimal'
65
  is_nullable: 1
66
  size: [8,2]
67
68
=head2 replacementprice
69
70
  data_type: 'decimal'
71
  is_nullable: 1
72
  size: [8,2]
73
74
=head2 replacementpricedate
75
76
  data_type: 'date'
77
  is_nullable: 1
78
79
=head2 datelastborrowed
80
81
  data_type: 'date'
82
  is_nullable: 1
83
84
=head2 datelastseen
85
86
  data_type: 'date'
87
  is_nullable: 1
88
89
=head2 stack
90
91
  data_type: 'tinyint'
92
  is_nullable: 1
93
94
=head2 notforloan
95
96
  data_type: 'tinyint'
97
  default_value: 0
98
  is_nullable: 0
99
100
=head2 damaged
101
102
  data_type: 'tinyint'
103
  default_value: 0
104
  is_nullable: 0
105
106
=head2 itemlost
107
108
  data_type: 'tinyint'
109
  default_value: 0
110
  is_nullable: 0
111
112
=head2 wthdrawn
113
114
  data_type: 'tinyint'
115
  default_value: 0
116
  is_nullable: 0
117
118
=head2 itemcallnumber
119
120
  data_type: 'varchar'
121
  is_nullable: 1
122
  size: 255
123
124
=head2 coded_location_qualifier
125
126
  data_type: 'varchar'
127
  is_nullable: 1
128
  size: 10
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_nullable: 1
159
  size: 10
160
161
=head2 paidfor
162
163
  data_type: 'mediumtext'
164
  is_nullable: 1
165
166
=head2 timestamp
167
168
  data_type: 'timestamp'
169
  default_value: current_timestamp
170
  is_nullable: 0
171
172
=head2 location
173
174
  data_type: 'varchar'
175
  is_nullable: 1
176
  size: 80
177
178
=head2 permanent_location
179
180
  data_type: 'varchar'
181
  is_nullable: 1
182
  size: 80
183
184
=head2 onloan
185
186
  data_type: 'date'
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", 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", is_nullable => 1 },
275
  "datelastborrowed",
276
  { data_type => "date", is_nullable => 1 },
277
  "datelastseen",
278
  { data_type => "date", 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
  "coded_location_qualifier",
292
  { data_type => "varchar", is_nullable => 1, size => 10 },
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_nullable => 1, size => 10 },
305
  "paidfor",
306
  { data_type => "mediumtext", is_nullable => 1 },
307
  "timestamp",
308
  {
309
    data_type     => "timestamp",
310
    default_value => \"current_timestamp",
311
    is_nullable   => 0,
312
  },
313
  "location",
314
  { data_type => "varchar", is_nullable => 1, size => 80 },
315
  "permanent_location",
316
  { data_type => "varchar", is_nullable => 1, size => 80 },
317
  "onloan",
318
  { data_type => "date", is_nullable => 1 },
319
  "cn_source",
320
  { data_type => "varchar", is_nullable => 1, size => 10 },
321
  "cn_sort",
322
  { data_type => "varchar", is_nullable => 1, size => 30 },
323
  "ccode",
324
  { data_type => "varchar", is_nullable => 1, size => 10 },
325
  "materials",
326
  { data_type => "varchar", is_nullable => 1, size => 10 },
327
  "uri",
328
  { data_type => "varchar", is_nullable => 1, size => 255 },
329
  "itype",
330
  { data_type => "varchar", is_nullable => 1, size => 10 },
331
  "more_subfields_xml",
332
  { data_type => "longtext", is_nullable => 1 },
333
  "enumchron",
334
  { data_type => "text", is_nullable => 1 },
335
  "copynumber",
336
  { data_type => "varchar", is_nullable => 1, size => 32 },
337
  "stocknumber",
338
  { data_type => "varchar", is_nullable => 1, size => 32 },
339
  "marc",
340
  { data_type => "longblob", is_nullable => 1 },
341
);
342
__PACKAGE__->set_primary_key("itemnumber");
343
344
345
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
346
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dQeILHSwObg9anjIGL+5vA
347
348
349
# You can replace this text with custom content, and it will be preserved on regeneration
350
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.07000 @ 2012-09-02 08:44:15
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H+zE5eEx/ClCKhvOgCCQzg
48
49
50
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bUCNW2Ek6JxBjlVcO1TQ1g
93
94
95
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gvtMvCtkyoKYhiEqLmhFEg
72
73
74
# You can replace this text with custom content, and it will be preserved on regeneration
75
1;
(-)a/Koha/Schema/Result/HoldFillTarget.pm (+137 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
  { 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
  { 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
  { 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
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
129
);
130
131
132
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/h3AEVRMJgs51+fyRzpLaQ
134
135
136
# You can replace this text with custom content, and it will be preserved on regeneration
137
1;
(-)a/Koha/Schema/Result/ImportAuth.pm (+89 lines)
Line 0 Link Here
1
package Koha::Schema::Result::ImportAuth;
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::ImportAuth
15
16
=cut
17
18
__PACKAGE__->table("import_auths");
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_authid
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 authorized_heading
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 128
44
45
=head2 original_source
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 25
50
51
=cut
52
53
__PACKAGE__->add_columns(
54
  "import_record_id",
55
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
56
  "matched_authid",
57
  { data_type => "integer", is_nullable => 1 },
58
  "control_number",
59
  { data_type => "varchar", is_nullable => 1, size => 25 },
60
  "authorized_heading",
61
  { data_type => "varchar", is_nullable => 1, size => 128 },
62
  "original_source",
63
  { data_type => "varchar", is_nullable => 1, size => 25 },
64
);
65
66
=head1 RELATIONS
67
68
=head2 import_record
69
70
Type: belongs_to
71
72
Related object: L<Koha::Schema::Result::ImportRecord>
73
74
=cut
75
76
__PACKAGE__->belongs_to(
77
  "import_record",
78
  "Koha::Schema::Result::ImportRecord",
79
  { import_record_id => "import_record_id" },
80
  { on_delete => "CASCADE", on_update => "CASCADE" },
81
);
82
83
84
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KS/c5gOeZK0p8UY5mXRqlQ
86
87
88
# You can replace this text with custom content, and it will be preserved on regeneration
89
1;
(-)a/Koha/Schema/Result/ImportBatch.pm (+225 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 template_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_records
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
  default_value: current_timestamp
60
  is_nullable: 0
61
62
=head2 overlay_action
63
64
  data_type: 'enum'
65
  default_value: 'create_new'
66
  extra: {list => ["replace","create_new","use_template","ignore"]}
67
  is_nullable: 0
68
69
=head2 nomatch_action
70
71
  data_type: 'enum'
72
  default_value: 'create_new'
73
  extra: {list => ["create_new","ignore"]}
74
  is_nullable: 0
75
76
=head2 item_action
77
78
  data_type: 'enum'
79
  default_value: 'always_add'
80
  extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore"]}
81
  is_nullable: 0
82
83
=head2 import_status
84
85
  data_type: 'enum'
86
  default_value: 'staging'
87
  extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]}
88
  is_nullable: 0
89
90
=head2 batch_type
91
92
  data_type: 'enum'
93
  default_value: 'batch'
94
  extra: {list => ["batch","z3950","webservice"]}
95
  is_nullable: 0
96
97
=head2 record_type
98
99
  data_type: 'enum'
100
  default_value: 'biblio'
101
  extra: {list => ["biblio","auth","holdings"]}
102
  is_nullable: 0
103
104
=head2 file_name
105
106
  data_type: 'varchar'
107
  is_nullable: 1
108
  size: 100
109
110
=head2 comments
111
112
  data_type: 'mediumtext'
113
  is_nullable: 1
114
115
=cut
116
117
__PACKAGE__->add_columns(
118
  "import_batch_id",
119
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
120
  "matcher_id",
121
  { data_type => "integer", is_nullable => 1 },
122
  "template_id",
123
  { data_type => "integer", is_nullable => 1 },
124
  "branchcode",
125
  { data_type => "varchar", is_nullable => 1, size => 10 },
126
  "num_records",
127
  { data_type => "integer", default_value => 0, is_nullable => 0 },
128
  "num_items",
129
  { data_type => "integer", default_value => 0, is_nullable => 0 },
130
  "upload_timestamp",
131
  {
132
    data_type     => "timestamp",
133
    default_value => \"current_timestamp",
134
    is_nullable   => 0,
135
  },
136
  "overlay_action",
137
  {
138
    data_type => "enum",
139
    default_value => "create_new",
140
    extra => { list => ["replace", "create_new", "use_template", "ignore"] },
141
    is_nullable => 0,
142
  },
143
  "nomatch_action",
144
  {
145
    data_type => "enum",
146
    default_value => "create_new",
147
    extra => { list => ["create_new", "ignore"] },
148
    is_nullable => 0,
149
  },
150
  "item_action",
151
  {
152
    data_type => "enum",
153
    default_value => "always_add",
154
    extra => {
155
      list => [
156
        "always_add",
157
        "add_only_for_matches",
158
        "add_only_for_new",
159
        "ignore",
160
      ],
161
    },
162
    is_nullable => 0,
163
  },
164
  "import_status",
165
  {
166
    data_type => "enum",
167
    default_value => "staging",
168
    extra => {
169
      list => [
170
        "staging",
171
        "staged",
172
        "importing",
173
        "imported",
174
        "reverting",
175
        "reverted",
176
        "cleaned",
177
      ],
178
    },
179
    is_nullable => 0,
180
  },
181
  "batch_type",
182
  {
183
    data_type => "enum",
184
    default_value => "batch",
185
    extra => { list => ["batch", "z3950", "webservice"] },
186
    is_nullable => 0,
187
  },
188
  "record_type",
189
  {
190
    data_type => "enum",
191
    default_value => "biblio",
192
    extra => { list => ["biblio", "auth", "holdings"] },
193
    is_nullable => 0,
194
  },
195
  "file_name",
196
  { data_type => "varchar", is_nullable => 1, size => 100 },
197
  "comments",
198
  { data_type => "mediumtext", is_nullable => 1 },
199
);
200
__PACKAGE__->set_primary_key("import_batch_id");
201
202
=head1 RELATIONS
203
204
=head2 import_records
205
206
Type: has_many
207
208
Related object: L<Koha::Schema::Result::ImportRecord>
209
210
=cut
211
212
__PACKAGE__->has_many(
213
  "import_records",
214
  "Koha::Schema::Result::ImportRecord",
215
  { "foreign.import_batch_id" => "self.import_batch_id" },
216
  { cascade_copy => 0, cascade_delete => 0 },
217
);
218
219
220
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
221
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LUl8GuPahmUwYeaGAKBJxw
222
223
224
# You can replace this text with custom content, and it will be preserved on regeneration
225
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
  { on_delete => "CASCADE", on_update => "CASCADE" },
113
);
114
115
116
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
117
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HJRDv5y++ivu2IsDFMbGMw
118
119
120
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
102
);
103
104
105
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2PCGat+VP/DjjEe+G0gb3Q
107
108
109
# You can replace this text with custom content, and it will be preserved on regeneration
110
1;
(-)a/Koha/Schema/Result/ImportRecord.pm (+260 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
  default_value: current_timestamp
50
  is_nullable: 0
51
52
=head2 import_date
53
54
  data_type: 'date'
55
  is_nullable: 1
56
57
=head2 marc
58
59
  data_type: 'longblob'
60
  is_nullable: 0
61
62
=head2 marcxml
63
64
  data_type: 'longtext'
65
  is_nullable: 0
66
67
=head2 marcxml_old
68
69
  data_type: 'longtext'
70
  is_nullable: 0
71
72
=head2 record_type
73
74
  data_type: 'enum'
75
  default_value: 'biblio'
76
  extra: {list => ["biblio","auth","holdings"]}
77
  is_nullable: 0
78
79
=head2 overlay_status
80
81
  data_type: 'enum'
82
  default_value: 'no_match'
83
  extra: {list => ["no_match","auto_match","manual_match","match_applied"]}
84
  is_nullable: 0
85
86
=head2 status
87
88
  data_type: 'enum'
89
  default_value: 'staged'
90
  extra: {list => ["error","staged","imported","reverted","items_reverted","ignored"]}
91
  is_nullable: 0
92
93
=head2 import_error
94
95
  data_type: 'mediumtext'
96
  is_nullable: 1
97
98
=head2 encoding
99
100
  data_type: 'varchar'
101
  default_value: (empty string)
102
  is_nullable: 0
103
  size: 40
104
105
=head2 z3950random
106
107
  data_type: 'varchar'
108
  is_nullable: 1
109
  size: 40
110
111
=cut
112
113
__PACKAGE__->add_columns(
114
  "import_record_id",
115
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
116
  "import_batch_id",
117
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
118
  "branchcode",
119
  { data_type => "varchar", is_nullable => 1, size => 10 },
120
  "record_sequence",
121
  { data_type => "integer", default_value => 0, is_nullable => 0 },
122
  "upload_timestamp",
123
  {
124
    data_type     => "timestamp",
125
    default_value => \"current_timestamp",
126
    is_nullable   => 0,
127
  },
128
  "import_date",
129
  { data_type => "date", is_nullable => 1 },
130
  "marc",
131
  { data_type => "longblob", is_nullable => 0 },
132
  "marcxml",
133
  { data_type => "longtext", is_nullable => 0 },
134
  "marcxml_old",
135
  { data_type => "longtext", is_nullable => 0 },
136
  "record_type",
137
  {
138
    data_type => "enum",
139
    default_value => "biblio",
140
    extra => { list => ["biblio", "auth", "holdings"] },
141
    is_nullable => 0,
142
  },
143
  "overlay_status",
144
  {
145
    data_type => "enum",
146
    default_value => "no_match",
147
    extra => {
148
      list => ["no_match", "auto_match", "manual_match", "match_applied"],
149
    },
150
    is_nullable => 0,
151
  },
152
  "status",
153
  {
154
    data_type => "enum",
155
    default_value => "staged",
156
    extra => {
157
      list => [
158
        "error",
159
        "staged",
160
        "imported",
161
        "reverted",
162
        "items_reverted",
163
        "ignored",
164
      ],
165
    },
166
    is_nullable => 0,
167
  },
168
  "import_error",
169
  { data_type => "mediumtext", is_nullable => 1 },
170
  "encoding",
171
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
172
  "z3950random",
173
  { data_type => "varchar", is_nullable => 1, size => 40 },
174
);
175
__PACKAGE__->set_primary_key("import_record_id");
176
177
=head1 RELATIONS
178
179
=head2 import_auths
180
181
Type: has_many
182
183
Related object: L<Koha::Schema::Result::ImportAuth>
184
185
=cut
186
187
__PACKAGE__->has_many(
188
  "import_auths",
189
  "Koha::Schema::Result::ImportAuth",
190
  { "foreign.import_record_id" => "self.import_record_id" },
191
  { cascade_copy => 0, cascade_delete => 0 },
192
);
193
194
=head2 import_biblios
195
196
Type: has_many
197
198
Related object: L<Koha::Schema::Result::ImportBiblio>
199
200
=cut
201
202
__PACKAGE__->has_many(
203
  "import_biblios",
204
  "Koha::Schema::Result::ImportBiblio",
205
  { "foreign.import_record_id" => "self.import_record_id" },
206
  { cascade_copy => 0, cascade_delete => 0 },
207
);
208
209
=head2 import_items
210
211
Type: has_many
212
213
Related object: L<Koha::Schema::Result::ImportItem>
214
215
=cut
216
217
__PACKAGE__->has_many(
218
  "import_items",
219
  "Koha::Schema::Result::ImportItem",
220
  { "foreign.import_record_id" => "self.import_record_id" },
221
  { cascade_copy => 0, cascade_delete => 0 },
222
);
223
224
=head2 import_records_matches
225
226
Type: has_many
227
228
Related object: L<Koha::Schema::Result::ImportRecordMatches>
229
230
=cut
231
232
__PACKAGE__->has_many(
233
  "import_records_matches",
234
  "Koha::Schema::Result::ImportRecordMatches",
235
  { "foreign.import_record_id" => "self.import_record_id" },
236
  { cascade_copy => 0, cascade_delete => 0 },
237
);
238
239
=head2 import_batch
240
241
Type: belongs_to
242
243
Related object: L<Koha::Schema::Result::ImportBatch>
244
245
=cut
246
247
__PACKAGE__->belongs_to(
248
  "import_batch",
249
  "Koha::Schema::Result::ImportBatch",
250
  { import_batch_id => "import_batch_id" },
251
  { on_delete => "CASCADE", on_update => "CASCADE" },
252
);
253
254
255
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
256
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4BPw0d87+uhdeHd0DnL6Ng
257
258
259
# You can replace this text with custom content, and it will be preserved on regeneration
260
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
  { on_delete => "CASCADE", on_update => "CASCADE" },
65
);
66
67
68
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
69
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XNn+Yyr6xKz3R4ewz9PSpQ
70
71
72
# You can replace this text with custom content, and it will be preserved on regeneration
73
1;
(-)a/Koha/Schema/Result/Issue.pm (+152 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
  is_nullable: 1
38
39
=head2 branchcode
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 10
44
45
=head2 issuingbranch
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 18
50
51
=head2 returndate
52
53
  data_type: 'datetime'
54
  is_nullable: 1
55
56
=head2 lastreneweddate
57
58
  data_type: 'datetime'
59
  is_nullable: 1
60
61
=head2 return
62
63
  data_type: 'varchar'
64
  is_nullable: 1
65
  size: 4
66
67
=head2 renewals
68
69
  data_type: 'tinyint'
70
  is_nullable: 1
71
72
=head2 timestamp
73
74
  data_type: 'timestamp'
75
  default_value: current_timestamp
76
  is_nullable: 0
77
78
=head2 issuedate
79
80
  data_type: 'datetime'
81
  is_nullable: 1
82
83
=cut
84
85
__PACKAGE__->add_columns(
86
  "borrowernumber",
87
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
88
  "itemnumber",
89
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
90
  "date_due",
91
  { data_type => "datetime", is_nullable => 1 },
92
  "branchcode",
93
  { data_type => "varchar", is_nullable => 1, size => 10 },
94
  "issuingbranch",
95
  { data_type => "varchar", is_nullable => 1, size => 18 },
96
  "returndate",
97
  { data_type => "datetime", is_nullable => 1 },
98
  "lastreneweddate",
99
  { data_type => "datetime", is_nullable => 1 },
100
  "return",
101
  { data_type => "varchar", is_nullable => 1, size => 4 },
102
  "renewals",
103
  { data_type => "tinyint", is_nullable => 1 },
104
  "timestamp",
105
  {
106
    data_type     => "timestamp",
107
    default_value => \"current_timestamp",
108
    is_nullable   => 0,
109
  },
110
  "issuedate",
111
  { data_type => "datetime", is_nullable => 1 },
112
);
113
114
=head1 RELATIONS
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
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
129
);
130
131
=head2 itemnumber
132
133
Type: belongs_to
134
135
Related object: L<Koha::Schema::Result::Item>
136
137
=cut
138
139
__PACKAGE__->belongs_to(
140
  "itemnumber",
141
  "Koha::Schema::Result::Item",
142
  { itemnumber => "itemnumber" },
143
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
144
);
145
146
147
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
148
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uZUDWDGWOkC3oCOyMaG1sg
149
150
151
# You can replace this text with custom content, and it will be preserved on regeneration
152
1;
(-)a/Koha/Schema/Result/Issuingrule.pm (+208 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
  is_nullable: 1
106
107
=head2 hardduedatecompare
108
109
  data_type: 'tinyint'
110
  default_value: 0
111
  is_nullable: 0
112
113
=head2 renewalsallowed
114
115
  data_type: 'smallint'
116
  default_value: 0
117
  is_nullable: 0
118
119
=head2 renewalperiod
120
121
  data_type: 'integer'
122
  is_nullable: 1
123
124
=head2 reservesallowed
125
126
  data_type: 'smallint'
127
  default_value: 0
128
  is_nullable: 0
129
130
=head2 holdspickupdelay
131
132
  data_type: 'integer'
133
  is_nullable: 1
134
135
=head2 branchcode
136
137
  data_type: 'varchar'
138
  default_value: (empty string)
139
  is_nullable: 0
140
  size: 10
141
142
=head2 overduefinescap
143
144
  data_type: 'decimal'
145
  is_nullable: 1
146
147
=cut
148
149
__PACKAGE__->add_columns(
150
  "categorycode",
151
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
152
  "itemtype",
153
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
154
  "restrictedtype",
155
  { data_type => "tinyint", is_nullable => 1 },
156
  "rentaldiscount",
157
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
158
  "reservecharge",
159
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
160
  "fine",
161
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
162
  "finedays",
163
  { data_type => "integer", is_nullable => 1 },
164
  "firstremind",
165
  { data_type => "integer", is_nullable => 1 },
166
  "chargeperiod",
167
  { data_type => "integer", is_nullable => 1 },
168
  "accountsent",
169
  { data_type => "integer", is_nullable => 1 },
170
  "chargename",
171
  { data_type => "varchar", is_nullable => 1, size => 100 },
172
  "maxissueqty",
173
  { data_type => "integer", is_nullable => 1 },
174
  "issuelength",
175
  { data_type => "integer", is_nullable => 1 },
176
  "lengthunit",
177
  {
178
    data_type => "varchar",
179
    default_value => "days",
180
    is_nullable => 1,
181
    size => 10,
182
  },
183
  "hardduedate",
184
  { data_type => "date", is_nullable => 1 },
185
  "hardduedatecompare",
186
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
187
  "renewalsallowed",
188
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
189
  "renewalperiod",
190
  { data_type => "integer", is_nullable => 1 },
191
  "reservesallowed",
192
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
193
  "holdspickupdelay",
194
  { data_type => "integer", is_nullable => 1 },
195
  "branchcode",
196
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
197
  "overduefinescap",
198
  { data_type => "decimal", is_nullable => 1 },
199
);
200
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
201
202
203
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
204
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:odTb6vtz4DignNIlYwkNEg
205
206
207
# You can replace this text with custom content, and it will be preserved on regeneration
208
1;
(-)a/Koha/Schema/Result/Item.pm (+548 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
  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_foreign_key: 1
61
  is_nullable: 1
62
  size: 10
63
64
=head2 price
65
66
  data_type: 'decimal'
67
  is_nullable: 1
68
  size: [8,2]
69
70
=head2 replacementprice
71
72
  data_type: 'decimal'
73
  is_nullable: 1
74
  size: [8,2]
75
76
=head2 replacementpricedate
77
78
  data_type: 'date'
79
  is_nullable: 1
80
81
=head2 datelastborrowed
82
83
  data_type: 'date'
84
  is_nullable: 1
85
86
=head2 datelastseen
87
88
  data_type: 'date'
89
  is_nullable: 1
90
91
=head2 stack
92
93
  data_type: 'tinyint'
94
  is_nullable: 1
95
96
=head2 notforloan
97
98
  data_type: 'tinyint'
99
  default_value: 0
100
  is_nullable: 0
101
102
=head2 damaged
103
104
  data_type: 'tinyint'
105
  default_value: 0
106
  is_nullable: 0
107
108
=head2 itemlost
109
110
  data_type: 'tinyint'
111
  default_value: 0
112
  is_nullable: 0
113
114
=head2 wthdrawn
115
116
  data_type: 'tinyint'
117
  default_value: 0
118
  is_nullable: 0
119
120
=head2 itemcallnumber
121
122
  data_type: 'varchar'
123
  is_nullable: 1
124
  size: 255
125
126
=head2 coded_location_qualifier
127
128
  data_type: 'varchar'
129
  is_nullable: 1
130
  size: 10
131
132
=head2 issues
133
134
  data_type: 'smallint'
135
  is_nullable: 1
136
137
=head2 renewals
138
139
  data_type: 'smallint'
140
  is_nullable: 1
141
142
=head2 reserves
143
144
  data_type: 'smallint'
145
  is_nullable: 1
146
147
=head2 restricted
148
149
  data_type: 'tinyint'
150
  is_nullable: 1
151
152
=head2 itemnotes
153
154
  data_type: 'mediumtext'
155
  is_nullable: 1
156
157
=head2 holdingbranch
158
159
  data_type: 'varchar'
160
  is_foreign_key: 1
161
  is_nullable: 1
162
  size: 10
163
164
=head2 paidfor
165
166
  data_type: 'mediumtext'
167
  is_nullable: 1
168
169
=head2 timestamp
170
171
  data_type: 'timestamp'
172
  default_value: current_timestamp
173
  is_nullable: 0
174
175
=head2 location
176
177
  data_type: 'varchar'
178
  is_nullable: 1
179
  size: 80
180
181
=head2 permanent_location
182
183
  data_type: 'varchar'
184
  is_nullable: 1
185
  size: 80
186
187
=head2 onloan
188
189
  data_type: 'date'
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", 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", is_nullable => 1 },
277
  "datelastborrowed",
278
  { data_type => "date", is_nullable => 1 },
279
  "datelastseen",
280
  { data_type => "date", 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
  "coded_location_qualifier",
294
  { data_type => "varchar", is_nullable => 1, size => 10 },
295
  "issues",
296
  { data_type => "smallint", is_nullable => 1 },
297
  "renewals",
298
  { data_type => "smallint", is_nullable => 1 },
299
  "reserves",
300
  { data_type => "smallint", is_nullable => 1 },
301
  "restricted",
302
  { data_type => "tinyint", is_nullable => 1 },
303
  "itemnotes",
304
  { data_type => "mediumtext", is_nullable => 1 },
305
  "holdingbranch",
306
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
307
  "paidfor",
308
  { data_type => "mediumtext", is_nullable => 1 },
309
  "timestamp",
310
  {
311
    data_type     => "timestamp",
312
    default_value => \"current_timestamp",
313
    is_nullable   => 0,
314
  },
315
  "location",
316
  { data_type => "varchar", is_nullable => 1, size => 80 },
317
  "permanent_location",
318
  { data_type => "varchar", is_nullable => 1, size => 80 },
319
  "onloan",
320
  { data_type => "date", is_nullable => 1 },
321
  "cn_source",
322
  { data_type => "varchar", is_nullable => 1, size => 10 },
323
  "cn_sort",
324
  { data_type => "varchar", is_nullable => 1, size => 30 },
325
  "ccode",
326
  { data_type => "varchar", is_nullable => 1, size => 10 },
327
  "materials",
328
  { data_type => "text", is_nullable => 1 },
329
  "uri",
330
  { data_type => "varchar", is_nullable => 1, size => 255 },
331
  "itype",
332
  { data_type => "varchar", is_nullable => 1, size => 10 },
333
  "more_subfields_xml",
334
  { data_type => "longtext", is_nullable => 1 },
335
  "enumchron",
336
  { data_type => "text", is_nullable => 1 },
337
  "copynumber",
338
  { data_type => "varchar", is_nullable => 1, size => 32 },
339
  "stocknumber",
340
  { data_type => "varchar", is_nullable => 1, size => 32 },
341
);
342
__PACKAGE__->set_primary_key("itemnumber");
343
__PACKAGE__->add_unique_constraint("itembarcodeidx", ["barcode"]);
344
345
=head1 RELATIONS
346
347
=head2 accountlines
348
349
Type: has_many
350
351
Related object: L<Koha::Schema::Result::Accountline>
352
353
=cut
354
355
__PACKAGE__->has_many(
356
  "accountlines",
357
  "Koha::Schema::Result::Accountline",
358
  { "foreign.itemnumber" => "self.itemnumber" },
359
  { cascade_copy => 0, cascade_delete => 0 },
360
);
361
362
=head2 branchtransfers
363
364
Type: has_many
365
366
Related object: L<Koha::Schema::Result::Branchtransfer>
367
368
=cut
369
370
__PACKAGE__->has_many(
371
  "branchtransfers",
372
  "Koha::Schema::Result::Branchtransfer",
373
  { "foreign.itemnumber" => "self.itemnumber" },
374
  { cascade_copy => 0, cascade_delete => 0 },
375
);
376
377
=head2 course_item
378
379
Type: might_have
380
381
Related object: L<Koha::Schema::Result::CourseItem>
382
383
=cut
384
385
__PACKAGE__->might_have(
386
  "course_item",
387
  "Koha::Schema::Result::CourseItem",
388
  { "foreign.itemnumber" => "self.itemnumber" },
389
  { cascade_copy => 0, cascade_delete => 0 },
390
);
391
392
=head2 creator_batches
393
394
Type: has_many
395
396
Related object: L<Koha::Schema::Result::CreatorBatch>
397
398
=cut
399
400
__PACKAGE__->has_many(
401
  "creator_batches",
402
  "Koha::Schema::Result::CreatorBatch",
403
  { "foreign.item_number" => "self.itemnumber" },
404
  { cascade_copy => 0, cascade_delete => 0 },
405
);
406
407
=head2 hold_fill_target
408
409
Type: might_have
410
411
Related object: L<Koha::Schema::Result::HoldFillTarget>
412
413
=cut
414
415
__PACKAGE__->might_have(
416
  "hold_fill_target",
417
  "Koha::Schema::Result::HoldFillTarget",
418
  { "foreign.itemnumber" => "self.itemnumber" },
419
  { cascade_copy => 0, cascade_delete => 0 },
420
);
421
422
=head2 issues
423
424
Type: has_many
425
426
Related object: L<Koha::Schema::Result::Issue>
427
428
=cut
429
430
__PACKAGE__->has_many(
431
  "issues",
432
  "Koha::Schema::Result::Issue",
433
  { "foreign.itemnumber" => "self.itemnumber" },
434
  { cascade_copy => 0, cascade_delete => 0 },
435
);
436
437
=head2 biblioitemnumber
438
439
Type: belongs_to
440
441
Related object: L<Koha::Schema::Result::Biblioitem>
442
443
=cut
444
445
__PACKAGE__->belongs_to(
446
  "biblioitemnumber",
447
  "Koha::Schema::Result::Biblioitem",
448
  { biblioitemnumber => "biblioitemnumber" },
449
  { on_delete => "CASCADE", on_update => "CASCADE" },
450
);
451
452
=head2 homebranch
453
454
Type: belongs_to
455
456
Related object: L<Koha::Schema::Result::Branch>
457
458
=cut
459
460
__PACKAGE__->belongs_to(
461
  "homebranch",
462
  "Koha::Schema::Result::Branch",
463
  { branchcode => "homebranch" },
464
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
465
);
466
467
=head2 holdingbranch
468
469
Type: belongs_to
470
471
Related object: L<Koha::Schema::Result::Branch>
472
473
=cut
474
475
__PACKAGE__->belongs_to(
476
  "holdingbranch",
477
  "Koha::Schema::Result::Branch",
478
  { branchcode => "holdingbranch" },
479
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
480
);
481
482
=head2 old_issues
483
484
Type: has_many
485
486
Related object: L<Koha::Schema::Result::OldIssue>
487
488
=cut
489
490
__PACKAGE__->has_many(
491
  "old_issues",
492
  "Koha::Schema::Result::OldIssue",
493
  { "foreign.itemnumber" => "self.itemnumber" },
494
  { cascade_copy => 0, cascade_delete => 0 },
495
);
496
497
=head2 old_reserves
498
499
Type: has_many
500
501
Related object: L<Koha::Schema::Result::OldReserve>
502
503
=cut
504
505
__PACKAGE__->has_many(
506
  "old_reserves",
507
  "Koha::Schema::Result::OldReserve",
508
  { "foreign.itemnumber" => "self.itemnumber" },
509
  { cascade_copy => 0, cascade_delete => 0 },
510
);
511
512
=head2 reserves
513
514
Type: has_many
515
516
Related object: L<Koha::Schema::Result::Reserve>
517
518
=cut
519
520
__PACKAGE__->has_many(
521
  "reserves",
522
  "Koha::Schema::Result::Reserve",
523
  { "foreign.itemnumber" => "self.itemnumber" },
524
  { cascade_copy => 0, cascade_delete => 0 },
525
);
526
527
=head2 serialitem
528
529
Type: might_have
530
531
Related object: L<Koha::Schema::Result::Serialitem>
532
533
=cut
534
535
__PACKAGE__->might_have(
536
  "serialitem",
537
  "Koha::Schema::Result::Serialitem",
538
  { "foreign.itemnumber" => "self.itemnumber" },
539
  { cascade_copy => 0, cascade_delete => 0 },
540
);
541
542
543
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
544
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f3HngbnArIKegakzHgcFBg
545
546
547
# You can replace this text with custom content, and it will be preserved on regeneration
548
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.07000 @ 2012-09-02 08:44:15
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u0W8zw5k/6shlotWbr/5UA
71
72
73
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
108
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U4zQb4FXeB0GE8+Kyp9X1Q
109
110
111
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WmYReEEJY/1M9lgDnNVZWA
71
72
73
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
54
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vwUWEmP6tprD5pTK2xnqfw
55
56
57
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
45
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AF0TN1yPhye2rmM2hqjBhw
46
47
48
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
45
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JZq4ORzniNZ2ureISmxuYg
46
47
48
# You can replace this text with custom content, and it will be preserved on regeneration
49
1;
(-)a/Koha/Schema/Result/LanguageSubtagRegistry.pm (+73 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
  is_nullable: 1
44
45
=head2 id
46
47
  data_type: 'integer'
48
  is_auto_increment: 1
49
  is_nullable: 0
50
51
=cut
52
53
__PACKAGE__->add_columns(
54
  "subtag",
55
  { data_type => "varchar", is_nullable => 1, size => 25 },
56
  "type",
57
  { data_type => "varchar", is_nullable => 1, size => 25 },
58
  "description",
59
  { data_type => "varchar", is_nullable => 1, size => 25 },
60
  "added",
61
  { data_type => "date", is_nullable => 1 },
62
  "id",
63
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
64
);
65
__PACKAGE__->set_primary_key("id");
66
67
68
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
69
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3XkyaSdpFe0F5KktVox9nQ
70
71
72
# You can replace this text with custom content, and it will be preserved on regeneration
73
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.07000 @ 2012-09-02 08:44:15
111
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MDVfBFxikRa6QrFHs549ZA
112
113
114
# You can replace this text with custom content, and it will be preserved on regeneration
115
1;
(-)a/Koha/Schema/Result/Linktracker.pm (+77 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Linktracker;
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::Linktracker
15
16
=cut
17
18
__PACKAGE__->table("linktracker");
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 biblionumber
29
30
  data_type: 'integer'
31
  is_nullable: 1
32
33
=head2 itemnumber
34
35
  data_type: 'integer'
36
  is_nullable: 1
37
38
=head2 borrowernumber
39
40
  data_type: 'integer'
41
  is_nullable: 1
42
43
=head2 url
44
45
  data_type: 'text'
46
  is_nullable: 1
47
48
=head2 timeclicked
49
50
  data_type: 'datetime'
51
  is_nullable: 1
52
53
=cut
54
55
__PACKAGE__->add_columns(
56
  "id",
57
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
58
  "biblionumber",
59
  { data_type => "integer", is_nullable => 1 },
60
  "itemnumber",
61
  { data_type => "integer", is_nullable => 1 },
62
  "borrowernumber",
63
  { data_type => "integer", is_nullable => 1 },
64
  "url",
65
  { data_type => "text", is_nullable => 1 },
66
  "timeclicked",
67
  { data_type => "datetime", is_nullable => 1 },
68
);
69
__PACKAGE__->set_primary_key("id");
70
71
72
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
73
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6e2s/DzzRjvXXrusUC4TZg
74
75
76
# You can replace this text with custom content, and it will be preserved on regeneration
77
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.07000 @ 2012-09-02 08:44:15
125
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iZyWhA28vO7VHWXtE473TQ
126
127
128
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
175
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6UMADnf1NRqg+kxGn1LdrQ
176
177
178
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
90
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wQUMc8pLSjTOgr7+Z6sscQ
91
92
93
# You can replace this text with custom content, 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
  { 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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
105
);
106
107
108
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R2duGZidKaVVqnfQP5pSvQ
110
111
112
# You can replace this text with custom content, 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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
73
);
74
75
76
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
77
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GBxofoXbX0KRwU1fa5bQ2g
78
79
80
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
136
);
137
138
139
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ltzMXDHk2L7ECkLUrGXyzA
141
142
143
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
124
);
125
126
127
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
128
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/7C/jFYOMSF/AtJViHH7jQ
129
130
131
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
73
);
74
75
76
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
77
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bfVMJiFqfjhc8fSKXNEtBA
78
79
80
# You can replace this text with custom content, and it will be preserved on regeneration
81
1;
(-)a/Koha/Schema/Result/Message.pm (+84 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
  default_value: current_timestamp
54
  is_nullable: 0
55
56
=cut
57
58
__PACKAGE__->add_columns(
59
  "message_id",
60
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
61
  "borrowernumber",
62
  { data_type => "integer", is_nullable => 0 },
63
  "branchcode",
64
  { data_type => "varchar", is_nullable => 1, size => 10 },
65
  "message_type",
66
  { data_type => "varchar", is_nullable => 0, size => 1 },
67
  "message",
68
  { data_type => "text", is_nullable => 0 },
69
  "message_date",
70
  {
71
    data_type     => "timestamp",
72
    default_value => \"current_timestamp",
73
    is_nullable   => 0,
74
  },
75
);
76
__PACKAGE__->set_primary_key("message_id");
77
78
79
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
80
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fEt+ILa1HzB4aXmXkk8XXg
81
82
83
# You can replace this text with custom content, and it will be preserved on regeneration
84
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.07000 @ 2012-09-02 08:44:15
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nJqtM1tc/ouojD5I8+qg0A
89
90
91
# You can replace this text with custom content, and it will be preserved on regeneration
92
1;
(-)a/Koha/Schema/Result/MessageQueue.pm (+166 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
  default_value: current_timestamp
73
  is_nullable: 0
74
75
=head2 to_address
76
77
  data_type: 'mediumtext'
78
  is_nullable: 1
79
80
=head2 from_address
81
82
  data_type: 'mediumtext'
83
  is_nullable: 1
84
85
=head2 content_type
86
87
  data_type: 'text'
88
  is_nullable: 1
89
90
=cut
91
92
__PACKAGE__->add_columns(
93
  "message_id",
94
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
95
  "borrowernumber",
96
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
97
  "subject",
98
  { data_type => "text", is_nullable => 1 },
99
  "content",
100
  { data_type => "text", is_nullable => 1 },
101
  "metadata",
102
  { data_type => "text", is_nullable => 1 },
103
  "letter_code",
104
  { data_type => "varchar", is_nullable => 1, size => 64 },
105
  "message_transport_type",
106
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 20 },
107
  "status",
108
  {
109
    data_type => "enum",
110
    default_value => "pending",
111
    extra => { list => ["sent", "pending", "failed", "deleted"] },
112
    is_nullable => 0,
113
  },
114
  "time_queued",
115
  {
116
    data_type     => "timestamp",
117
    default_value => \"current_timestamp",
118
    is_nullable   => 0,
119
  },
120
  "to_address",
121
  { data_type => "mediumtext", is_nullable => 1 },
122
  "from_address",
123
  { data_type => "mediumtext", is_nullable => 1 },
124
  "content_type",
125
  { data_type => "text", is_nullable => 1 },
126
);
127
128
=head1 RELATIONS
129
130
=head2 borrowernumber
131
132
Type: belongs_to
133
134
Related object: L<Koha::Schema::Result::Borrower>
135
136
=cut
137
138
__PACKAGE__->belongs_to(
139
  "borrowernumber",
140
  "Koha::Schema::Result::Borrower",
141
  { borrowernumber => "borrowernumber" },
142
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
143
);
144
145
=head2 message_transport_type
146
147
Type: belongs_to
148
149
Related object: L<Koha::Schema::Result::MessageTransportType>
150
151
=cut
152
153
__PACKAGE__->belongs_to(
154
  "message_transport_type",
155
  "Koha::Schema::Result::MessageTransportType",
156
  { message_transport_type => "message_transport_type" },
157
  { on_delete => "CASCADE", on_update => "CASCADE" },
158
);
159
160
161
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
162
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kcpiO2MjqoETlnMyCBhP6Q
163
164
165
# You can replace this text with custom content, and it will be preserved on regeneration
166
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
  { 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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
150
);
151
152
153
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
154
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:erQZqSSp25HrYkWlHaaF9g
155
156
157
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mEnlVv5CZ+YeZCHiOlk45g
92
93
94
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8PCvOl9x3QoD3aqi9CCBwA
54
55
56
# You can replace this text with custom content, and it will be preserved on regeneration
57
1;
(-)a/Koha/Schema/Result/Notify.pm (+88 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
  is_nullable: 1
44
45
=head2 notify_send_date
46
47
  data_type: 'date'
48
  is_nullable: 1
49
50
=head2 notify_level
51
52
  data_type: 'integer'
53
  default_value: 0
54
  is_nullable: 0
55
56
=head2 method
57
58
  data_type: 'varchar'
59
  default_value: (empty string)
60
  is_nullable: 0
61
  size: 20
62
63
=cut
64
65
__PACKAGE__->add_columns(
66
  "notify_id",
67
  { data_type => "integer", default_value => 0, is_nullable => 0 },
68
  "borrowernumber",
69
  { data_type => "integer", default_value => 0, is_nullable => 0 },
70
  "itemnumber",
71
  { data_type => "integer", default_value => 0, is_nullable => 0 },
72
  "notify_date",
73
  { data_type => "date", is_nullable => 1 },
74
  "notify_send_date",
75
  { data_type => "date", is_nullable => 1 },
76
  "notify_level",
77
  { data_type => "integer", default_value => 0, is_nullable => 0 },
78
  "method",
79
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
80
);
81
82
83
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
84
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ldEIateKiL5a9392TykxWA
85
86
87
# You can replace this text with custom content, and it will be preserved on regeneration
88
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.07000 @ 2012-09-02 08:44:15
60
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HEbJLtO1Tpyvy9/w8dnS2w
61
62
63
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HbNoD2MpVTh5RyvbUZYizA
103
104
105
# You can replace this text with custom content, 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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UkR8n4x6yZOGCMP10KvnRg
79
80
81
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
58
);
59
60
61
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
62
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aOzHC9btK44D6oF9qhpidQ
63
64
65
# You can replace this text with custom content, 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vWEr0nzPAHZAmjsA2NAaQQ
79
80
81
# You can replace this text with custom content, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/OldIssue.pm (+152 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
  is_nullable: 1
38
39
=head2 branchcode
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 10
44
45
=head2 issuingbranch
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 18
50
51
=head2 returndate
52
53
  data_type: 'datetime'
54
  is_nullable: 1
55
56
=head2 lastreneweddate
57
58
  data_type: 'datetime'
59
  is_nullable: 1
60
61
=head2 return
62
63
  data_type: 'varchar'
64
  is_nullable: 1
65
  size: 4
66
67
=head2 renewals
68
69
  data_type: 'tinyint'
70
  is_nullable: 1
71
72
=head2 timestamp
73
74
  data_type: 'timestamp'
75
  default_value: current_timestamp
76
  is_nullable: 0
77
78
=head2 issuedate
79
80
  data_type: 'datetime'
81
  is_nullable: 1
82
83
=cut
84
85
__PACKAGE__->add_columns(
86
  "borrowernumber",
87
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
88
  "itemnumber",
89
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
90
  "date_due",
91
  { data_type => "datetime", is_nullable => 1 },
92
  "branchcode",
93
  { data_type => "varchar", is_nullable => 1, size => 10 },
94
  "issuingbranch",
95
  { data_type => "varchar", is_nullable => 1, size => 18 },
96
  "returndate",
97
  { data_type => "datetime", is_nullable => 1 },
98
  "lastreneweddate",
99
  { data_type => "datetime", is_nullable => 1 },
100
  "return",
101
  { data_type => "varchar", is_nullable => 1, size => 4 },
102
  "renewals",
103
  { data_type => "tinyint", is_nullable => 1 },
104
  "timestamp",
105
  {
106
    data_type     => "timestamp",
107
    default_value => \"current_timestamp",
108
    is_nullable   => 0,
109
  },
110
  "issuedate",
111
  { data_type => "datetime", is_nullable => 1 },
112
);
113
114
=head1 RELATIONS
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
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
129
);
130
131
=head2 itemnumber
132
133
Type: belongs_to
134
135
Related object: L<Koha::Schema::Result::Item>
136
137
=cut
138
139
__PACKAGE__->belongs_to(
140
  "itemnumber",
141
  "Koha::Schema::Result::Item",
142
  { itemnumber => "itemnumber" },
143
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
144
);
145
146
147
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
148
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OmCAF2QYzR59eHr1w51seA
149
150
151
# You can replace this text with custom content, and it will be preserved on regeneration
152
1;
(-)a/Koha/Schema/Result/OldReserve.pm (+233 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
  is_nullable: 1
37
38
=head2 biblionumber
39
40
  data_type: 'integer'
41
  is_foreign_key: 1
42
  is_nullable: 1
43
44
=head2 constrainttype
45
46
  data_type: 'varchar'
47
  is_nullable: 1
48
  size: 1
49
50
=head2 branchcode
51
52
  data_type: 'varchar'
53
  is_nullable: 1
54
  size: 10
55
56
=head2 notificationdate
57
58
  data_type: 'date'
59
  is_nullable: 1
60
61
=head2 reminderdate
62
63
  data_type: 'date'
64
  is_nullable: 1
65
66
=head2 cancellationdate
67
68
  data_type: 'date'
69
  is_nullable: 1
70
71
=head2 reservenotes
72
73
  data_type: 'mediumtext'
74
  is_nullable: 1
75
76
=head2 priority
77
78
  data_type: 'smallint'
79
  is_nullable: 1
80
81
=head2 found
82
83
  data_type: 'varchar'
84
  is_nullable: 1
85
  size: 1
86
87
=head2 timestamp
88
89
  data_type: 'timestamp'
90
  default_value: current_timestamp
91
  is_nullable: 0
92
93
=head2 itemnumber
94
95
  data_type: 'integer'
96
  is_foreign_key: 1
97
  is_nullable: 1
98
99
=head2 waitingdate
100
101
  data_type: 'date'
102
  is_nullable: 1
103
104
=head2 expirationdate
105
106
  data_type: 'date'
107
  is_nullable: 1
108
109
=head2 lowestpriority
110
111
  data_type: 'tinyint'
112
  is_nullable: 0
113
114
=head2 suspend
115
116
  data_type: 'tinyint'
117
  default_value: 0
118
  is_nullable: 0
119
120
=head2 suspend_until
121
122
  data_type: 'datetime'
123
  is_nullable: 1
124
125
=head2 maxpickupdate
126
127
  data_type: 'date'
128
  is_nullable: 1
129
130
=cut
131
132
__PACKAGE__->add_columns(
133
  "reserve_id",
134
  { data_type => "integer", is_nullable => 0 },
135
  "borrowernumber",
136
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
137
  "reservedate",
138
  { data_type => "date", is_nullable => 1 },
139
  "biblionumber",
140
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
141
  "constrainttype",
142
  { data_type => "varchar", is_nullable => 1, size => 1 },
143
  "branchcode",
144
  { data_type => "varchar", is_nullable => 1, size => 10 },
145
  "notificationdate",
146
  { data_type => "date", is_nullable => 1 },
147
  "reminderdate",
148
  { data_type => "date", is_nullable => 1 },
149
  "cancellationdate",
150
  { data_type => "date", is_nullable => 1 },
151
  "reservenotes",
152
  { data_type => "mediumtext", is_nullable => 1 },
153
  "priority",
154
  { data_type => "smallint", is_nullable => 1 },
155
  "found",
156
  { data_type => "varchar", is_nullable => 1, size => 1 },
157
  "timestamp",
158
  {
159
    data_type     => "timestamp",
160
    default_value => \"current_timestamp",
161
    is_nullable   => 0,
162
  },
163
  "itemnumber",
164
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
165
  "waitingdate",
166
  { data_type => "date", is_nullable => 1 },
167
  "expirationdate",
168
  { data_type => "date", is_nullable => 1 },
169
  "lowestpriority",
170
  { data_type => "tinyint", is_nullable => 0 },
171
  "suspend",
172
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
173
  "suspend_until",
174
  { data_type => "datetime", is_nullable => 1 },
175
  "maxpickupdate",
176
  { data_type => "date", is_nullable => 1 },
177
);
178
__PACKAGE__->set_primary_key("reserve_id");
179
180
=head1 RELATIONS
181
182
=head2 borrowernumber
183
184
Type: belongs_to
185
186
Related object: L<Koha::Schema::Result::Borrower>
187
188
=cut
189
190
__PACKAGE__->belongs_to(
191
  "borrowernumber",
192
  "Koha::Schema::Result::Borrower",
193
  { borrowernumber => "borrowernumber" },
194
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
195
);
196
197
=head2 biblionumber
198
199
Type: belongs_to
200
201
Related object: L<Koha::Schema::Result::Biblio>
202
203
=cut
204
205
__PACKAGE__->belongs_to(
206
  "biblionumber",
207
  "Koha::Schema::Result::Biblio",
208
  { biblionumber => "biblionumber" },
209
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
210
);
211
212
=head2 itemnumber
213
214
Type: belongs_to
215
216
Related object: L<Koha::Schema::Result::Item>
217
218
=cut
219
220
__PACKAGE__->belongs_to(
221
  "itemnumber",
222
  "Koha::Schema::Result::Item",
223
  { itemnumber => "itemnumber" },
224
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
225
);
226
227
228
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
229
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ni1RNxdeOoypM+GwYu1vAQ
230
231
232
# You can replace this text with custom content, and it will be preserved on regeneration
233
1;
(-)a/Koha/Schema/Result/OpacNews.pm (+100 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
  default_value: current_timestamp
53
  is_nullable: 0
54
55
=head2 expirationdate
56
57
  data_type: 'date'
58
  is_nullable: 1
59
60
=head2 number
61
62
  data_type: 'integer'
63
  is_nullable: 1
64
65
=cut
66
67
__PACKAGE__->add_columns(
68
  "idnew",
69
  {
70
    data_type => "integer",
71
    extra => { unsigned => 1 },
72
    is_auto_increment => 1,
73
    is_nullable => 0,
74
  },
75
  "title",
76
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 250 },
77
  "new",
78
  { accessor => undef, data_type => "text", is_nullable => 0 },
79
  "lang",
80
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 25 },
81
  "timestamp",
82
  {
83
    data_type     => "timestamp",
84
    default_value => \"current_timestamp",
85
    is_nullable   => 0,
86
  },
87
  "expirationdate",
88
  { data_type => "date", is_nullable => 1 },
89
  "number",
90
  { data_type => "integer", is_nullable => 1 },
91
);
92
__PACKAGE__->set_primary_key("idnew");
93
94
95
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8SrbfmWUXmR8I47YLpPUrQ
97
98
99
# You can replace this text with custom content, and it will be preserved on regeneration
100
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.07000 @ 2012-09-02 08:44:15
119
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+T3rLwxGA8EmTYnW2sbxQA
120
121
122
# You can replace this text with custom content, and it will be preserved on regeneration
123
1;
(-)a/Koha/Schema/Result/Patroncard.pm (+88 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
  default_value: current_timestamp
45
  is_nullable: 0
46
47
=cut
48
49
__PACKAGE__->add_columns(
50
  "cardid",
51
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
52
  "batch_id",
53
  { data_type => "varchar", default_value => 1, is_nullable => 0, size => 10 },
54
  "borrowernumber",
55
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
56
  "timestamp",
57
  {
58
    data_type     => "timestamp",
59
    default_value => \"current_timestamp",
60
    is_nullable   => 0,
61
  },
62
);
63
__PACKAGE__->set_primary_key("cardid");
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
  { on_delete => "CASCADE", on_update => "CASCADE" },
80
);
81
82
83
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
84
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b/bNxn2Ca/bwRUjZjkoYBg
85
86
87
# You can replace this text with custom content, and it will be preserved on regeneration
88
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
  { on_delete => "CASCADE", on_update => "CASCADE" },
67
);
68
69
70
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uUZssek71kRNmlil85374w
72
73
74
# You can replace this text with custom content, and it will be preserved on regeneration
75
1;
(-)a/Koha/Schema/Result/PendingOfflineOperation.pm (+102 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
  default_value: current_timestamp
44
  is_nullable: 0
45
46
=head2 action
47
48
  data_type: 'varchar'
49
  is_nullable: 0
50
  size: 10
51
52
=head2 barcode
53
54
  data_type: 'varchar'
55
  is_nullable: 1
56
  size: 20
57
58
=head2 cardnumber
59
60
  data_type: 'varchar'
61
  is_nullable: 1
62
  size: 16
63
64
=head2 amount
65
66
  data_type: 'decimal'
67
  is_nullable: 1
68
  size: [28,6]
69
70
=cut
71
72
__PACKAGE__->add_columns(
73
  "operationid",
74
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
75
  "userid",
76
  { data_type => "varchar", is_nullable => 0, size => 30 },
77
  "branchcode",
78
  { data_type => "varchar", is_nullable => 0, size => 10 },
79
  "timestamp",
80
  {
81
    data_type     => "timestamp",
82
    default_value => \"current_timestamp",
83
    is_nullable   => 0,
84
  },
85
  "action",
86
  { data_type => "varchar", is_nullable => 0, size => 10 },
87
  "barcode",
88
  { data_type => "varchar", is_nullable => 1, size => 20 },
89
  "cardnumber",
90
  { data_type => "varchar", is_nullable => 1, size => 16 },
91
  "amount",
92
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
93
);
94
__PACKAGE__->set_primary_key("operationid");
95
96
97
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
98
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ECj0ps97NmZowYLZv++zbA
99
100
101
# You can replace this text with custom content, and it will be preserved on regeneration
102
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
  { 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.07000 @ 2012-09-02 08:44:15
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7SlWDbIpDYaLcMUnNAH0tA
97
98
99
# You can replace this text with custom content, and it will be preserved on regeneration
100
1;
(-)a/Koha/Schema/Result/PluginData.pm (+57 lines)
Line 0 Link Here
1
package Koha::Schema::Result::PluginData;
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::PluginData
15
16
=cut
17
18
__PACKAGE__->table("plugin_data");
19
20
=head1 ACCESSORS
21
22
=head2 plugin_class
23
24
  data_type: 'varchar'
25
  is_nullable: 0
26
  size: 255
27
28
=head2 plugin_key
29
30
  data_type: 'varchar'
31
  is_nullable: 0
32
  size: 255
33
34
=head2 plugin_value
35
36
  data_type: 'text'
37
  is_nullable: 1
38
39
=cut
40
41
__PACKAGE__->add_columns(
42
  "plugin_class",
43
  { data_type => "varchar", is_nullable => 0, size => 255 },
44
  "plugin_key",
45
  { data_type => "varchar", is_nullable => 0, size => 255 },
46
  "plugin_value",
47
  { data_type => "text", is_nullable => 1 },
48
);
49
__PACKAGE__->set_primary_key("plugin_class", "plugin_key");
50
51
52
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XC9EptLCJK8QWBHGy1TnPw
54
55
56
# You can replace this text with custom content, and it will be preserved on regeneration
57
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.07000 @ 2012-09-02 08:44:15
55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p7tep/srWDawkdyyilJbOw
56
57
58
# You can replace this text with custom content, 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 template_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
  "template_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", "template_id", "paper_bin", "creator"],
129
);
130
131
132
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1hyMy9lC23Te5l2gW++DVA
134
135
136
# You can replace this text with custom content, and it will be preserved on regeneration
137
1;
(-)a/Koha/Schema/Result/Quote.pm (+63 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
  is_nullable: 0
42
43
=cut
44
45
__PACKAGE__->add_columns(
46
  "id",
47
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
48
  "source",
49
  { data_type => "text", is_nullable => 1 },
50
  "text",
51
  { data_type => "mediumtext", is_nullable => 0 },
52
  "timestamp",
53
  { data_type => "datetime", is_nullable => 0 },
54
);
55
__PACKAGE__->set_primary_key("id");
56
57
58
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hvVwAMhaq9dIxuEMbWPNZA
60
61
62
# You can replace this text with custom content, and it will be preserved on regeneration
63
1;
(-)a/Koha/Schema/Result/Rating.pm (+101 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
  default_value: current_timestamp
43
  is_nullable: 0
44
45
=cut
46
47
__PACKAGE__->add_columns(
48
  "borrowernumber",
49
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
50
  "biblionumber",
51
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
52
  "rating_value",
53
  { data_type => "tinyint", is_nullable => 0 },
54
  "timestamp",
55
  {
56
    data_type     => "timestamp",
57
    default_value => \"current_timestamp",
58
    is_nullable   => 0,
59
  },
60
);
61
__PACKAGE__->set_primary_key("borrowernumber", "biblionumber");
62
63
=head1 RELATIONS
64
65
=head2 borrowernumber
66
67
Type: belongs_to
68
69
Related object: L<Koha::Schema::Result::Borrower>
70
71
=cut
72
73
__PACKAGE__->belongs_to(
74
  "borrowernumber",
75
  "Koha::Schema::Result::Borrower",
76
  { borrowernumber => "borrowernumber" },
77
  { on_delete => "CASCADE", on_update => "CASCADE" },
78
);
79
80
=head2 biblionumber
81
82
Type: belongs_to
83
84
Related object: L<Koha::Schema::Result::Biblio>
85
86
=cut
87
88
__PACKAGE__->belongs_to(
89
  "biblionumber",
90
  "Koha::Schema::Result::Biblio",
91
  { biblionumber => "biblionumber" },
92
  { on_delete => "CASCADE", on_update => "CASCADE" },
93
);
94
95
96
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
97
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oLsBtL2RwbArN1s9DYlrow
98
99
100
# You can replace this text with custom content, and it will be preserved on regeneration
101
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.07000 @ 2012-09-02 08:44:15
84
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9CaAbUmcE7O8TT5NZivX1Q
85
86
87
# You can replace this text with custom content, and it will be preserved on regeneration
88
1;
(-)a/Koha/Schema/Result/ReportsDictionary.pm (+86 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
  is_nullable: 1
43
44
=head2 date_modified
45
46
  data_type: 'datetime'
47
  is_nullable: 1
48
49
=head2 saved_sql
50
51
  data_type: 'text'
52
  is_nullable: 1
53
54
=head2 report_area
55
56
  data_type: 'varchar'
57
  is_nullable: 1
58
  size: 6
59
60
=cut
61
62
__PACKAGE__->add_columns(
63
  "id",
64
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
65
  "name",
66
  { data_type => "varchar", is_nullable => 1, size => 255 },
67
  "description",
68
  { data_type => "text", is_nullable => 1 },
69
  "date_created",
70
  { data_type => "datetime", is_nullable => 1 },
71
  "date_modified",
72
  { data_type => "datetime", is_nullable => 1 },
73
  "saved_sql",
74
  { data_type => "text", is_nullable => 1 },
75
  "report_area",
76
  { data_type => "varchar", is_nullable => 1, size => 6 },
77
);
78
__PACKAGE__->set_primary_key("id");
79
80
81
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
82
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ko3D4HyI5Uspi17YOtowbQ
83
84
85
# You can replace this text with custom content, and it will be preserved on regeneration
86
1;
(-)a/Koha/Schema/Result/Reserve.pm (+262 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
  is_nullable: 1
39
40
=head2 biblionumber
41
42
  data_type: 'integer'
43
  default_value: 0
44
  is_foreign_key: 1
45
  is_nullable: 0
46
47
=head2 constrainttype
48
49
  data_type: 'varchar'
50
  is_nullable: 1
51
  size: 1
52
53
=head2 branchcode
54
55
  data_type: 'varchar'
56
  is_foreign_key: 1
57
  is_nullable: 1
58
  size: 10
59
60
=head2 notificationdate
61
62
  data_type: 'date'
63
  is_nullable: 1
64
65
=head2 reminderdate
66
67
  data_type: 'date'
68
  is_nullable: 1
69
70
=head2 cancellationdate
71
72
  data_type: 'date'
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
  default_value: current_timestamp
95
  is_nullable: 0
96
97
=head2 itemnumber
98
99
  data_type: 'integer'
100
  is_foreign_key: 1
101
  is_nullable: 1
102
103
=head2 waitingdate
104
105
  data_type: 'date'
106
  is_nullable: 1
107
108
=head2 expirationdate
109
110
  data_type: 'date'
111
  is_nullable: 1
112
113
=head2 lowestpriority
114
115
  data_type: 'tinyint'
116
  is_nullable: 0
117
118
=head2 suspend
119
120
  data_type: 'tinyint'
121
  default_value: 0
122
  is_nullable: 0
123
124
=head2 suspend_until
125
126
  data_type: 'datetime'
127
  is_nullable: 1
128
129
=head2 maxpickupdate
130
131
  data_type: 'date'
132
  is_nullable: 1
133
134
=cut
135
136
__PACKAGE__->add_columns(
137
  "reserve_id",
138
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
139
  "borrowernumber",
140
  {
141
    data_type      => "integer",
142
    default_value  => 0,
143
    is_foreign_key => 1,
144
    is_nullable    => 0,
145
  },
146
  "reservedate",
147
  { data_type => "date", is_nullable => 1 },
148
  "biblionumber",
149
  {
150
    data_type      => "integer",
151
    default_value  => 0,
152
    is_foreign_key => 1,
153
    is_nullable    => 0,
154
  },
155
  "constrainttype",
156
  { data_type => "varchar", is_nullable => 1, size => 1 },
157
  "branchcode",
158
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
159
  "notificationdate",
160
  { data_type => "date", is_nullable => 1 },
161
  "reminderdate",
162
  { data_type => "date", is_nullable => 1 },
163
  "cancellationdate",
164
  { data_type => "date", is_nullable => 1 },
165
  "reservenotes",
166
  { data_type => "mediumtext", is_nullable => 1 },
167
  "priority",
168
  { data_type => "smallint", is_nullable => 1 },
169
  "found",
170
  { data_type => "varchar", is_nullable => 1, size => 1 },
171
  "timestamp",
172
  {
173
    data_type     => "timestamp",
174
    default_value => \"current_timestamp",
175
    is_nullable   => 0,
176
  },
177
  "itemnumber",
178
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
179
  "waitingdate",
180
  { data_type => "date", is_nullable => 1 },
181
  "expirationdate",
182
  { data_type => "date", is_nullable => 1 },
183
  "lowestpriority",
184
  { data_type => "tinyint", is_nullable => 0 },
185
  "suspend",
186
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
187
  "suspend_until",
188
  { data_type => "datetime", is_nullable => 1 },
189
  "maxpickupdate",
190
  { data_type => "date", is_nullable => 1 },
191
);
192
__PACKAGE__->set_primary_key("reserve_id");
193
194
=head1 RELATIONS
195
196
=head2 borrowernumber
197
198
Type: belongs_to
199
200
Related object: L<Koha::Schema::Result::Borrower>
201
202
=cut
203
204
__PACKAGE__->belongs_to(
205
  "borrowernumber",
206
  "Koha::Schema::Result::Borrower",
207
  { borrowernumber => "borrowernumber" },
208
  { on_delete => "CASCADE", on_update => "CASCADE" },
209
);
210
211
=head2 biblionumber
212
213
Type: belongs_to
214
215
Related object: L<Koha::Schema::Result::Biblio>
216
217
=cut
218
219
__PACKAGE__->belongs_to(
220
  "biblionumber",
221
  "Koha::Schema::Result::Biblio",
222
  { biblionumber => "biblionumber" },
223
  { on_delete => "CASCADE", on_update => "CASCADE" },
224
);
225
226
=head2 itemnumber
227
228
Type: belongs_to
229
230
Related object: L<Koha::Schema::Result::Item>
231
232
=cut
233
234
__PACKAGE__->belongs_to(
235
  "itemnumber",
236
  "Koha::Schema::Result::Item",
237
  { itemnumber => "itemnumber" },
238
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
239
);
240
241
=head2 branchcode
242
243
Type: belongs_to
244
245
Related object: L<Koha::Schema::Result::Branch>
246
247
=cut
248
249
__PACKAGE__->belongs_to(
250
  "branchcode",
251
  "Koha::Schema::Result::Branch",
252
  { branchcode => "branchcode" },
253
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
254
);
255
256
257
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
258
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RqJFYCoDl4dMH1cwZilLKA
259
260
261
# You can replace this text with custom content, and it will be preserved on regeneration
262
1;
(-)a/Koha/Schema/Result/Reserveconstraint.pm (+75 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
  is_nullable: 1
32
33
=head2 biblionumber
34
35
  data_type: 'integer'
36
  default_value: 0
37
  is_nullable: 0
38
39
=head2 biblioitemnumber
40
41
  data_type: 'integer'
42
  is_nullable: 1
43
44
=head2 timestamp
45
46
  data_type: 'timestamp'
47
  default_value: current_timestamp
48
  is_nullable: 0
49
50
=cut
51
52
__PACKAGE__->add_columns(
53
  "borrowernumber",
54
  { data_type => "integer", default_value => 0, is_nullable => 0 },
55
  "reservedate",
56
  { data_type => "date", is_nullable => 1 },
57
  "biblionumber",
58
  { data_type => "integer", default_value => 0, is_nullable => 0 },
59
  "biblioitemnumber",
60
  { data_type => "integer", is_nullable => 1 },
61
  "timestamp",
62
  {
63
    data_type     => "timestamp",
64
    default_value => \"current_timestamp",
65
    is_nullable   => 0,
66
  },
67
);
68
69
70
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yniuV8y2QVTDUjDCz/Y3Sg
72
73
74
# You can replace this text with custom content, and it will be preserved on regeneration
75
1;
(-)a/Koha/Schema/Result/Review.pm (+111 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
  is_nullable: 1
54
55
=cut
56
57
__PACKAGE__->add_columns(
58
  "reviewid",
59
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60
  "borrowernumber",
61
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
62
  "biblionumber",
63
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
64
  "review",
65
  { data_type => "text", is_nullable => 1 },
66
  "approved",
67
  { data_type => "tinyint", is_nullable => 1 },
68
  "datereviewed",
69
  { data_type => "datetime", is_nullable => 1 },
70
);
71
__PACKAGE__->set_primary_key("reviewid");
72
73
=head1 RELATIONS
74
75
=head2 borrowernumber
76
77
Type: belongs_to
78
79
Related object: L<Koha::Schema::Result::Borrower>
80
81
=cut
82
83
__PACKAGE__->belongs_to(
84
  "borrowernumber",
85
  "Koha::Schema::Result::Borrower",
86
  { borrowernumber => "borrowernumber" },
87
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
88
);
89
90
=head2 biblionumber
91
92
Type: belongs_to
93
94
Related object: L<Koha::Schema::Result::Biblio>
95
96
=cut
97
98
__PACKAGE__->belongs_to(
99
  "biblionumber",
100
  "Koha::Schema::Result::Biblio",
101
  { biblionumber => "biblionumber" },
102
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
103
);
104
105
106
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wh7pS4fMj7YtJDl6GJ94lA
108
109
110
# You can replace this text with custom content, and it will be preserved on regeneration
111
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.07000 @ 2012-09-02 08:44:15
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wy1V1m2xfTm4hD+FLRHh/g
48
49
50
# You can replace this text with custom content, and it will be preserved on regeneration
51
1;
(-)a/Koha/Schema/Result/SavedReport.pm (+63 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
  is_nullable: 1
42
43
=cut
44
45
__PACKAGE__->add_columns(
46
  "id",
47
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
48
  "report_id",
49
  { data_type => "integer", is_nullable => 1 },
50
  "report",
51
  { data_type => "longtext", is_nullable => 1 },
52
  "date_run",
53
  { data_type => "datetime", is_nullable => 1 },
54
);
55
__PACKAGE__->set_primary_key("id");
56
57
58
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sChe1C7Uh2kfpYP40UItJQ
60
61
62
# You can replace this text with custom content, and it will be preserved on regeneration
63
1;
(-)a/Koha/Schema/Result/SavedSql.pm (+140 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
  is_nullable: 1
37
38
=head2 last_modified
39
40
  data_type: 'datetime'
41
  is_nullable: 1
42
43
=head2 savedsql
44
45
  data_type: 'text'
46
  is_nullable: 1
47
48
=head2 last_run
49
50
  data_type: 'datetime'
51
  is_nullable: 1
52
53
=head2 report_name
54
55
  data_type: 'varchar'
56
  is_nullable: 1
57
  size: 255
58
59
=head2 type
60
61
  data_type: 'varchar'
62
  is_nullable: 1
63
  size: 255
64
65
=head2 notes
66
67
  data_type: 'text'
68
  is_nullable: 1
69
70
=head2 cache_expiry
71
72
  data_type: 'integer'
73
  default_value: 300
74
  is_nullable: 0
75
76
=head2 public
77
78
  data_type: 'tinyint'
79
  default_value: 0
80
  is_nullable: 0
81
82
=head2 report_area
83
84
  data_type: 'varchar'
85
  is_nullable: 1
86
  size: 6
87
88
=head2 report_group
89
90
  data_type: 'varchar'
91
  is_nullable: 1
92
  size: 80
93
94
=head2 report_subgroup
95
96
  data_type: 'varchar'
97
  is_nullable: 1
98
  size: 80
99
100
=cut
101
102
__PACKAGE__->add_columns(
103
  "id",
104
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
105
  "borrowernumber",
106
  { data_type => "integer", is_nullable => 1 },
107
  "date_created",
108
  { data_type => "datetime", is_nullable => 1 },
109
  "last_modified",
110
  { data_type => "datetime", is_nullable => 1 },
111
  "savedsql",
112
  { data_type => "text", is_nullable => 1 },
113
  "last_run",
114
  { data_type => "datetime", is_nullable => 1 },
115
  "report_name",
116
  { data_type => "varchar", is_nullable => 1, size => 255 },
117
  "type",
118
  { data_type => "varchar", is_nullable => 1, size => 255 },
119
  "notes",
120
  { data_type => "text", is_nullable => 1 },
121
  "cache_expiry",
122
  { data_type => "integer", default_value => 300, is_nullable => 0 },
123
  "public",
124
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
125
  "report_area",
126
  { data_type => "varchar", is_nullable => 1, size => 6 },
127
  "report_group",
128
  { data_type => "varchar", is_nullable => 1, size => 80 },
129
  "report_subgroup",
130
  { data_type => "varchar", is_nullable => 1, size => 80 },
131
);
132
__PACKAGE__->set_primary_key("id");
133
134
135
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
136
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1R30mLFqauqtbEo86gnInw
137
138
139
# You can replace this text with custom content, and it will be preserved on regeneration
140
1;
(-)a/Koha/Schema/Result/SearchHistory.pm (+82 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: 'text'
42
  is_nullable: 0
43
44
=head2 total
45
46
  data_type: 'integer'
47
  is_nullable: 0
48
49
=head2 time
50
51
  data_type: 'timestamp'
52
  default_value: current_timestamp
53
  is_nullable: 0
54
55
=cut
56
57
__PACKAGE__->add_columns(
58
  "userid",
59
  { data_type => "integer", is_nullable => 0 },
60
  "sessionid",
61
  { data_type => "varchar", is_nullable => 0, size => 32 },
62
  "query_desc",
63
  { data_type => "varchar", is_nullable => 0, size => 255 },
64
  "query_cgi",
65
  { data_type => "text", is_nullable => 0 },
66
  "total",
67
  { data_type => "integer", is_nullable => 0 },
68
  "time",
69
  {
70
    data_type     => "timestamp",
71
    default_value => \"current_timestamp",
72
    is_nullable   => 0,
73
  },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:drsMVfTISlgQofUC0W7btg
79
80
81
# You can replace this text with custom content, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/Serial.pm (+129 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
  is_nullable: 1
59
60
=head2 notes
61
62
  data_type: 'text'
63
  is_nullable: 1
64
65
=head2 publisheddate
66
67
  data_type: 'date'
68
  is_nullable: 1
69
70
=head2 claimdate
71
72
  data_type: 'date'
73
  is_nullable: 1
74
75
=head2 routingnotes
76
77
  data_type: 'text'
78
  is_nullable: 1
79
80
=cut
81
82
__PACKAGE__->add_columns(
83
  "serialid",
84
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
85
  "biblionumber",
86
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
87
  "subscriptionid",
88
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
89
  "serialseq",
90
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
91
  "status",
92
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
93
  "planneddate",
94
  { data_type => "date", is_nullable => 1 },
95
  "notes",
96
  { data_type => "text", is_nullable => 1 },
97
  "publisheddate",
98
  { data_type => "date", is_nullable => 1 },
99
  "claimdate",
100
  { data_type => "date", is_nullable => 1 },
101
  "routingnotes",
102
  { data_type => "text", is_nullable => 1 },
103
);
104
__PACKAGE__->set_primary_key("serialid");
105
106
=head1 RELATIONS
107
108
=head2 serialitems
109
110
Type: has_many
111
112
Related object: L<Koha::Schema::Result::Serialitem>
113
114
=cut
115
116
__PACKAGE__->has_many(
117
  "serialitems",
118
  "Koha::Schema::Result::Serialitem",
119
  { "foreign.serialid" => "self.serialid" },
120
  { cascade_copy => 0, cascade_delete => 0 },
121
);
122
123
124
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
125
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6kL+JePSa/pT8Fvyrp2xow
126
127
128
# You can replace this text with custom content, and it will be preserved on regeneration
129
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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
74
);
75
76
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A1aGwJJeHrbyhAAtZkFl7g
79
80
81
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7zRTP55443DiLZKCWNjYug
48
49
50
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
45
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WGXVdUE5P5R+omVu4a+t/g
46
47
48
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
82
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jj5Z4o+iItaaMj9+9ZptTg
83
84
85
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IhSBoiyihNmEgIVcGbwZRg
96
97
98
# You can replace this text with custom content, and it will be preserved on regeneration
99
1;
(-)a/Koha/Schema/Result/Statistic.pm (+124 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
  is_nullable: 1
26
27
=head2 branch
28
29
  data_type: 'varchar'
30
  is_nullable: 1
31
  size: 10
32
33
=head2 proccode
34
35
  data_type: 'varchar'
36
  is_nullable: 1
37
  size: 4
38
39
=head2 value
40
41
  data_type: 'double precision'
42
  is_nullable: 1
43
  size: [16,4]
44
45
=head2 type
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 16
50
51
=head2 other
52
53
  data_type: 'mediumtext'
54
  is_nullable: 1
55
56
=head2 usercode
57
58
  data_type: 'varchar'
59
  is_nullable: 1
60
  size: 10
61
62
=head2 itemnumber
63
64
  data_type: 'integer'
65
  is_nullable: 1
66
67
=head2 itemtype
68
69
  data_type: 'varchar'
70
  is_nullable: 1
71
  size: 10
72
73
=head2 borrowernumber
74
75
  data_type: 'integer'
76
  is_nullable: 1
77
78
=head2 associatedborrower
79
80
  data_type: 'integer'
81
  is_nullable: 1
82
83
=head2 ccode
84
85
  data_type: 'varchar'
86
  is_nullable: 1
87
  size: 10
88
89
=cut
90
91
__PACKAGE__->add_columns(
92
  "datetime",
93
  { data_type => "datetime", is_nullable => 1 },
94
  "branch",
95
  { data_type => "varchar", is_nullable => 1, size => 10 },
96
  "proccode",
97
  { data_type => "varchar", is_nullable => 1, size => 4 },
98
  "value",
99
  { data_type => "double precision", is_nullable => 1, size => [16, 4] },
100
  "type",
101
  { data_type => "varchar", is_nullable => 1, size => 16 },
102
  "other",
103
  { data_type => "mediumtext", is_nullable => 1 },
104
  "usercode",
105
  { data_type => "varchar", is_nullable => 1, size => 10 },
106
  "itemnumber",
107
  { data_type => "integer", is_nullable => 1 },
108
  "itemtype",
109
  { data_type => "varchar", is_nullable => 1, size => 10 },
110
  "borrowernumber",
111
  { data_type => "integer", is_nullable => 1 },
112
  "associatedborrower",
113
  { data_type => "integer", is_nullable => 1 },
114
  "ccode",
115
  { data_type => "varchar", is_nullable => 1, size => 10 },
116
);
117
118
119
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
120
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JYb2c/mWBks4WwV/WDm5RA
121
122
123
# You can replace this text with custom content, and it will be preserved on regeneration
124
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.07000 @ 2012-09-02 08:44:15
37
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0iOCRqsG2oTw6Djq2O/6+w
38
39
40
# You can replace this text with custom content, and it will be preserved on regeneration
41
1;
(-)a/Koha/Schema/Result/Subscription.pm (+481 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
  is_nullable: 1
45
46
=head2 aqbooksellerid
47
48
  data_type: 'integer'
49
  default_value: 0
50
  is_nullable: 1
51
52
=head2 cost
53
54
  data_type: 'integer'
55
  default_value: 0
56
  is_nullable: 1
57
58
=head2 aqbudgetid
59
60
  data_type: 'integer'
61
  default_value: 0
62
  is_nullable: 1
63
64
=head2 weeklength
65
66
  data_type: 'integer'
67
  default_value: 0
68
  is_nullable: 1
69
70
=head2 monthlength
71
72
  data_type: 'integer'
73
  default_value: 0
74
  is_nullable: 1
75
76
=head2 numberlength
77
78
  data_type: 'integer'
79
  default_value: 0
80
  is_nullable: 1
81
82
=head2 periodicity
83
84
  data_type: 'tinyint'
85
  default_value: 0
86
  is_nullable: 1
87
88
=head2 dow
89
90
  data_type: 'varchar'
91
  default_value: (empty string)
92
  is_nullable: 1
93
  size: 100
94
95
=head2 numberingmethod
96
97
  data_type: 'varchar'
98
  default_value: (empty string)
99
  is_nullable: 1
100
  size: 100
101
102
=head2 notes
103
104
  data_type: 'mediumtext'
105
  is_nullable: 1
106
107
=head2 status
108
109
  data_type: 'varchar'
110
  default_value: (empty string)
111
  is_nullable: 0
112
  size: 100
113
114
=head2 add1
115
116
  data_type: 'integer'
117
  default_value: 0
118
  is_nullable: 1
119
120
=head2 every1
121
122
  data_type: 'integer'
123
  default_value: 0
124
  is_nullable: 1
125
126
=head2 whenmorethan1
127
128
  data_type: 'integer'
129
  default_value: 0
130
  is_nullable: 1
131
132
=head2 setto1
133
134
  data_type: 'integer'
135
  is_nullable: 1
136
137
=head2 lastvalue1
138
139
  data_type: 'integer'
140
  is_nullable: 1
141
142
=head2 add2
143
144
  data_type: 'integer'
145
  default_value: 0
146
  is_nullable: 1
147
148
=head2 every2
149
150
  data_type: 'integer'
151
  default_value: 0
152
  is_nullable: 1
153
154
=head2 whenmorethan2
155
156
  data_type: 'integer'
157
  default_value: 0
158
  is_nullable: 1
159
160
=head2 setto2
161
162
  data_type: 'integer'
163
  is_nullable: 1
164
165
=head2 lastvalue2
166
167
  data_type: 'integer'
168
  is_nullable: 1
169
170
=head2 add3
171
172
  data_type: 'integer'
173
  default_value: 0
174
  is_nullable: 1
175
176
=head2 every3
177
178
  data_type: 'integer'
179
  default_value: 0
180
  is_nullable: 1
181
182
=head2 innerloop1
183
184
  data_type: 'integer'
185
  default_value: 0
186
  is_nullable: 1
187
188
=head2 innerloop2
189
190
  data_type: 'integer'
191
  default_value: 0
192
  is_nullable: 1
193
194
=head2 innerloop3
195
196
  data_type: 'integer'
197
  default_value: 0
198
  is_nullable: 1
199
200
=head2 whenmorethan3
201
202
  data_type: 'integer'
203
  default_value: 0
204
  is_nullable: 1
205
206
=head2 setto3
207
208
  data_type: 'integer'
209
  is_nullable: 1
210
211
=head2 lastvalue3
212
213
  data_type: 'integer'
214
  is_nullable: 1
215
216
=head2 issuesatonce
217
218
  data_type: 'tinyint'
219
  default_value: 1
220
  is_nullable: 0
221
222
=head2 firstacquidate
223
224
  data_type: 'date'
225
  is_nullable: 1
226
227
=head2 manualhistory
228
229
  data_type: 'tinyint'
230
  default_value: 0
231
  is_nullable: 0
232
233
=head2 irregularity
234
235
  data_type: 'text'
236
  is_nullable: 1
237
238
=head2 letter
239
240
  data_type: 'varchar'
241
  is_nullable: 1
242
  size: 20
243
244
=head2 numberpattern
245
246
  data_type: 'tinyint'
247
  default_value: 0
248
  is_nullable: 1
249
250
=head2 distributedto
251
252
  data_type: 'text'
253
  is_nullable: 1
254
255
=head2 internalnotes
256
257
  data_type: 'longtext'
258
  is_nullable: 1
259
260
=head2 callnumber
261
262
  data_type: 'text'
263
  is_nullable: 1
264
265
=head2 location
266
267
  data_type: 'varchar'
268
  default_value: (empty string)
269
  is_nullable: 1
270
  size: 80
271
272
=head2 branchcode
273
274
  data_type: 'varchar'
275
  default_value: (empty string)
276
  is_nullable: 0
277
  size: 10
278
279
=head2 hemisphere
280
281
  data_type: 'tinyint'
282
  default_value: 0
283
  is_nullable: 1
284
285
=head2 lastbranch
286
287
  data_type: 'varchar'
288
  is_nullable: 1
289
  size: 10
290
291
=head2 serialsadditems
292
293
  data_type: 'tinyint'
294
  default_value: 0
295
  is_nullable: 0
296
297
=head2 staffdisplaycount
298
299
  data_type: 'varchar'
300
  is_nullable: 1
301
  size: 10
302
303
=head2 opacdisplaycount
304
305
  data_type: 'varchar'
306
  is_nullable: 1
307
  size: 10
308
309
=head2 graceperiod
310
311
  data_type: 'integer'
312
  default_value: 0
313
  is_nullable: 0
314
315
=head2 enddate
316
317
  data_type: 'date'
318
  is_nullable: 1
319
320
=head2 closed
321
322
  data_type: 'integer'
323
  default_value: 0
324
  is_nullable: 0
325
326
=head2 reneweddate
327
328
  data_type: 'date'
329
  is_nullable: 1
330
331
=cut
332
333
__PACKAGE__->add_columns(
334
  "biblionumber",
335
  { data_type => "integer", default_value => 0, is_nullable => 0 },
336
  "subscriptionid",
337
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
338
  "librarian",
339
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
340
  "startdate",
341
  { data_type => "date", is_nullable => 1 },
342
  "aqbooksellerid",
343
  { data_type => "integer", default_value => 0, is_nullable => 1 },
344
  "cost",
345
  { data_type => "integer", default_value => 0, is_nullable => 1 },
346
  "aqbudgetid",
347
  { data_type => "integer", default_value => 0, is_nullable => 1 },
348
  "weeklength",
349
  { data_type => "integer", default_value => 0, is_nullable => 1 },
350
  "monthlength",
351
  { data_type => "integer", default_value => 0, is_nullable => 1 },
352
  "numberlength",
353
  { data_type => "integer", default_value => 0, is_nullable => 1 },
354
  "periodicity",
355
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
356
  "dow",
357
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
358
  "numberingmethod",
359
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
360
  "notes",
361
  { data_type => "mediumtext", is_nullable => 1 },
362
  "status",
363
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
364
  "add1",
365
  { data_type => "integer", default_value => 0, is_nullable => 1 },
366
  "every1",
367
  { data_type => "integer", default_value => 0, is_nullable => 1 },
368
  "whenmorethan1",
369
  { data_type => "integer", default_value => 0, is_nullable => 1 },
370
  "setto1",
371
  { data_type => "integer", is_nullable => 1 },
372
  "lastvalue1",
373
  { data_type => "integer", is_nullable => 1 },
374
  "add2",
375
  { data_type => "integer", default_value => 0, is_nullable => 1 },
376
  "every2",
377
  { data_type => "integer", default_value => 0, is_nullable => 1 },
378
  "whenmorethan2",
379
  { data_type => "integer", default_value => 0, is_nullable => 1 },
380
  "setto2",
381
  { data_type => "integer", is_nullable => 1 },
382
  "lastvalue2",
383
  { data_type => "integer", is_nullable => 1 },
384
  "add3",
385
  { data_type => "integer", default_value => 0, is_nullable => 1 },
386
  "every3",
387
  { data_type => "integer", default_value => 0, is_nullable => 1 },
388
  "innerloop1",
389
  { data_type => "integer", default_value => 0, is_nullable => 1 },
390
  "innerloop2",
391
  { data_type => "integer", default_value => 0, is_nullable => 1 },
392
  "innerloop3",
393
  { data_type => "integer", default_value => 0, is_nullable => 1 },
394
  "whenmorethan3",
395
  { data_type => "integer", default_value => 0, is_nullable => 1 },
396
  "setto3",
397
  { data_type => "integer", is_nullable => 1 },
398
  "lastvalue3",
399
  { data_type => "integer", is_nullable => 1 },
400
  "issuesatonce",
401
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
402
  "firstacquidate",
403
  { data_type => "date", is_nullable => 1 },
404
  "manualhistory",
405
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
406
  "irregularity",
407
  { data_type => "text", is_nullable => 1 },
408
  "letter",
409
  { data_type => "varchar", is_nullable => 1, size => 20 },
410
  "numberpattern",
411
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
412
  "distributedto",
413
  { data_type => "text", is_nullable => 1 },
414
  "internalnotes",
415
  { data_type => "longtext", is_nullable => 1 },
416
  "callnumber",
417
  { data_type => "text", is_nullable => 1 },
418
  "location",
419
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 80 },
420
  "branchcode",
421
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
422
  "hemisphere",
423
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
424
  "lastbranch",
425
  { data_type => "varchar", is_nullable => 1, size => 10 },
426
  "serialsadditems",
427
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
428
  "staffdisplaycount",
429
  { data_type => "varchar", is_nullable => 1, size => 10 },
430
  "opacdisplaycount",
431
  { data_type => "varchar", is_nullable => 1, size => 10 },
432
  "graceperiod",
433
  { data_type => "integer", default_value => 0, is_nullable => 0 },
434
  "enddate",
435
  { data_type => "date", is_nullable => 1 },
436
  "closed",
437
  { data_type => "integer", default_value => 0, is_nullable => 0 },
438
  "reneweddate",
439
  { data_type => "date", is_nullable => 1 },
440
);
441
__PACKAGE__->set_primary_key("subscriptionid");
442
443
=head1 RELATIONS
444
445
=head2 aqorders
446
447
Type: has_many
448
449
Related object: L<Koha::Schema::Result::Aqorder>
450
451
=cut
452
453
__PACKAGE__->has_many(
454
  "aqorders",
455
  "Koha::Schema::Result::Aqorder",
456
  { "foreign.subscriptionid" => "self.subscriptionid" },
457
  { cascade_copy => 0, cascade_delete => 0 },
458
);
459
460
=head2 subscriptionroutinglists
461
462
Type: has_many
463
464
Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
465
466
=cut
467
468
__PACKAGE__->has_many(
469
  "subscriptionroutinglists",
470
  "Koha::Schema::Result::Subscriptionroutinglist",
471
  { "foreign.subscriptionid" => "self.subscriptionid" },
472
  { cascade_copy => 0, cascade_delete => 0 },
473
);
474
475
476
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
477
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dNaDbtGiAeSsPKEu2vd9sw
478
479
480
# You can replace this text with custom content, and it will be preserved on regeneration
481
1;
(-)a/Koha/Schema/Result/Subscriptionhistory.pm (+96 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
  is_nullable: 1
38
39
=head2 histenddate
40
41
  data_type: 'date'
42
  is_nullable: 1
43
44
=head2 missinglist
45
46
  data_type: 'longtext'
47
  is_nullable: 0
48
49
=head2 recievedlist
50
51
  data_type: 'longtext'
52
  is_nullable: 0
53
54
=head2 opacnote
55
56
  data_type: 'varchar'
57
  default_value: (empty string)
58
  is_nullable: 0
59
  size: 150
60
61
=head2 librariannote
62
63
  data_type: 'varchar'
64
  default_value: (empty string)
65
  is_nullable: 0
66
  size: 150
67
68
=cut
69
70
__PACKAGE__->add_columns(
71
  "biblionumber",
72
  { data_type => "integer", default_value => 0, is_nullable => 0 },
73
  "subscriptionid",
74
  { data_type => "integer", default_value => 0, is_nullable => 0 },
75
  "histstartdate",
76
  { data_type => "date", is_nullable => 1 },
77
  "histenddate",
78
  { data_type => "date", is_nullable => 1 },
79
  "missinglist",
80
  { data_type => "longtext", is_nullable => 0 },
81
  "recievedlist",
82
  { data_type => "longtext", is_nullable => 0 },
83
  "opacnote",
84
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 },
85
  "librariannote",
86
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 },
87
);
88
__PACKAGE__->set_primary_key("subscriptionid");
89
90
91
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sAkoymtV5cqWuY1fJi/UXg
93
94
95
# You can replace this text with custom content, and it will be preserved on regeneration
96
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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
90
);
91
92
93
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qzF+UEtZnlyDm5KBWgAODw
95
96
97
# You can replace this text with custom content, and it will be preserved on regeneration
98
1;
(-)a/Koha/Schema/Result/Suggestion.pm (+281 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
  default_value: '0000-00-00'
38
  is_nullable: 0
39
40
=head2 managedby
41
42
  data_type: 'integer'
43
  is_nullable: 1
44
45
=head2 manageddate
46
47
  data_type: 'date'
48
  is_nullable: 1
49
50
=head2 acceptedby
51
52
  data_type: 'integer'
53
  is_nullable: 1
54
55
=head2 accepteddate
56
57
  data_type: 'date'
58
  is_nullable: 1
59
60
=head2 rejectedby
61
62
  data_type: 'integer'
63
  is_nullable: 1
64
65
=head2 rejecteddate
66
67
  data_type: 'date'
68
  is_nullable: 1
69
70
=head2 status
71
72
  data_type: 'varchar'
73
  default_value: (empty string)
74
  is_nullable: 0
75
  size: 10
76
77
=head2 note
78
79
  data_type: 'mediumtext'
80
  is_nullable: 1
81
82
=head2 author
83
84
  data_type: 'varchar'
85
  is_nullable: 1
86
  size: 80
87
88
=head2 title
89
90
  data_type: 'varchar'
91
  is_nullable: 1
92
  size: 255
93
94
=head2 copyrightdate
95
96
  data_type: 'smallint'
97
  is_nullable: 1
98
99
=head2 publishercode
100
101
  data_type: 'varchar'
102
  is_nullable: 1
103
  size: 255
104
105
=head2 date
106
107
  data_type: 'timestamp'
108
  default_value: current_timestamp
109
  is_nullable: 0
110
111
=head2 volumedesc
112
113
  data_type: 'varchar'
114
  is_nullable: 1
115
  size: 255
116
117
=head2 publicationyear
118
119
  data_type: 'smallint'
120
  default_value: 0
121
  is_nullable: 1
122
123
=head2 place
124
125
  data_type: 'varchar'
126
  is_nullable: 1
127
  size: 255
128
129
=head2 isbn
130
131
  data_type: 'varchar'
132
  is_nullable: 1
133
  size: 30
134
135
=head2 mailoverseeing
136
137
  data_type: 'smallint'
138
  default_value: 0
139
  is_nullable: 1
140
141
=head2 biblionumber
142
143
  data_type: 'integer'
144
  is_nullable: 1
145
146
=head2 reason
147
148
  data_type: 'text'
149
  is_nullable: 1
150
151
=head2 patronreason
152
153
  data_type: 'text'
154
  is_nullable: 1
155
156
=head2 budgetid
157
158
  data_type: 'integer'
159
  is_nullable: 1
160
161
=head2 branchcode
162
163
  data_type: 'varchar'
164
  is_nullable: 1
165
  size: 10
166
167
=head2 collectiontitle
168
169
  data_type: 'text'
170
  is_nullable: 1
171
172
=head2 itemtype
173
174
  data_type: 'varchar'
175
  is_nullable: 1
176
  size: 30
177
178
=head2 quantity
179
180
  data_type: 'smallint'
181
  is_nullable: 1
182
183
=head2 currency
184
185
  data_type: 'varchar'
186
  is_nullable: 1
187
  size: 3
188
189
=head2 price
190
191
  data_type: 'decimal'
192
  is_nullable: 1
193
  size: [28,6]
194
195
=head2 total
196
197
  data_type: 'decimal'
198
  is_nullable: 1
199
  size: [28,6]
200
201
=cut
202
203
__PACKAGE__->add_columns(
204
  "suggestionid",
205
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
206
  "suggestedby",
207
  { data_type => "integer", default_value => 0, is_nullable => 0 },
208
  "suggesteddate",
209
  { data_type => "date", default_value => "0000-00-00", is_nullable => 0 },
210
  "managedby",
211
  { data_type => "integer", is_nullable => 1 },
212
  "manageddate",
213
  { data_type => "date", is_nullable => 1 },
214
  "acceptedby",
215
  { data_type => "integer", is_nullable => 1 },
216
  "accepteddate",
217
  { data_type => "date", is_nullable => 1 },
218
  "rejectedby",
219
  { data_type => "integer", is_nullable => 1 },
220
  "rejecteddate",
221
  { data_type => "date", is_nullable => 1 },
222
  "status",
223
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
224
  "note",
225
  { data_type => "mediumtext", is_nullable => 1 },
226
  "author",
227
  { data_type => "varchar", is_nullable => 1, size => 80 },
228
  "title",
229
  { data_type => "varchar", is_nullable => 1, size => 255 },
230
  "copyrightdate",
231
  { data_type => "smallint", is_nullable => 1 },
232
  "publishercode",
233
  { data_type => "varchar", is_nullable => 1, size => 255 },
234
  "date",
235
  {
236
    data_type     => "timestamp",
237
    default_value => \"current_timestamp",
238
    is_nullable   => 0,
239
  },
240
  "volumedesc",
241
  { data_type => "varchar", is_nullable => 1, size => 255 },
242
  "publicationyear",
243
  { data_type => "smallint", default_value => 0, is_nullable => 1 },
244
  "place",
245
  { data_type => "varchar", is_nullable => 1, size => 255 },
246
  "isbn",
247
  { data_type => "varchar", is_nullable => 1, size => 30 },
248
  "mailoverseeing",
249
  { data_type => "smallint", default_value => 0, is_nullable => 1 },
250
  "biblionumber",
251
  { data_type => "integer", is_nullable => 1 },
252
  "reason",
253
  { data_type => "text", is_nullable => 1 },
254
  "patronreason",
255
  { data_type => "text", is_nullable => 1 },
256
  "budgetid",
257
  { data_type => "integer", is_nullable => 1 },
258
  "branchcode",
259
  { data_type => "varchar", is_nullable => 1, size => 10 },
260
  "collectiontitle",
261
  { data_type => "text", is_nullable => 1 },
262
  "itemtype",
263
  { data_type => "varchar", is_nullable => 1, size => 30 },
264
  "quantity",
265
  { data_type => "smallint", is_nullable => 1 },
266
  "currency",
267
  { data_type => "varchar", is_nullable => 1, size => 3 },
268
  "price",
269
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
270
  "total",
271
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
272
);
273
__PACKAGE__->set_primary_key("suggestionid");
274
275
276
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
277
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FCZjU1DjqLCAcw+dSjpP/w
278
279
280
# You can replace this text with custom content, and it will be preserved on regeneration
281
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::Systempreference
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.07000 @ 2012-09-02 08:44:15
68
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qx8G91nKoJnDCDAMLg0ZUg
69
70
71
# You can replace this text with custom content, 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.07000 @ 2012-09-02 08:44:15
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c4CkWGECpxog9RqQrxw1Gg
48
49
50
# You can replace this text with custom content, and it will be preserved on regeneration
51
1;
(-)a/Koha/Schema/Result/TagAll.pm (+112 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
  is_nullable: 0
55
56
=cut
57
58
__PACKAGE__->add_columns(
59
  "tag_id",
60
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
61
  "borrowernumber",
62
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
63
  "biblionumber",
64
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
65
  "term",
66
  { data_type => "varchar", is_nullable => 0, size => 255 },
67
  "language",
68
  { data_type => "integer", is_nullable => 1 },
69
  "date_created",
70
  { data_type => "datetime", is_nullable => 0 },
71
);
72
__PACKAGE__->set_primary_key("tag_id");
73
74
=head1 RELATIONS
75
76
=head2 borrowernumber
77
78
Type: belongs_to
79
80
Related object: L<Koha::Schema::Result::Borrower>
81
82
=cut
83
84
__PACKAGE__->belongs_to(
85
  "borrowernumber",
86
  "Koha::Schema::Result::Borrower",
87
  { borrowernumber => "borrowernumber" },
88
  { on_delete => "CASCADE", on_update => "CASCADE" },
89
);
90
91
=head2 biblionumber
92
93
Type: belongs_to
94
95
Related object: L<Koha::Schema::Result::Biblio>
96
97
=cut
98
99
__PACKAGE__->belongs_to(
100
  "biblionumber",
101
  "Koha::Schema::Result::Biblio",
102
  { biblionumber => "biblionumber" },
103
  { on_delete => "CASCADE", on_update => "CASCADE" },
104
);
105
106
107
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
108
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SunUKfsdQ6hNupUkD2ygzw
109
110
111
# You can replace this text with custom content, and it will be preserved on regeneration
112
1;
(-)a/Koha/Schema/Result/TagsApproval.pm (+105 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
  is_nullable: 1
38
39
=head2 approved_by
40
41
  data_type: 'integer'
42
  is_foreign_key: 1
43
  is_nullable: 1
44
45
=head2 weight_total
46
47
  data_type: 'integer'
48
  default_value: 1
49
  is_nullable: 0
50
51
=cut
52
53
__PACKAGE__->add_columns(
54
  "term",
55
  { data_type => "varchar", is_nullable => 0, size => 255 },
56
  "approved",
57
  { data_type => "integer", default_value => 0, is_nullable => 0 },
58
  "date_approved",
59
  { data_type => "datetime", is_nullable => 1 },
60
  "approved_by",
61
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
62
  "weight_total",
63
  { data_type => "integer", default_value => 1, is_nullable => 0 },
64
);
65
__PACKAGE__->set_primary_key("term");
66
67
=head1 RELATIONS
68
69
=head2 approved_by
70
71
Type: belongs_to
72
73
Related object: L<Koha::Schema::Result::Borrower>
74
75
=cut
76
77
__PACKAGE__->belongs_to(
78
  "approved_by",
79
  "Koha::Schema::Result::Borrower",
80
  { borrowernumber => "approved_by" },
81
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
82
);
83
84
=head2 tags_indexes
85
86
Type: has_many
87
88
Related object: L<Koha::Schema::Result::TagsIndex>
89
90
=cut
91
92
__PACKAGE__->has_many(
93
  "tags_indexes",
94
  "Koha::Schema::Result::TagsIndex",
95
  { "foreign.term" => "self.term" },
96
  { cascade_copy => 0, cascade_delete => 0 },
97
);
98
99
100
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0C4z7rRUg2mcdmdrUOGcYw
102
103
104
# You can replace this text with custom content, and it will be preserved on regeneration
105
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
  { 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
  { on_delete => "CASCADE", on_update => "CASCADE" },
83
);
84
85
86
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:X0OvXQjDYLVCMgHHWx/kpw
88
89
90
# You can replace this text with custom content, and it will be preserved on regeneration
91
1;
(-)a/Koha/Schema/Result/TmpHoldsqueue.pm (+144 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
  is_nullable: 1
68
69
=head2 title
70
71
  data_type: 'mediumtext'
72
  is_nullable: 1
73
74
=head2 itemcallnumber
75
76
  data_type: 'varchar'
77
  is_nullable: 1
78
  size: 255
79
80
=head2 holdingbranch
81
82
  data_type: 'varchar'
83
  is_nullable: 1
84
  size: 10
85
86
=head2 pickbranch
87
88
  data_type: 'varchar'
89
  is_nullable: 1
90
  size: 10
91
92
=head2 notes
93
94
  data_type: 'text'
95
  is_nullable: 1
96
97
=head2 item_level_request
98
99
  data_type: 'tinyint'
100
  default_value: 0
101
  is_nullable: 0
102
103
=cut
104
105
__PACKAGE__->add_columns(
106
  "biblionumber",
107
  { data_type => "integer", is_nullable => 1 },
108
  "itemnumber",
109
  { data_type => "integer", is_nullable => 1 },
110
  "barcode",
111
  { data_type => "varchar", is_nullable => 1, size => 20 },
112
  "surname",
113
  { data_type => "mediumtext", is_nullable => 0 },
114
  "firstname",
115
  { data_type => "text", is_nullable => 1 },
116
  "phone",
117
  { data_type => "text", is_nullable => 1 },
118
  "borrowernumber",
119
  { data_type => "integer", is_nullable => 0 },
120
  "cardnumber",
121
  { data_type => "varchar", is_nullable => 1, size => 16 },
122
  "reservedate",
123
  { data_type => "date", is_nullable => 1 },
124
  "title",
125
  { data_type => "mediumtext", is_nullable => 1 },
126
  "itemcallnumber",
127
  { data_type => "varchar", is_nullable => 1, size => 255 },
128
  "holdingbranch",
129
  { data_type => "varchar", is_nullable => 1, size => 10 },
130
  "pickbranch",
131
  { data_type => "varchar", is_nullable => 1, size => 10 },
132
  "notes",
133
  { data_type => "text", is_nullable => 1 },
134
  "item_level_request",
135
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
136
);
137
138
139
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uzRfXFE7Kjkoh5H5e1akEw
141
142
143
# You can replace this text with custom content, and it will be preserved on regeneration
144
1;
(-)a/Koha/Schema/Result/TransportCost.pm (+100 lines)
Line 0 Link Here
1
package Koha::Schema::Result::TransportCost;
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::TransportCost
15
16
=cut
17
18
__PACKAGE__->table("transport_cost");
19
20
=head1 ACCESSORS
21
22
=head2 frombranch
23
24
  data_type: 'varchar'
25
  is_foreign_key: 1
26
  is_nullable: 0
27
  size: 10
28
29
=head2 tobranch
30
31
  data_type: 'varchar'
32
  is_foreign_key: 1
33
  is_nullable: 0
34
  size: 10
35
36
=head2 cost
37
38
  data_type: 'decimal'
39
  is_nullable: 0
40
  size: [6,2]
41
42
=head2 disable_transfer
43
44
  data_type: 'tinyint'
45
  default_value: 0
46
  is_nullable: 0
47
48
=cut
49
50
__PACKAGE__->add_columns(
51
  "frombranch",
52
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
53
  "tobranch",
54
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
55
  "cost",
56
  { data_type => "decimal", is_nullable => 0, size => [6, 2] },
57
  "disable_transfer",
58
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
59
);
60
__PACKAGE__->set_primary_key("frombranch", "tobranch");
61
62
=head1 RELATIONS
63
64
=head2 frombranch
65
66
Type: belongs_to
67
68
Related object: L<Koha::Schema::Result::Branch>
69
70
=cut
71
72
__PACKAGE__->belongs_to(
73
  "frombranch",
74
  "Koha::Schema::Result::Branch",
75
  { branchcode => "frombranch" },
76
  { on_delete => "CASCADE", on_update => "CASCADE" },
77
);
78
79
=head2 tobranch
80
81
Type: belongs_to
82
83
Related object: L<Koha::Schema::Result::Branch>
84
85
=cut
86
87
__PACKAGE__->belongs_to(
88
  "tobranch",
89
  "Koha::Schema::Result::Branch",
90
  { branchcode => "tobranch" },
91
  { on_delete => "CASCADE", on_update => "CASCADE" },
92
);
93
94
95
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xaYbVRwPFyhljmGybBzTqA
97
98
99
# You can replace this text with custom content, and it will be preserved on regeneration
100
1;
(-)a/Koha/Schema/Result/UserPermission.pm (+102 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
  { 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
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
94
);
95
96
97
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
98
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uj0+AqPSrddrRPjAEbeDUA
99
100
101
# You can replace this text with custom content, and it will be preserved on regeneration
102
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.07000 @ 2012-09-02 08:44:15
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7eKK9jZ+GryvazfRyKOIBw
79
80
81
# You can replace this text with custom content, and it will be preserved on regeneration
82
1;
(-)a/Koha/Schema/Result/Virtualshelfcontent.pm (+135 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
  default_value: current_timestamp
45
  is_nullable: 0
46
47
=head2 borrowernumber
48
49
  data_type: 'integer'
50
  is_foreign_key: 1
51
  is_nullable: 1
52
53
=cut
54
55
__PACKAGE__->add_columns(
56
  "shelfnumber",
57
  {
58
    data_type      => "integer",
59
    default_value  => 0,
60
    is_foreign_key => 1,
61
    is_nullable    => 0,
62
  },
63
  "biblionumber",
64
  {
65
    data_type      => "integer",
66
    default_value  => 0,
67
    is_foreign_key => 1,
68
    is_nullable    => 0,
69
  },
70
  "flags",
71
  { data_type => "integer", is_nullable => 1 },
72
  "dateadded",
73
  {
74
    data_type     => "timestamp",
75
    default_value => \"current_timestamp",
76
    is_nullable   => 0,
77
  },
78
  "borrowernumber",
79
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
80
);
81
82
=head1 RELATIONS
83
84
=head2 shelfnumber
85
86
Type: belongs_to
87
88
Related object: L<Koha::Schema::Result::Virtualshelve>
89
90
=cut
91
92
__PACKAGE__->belongs_to(
93
  "shelfnumber",
94
  "Koha::Schema::Result::Virtualshelve",
95
  { shelfnumber => "shelfnumber" },
96
  { on_delete => "CASCADE", on_update => "CASCADE" },
97
);
98
99
=head2 biblionumber
100
101
Type: belongs_to
102
103
Related object: L<Koha::Schema::Result::Biblio>
104
105
=cut
106
107
__PACKAGE__->belongs_to(
108
  "biblionumber",
109
  "Koha::Schema::Result::Biblio",
110
  { biblionumber => "biblionumber" },
111
  { on_delete => "CASCADE", on_update => "CASCADE" },
112
);
113
114
=head2 borrowernumber
115
116
Type: belongs_to
117
118
Related object: L<Koha::Schema::Result::Borrower>
119
120
=cut
121
122
__PACKAGE__->belongs_to(
123
  "borrowernumber",
124
  "Koha::Schema::Result::Borrower",
125
  { borrowernumber => "borrowernumber" },
126
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
127
);
128
129
130
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
131
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Hno59ucoCC6fZqGi1A2yIA
132
133
134
# You can replace this text with custom content, and it will be preserved on regeneration
135
1;
(-)a/Koha/Schema/Result/Virtualshelfshare.pm (+105 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
  is_nullable: 1
50
51
=cut
52
53
__PACKAGE__->add_columns(
54
  "id",
55
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
56
  "shelfnumber",
57
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
58
  "borrowernumber",
59
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
60
  "invitekey",
61
  { data_type => "varchar", is_nullable => 1, size => 10 },
62
  "sharedate",
63
  { data_type => "datetime", is_nullable => 1 },
64
);
65
__PACKAGE__->set_primary_key("id");
66
67
=head1 RELATIONS
68
69
=head2 shelfnumber
70
71
Type: belongs_to
72
73
Related object: L<Koha::Schema::Result::Virtualshelve>
74
75
=cut
76
77
__PACKAGE__->belongs_to(
78
  "shelfnumber",
79
  "Koha::Schema::Result::Virtualshelve",
80
  { shelfnumber => "shelfnumber" },
81
  { on_delete => "CASCADE", on_update => "CASCADE" },
82
);
83
84
=head2 borrowernumber
85
86
Type: belongs_to
87
88
Related object: L<Koha::Schema::Result::Borrower>
89
90
=cut
91
92
__PACKAGE__->belongs_to(
93
  "borrowernumber",
94
  "Koha::Schema::Result::Borrower",
95
  { borrowernumber => "borrowernumber" },
96
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
97
);
98
99
100
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wbmtFrbzS+jaFaiZRZ0uwg
102
103
104
# You can replace this text with custom content, and it will be preserved on regeneration
105
1;
(-)a/Koha/Schema/Result/Virtualshelve.pm (+157 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
  default_value: current_timestamp
56
  is_nullable: 0
57
58
=head2 allow_add
59
60
  data_type: 'tinyint'
61
  default_value: 0
62
  is_nullable: 1
63
64
=head2 allow_delete_own
65
66
  data_type: 'tinyint'
67
  default_value: 1
68
  is_nullable: 1
69
70
=head2 allow_delete_other
71
72
  data_type: 'tinyint'
73
  default_value: 0
74
  is_nullable: 1
75
76
=cut
77
78
__PACKAGE__->add_columns(
79
  "shelfnumber",
80
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
81
  "shelfname",
82
  { data_type => "varchar", is_nullable => 1, size => 255 },
83
  "owner",
84
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
85
  "category",
86
  { data_type => "varchar", is_nullable => 1, size => 1 },
87
  "sortfield",
88
  { data_type => "varchar", is_nullable => 1, size => 16 },
89
  "lastmodified",
90
  {
91
    data_type     => "timestamp",
92
    default_value => \"current_timestamp",
93
    is_nullable   => 0,
94
  },
95
  "allow_add",
96
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
97
  "allow_delete_own",
98
  { data_type => "tinyint", default_value => 1, is_nullable => 1 },
99
  "allow_delete_other",
100
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
101
);
102
__PACKAGE__->set_primary_key("shelfnumber");
103
104
=head1 RELATIONS
105
106
=head2 virtualshelfcontents
107
108
Type: has_many
109
110
Related object: L<Koha::Schema::Result::Virtualshelfcontent>
111
112
=cut
113
114
__PACKAGE__->has_many(
115
  "virtualshelfcontents",
116
  "Koha::Schema::Result::Virtualshelfcontent",
117
  { "foreign.shelfnumber" => "self.shelfnumber" },
118
  { cascade_copy => 0, cascade_delete => 0 },
119
);
120
121
=head2 virtualshelfshares
122
123
Type: has_many
124
125
Related object: L<Koha::Schema::Result::Virtualshelfshare>
126
127
=cut
128
129
__PACKAGE__->has_many(
130
  "virtualshelfshares",
131
  "Koha::Schema::Result::Virtualshelfshare",
132
  { "foreign.shelfnumber" => "self.shelfnumber" },
133
  { cascade_copy => 0, cascade_delete => 0 },
134
);
135
136
=head2 owner
137
138
Type: belongs_to
139
140
Related object: L<Koha::Schema::Result::Borrower>
141
142
=cut
143
144
__PACKAGE__->belongs_to(
145
  "owner",
146
  "Koha::Schema::Result::Borrower",
147
  { borrowernumber => "owner" },
148
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
149
);
150
151
152
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
153
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GitYLGGw2F/bqc511p2oTg
154
155
156
# You can replace this text with custom content, and it will be preserved on regeneration
157
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.07000 @ 2012-09-02 08:44:15
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3D8BWcZZVQlK8zrPw4GTtQ
164
165
166
# You can replace this text with custom content, and it will be preserved on regeneration
167
1;
(-)a/Koha/Schema/Result/Zebraqueue.pm (+94 lines)
Line 0 Link Here
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
  default_value: current_timestamp
59
  is_nullable: 0
60
61
=cut
62
63
__PACKAGE__->add_columns(
64
  "id",
65
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
66
  "biblio_auth_number",
67
  {
68
    data_type => "bigint",
69
    default_value => 0,
70
    extra => { unsigned => 1 },
71
    is_nullable => 0,
72
  },
73
  "operation",
74
  { data_type => "char", default_value => "", is_nullable => 0, size => 20 },
75
  "server",
76
  { data_type => "char", default_value => "", is_nullable => 0, size => 20 },
77
  "done",
78
  { data_type => "integer", default_value => 0, is_nullable => 0 },
79
  "time",
80
  {
81
    data_type     => "timestamp",
82
    default_value => \"current_timestamp",
83
    is_nullable   => 0,
84
  },
85
);
86
__PACKAGE__->set_primary_key("id");
87
88
89
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
90
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WrwJr7Op+i6ck0EwiBADCA
91
92
93
# You can replace this text with custom content, and it will be preserved on regeneration
94
1;
(-)a/debian/control (+1 lines)
Lines 40-45 Build-Depends: libalgorithm-checkdigits-perl, Link Here
40
 libdbd-mysql-perl,
40
 libdbd-mysql-perl,
41
 libdbd-sqlite2-perl,
41
 libdbd-sqlite2-perl,
42
 libdbi-perl,
42
 libdbi-perl,
43
 libdbix-class-schema-loader-perl,
43
 libdigest-sha-perl | perl,
44
 libdigest-sha-perl | perl,
44
 libemail-date-perl,
45
 libemail-date-perl,
45
 libfile-path-perl | perl-modules,
46
 libfile-path-perl | perl-modules,
(-)a/install_misc/debian.packages (+1 lines)
Lines 42-47 libdbd-mock-perl install Link Here
42
libdbd-mysql-perl install
42
libdbd-mysql-perl install
43
libdbd-sqlite2-perl install
43
libdbd-sqlite2-perl install
44
libdbi-perl	install
44
libdbi-perl	install
45
libdbix-class-schema-loader-perl	install
45
libemail-date-perl	install
46
libemail-date-perl	install
46
libgcrypt11 install
47
libgcrypt11 install
47
libgcrypt11-dev install
48
libgcrypt11-dev install
(-)a/misc/devel/update_dbix_class_files.pl (+28 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
3
use strict;
4
use warnings;
5
use C4::Context;
6
use DBIx::Class::Schema::Loader qw/ make_schema_at /;
7
use Getopt::Long;
8
9
my $path = "./";
10
GetOptions(
11
    "path=s" => \$path,
12
    );
13
my $context = new C4::Context;
14
my $db_driver;
15
if ($context->config("db_scheme")){
16
    $db_driver=C4::Context->db_scheme2dbi($context->config("db_scheme"));
17
}else{
18
    $db_driver="mysql";
19
}
20
21
22
my $db_name   = $context->config("database");
23
my $db_host   = $context->config("hostname");
24
my $db_port   = $context->config("port") || '';
25
my $db_user   = $context->config("user");
26
my $db_passwd = $context->config("pass");
27
28
make_schema_at("Koha::Schema", {debug => 1, dump_directory => $path}, ["DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port",$db_user, $db_passwd ]);
(-)a/t/Context.t (+10 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
use strict;
3
use warnings;
4
use DBI;
5
use Test::More tests => 1;
6
use Test::MockModule;
7
8
BEGIN {
9
    use_ok('C4::Context');
10
}
(-)a/t/db_dependent/Koha_Database.t (-1 / +26 lines)
Line 0 Link Here
0
- 
1
#!/usr/bin/perl
2
#
3
4
use strict;
5
use warnings;
6
7
use Test::More tests => 9;
8
9
BEGIN {
10
    use_ok('Koha::Database');
11
}
12
13
my $database;
14
ok( $database = Koha::Database->new(), 'Created Koha::Database Object' );
15
16
my $schema;
17
ok( $schema = $database->schema(), 'Get a schema' );
18
my $dbh;
19
ok( $dbh = $schema->storage->dbh(), 'Get an old fashioned DBI dbh handle' );
20
ok( $schema->storage->connected(), 'Check our db connection is active' );
21
ok( $schema = $database->schema(), 'Try and get the same schema' );
22
23
my $new_schema;
24
ok( $new_schema = $database->new_schema(), 'Try to get a new schema' );
25
ok( $database->set_schema($new_schema), 'Switch to new schema' );
26
ok( $database->restore_schema(),        'Switch back' );

Return to bug 8798