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

(-)a/C4/Context.pm (+125 lines)
Lines 99-104 BEGIN { Link Here
99
}
99
}
100
100
101
use DBI;
101
use DBI;
102
use Koha::Schema;
102
use ZOOM;
103
use ZOOM;
103
use XML::Simple;
104
use XML::Simple;
104
use C4::Boolean;
105
use C4::Boolean;
Lines 882-887 sub restore_dbh Link Here
882
    # return something, then this function should, too.
883
    # return something, then this function should, too.
883
}
884
}
884
885
886
# _new_schema
887
# Internal helper function (not a method!). This creates a new
888
# database connection from the data given in the current context, and
889
# returns it.
890
sub _new_schema {
891
    my $db_driver;
892
    if ($context->config("db_scheme")){
893
        $db_driver=db_scheme2dbi($context->config("db_scheme"));
894
    }else{
895
        $db_driver="mysql";
896
    }
897
898
    my $db_name   = $context->config("database");
899
    my $db_host   = $context->config("hostname");
900
    my $db_port   = $context->config("port") || '';
901
    my $db_user   = $context->config("user");
902
    my $db_passwd = $context->config("pass");
903
    my $schema= Koha::Schema->connect("DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port",
904
					    $db_user, $db_passwd);
905
    return $schema;
906
}
907
908
=head2 schema
909
910
    $schema = C4::Context->schema;
911
912
Returns a database handle connected to the Koha database for the
913
current context. If no connection has yet been made, this method
914
creates one, and connects to the database.
915
916
This database handle is cached for future use: if you call
917
C<C4::Context-E<gt>schema> twice, you will get the same handle both
918
times. If you need a second database handle, use C<&new_schema> and
919
possibly C<&set_schema>.
920
921
=cut
922
923
sub schema {
924
    my $self = shift;
925
    my $sth;
926
927
    if (defined($context->{"schema"}) && $context->{"schema"}->ping()) {
928
	return $context->{"schema"};
929
    }
930
931
    # No database handle or it died . Create one.
932
    $context->{"schema"} = &_new_schema();
933
934
    return $context->{"schema"};
935
}
936
937
=head2 new_schema
938
939
  $schema = C4::Context->new_schema;
940
941
Creates a new connection to the Koha database for the current context,
942
and returns the database handle (a C<DBI::db> object).
943
944
The handle is not saved anywhere: this method is strictly a
945
convenience function; the point is that it knows which database to
946
connect to so that the caller doesn't have to know.
947
948
=cut
949
950
#'
951
sub new_schema {
952
    my $self = shift;
953
954
    return &_new_schema();
955
}
956
957
=head2 set_schema
958
959
  $my_schema = C4::Connect->new_schema;
960
  C4::Connect->set_schema($my_schema);
961
  ...
962
  C4::Connect->restore_schema;
963
964
C<&set_schema> and C<&restore_schema> work in a manner analogous to
965
C<&set_context> and C<&restore_context>.
966
967
C<&set_schema> saves the current database handle on a stack, then sets
968
the current database handle to C<$my_schema>.
969
970
C<$my_schema> is assumed to be a good database handle.
971
972
=cut
973
974
sub set_schema {
975
    my $self = shift;
976
    my $new_schema = shift;
977
978
    # Save the current database handle on the handle stack.
979
    # We assume that $new_schema is all good: if the caller wants to
980
    # screw himself by passing an invalid handle, that's fine by
981
    # us.
982
    push @{$context->{"schema_stack"}}, $context->{"schema"};
983
    $context->{"schema"} = $new_schema;
984
}
985
986
=head2 restore_schema
987
988
  C4::Context->restore_schema;
989
990
Restores the database handle saved by an earlier call to
991
C<C4::Context-E<gt>set_schema>.
992
993
=cut
994
995
sub restore_schema {
996
    my $self = shift;
997
998
    if ($#{$context->{"schema_stack"}} < 0) {
999
        # Stack underflow
1000
        die "SCHEMA stack underflow";
1001
    }
1002
1003
    # Pop the old database handle and set it.
1004
    $context->{"schema"} = pop @{$context->{"schema_stack"}};
1005
1006
    # FIXME - If it is determined that restore_context should
1007
    # return something, then this function should, too.
1008
}
1009
885
=head2 marcfromkohafield
1010
=head2 marcfromkohafield
886
1011
887
  $dbh = C4::Context->marcfromkohafield;
1012
  $dbh = C4::Context->marcfromkohafield;
(-)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.07033'
61
     },
57
    'Net::Z3950::ZOOM' => {
62
    'Net::Z3950::ZOOM' => {
58
        'usage'    => 'Core',
63
        'usage'    => 'Core',
59
        'required' => '1',
64
        'required' => '1',
(-)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 (+185 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
=cut
85
86
__PACKAGE__->add_columns(
87
  "basketno",
88
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
89
  "basketname",
90
  { data_type => "varchar", is_nullable => 1, size => 50 },
91
  "note",
92
  { data_type => "mediumtext", is_nullable => 1 },
93
  "booksellernote",
94
  { data_type => "mediumtext", is_nullable => 1 },
95
  "contractnumber",
96
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
97
  "creationdate",
98
  { data_type => "date", is_nullable => 1 },
99
  "closedate",
100
  { data_type => "date", is_nullable => 1 },
101
  "booksellerid",
102
  {
103
    data_type      => "integer",
104
    default_value  => 1,
105
    is_foreign_key => 1,
106
    is_nullable    => 0,
107
  },
108
  "authorisedby",
109
  { data_type => "varchar", is_nullable => 1, size => 10 },
110
  "booksellerinvoicenumber",
111
  { data_type => "mediumtext", is_nullable => 1 },
112
  "basketgroupid",
113
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
114
);
115
__PACKAGE__->set_primary_key("basketno");
116
117
=head1 RELATIONS
118
119
=head2 booksellerid
120
121
Type: belongs_to
122
123
Related object: L<Koha::Schema::Result::Aqbookseller>
124
125
=cut
126
127
__PACKAGE__->belongs_to(
128
  "booksellerid",
129
  "Koha::Schema::Result::Aqbookseller",
130
  { id => "booksellerid" },
131
  { on_delete => "CASCADE", on_update => "CASCADE" },
132
);
133
134
=head2 contractnumber
135
136
Type: belongs_to
137
138
Related object: L<Koha::Schema::Result::Aqcontract>
139
140
=cut
141
142
__PACKAGE__->belongs_to(
143
  "contractnumber",
144
  "Koha::Schema::Result::Aqcontract",
145
  { contractnumber => "contractnumber" },
146
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
147
);
148
149
=head2 basketgroupid
150
151
Type: belongs_to
152
153
Related object: L<Koha::Schema::Result::Aqbasketgroup>
154
155
=cut
156
157
__PACKAGE__->belongs_to(
158
  "basketgroupid",
159
  "Koha::Schema::Result::Aqbasketgroup",
160
  { id => "basketgroupid" },
161
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
162
);
163
164
=head2 aqorders
165
166
Type: has_many
167
168
Related object: L<Koha::Schema::Result::Aqorder>
169
170
=cut
171
172
__PACKAGE__->has_many(
173
  "aqorders",
174
  "Koha::Schema::Result::Aqorder",
175
  { "foreign.basketno" => "self.basketno" },
176
  { cascade_copy => 0, cascade_delete => 0 },
177
);
178
179
180
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
181
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eRG3p93qKZhp3rNPwG60Ig
182
183
184
# You can replace this text with custom content, and it will be preserved on regeneration
185
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 billingplace
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 10
50
51
=head2 deliveryplace
52
53
  data_type: 'varchar'
54
  is_nullable: 1
55
  size: 10
56
57
=head2 freedeliveryplace
58
59
  data_type: 'text'
60
  is_nullable: 1
61
62
=head2 deliverycomment
63
64
  data_type: 'varchar'
65
  is_nullable: 1
66
  size: 255
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
  "billingplace",
80
  { data_type => "varchar", is_nullable => 1, size => 10 },
81
  "deliveryplace",
82
  { data_type => "varchar", is_nullable => 1, size => 10 },
83
  "freedeliveryplace",
84
  { data_type => "text", is_nullable => 1 },
85
  "deliverycomment",
86
  { data_type => "varchar", is_nullable => 1, size => 255 },
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 @ 2012-09-02 08:44:15
124
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sxuJyGpPeqNxjNAnAAe69A
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 (+358 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 subscription
118
119
  data_type: 'tinyint'
120
  is_nullable: 1
121
122
=head2 serialid
123
124
  data_type: 'varchar'
125
  is_nullable: 1
126
  size: 30
127
128
=head2 basketno
129
130
  data_type: 'integer'
131
  is_foreign_key: 1
132
  is_nullable: 1
133
134
=head2 biblioitemnumber
135
136
  data_type: 'integer'
137
  is_nullable: 1
138
139
=head2 timestamp
140
141
  data_type: 'timestamp'
142
  default_value: current_timestamp
143
  is_nullable: 0
144
145
=head2 rrp
146
147
  data_type: 'decimal'
148
  is_nullable: 1
149
  size: [13,2]
150
151
=head2 ecost
152
153
  data_type: 'decimal'
154
  is_nullable: 1
155
  size: [13,2]
156
157
=head2 gst
158
159
  data_type: 'decimal'
160
  is_nullable: 1
161
  size: [13,2]
162
163
=head2 budget_id
164
165
  data_type: 'integer'
166
  is_nullable: 0
167
168
=head2 budgetgroup_id
169
170
  data_type: 'integer'
171
  is_nullable: 0
172
173
=head2 budgetdate
174
175
  data_type: 'date'
176
  is_nullable: 1
177
178
=head2 sort1
179
180
  data_type: 'varchar'
181
  is_nullable: 1
182
  size: 80
183
184
=head2 sort2
185
186
  data_type: 'varchar'
187
  is_nullable: 1
188
  size: 80
189
190
=head2 sort1_authcat
191
192
  data_type: 'varchar'
193
  is_nullable: 1
194
  size: 10
195
196
=head2 sort2_authcat
197
198
  data_type: 'varchar'
199
  is_nullable: 1
200
  size: 10
201
202
=head2 uncertainprice
203
204
  data_type: 'tinyint'
205
  is_nullable: 1
206
207
=head2 claims_count
208
209
  data_type: 'integer'
210
  default_value: 0
211
  is_nullable: 1
212
213
=head2 claimed_date
214
215
  data_type: 'date'
216
  is_nullable: 1
217
218
=head2 parent_ordernumber
219
220
  data_type: 'integer'
221
  is_nullable: 1
222
223
=cut
224
225
__PACKAGE__->add_columns(
226
  "ordernumber",
227
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
228
  "biblionumber",
229
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
230
  "entrydate",
231
  { data_type => "date", is_nullable => 1 },
232
  "quantity",
233
  { data_type => "smallint", is_nullable => 1 },
234
  "currency",
235
  { data_type => "varchar", is_nullable => 1, size => 3 },
236
  "listprice",
237
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
238
  "totalamount",
239
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
240
  "datereceived",
241
  { data_type => "date", is_nullable => 1 },
242
  "invoiceid",
243
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
244
  "freight",
245
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
246
  "unitprice",
247
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
248
  "quantityreceived",
249
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
250
  "cancelledby",
251
  { data_type => "varchar", is_nullable => 1, size => 10 },
252
  "datecancellationprinted",
253
  { data_type => "date", is_nullable => 1 },
254
  "notes",
255
  { data_type => "mediumtext", is_nullable => 1 },
256
  "supplierreference",
257
  { data_type => "mediumtext", is_nullable => 1 },
258
  "purchaseordernumber",
259
  { data_type => "mediumtext", is_nullable => 1 },
260
  "subscription",
261
  { data_type => "tinyint", is_nullable => 1 },
262
  "serialid",
263
  { data_type => "varchar", is_nullable => 1, size => 30 },
264
  "basketno",
265
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
266
  "biblioitemnumber",
267
  { data_type => "integer", is_nullable => 1 },
268
  "timestamp",
269
  {
270
    data_type     => "timestamp",
271
    default_value => \"current_timestamp",
272
    is_nullable   => 0,
273
  },
274
  "rrp",
275
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
276
  "ecost",
277
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
278
  "gst",
279
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
280
  "budget_id",
281
  { data_type => "integer", is_nullable => 0 },
282
  "budgetgroup_id",
283
  { data_type => "integer", is_nullable => 0 },
284
  "budgetdate",
285
  { data_type => "date", is_nullable => 1 },
286
  "sort1",
287
  { data_type => "varchar", is_nullable => 1, size => 80 },
288
  "sort2",
289
  { data_type => "varchar", is_nullable => 1, size => 80 },
290
  "sort1_authcat",
291
  { data_type => "varchar", is_nullable => 1, size => 10 },
292
  "sort2_authcat",
293
  { data_type => "varchar", is_nullable => 1, size => 10 },
294
  "uncertainprice",
295
  { data_type => "tinyint", is_nullable => 1 },
296
  "claims_count",
297
  { data_type => "integer", default_value => 0, is_nullable => 1 },
298
  "claimed_date",
299
  { data_type => "date", is_nullable => 1 },
300
  "parent_ordernumber",
301
  { data_type => "integer", is_nullable => 1 },
302
);
303
__PACKAGE__->set_primary_key("ordernumber");
304
305
=head1 RELATIONS
306
307
=head2 basketno
308
309
Type: belongs_to
310
311
Related object: L<Koha::Schema::Result::Aqbasket>
312
313
=cut
314
315
__PACKAGE__->belongs_to(
316
  "basketno",
317
  "Koha::Schema::Result::Aqbasket",
318
  { basketno => "basketno" },
319
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
320
);
321
322
=head2 biblionumber
323
324
Type: belongs_to
325
326
Related object: L<Koha::Schema::Result::Biblio>
327
328
=cut
329
330
__PACKAGE__->belongs_to(
331
  "biblionumber",
332
  "Koha::Schema::Result::Biblio",
333
  { biblionumber => "biblionumber" },
334
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
335
);
336
337
=head2 invoiceid
338
339
Type: belongs_to
340
341
Related object: L<Koha::Schema::Result::Aqinvoice>
342
343
=cut
344
345
__PACKAGE__->belongs_to(
346
  "invoiceid",
347
  "Koha::Schema::Result::Aqinvoice",
348
  { invoiceid => "invoiceid" },
349
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
350
);
351
352
353
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
354
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:McWqeFHBMTDvKV7pUEqJ3w
355
356
357
# You can replace this text with custom content, and it will be preserved on regeneration
358
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 (+60 lines)
Line 0 Link Here
1
package Koha::Schema::Result::AqordersItem;
2
3
# Created by DBIx::Class::Schema::Loader
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6
use strict;
7
use warnings;
8
9
use base 'DBIx::Class::Core';
10
11
12
=head1 NAME
13
14
Koha::Schema::Result::AqordersItem
15
16
=cut
17
18
__PACKAGE__->table("aqorders_items");
19
20
=head1 ACCESSORS
21
22
=head2 ordernumber
23
24
  data_type: 'integer'
25
  is_nullable: 0
26
27
=head2 itemnumber
28
29
  data_type: 'integer'
30
  is_nullable: 0
31
32
=head2 timestamp
33
34
  data_type: 'timestamp'
35
  default_value: current_timestamp
36
  is_nullable: 0
37
38
=cut
39
40
__PACKAGE__->add_columns(
41
  "ordernumber",
42
  { data_type => "integer", is_nullable => 0 },
43
  "itemnumber",
44
  { data_type => "integer", is_nullable => 0 },
45
  "timestamp",
46
  {
47
    data_type     => "timestamp",
48
    default_value => \"current_timestamp",
49
    is_nullable   => 0,
50
  },
51
);
52
__PACKAGE__->set_primary_key("itemnumber");
53
54
55
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OlihytSmp6fCmG/hAT7FEg
57
58
59
# You can replace this text with custom content, and it will be preserved on regeneration
60
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 (+84 lines)
Line 0 Link Here
1
package Koha::Schema::Result::AuthorisedValue;
2
3
# Created by DBIx::Class::Schema::Loader
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6
use strict;
7
use warnings;
8
9
use base 'DBIx::Class::Core';
10
11
12
=head1 NAME
13
14
Koha::Schema::Result::AuthorisedValue
15
16
=cut
17
18
__PACKAGE__->table("authorised_values");
19
20
=head1 ACCESSORS
21
22
=head2 id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
28
=head2 category
29
30
  data_type: 'varchar'
31
  default_value: (empty string)
32
  is_nullable: 0
33
  size: 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
79
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
80
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GpXi5gcFBtEj82hEFzhmVg
81
82
83
# You can replace this text with custom content, and it will be preserved on regeneration
84
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 (+943 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: 'mediumtext'
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: 'mediumtext'
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: 'mediumtext'
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 => "mediumtext", 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 => "mediumtext", 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 => "mediumtext", 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 creator_batches
668
669
Type: has_many
670
671
Related object: L<Koha::Schema::Result::CreatorBatch>
672
673
=cut
674
675
__PACKAGE__->has_many(
676
  "creator_batches",
677
  "Koha::Schema::Result::CreatorBatch",
678
  { "foreign.borrower_number" => "self.borrowernumber" },
679
  { cascade_copy => 0, cascade_delete => 0 },
680
);
681
682
=head2 hold_fill_targets
683
684
Type: has_many
685
686
Related object: L<Koha::Schema::Result::HoldFillTarget>
687
688
=cut
689
690
__PACKAGE__->has_many(
691
  "hold_fill_targets",
692
  "Koha::Schema::Result::HoldFillTarget",
693
  { "foreign.borrowernumber" => "self.borrowernumber" },
694
  { cascade_copy => 0, cascade_delete => 0 },
695
);
696
697
=head2 issues
698
699
Type: has_many
700
701
Related object: L<Koha::Schema::Result::Issue>
702
703
=cut
704
705
__PACKAGE__->has_many(
706
  "issues",
707
  "Koha::Schema::Result::Issue",
708
  { "foreign.borrowernumber" => "self.borrowernumber" },
709
  { cascade_copy => 0, cascade_delete => 0 },
710
);
711
712
=head2 message_queues
713
714
Type: has_many
715
716
Related object: L<Koha::Schema::Result::MessageQueue>
717
718
=cut
719
720
__PACKAGE__->has_many(
721
  "message_queues",
722
  "Koha::Schema::Result::MessageQueue",
723
  { "foreign.borrowernumber" => "self.borrowernumber" },
724
  { cascade_copy => 0, cascade_delete => 0 },
725
);
726
727
=head2 old_issues
728
729
Type: has_many
730
731
Related object: L<Koha::Schema::Result::OldIssue>
732
733
=cut
734
735
__PACKAGE__->has_many(
736
  "old_issues",
737
  "Koha::Schema::Result::OldIssue",
738
  { "foreign.borrowernumber" => "self.borrowernumber" },
739
  { cascade_copy => 0, cascade_delete => 0 },
740
);
741
742
=head2 old_reserves
743
744
Type: has_many
745
746
Related object: L<Koha::Schema::Result::OldReserve>
747
748
=cut
749
750
__PACKAGE__->has_many(
751
  "old_reserves",
752
  "Koha::Schema::Result::OldReserve",
753
  { "foreign.borrowernumber" => "self.borrowernumber" },
754
  { cascade_copy => 0, cascade_delete => 0 },
755
);
756
757
=head2 patroncards
758
759
Type: has_many
760
761
Related object: L<Koha::Schema::Result::Patroncard>
762
763
=cut
764
765
__PACKAGE__->has_many(
766
  "patroncards",
767
  "Koha::Schema::Result::Patroncard",
768
  { "foreign.borrowernumber" => "self.borrowernumber" },
769
  { cascade_copy => 0, cascade_delete => 0 },
770
);
771
772
=head2 patronimage
773
774
Type: might_have
775
776
Related object: L<Koha::Schema::Result::Patronimage>
777
778
=cut
779
780
__PACKAGE__->might_have(
781
  "patronimage",
782
  "Koha::Schema::Result::Patronimage",
783
  { "foreign.cardnumber" => "self.cardnumber" },
784
  { cascade_copy => 0, cascade_delete => 0 },
785
);
786
787
=head2 ratings
788
789
Type: has_many
790
791
Related object: L<Koha::Schema::Result::Rating>
792
793
=cut
794
795
__PACKAGE__->has_many(
796
  "ratings",
797
  "Koha::Schema::Result::Rating",
798
  { "foreign.borrowernumber" => "self.borrowernumber" },
799
  { cascade_copy => 0, cascade_delete => 0 },
800
);
801
802
=head2 reserves
803
804
Type: has_many
805
806
Related object: L<Koha::Schema::Result::Reserve>
807
808
=cut
809
810
__PACKAGE__->has_many(
811
  "reserves",
812
  "Koha::Schema::Result::Reserve",
813
  { "foreign.borrowernumber" => "self.borrowernumber" },
814
  { cascade_copy => 0, cascade_delete => 0 },
815
);
816
817
=head2 reviews
818
819
Type: has_many
820
821
Related object: L<Koha::Schema::Result::Review>
822
823
=cut
824
825
__PACKAGE__->has_many(
826
  "reviews",
827
  "Koha::Schema::Result::Review",
828
  { "foreign.borrowernumber" => "self.borrowernumber" },
829
  { cascade_copy => 0, cascade_delete => 0 },
830
);
831
832
=head2 subscriptionroutinglists
833
834
Type: has_many
835
836
Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
837
838
=cut
839
840
__PACKAGE__->has_many(
841
  "subscriptionroutinglists",
842
  "Koha::Schema::Result::Subscriptionroutinglist",
843
  { "foreign.borrowernumber" => "self.borrowernumber" },
844
  { cascade_copy => 0, cascade_delete => 0 },
845
);
846
847
=head2 tags_all
848
849
Type: has_many
850
851
Related object: L<Koha::Schema::Result::TagAll>
852
853
=cut
854
855
__PACKAGE__->has_many(
856
  "tags_all",
857
  "Koha::Schema::Result::TagAll",
858
  { "foreign.borrowernumber" => "self.borrowernumber" },
859
  { cascade_copy => 0, cascade_delete => 0 },
860
);
861
862
=head2 tags_approvals
863
864
Type: has_many
865
866
Related object: L<Koha::Schema::Result::TagsApproval>
867
868
=cut
869
870
__PACKAGE__->has_many(
871
  "tags_approvals",
872
  "Koha::Schema::Result::TagsApproval",
873
  { "foreign.approved_by" => "self.borrowernumber" },
874
  { cascade_copy => 0, cascade_delete => 0 },
875
);
876
877
=head2 user_permissions
878
879
Type: has_many
880
881
Related object: L<Koha::Schema::Result::UserPermission>
882
883
=cut
884
885
__PACKAGE__->has_many(
886
  "user_permissions",
887
  "Koha::Schema::Result::UserPermission",
888
  { "foreign.borrowernumber" => "self.borrowernumber" },
889
  { cascade_copy => 0, cascade_delete => 0 },
890
);
891
892
=head2 virtualshelfcontents
893
894
Type: has_many
895
896
Related object: L<Koha::Schema::Result::Virtualshelfcontent>
897
898
=cut
899
900
__PACKAGE__->has_many(
901
  "virtualshelfcontents",
902
  "Koha::Schema::Result::Virtualshelfcontent",
903
  { "foreign.borrowernumber" => "self.borrowernumber" },
904
  { cascade_copy => 0, cascade_delete => 0 },
905
);
906
907
=head2 virtualshelfshares
908
909
Type: has_many
910
911
Related object: L<Koha::Schema::Result::Virtualshelfshare>
912
913
=cut
914
915
__PACKAGE__->has_many(
916
  "virtualshelfshares",
917
  "Koha::Schema::Result::Virtualshelfshare",
918
  { "foreign.borrowernumber" => "self.borrowernumber" },
919
  { cascade_copy => 0, cascade_delete => 0 },
920
);
921
922
=head2 virtualshelves
923
924
Type: has_many
925
926
Related object: L<Koha::Schema::Result::Virtualshelve>
927
928
=cut
929
930
__PACKAGE__->has_many(
931
  "virtualshelves",
932
  "Koha::Schema::Result::Virtualshelve",
933
  { "foreign.owner" => "self.borrowernumber" },
934
  { cascade_copy => 0, cascade_delete => 0 },
935
);
936
937
938
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
939
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a5PYhuHX3DHlNJqdmIuqTw
940
941
942
# You can replace this text with custom content, and it will be preserved on regeneration
943
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 (+156 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_foreign_key: 1
80
  is_nullable: 1
81
  size: 10
82
83
=head2 class
84
85
  data_type: 'varchar'
86
  default_value: (empty string)
87
  is_nullable: 0
88
  size: 255
89
90
=cut
91
92
__PACKAGE__->add_columns(
93
  "code",
94
  { data_type => "varchar", is_nullable => 0, size => 10 },
95
  "description",
96
  { data_type => "varchar", is_nullable => 0, size => 255 },
97
  "repeatable",
98
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
99
  "unique_id",
100
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
101
  "opac_display",
102
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
103
  "password_allowed",
104
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
105
  "staff_searchable",
106
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
107
  "authorised_value_category",
108
  { data_type => "varchar", is_nullable => 1, size => 10 },
109
  "display_checkout",
110
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
111
  "category_code",
112
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
113
  "class",
114
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
115
);
116
__PACKAGE__->set_primary_key("code");
117
118
=head1 RELATIONS
119
120
=head2 category_code
121
122
Type: belongs_to
123
124
Related object: L<Koha::Schema::Result::Category>
125
126
=cut
127
128
__PACKAGE__->belongs_to(
129
  "category_code",
130
  "Koha::Schema::Result::Category",
131
  { categorycode => "category_code" },
132
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
133
);
134
135
=head2 borrower_attributes
136
137
Type: has_many
138
139
Related object: L<Koha::Schema::Result::BorrowerAttribute>
140
141
=cut
142
143
__PACKAGE__->has_many(
144
  "borrower_attributes",
145
  "Koha::Schema::Result::BorrowerAttribute",
146
  { "foreign.code" => "self.code" },
147
  { cascade_copy => 0, cascade_delete => 0 },
148
);
149
150
151
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
152
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EpdavGdH3uR/eaNLJIoHCg
153
154
155
# You can replace this text with custom content, and it will be preserved on regeneration
156
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/Branch.pm (+377 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Branch;
2
3
# Created by DBIx::Class::Schema::Loader
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6
use strict;
7
use warnings;
8
9
use base 'DBIx::Class::Core';
10
11
12
=head1 NAME
13
14
Koha::Schema::Result::Branch
15
16
=cut
17
18
__PACKAGE__->table("branches");
19
20
=head1 ACCESSORS
21
22
=head2 branchcode
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 branchname
30
31
  data_type: 'mediumtext'
32
  is_nullable: 0
33
34
=head2 branchaddress1
35
36
  data_type: 'mediumtext'
37
  is_nullable: 1
38
39
=head2 branchaddress2
40
41
  data_type: 'mediumtext'
42
  is_nullable: 1
43
44
=head2 branchaddress3
45
46
  data_type: 'mediumtext'
47
  is_nullable: 1
48
49
=head2 branchzip
50
51
  data_type: 'varchar'
52
  is_nullable: 1
53
  size: 25
54
55
=head2 branchcity
56
57
  data_type: 'mediumtext'
58
  is_nullable: 1
59
60
=head2 branchstate
61
62
  data_type: 'mediumtext'
63
  is_nullable: 1
64
65
=head2 branchcountry
66
67
  data_type: 'text'
68
  is_nullable: 1
69
70
=head2 branchphone
71
72
  data_type: 'mediumtext'
73
  is_nullable: 1
74
75
=head2 branchfax
76
77
  data_type: 'mediumtext'
78
  is_nullable: 1
79
80
=head2 branchemail
81
82
  data_type: 'mediumtext'
83
  is_nullable: 1
84
85
=head2 branchurl
86
87
  data_type: 'mediumtext'
88
  is_nullable: 1
89
90
=head2 issuing
91
92
  data_type: 'tinyint'
93
  is_nullable: 1
94
95
=head2 branchip
96
97
  data_type: 'varchar'
98
  is_nullable: 1
99
  size: 15
100
101
=head2 branchprinter
102
103
  data_type: 'varchar'
104
  is_nullable: 1
105
  size: 100
106
107
=head2 branchnotes
108
109
  data_type: 'mediumtext'
110
  is_nullable: 1
111
112
=head2 opac_info
113
114
  data_type: 'text'
115
  is_nullable: 1
116
117
=cut
118
119
__PACKAGE__->add_columns(
120
  "branchcode",
121
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
122
  "branchname",
123
  { data_type => "mediumtext", is_nullable => 0 },
124
  "branchaddress1",
125
  { data_type => "mediumtext", is_nullable => 1 },
126
  "branchaddress2",
127
  { data_type => "mediumtext", is_nullable => 1 },
128
  "branchaddress3",
129
  { data_type => "mediumtext", is_nullable => 1 },
130
  "branchzip",
131
  { data_type => "varchar", is_nullable => 1, size => 25 },
132
  "branchcity",
133
  { data_type => "mediumtext", is_nullable => 1 },
134
  "branchstate",
135
  { data_type => "mediumtext", is_nullable => 1 },
136
  "branchcountry",
137
  { data_type => "text", is_nullable => 1 },
138
  "branchphone",
139
  { data_type => "mediumtext", is_nullable => 1 },
140
  "branchfax",
141
  { data_type => "mediumtext", is_nullable => 1 },
142
  "branchemail",
143
  { data_type => "mediumtext", is_nullable => 1 },
144
  "branchurl",
145
  { data_type => "mediumtext", is_nullable => 1 },
146
  "issuing",
147
  { data_type => "tinyint", is_nullable => 1 },
148
  "branchip",
149
  { data_type => "varchar", is_nullable => 1, size => 15 },
150
  "branchprinter",
151
  { data_type => "varchar", is_nullable => 1, size => 100 },
152
  "branchnotes",
153
  { data_type => "mediumtext", is_nullable => 1 },
154
  "opac_info",
155
  { data_type => "text", is_nullable => 1 },
156
);
157
__PACKAGE__->set_primary_key("branchcode");
158
159
=head1 RELATIONS
160
161
=head2 borrowers
162
163
Type: has_many
164
165
Related object: L<Koha::Schema::Result::Borrower>
166
167
=cut
168
169
__PACKAGE__->has_many(
170
  "borrowers",
171
  "Koha::Schema::Result::Borrower",
172
  { "foreign.branchcode" => "self.branchcode" },
173
  { cascade_copy => 0, cascade_delete => 0 },
174
);
175
176
=head2 branch_borrower_circ_rules
177
178
Type: has_many
179
180
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
181
182
=cut
183
184
__PACKAGE__->has_many(
185
  "branch_borrower_circ_rules",
186
  "Koha::Schema::Result::BranchBorrowerCircRule",
187
  { "foreign.branchcode" => "self.branchcode" },
188
  { cascade_copy => 0, cascade_delete => 0 },
189
);
190
191
=head2 branch_item_rules
192
193
Type: has_many
194
195
Related object: L<Koha::Schema::Result::BranchItemRule>
196
197
=cut
198
199
__PACKAGE__->has_many(
200
  "branch_item_rules",
201
  "Koha::Schema::Result::BranchItemRule",
202
  { "foreign.branchcode" => "self.branchcode" },
203
  { cascade_copy => 0, cascade_delete => 0 },
204
);
205
206
=head2 branchrelations
207
208
Type: has_many
209
210
Related object: L<Koha::Schema::Result::Branchrelation>
211
212
=cut
213
214
__PACKAGE__->has_many(
215
  "branchrelations",
216
  "Koha::Schema::Result::Branchrelation",
217
  { "foreign.branchcode" => "self.branchcode" },
218
  { cascade_copy => 0, cascade_delete => 0 },
219
);
220
221
=head2 branchtransfers_frombranches
222
223
Type: has_many
224
225
Related object: L<Koha::Schema::Result::Branchtransfer>
226
227
=cut
228
229
__PACKAGE__->has_many(
230
  "branchtransfers_frombranches",
231
  "Koha::Schema::Result::Branchtransfer",
232
  { "foreign.frombranch" => "self.branchcode" },
233
  { cascade_copy => 0, cascade_delete => 0 },
234
);
235
236
=head2 branchtransfers_tobranches
237
238
Type: has_many
239
240
Related object: L<Koha::Schema::Result::Branchtransfer>
241
242
=cut
243
244
__PACKAGE__->has_many(
245
  "branchtransfers_tobranches",
246
  "Koha::Schema::Result::Branchtransfer",
247
  { "foreign.tobranch" => "self.branchcode" },
248
  { cascade_copy => 0, cascade_delete => 0 },
249
);
250
251
=head2 creator_batches
252
253
Type: has_many
254
255
Related object: L<Koha::Schema::Result::CreatorBatch>
256
257
=cut
258
259
__PACKAGE__->has_many(
260
  "creator_batches",
261
  "Koha::Schema::Result::CreatorBatch",
262
  { "foreign.branch_code" => "self.branchcode" },
263
  { cascade_copy => 0, cascade_delete => 0 },
264
);
265
266
=head2 default_branch_circ_rule
267
268
Type: might_have
269
270
Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
271
272
=cut
273
274
__PACKAGE__->might_have(
275
  "default_branch_circ_rule",
276
  "Koha::Schema::Result::DefaultBranchCircRule",
277
  { "foreign.branchcode" => "self.branchcode" },
278
  { cascade_copy => 0, cascade_delete => 0 },
279
);
280
281
=head2 hold_fill_targets
282
283
Type: has_many
284
285
Related object: L<Koha::Schema::Result::HoldFillTarget>
286
287
=cut
288
289
__PACKAGE__->has_many(
290
  "hold_fill_targets",
291
  "Koha::Schema::Result::HoldFillTarget",
292
  { "foreign.source_branchcode" => "self.branchcode" },
293
  { cascade_copy => 0, cascade_delete => 0 },
294
);
295
296
=head2 items_homebranches
297
298
Type: has_many
299
300
Related object: L<Koha::Schema::Result::Item>
301
302
=cut
303
304
__PACKAGE__->has_many(
305
  "items_homebranches",
306
  "Koha::Schema::Result::Item",
307
  { "foreign.homebranch" => "self.branchcode" },
308
  { cascade_copy => 0, cascade_delete => 0 },
309
);
310
311
=head2 items_holdingbranches
312
313
Type: has_many
314
315
Related object: L<Koha::Schema::Result::Item>
316
317
=cut
318
319
__PACKAGE__->has_many(
320
  "items_holdingbranches",
321
  "Koha::Schema::Result::Item",
322
  { "foreign.holdingbranch" => "self.branchcode" },
323
  { cascade_copy => 0, cascade_delete => 0 },
324
);
325
326
=head2 reserves
327
328
Type: has_many
329
330
Related object: L<Koha::Schema::Result::Reserve>
331
332
=cut
333
334
__PACKAGE__->has_many(
335
  "reserves",
336
  "Koha::Schema::Result::Reserve",
337
  { "foreign.branchcode" => "self.branchcode" },
338
  { cascade_copy => 0, cascade_delete => 0 },
339
);
340
341
=head2 transport_cost_frombranches
342
343
Type: has_many
344
345
Related object: L<Koha::Schema::Result::TransportCost>
346
347
=cut
348
349
__PACKAGE__->has_many(
350
  "transport_cost_frombranches",
351
  "Koha::Schema::Result::TransportCost",
352
  { "foreign.frombranch" => "self.branchcode" },
353
  { cascade_copy => 0, cascade_delete => 0 },
354
);
355
356
=head2 transport_cost_tobranches
357
358
Type: has_many
359
360
Related object: L<Koha::Schema::Result::TransportCost>
361
362
=cut
363
364
__PACKAGE__->has_many(
365
  "transport_cost_tobranches",
366
  "Koha::Schema::Result::TransportCost",
367
  { "foreign.tobranch" => "self.branchcode" },
368
  { cascade_copy => 0, cascade_delete => 0 },
369
);
370
371
372
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
373
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7/fUACQhSXHg0daDi6MGbQ
374
375
376
# You can replace this text with custom content, and it will be preserved on regeneration
377
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 (+83 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Branchcategory;
2
3
# Created by DBIx::Class::Schema::Loader
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6
use strict;
7
use warnings;
8
9
use base 'DBIx::Class::Core';
10
11
12
=head1 NAME
13
14
Koha::Schema::Result::Branchcategory
15
16
=cut
17
18
__PACKAGE__->table("branchcategories");
19
20
=head1 ACCESSORS
21
22
=head2 categorycode
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_nullable: 0
27
  size: 10
28
29
=head2 categoryname
30
31
  data_type: 'varchar'
32
  is_nullable: 1
33
  size: 32
34
35
=head2 codedescription
36
37
  data_type: 'mediumtext'
38
  is_nullable: 1
39
40
=head2 categorytype
41
42
  data_type: 'varchar'
43
  is_nullable: 1
44
  size: 16
45
46
=cut
47
48
__PACKAGE__->add_columns(
49
  "categorycode",
50
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
51
  "categoryname",
52
  { data_type => "varchar", is_nullable => 1, size => 32 },
53
  "codedescription",
54
  { data_type => "mediumtext", is_nullable => 1 },
55
  "categorytype",
56
  { data_type => "varchar", is_nullable => 1, size => 16 },
57
);
58
__PACKAGE__->set_primary_key("categorycode");
59
60
=head1 RELATIONS
61
62
=head2 branchrelations
63
64
Type: has_many
65
66
Related object: L<Koha::Schema::Result::Branchrelation>
67
68
=cut
69
70
__PACKAGE__->has_many(
71
  "branchrelations",
72
  "Koha::Schema::Result::Branchrelation",
73
  { "foreign.categorycode" => "self.categorycode" },
74
  { cascade_copy => 0, cascade_delete => 0 },
75
);
76
77
78
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i3um3oAfQ9EV/pJHuUiWnA
80
81
82
# You can replace this text with custom content, and it will be preserved on regeneration
83
1;
(-)a/Koha/Schema/Result/Branchrelation.pm (+98 lines)
Line 0 Link Here
1
package Koha::Schema::Result::Branchrelation;
2
3
# Created by DBIx::Class::Schema::Loader
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6
use strict;
7
use warnings;
8
9
use base 'DBIx::Class::Core';
10
11
12
=head1 NAME
13
14
Koha::Schema::Result::Branchrelation
15
16
=cut
17
18
__PACKAGE__->table("branchrelations");
19
20
=head1 ACCESSORS
21
22
=head2 branchcode
23
24
  data_type: 'varchar'
25
  default_value: (empty string)
26
  is_foreign_key: 1
27
  is_nullable: 0
28
  size: 10
29
30
=head2 categorycode
31
32
  data_type: 'varchar'
33
  default_value: (empty string)
34
  is_foreign_key: 1
35
  is_nullable: 0
36
  size: 10
37
38
=cut
39
40
__PACKAGE__->add_columns(
41
  "branchcode",
42
  {
43
    data_type => "varchar",
44
    default_value => "",
45
    is_foreign_key => 1,
46
    is_nullable => 0,
47
    size => 10,
48
  },
49
  "categorycode",
50
  {
51
    data_type => "varchar",
52
    default_value => "",
53
    is_foreign_key => 1,
54
    is_nullable => 0,
55
    size => 10,
56
  },
57
);
58
__PACKAGE__->set_primary_key("branchcode", "categorycode");
59
60
=head1 RELATIONS
61
62
=head2 branchcode
63
64
Type: belongs_to
65
66
Related object: L<Koha::Schema::Result::Branch>
67
68
=cut
69
70
__PACKAGE__->belongs_to(
71
  "branchcode",
72
  "Koha::Schema::Result::Branch",
73
  { branchcode => "branchcode" },
74
  { 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/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_attribute_types
137
138
Type: has_many
139
140
Related object: L<Koha::Schema::Result::BorrowerAttributeType>
141
142
=cut
143
144
__PACKAGE__->has_many(
145
  "borrower_attribute_types",
146
  "Koha::Schema::Result::BorrowerAttributeType",
147
  { "foreign.category_code" => "self.categorycode" },
148
  { cascade_copy => 0, cascade_delete => 0 },
149
);
150
151
=head2 borrower_message_preferences
152
153
Type: has_many
154
155
Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
156
157
=cut
158
159
__PACKAGE__->has_many(
160
  "borrower_message_preferences",
161
  "Koha::Schema::Result::BorrowerMessagePreference",
162
  { "foreign.categorycode" => "self.categorycode" },
163
  { cascade_copy => 0, cascade_delete => 0 },
164
);
165
166
=head2 borrowers
167
168
Type: has_many
169
170
Related object: L<Koha::Schema::Result::Borrower>
171
172
=cut
173
174
__PACKAGE__->has_many(
175
  "borrowers",
176
  "Koha::Schema::Result::Borrower",
177
  { "foreign.categorycode" => "self.categorycode" },
178
  { cascade_copy => 0, cascade_delete => 0 },
179
);
180
181
=head2 branch_borrower_circ_rules
182
183
Type: has_many
184
185
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
186
187
=cut
188
189
__PACKAGE__->has_many(
190
  "branch_borrower_circ_rules",
191
  "Koha::Schema::Result::BranchBorrowerCircRule",
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 @ 2012-09-02 08:44:15
213
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BpTckQJaDAxGwrOS9s3tuQ
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_zipcode
42
43
  data_type: 'varchar'
44
  is_nullable: 1
45
  size: 20
46
47
=head2 city_country
48
49
  data_type: 'varchar'
50
  is_nullable: 1
51
  size: 100
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_zipcode",
63
  { data_type => "varchar", is_nullable => 1, size => 20 },
64
  "city_country",
65
  { data_type => "varchar", is_nullable => 1, size => 100 },
66
);
67
__PACKAGE__->set_primary_key("cityid");
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:rm0FlpZ/rA6OLY0TP/RMTQ
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/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
  default_value: 0
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", default_value => 0, 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 @ 2012-09-02 08:44:15
122
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/x/M9xGCkN5ClHrk1GUELw
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 (+533 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: 'mediumtext'
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: 'mediumtext'
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
  is_nullable: 1
203
  size: 10
204
205
=head2 dateenrolled
206
207
  data_type: 'date'
208
  is_nullable: 1
209
210
=head2 dateexpiry
211
212
  data_type: 'date'
213
  is_nullable: 1
214
215
=head2 gonenoaddress
216
217
  data_type: 'tinyint'
218
  is_nullable: 1
219
220
=head2 lost
221
222
  data_type: 'tinyint'
223
  is_nullable: 1
224
225
=head2 debarred
226
227
  data_type: 'date'
228
  is_nullable: 1
229
230
=head2 debarredcomment
231
232
  data_type: 'varchar'
233
  is_nullable: 1
234
  size: 255
235
236
=head2 contactname
237
238
  data_type: 'mediumtext'
239
  is_nullable: 1
240
241
=head2 contactfirstname
242
243
  data_type: 'text'
244
  is_nullable: 1
245
246
=head2 contacttitle
247
248
  data_type: 'text'
249
  is_nullable: 1
250
251
=head2 guarantorid
252
253
  data_type: 'integer'
254
  is_nullable: 1
255
256
=head2 borrowernotes
257
258
  data_type: 'mediumtext'
259
  is_nullable: 1
260
261
=head2 relationship
262
263
  data_type: 'varchar'
264
  is_nullable: 1
265
  size: 100
266
267
=head2 ethnicity
268
269
  data_type: 'varchar'
270
  is_nullable: 1
271
  size: 50
272
273
=head2 ethnotes
274
275
  data_type: 'varchar'
276
  is_nullable: 1
277
  size: 255
278
279
=head2 sex
280
281
  data_type: 'varchar'
282
  is_nullable: 1
283
  size: 1
284
285
=head2 password
286
287
  data_type: 'varchar'
288
  is_nullable: 1
289
  size: 30
290
291
=head2 flags
292
293
  data_type: 'integer'
294
  is_nullable: 1
295
296
=head2 userid
297
298
  data_type: 'varchar'
299
  is_nullable: 1
300
  size: 30
301
302
=head2 opacnote
303
304
  data_type: 'mediumtext'
305
  is_nullable: 1
306
307
=head2 contactnote
308
309
  data_type: 'varchar'
310
  is_nullable: 1
311
  size: 255
312
313
=head2 sort1
314
315
  data_type: 'varchar'
316
  is_nullable: 1
317
  size: 80
318
319
=head2 sort2
320
321
  data_type: 'varchar'
322
  is_nullable: 1
323
  size: 80
324
325
=head2 altcontactfirstname
326
327
  data_type: 'varchar'
328
  is_nullable: 1
329
  size: 255
330
331
=head2 altcontactsurname
332
333
  data_type: 'varchar'
334
  is_nullable: 1
335
  size: 255
336
337
=head2 altcontactaddress1
338
339
  data_type: 'varchar'
340
  is_nullable: 1
341
  size: 255
342
343
=head2 altcontactaddress2
344
345
  data_type: 'varchar'
346
  is_nullable: 1
347
  size: 255
348
349
=head2 altcontactaddress3
350
351
  data_type: 'varchar'
352
  is_nullable: 1
353
  size: 255
354
355
=head2 altcontactstate
356
357
  data_type: 'mediumtext'
358
  is_nullable: 1
359
360
=head2 altcontactzipcode
361
362
  data_type: 'varchar'
363
  is_nullable: 1
364
  size: 50
365
366
=head2 altcontactcountry
367
368
  data_type: 'text'
369
  is_nullable: 1
370
371
=head2 altcontactphone
372
373
  data_type: 'varchar'
374
  is_nullable: 1
375
  size: 50
376
377
=head2 smsalertnumber
378
379
  data_type: 'varchar'
380
  is_nullable: 1
381
  size: 50
382
383
=head2 privacy
384
385
  data_type: 'integer'
386
  is_nullable: 1
387
388
=cut
389
390
__PACKAGE__->add_columns(
391
  "borrowernumber",
392
  { data_type => "integer", default_value => 0, is_nullable => 0 },
393
  "cardnumber",
394
  { data_type => "varchar", is_nullable => 1, size => 16 },
395
  "surname",
396
  { data_type => "mediumtext", is_nullable => 0 },
397
  "firstname",
398
  { data_type => "text", is_nullable => 1 },
399
  "title",
400
  { data_type => "mediumtext", is_nullable => 1 },
401
  "othernames",
402
  { data_type => "mediumtext", is_nullable => 1 },
403
  "initials",
404
  { data_type => "text", is_nullable => 1 },
405
  "streetnumber",
406
  { data_type => "varchar", is_nullable => 1, size => 10 },
407
  "streettype",
408
  { data_type => "varchar", is_nullable => 1, size => 50 },
409
  "address",
410
  { data_type => "mediumtext", is_nullable => 0 },
411
  "address2",
412
  { data_type => "text", is_nullable => 1 },
413
  "city",
414
  { data_type => "mediumtext", is_nullable => 0 },
415
  "state",
416
  { data_type => "mediumtext", is_nullable => 1 },
417
  "zipcode",
418
  { data_type => "varchar", is_nullable => 1, size => 25 },
419
  "country",
420
  { data_type => "text", is_nullable => 1 },
421
  "email",
422
  { data_type => "mediumtext", is_nullable => 1 },
423
  "phone",
424
  { data_type => "text", is_nullable => 1 },
425
  "mobile",
426
  { data_type => "varchar", is_nullable => 1, size => 50 },
427
  "fax",
428
  { data_type => "mediumtext", is_nullable => 1 },
429
  "emailpro",
430
  { data_type => "text", is_nullable => 1 },
431
  "phonepro",
432
  { data_type => "text", is_nullable => 1 },
433
  "b_streetnumber",
434
  { data_type => "varchar", is_nullable => 1, size => 10 },
435
  "b_streettype",
436
  { data_type => "varchar", is_nullable => 1, size => 50 },
437
  "b_address",
438
  { data_type => "varchar", is_nullable => 1, size => 100 },
439
  "b_address2",
440
  { data_type => "text", is_nullable => 1 },
441
  "b_city",
442
  { data_type => "mediumtext", is_nullable => 1 },
443
  "b_state",
444
  { data_type => "mediumtext", is_nullable => 1 },
445
  "b_zipcode",
446
  { data_type => "varchar", is_nullable => 1, size => 25 },
447
  "b_country",
448
  { data_type => "text", is_nullable => 1 },
449
  "b_email",
450
  { data_type => "text", is_nullable => 1 },
451
  "b_phone",
452
  { data_type => "mediumtext", is_nullable => 1 },
453
  "dateofbirth",
454
  { data_type => "date", is_nullable => 1 },
455
  "branchcode",
456
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
457
  "categorycode",
458
  { data_type => "varchar", is_nullable => 1, size => 10 },
459
  "dateenrolled",
460
  { data_type => "date", is_nullable => 1 },
461
  "dateexpiry",
462
  { data_type => "date", is_nullable => 1 },
463
  "gonenoaddress",
464
  { data_type => "tinyint", is_nullable => 1 },
465
  "lost",
466
  { data_type => "tinyint", is_nullable => 1 },
467
  "debarred",
468
  { data_type => "date", is_nullable => 1 },
469
  "debarredcomment",
470
  { data_type => "varchar", is_nullable => 1, size => 255 },
471
  "contactname",
472
  { data_type => "mediumtext", is_nullable => 1 },
473
  "contactfirstname",
474
  { data_type => "text", is_nullable => 1 },
475
  "contacttitle",
476
  { data_type => "text", is_nullable => 1 },
477
  "guarantorid",
478
  { data_type => "integer", is_nullable => 1 },
479
  "borrowernotes",
480
  { data_type => "mediumtext", is_nullable => 1 },
481
  "relationship",
482
  { data_type => "varchar", is_nullable => 1, size => 100 },
483
  "ethnicity",
484
  { data_type => "varchar", is_nullable => 1, size => 50 },
485
  "ethnotes",
486
  { data_type => "varchar", is_nullable => 1, size => 255 },
487
  "sex",
488
  { data_type => "varchar", is_nullable => 1, size => 1 },
489
  "password",
490
  { data_type => "varchar", is_nullable => 1, size => 30 },
491
  "flags",
492
  { data_type => "integer", is_nullable => 1 },
493
  "userid",
494
  { data_type => "varchar", is_nullable => 1, size => 30 },
495
  "opacnote",
496
  { data_type => "mediumtext", is_nullable => 1 },
497
  "contactnote",
498
  { data_type => "varchar", is_nullable => 1, size => 255 },
499
  "sort1",
500
  { data_type => "varchar", is_nullable => 1, size => 80 },
501
  "sort2",
502
  { data_type => "varchar", is_nullable => 1, size => 80 },
503
  "altcontactfirstname",
504
  { data_type => "varchar", is_nullable => 1, size => 255 },
505
  "altcontactsurname",
506
  { data_type => "varchar", is_nullable => 1, size => 255 },
507
  "altcontactaddress1",
508
  { data_type => "varchar", is_nullable => 1, size => 255 },
509
  "altcontactaddress2",
510
  { data_type => "varchar", is_nullable => 1, size => 255 },
511
  "altcontactaddress3",
512
  { data_type => "varchar", is_nullable => 1, size => 255 },
513
  "altcontactstate",
514
  { data_type => "mediumtext", is_nullable => 1 },
515
  "altcontactzipcode",
516
  { data_type => "varchar", is_nullable => 1, size => 50 },
517
  "altcontactcountry",
518
  { data_type => "text", is_nullable => 1 },
519
  "altcontactphone",
520
  { data_type => "varchar", is_nullable => 1, size => 50 },
521
  "smsalertnumber",
522
  { data_type => "varchar", is_nullable => 1, size => 50 },
523
  "privacy",
524
  { data_type => "integer", is_nullable => 1 },
525
);
526
527
528
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
529
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bFluvx9OwGTzEMpQZPBuKQ
530
531
532
# You can replace this text with custom content, and it will be preserved on regeneration
533
1;
(-)a/Koha/Schema/Result/Deleteditem.pm (+342 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 issues
125
126
  data_type: 'smallint'
127
  is_nullable: 1
128
129
=head2 renewals
130
131
  data_type: 'smallint'
132
  is_nullable: 1
133
134
=head2 reserves
135
136
  data_type: 'smallint'
137
  is_nullable: 1
138
139
=head2 restricted
140
141
  data_type: 'tinyint'
142
  is_nullable: 1
143
144
=head2 itemnotes
145
146
  data_type: 'mediumtext'
147
  is_nullable: 1
148
149
=head2 holdingbranch
150
151
  data_type: 'varchar'
152
  is_nullable: 1
153
  size: 10
154
155
=head2 paidfor
156
157
  data_type: 'mediumtext'
158
  is_nullable: 1
159
160
=head2 timestamp
161
162
  data_type: 'timestamp'
163
  default_value: current_timestamp
164
  is_nullable: 0
165
166
=head2 location
167
168
  data_type: 'varchar'
169
  is_nullable: 1
170
  size: 80
171
172
=head2 permanent_location
173
174
  data_type: 'varchar'
175
  is_nullable: 1
176
  size: 80
177
178
=head2 onloan
179
180
  data_type: 'date'
181
  is_nullable: 1
182
183
=head2 cn_source
184
185
  data_type: 'varchar'
186
  is_nullable: 1
187
  size: 10
188
189
=head2 cn_sort
190
191
  data_type: 'varchar'
192
  is_nullable: 1
193
  size: 30
194
195
=head2 ccode
196
197
  data_type: 'varchar'
198
  is_nullable: 1
199
  size: 10
200
201
=head2 materials
202
203
  data_type: 'varchar'
204
  is_nullable: 1
205
  size: 10
206
207
=head2 uri
208
209
  data_type: 'varchar'
210
  is_nullable: 1
211
  size: 255
212
213
=head2 itype
214
215
  data_type: 'varchar'
216
  is_nullable: 1
217
  size: 10
218
219
=head2 more_subfields_xml
220
221
  data_type: 'longtext'
222
  is_nullable: 1
223
224
=head2 enumchron
225
226
  data_type: 'text'
227
  is_nullable: 1
228
229
=head2 copynumber
230
231
  data_type: 'varchar'
232
  is_nullable: 1
233
  size: 32
234
235
=head2 stocknumber
236
237
  data_type: 'varchar'
238
  is_nullable: 1
239
  size: 32
240
241
=head2 marc
242
243
  data_type: 'longblob'
244
  is_nullable: 1
245
246
=cut
247
248
__PACKAGE__->add_columns(
249
  "itemnumber",
250
  { data_type => "integer", default_value => 0, is_nullable => 0 },
251
  "biblionumber",
252
  { data_type => "integer", default_value => 0, is_nullable => 0 },
253
  "biblioitemnumber",
254
  { data_type => "integer", default_value => 0, is_nullable => 0 },
255
  "barcode",
256
  { data_type => "varchar", is_nullable => 1, size => 20 },
257
  "dateaccessioned",
258
  { data_type => "date", is_nullable => 1 },
259
  "booksellerid",
260
  { data_type => "mediumtext", is_nullable => 1 },
261
  "homebranch",
262
  { data_type => "varchar", is_nullable => 1, size => 10 },
263
  "price",
264
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
265
  "replacementprice",
266
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
267
  "replacementpricedate",
268
  { data_type => "date", is_nullable => 1 },
269
  "datelastborrowed",
270
  { data_type => "date", is_nullable => 1 },
271
  "datelastseen",
272
  { data_type => "date", is_nullable => 1 },
273
  "stack",
274
  { data_type => "tinyint", is_nullable => 1 },
275
  "notforloan",
276
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
277
  "damaged",
278
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
279
  "itemlost",
280
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
281
  "wthdrawn",
282
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
283
  "itemcallnumber",
284
  { data_type => "varchar", is_nullable => 1, size => 255 },
285
  "issues",
286
  { data_type => "smallint", is_nullable => 1 },
287
  "renewals",
288
  { data_type => "smallint", is_nullable => 1 },
289
  "reserves",
290
  { data_type => "smallint", is_nullable => 1 },
291
  "restricted",
292
  { data_type => "tinyint", is_nullable => 1 },
293
  "itemnotes",
294
  { data_type => "mediumtext", is_nullable => 1 },
295
  "holdingbranch",
296
  { data_type => "varchar", is_nullable => 1, size => 10 },
297
  "paidfor",
298
  { data_type => "mediumtext", is_nullable => 1 },
299
  "timestamp",
300
  {
301
    data_type     => "timestamp",
302
    default_value => \"current_timestamp",
303
    is_nullable   => 0,
304
  },
305
  "location",
306
  { data_type => "varchar", is_nullable => 1, size => 80 },
307
  "permanent_location",
308
  { data_type => "varchar", is_nullable => 1, size => 80 },
309
  "onloan",
310
  { data_type => "date", is_nullable => 1 },
311
  "cn_source",
312
  { data_type => "varchar", is_nullable => 1, size => 10 },
313
  "cn_sort",
314
  { data_type => "varchar", is_nullable => 1, size => 30 },
315
  "ccode",
316
  { data_type => "varchar", is_nullable => 1, size => 10 },
317
  "materials",
318
  { data_type => "varchar", is_nullable => 1, size => 10 },
319
  "uri",
320
  { data_type => "varchar", is_nullable => 1, size => 255 },
321
  "itype",
322
  { data_type => "varchar", is_nullable => 1, size => 10 },
323
  "more_subfields_xml",
324
  { data_type => "longtext", is_nullable => 1 },
325
  "enumchron",
326
  { data_type => "text", is_nullable => 1 },
327
  "copynumber",
328
  { data_type => "varchar", is_nullable => 1, size => 32 },
329
  "stocknumber",
330
  { data_type => "varchar", is_nullable => 1, size => 32 },
331
  "marc",
332
  { data_type => "longblob", is_nullable => 1 },
333
);
334
__PACKAGE__->set_primary_key("itemnumber");
335
336
337
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
338
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:71VE1YzdzK7dAtGTVKeCkg
339
340
341
# You can replace this text with custom content, and it will be preserved on regeneration
342
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 file_name
98
99
  data_type: 'varchar'
100
  is_nullable: 1
101
  size: 100
102
103
=head2 comments
104
105
  data_type: 'mediumtext'
106
  is_nullable: 1
107
108
=head2 record_type
109
110
  data_type: 'enum'
111
  default_value: 'biblio'
112
  extra: {list => ["biblio","auth","holdings"]}
113
  is_nullable: 0
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
  "file_name",
189
  { data_type => "varchar", is_nullable => 1, size => 100 },
190
  "comments",
191
  { data_type => "mediumtext", is_nullable => 1 },
192
  "record_type",
193
  {
194
    data_type => "enum",
195
    default_value => "biblio",
196
    extra => { list => ["biblio", "auth", "holdings"] },
197
    is_nullable => 0,
198
  },
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 @ 2012-09-02 08:44:15
221
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:es2clfR8Vlgv8rN/kM65iA
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: 0
27
28
=head2 itemnumber
29
30
  data_type: 'integer'
31
  is_foreign_key: 1
32
  is_nullable: 0
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 => 0 },
88
  "itemnumber",
89
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
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
  { 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
  { 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:KCy3FmbJK9aZRqXSAkYe5g
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 (+194 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 reservesallowed
120
121
  data_type: 'smallint'
122
  default_value: 0
123
  is_nullable: 0
124
125
=head2 branchcode
126
127
  data_type: 'varchar'
128
  default_value: (empty string)
129
  is_nullable: 0
130
  size: 10
131
132
=head2 overduefinescap
133
134
  data_type: 'decimal'
135
  is_nullable: 1
136
137
=cut
138
139
__PACKAGE__->add_columns(
140
  "categorycode",
141
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
142
  "itemtype",
143
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
144
  "restrictedtype",
145
  { data_type => "tinyint", is_nullable => 1 },
146
  "rentaldiscount",
147
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
148
  "reservecharge",
149
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
150
  "fine",
151
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
152
  "finedays",
153
  { data_type => "integer", is_nullable => 1 },
154
  "firstremind",
155
  { data_type => "integer", is_nullable => 1 },
156
  "chargeperiod",
157
  { data_type => "integer", is_nullable => 1 },
158
  "accountsent",
159
  { data_type => "integer", is_nullable => 1 },
160
  "chargename",
161
  { data_type => "varchar", is_nullable => 1, size => 100 },
162
  "maxissueqty",
163
  { data_type => "integer", is_nullable => 1 },
164
  "issuelength",
165
  { data_type => "integer", is_nullable => 1 },
166
  "lengthunit",
167
  {
168
    data_type => "varchar",
169
    default_value => "days",
170
    is_nullable => 1,
171
    size => 10,
172
  },
173
  "hardduedate",
174
  { data_type => "date", is_nullable => 1 },
175
  "hardduedatecompare",
176
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
177
  "renewalsallowed",
178
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
179
  "reservesallowed",
180
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
181
  "branchcode",
182
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
183
  "overduefinescap",
184
  { data_type => "decimal", is_nullable => 1 },
185
);
186
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
187
188
189
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
190
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bsTUaL5I872EWP0ZLfdPQA
191
192
193
# You can replace this text with custom content, and it will be preserved on regeneration
194
1;
(-)a/Koha/Schema/Result/Item.pm (+525 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 issues
127
128
  data_type: 'smallint'
129
  is_nullable: 1
130
131
=head2 renewals
132
133
  data_type: 'smallint'
134
  is_nullable: 1
135
136
=head2 reserves
137
138
  data_type: 'smallint'
139
  is_nullable: 1
140
141
=head2 restricted
142
143
  data_type: 'tinyint'
144
  is_nullable: 1
145
146
=head2 itemnotes
147
148
  data_type: 'mediumtext'
149
  is_nullable: 1
150
151
=head2 holdingbranch
152
153
  data_type: 'varchar'
154
  is_foreign_key: 1
155
  is_nullable: 1
156
  size: 10
157
158
=head2 paidfor
159
160
  data_type: 'mediumtext'
161
  is_nullable: 1
162
163
=head2 timestamp
164
165
  data_type: 'timestamp'
166
  default_value: current_timestamp
167
  is_nullable: 0
168
169
=head2 location
170
171
  data_type: 'varchar'
172
  is_nullable: 1
173
  size: 80
174
175
=head2 permanent_location
176
177
  data_type: 'varchar'
178
  is_nullable: 1
179
  size: 80
180
181
=head2 onloan
182
183
  data_type: 'date'
184
  is_nullable: 1
185
186
=head2 cn_source
187
188
  data_type: 'varchar'
189
  is_nullable: 1
190
  size: 10
191
192
=head2 cn_sort
193
194
  data_type: 'varchar'
195
  is_nullable: 1
196
  size: 30
197
198
=head2 ccode
199
200
  data_type: 'varchar'
201
  is_nullable: 1
202
  size: 10
203
204
=head2 materials
205
206
  data_type: 'text'
207
  is_nullable: 1
208
209
=head2 uri
210
211
  data_type: 'varchar'
212
  is_nullable: 1
213
  size: 255
214
215
=head2 itype
216
217
  data_type: 'varchar'
218
  is_nullable: 1
219
  size: 10
220
221
=head2 more_subfields_xml
222
223
  data_type: 'longtext'
224
  is_nullable: 1
225
226
=head2 enumchron
227
228
  data_type: 'text'
229
  is_nullable: 1
230
231
=head2 copynumber
232
233
  data_type: 'varchar'
234
  is_nullable: 1
235
  size: 32
236
237
=head2 stocknumber
238
239
  data_type: 'varchar'
240
  is_nullable: 1
241
  size: 32
242
243
=cut
244
245
__PACKAGE__->add_columns(
246
  "itemnumber",
247
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
248
  "biblionumber",
249
  { data_type => "integer", default_value => 0, is_nullable => 0 },
250
  "biblioitemnumber",
251
  {
252
    data_type      => "integer",
253
    default_value  => 0,
254
    is_foreign_key => 1,
255
    is_nullable    => 0,
256
  },
257
  "barcode",
258
  { data_type => "varchar", is_nullable => 1, size => 20 },
259
  "dateaccessioned",
260
  { data_type => "date", is_nullable => 1 },
261
  "booksellerid",
262
  { data_type => "mediumtext", is_nullable => 1 },
263
  "homebranch",
264
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
265
  "price",
266
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
267
  "replacementprice",
268
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
269
  "replacementpricedate",
270
  { data_type => "date", is_nullable => 1 },
271
  "datelastborrowed",
272
  { data_type => "date", is_nullable => 1 },
273
  "datelastseen",
274
  { data_type => "date", is_nullable => 1 },
275
  "stack",
276
  { data_type => "tinyint", is_nullable => 1 },
277
  "notforloan",
278
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
279
  "damaged",
280
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
281
  "itemlost",
282
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
283
  "wthdrawn",
284
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
285
  "itemcallnumber",
286
  { data_type => "varchar", is_nullable => 1, size => 255 },
287
  "issues",
288
  { data_type => "smallint", is_nullable => 1 },
289
  "renewals",
290
  { data_type => "smallint", is_nullable => 1 },
291
  "reserves",
292
  { data_type => "smallint", is_nullable => 1 },
293
  "restricted",
294
  { data_type => "tinyint", is_nullable => 1 },
295
  "itemnotes",
296
  { data_type => "mediumtext", is_nullable => 1 },
297
  "holdingbranch",
298
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
299
  "paidfor",
300
  { data_type => "mediumtext", is_nullable => 1 },
301
  "timestamp",
302
  {
303
    data_type     => "timestamp",
304
    default_value => \"current_timestamp",
305
    is_nullable   => 0,
306
  },
307
  "location",
308
  { data_type => "varchar", is_nullable => 1, size => 80 },
309
  "permanent_location",
310
  { data_type => "varchar", is_nullable => 1, size => 80 },
311
  "onloan",
312
  { data_type => "date", is_nullable => 1 },
313
  "cn_source",
314
  { data_type => "varchar", is_nullable => 1, size => 10 },
315
  "cn_sort",
316
  { data_type => "varchar", is_nullable => 1, size => 30 },
317
  "ccode",
318
  { data_type => "varchar", is_nullable => 1, size => 10 },
319
  "materials",
320
  { data_type => "text", is_nullable => 1 },
321
  "uri",
322
  { data_type => "varchar", is_nullable => 1, size => 255 },
323
  "itype",
324
  { data_type => "varchar", is_nullable => 1, size => 10 },
325
  "more_subfields_xml",
326
  { data_type => "longtext", is_nullable => 1 },
327
  "enumchron",
328
  { data_type => "text", is_nullable => 1 },
329
  "copynumber",
330
  { data_type => "varchar", is_nullable => 1, size => 32 },
331
  "stocknumber",
332
  { data_type => "varchar", is_nullable => 1, size => 32 },
333
);
334
__PACKAGE__->set_primary_key("itemnumber");
335
__PACKAGE__->add_unique_constraint("itembarcodeidx", ["barcode"]);
336
337
=head1 RELATIONS
338
339
=head2 accountlines
340
341
Type: has_many
342
343
Related object: L<Koha::Schema::Result::Accountline>
344
345
=cut
346
347
__PACKAGE__->has_many(
348
  "accountlines",
349
  "Koha::Schema::Result::Accountline",
350
  { "foreign.itemnumber" => "self.itemnumber" },
351
  { cascade_copy => 0, cascade_delete => 0 },
352
);
353
354
=head2 branchtransfers
355
356
Type: has_many
357
358
Related object: L<Koha::Schema::Result::Branchtransfer>
359
360
=cut
361
362
__PACKAGE__->has_many(
363
  "branchtransfers",
364
  "Koha::Schema::Result::Branchtransfer",
365
  { "foreign.itemnumber" => "self.itemnumber" },
366
  { cascade_copy => 0, cascade_delete => 0 },
367
);
368
369
=head2 creator_batches
370
371
Type: has_many
372
373
Related object: L<Koha::Schema::Result::CreatorBatch>
374
375
=cut
376
377
__PACKAGE__->has_many(
378
  "creator_batches",
379
  "Koha::Schema::Result::CreatorBatch",
380
  { "foreign.item_number" => "self.itemnumber" },
381
  { cascade_copy => 0, cascade_delete => 0 },
382
);
383
384
=head2 hold_fill_target
385
386
Type: might_have
387
388
Related object: L<Koha::Schema::Result::HoldFillTarget>
389
390
=cut
391
392
__PACKAGE__->might_have(
393
  "hold_fill_target",
394
  "Koha::Schema::Result::HoldFillTarget",
395
  { "foreign.itemnumber" => "self.itemnumber" },
396
  { cascade_copy => 0, cascade_delete => 0 },
397
);
398
399
=head2 issues
400
401
Type: has_many
402
403
Related object: L<Koha::Schema::Result::Issue>
404
405
=cut
406
407
__PACKAGE__->has_many(
408
  "issues",
409
  "Koha::Schema::Result::Issue",
410
  { "foreign.itemnumber" => "self.itemnumber" },
411
  { cascade_copy => 0, cascade_delete => 0 },
412
);
413
414
=head2 biblioitemnumber
415
416
Type: belongs_to
417
418
Related object: L<Koha::Schema::Result::Biblioitem>
419
420
=cut
421
422
__PACKAGE__->belongs_to(
423
  "biblioitemnumber",
424
  "Koha::Schema::Result::Biblioitem",
425
  { biblioitemnumber => "biblioitemnumber" },
426
  { on_delete => "CASCADE", on_update => "CASCADE" },
427
);
428
429
=head2 homebranch
430
431
Type: belongs_to
432
433
Related object: L<Koha::Schema::Result::Branch>
434
435
=cut
436
437
__PACKAGE__->belongs_to(
438
  "homebranch",
439
  "Koha::Schema::Result::Branch",
440
  { branchcode => "homebranch" },
441
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
442
);
443
444
=head2 holdingbranch
445
446
Type: belongs_to
447
448
Related object: L<Koha::Schema::Result::Branch>
449
450
=cut
451
452
__PACKAGE__->belongs_to(
453
  "holdingbranch",
454
  "Koha::Schema::Result::Branch",
455
  { branchcode => "holdingbranch" },
456
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
457
);
458
459
=head2 old_issues
460
461
Type: has_many
462
463
Related object: L<Koha::Schema::Result::OldIssue>
464
465
=cut
466
467
__PACKAGE__->has_many(
468
  "old_issues",
469
  "Koha::Schema::Result::OldIssue",
470
  { "foreign.itemnumber" => "self.itemnumber" },
471
  { cascade_copy => 0, cascade_delete => 0 },
472
);
473
474
=head2 old_reserves
475
476
Type: has_many
477
478
Related object: L<Koha::Schema::Result::OldReserve>
479
480
=cut
481
482
__PACKAGE__->has_many(
483
  "old_reserves",
484
  "Koha::Schema::Result::OldReserve",
485
  { "foreign.itemnumber" => "self.itemnumber" },
486
  { cascade_copy => 0, cascade_delete => 0 },
487
);
488
489
=head2 reserves
490
491
Type: has_many
492
493
Related object: L<Koha::Schema::Result::Reserve>
494
495
=cut
496
497
__PACKAGE__->has_many(
498
  "reserves",
499
  "Koha::Schema::Result::Reserve",
500
  { "foreign.itemnumber" => "self.itemnumber" },
501
  { cascade_copy => 0, cascade_delete => 0 },
502
);
503
504
=head2 serialitem
505
506
Type: might_have
507
508
Related object: L<Koha::Schema::Result::Serialitem>
509
510
=cut
511
512
__PACKAGE__->might_have(
513
  "serialitem",
514
  "Koha::Schema::Result::Serialitem",
515
  { "foreign.itemnumber" => "self.itemnumber" },
516
  { cascade_copy => 0, cascade_delete => 0 },
517
);
518
519
520
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
521
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+jjodrPqX4WhBbgnTc5OqQ
522
523
524
# You can replace this text with custom content, and it will be preserved on regeneration
525
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/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 (+226 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
=cut
126
127
__PACKAGE__->add_columns(
128
  "reserve_id",
129
  { data_type => "integer", is_nullable => 0 },
130
  "borrowernumber",
131
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
132
  "reservedate",
133
  { data_type => "date", is_nullable => 1 },
134
  "biblionumber",
135
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
136
  "constrainttype",
137
  { data_type => "varchar", is_nullable => 1, size => 1 },
138
  "branchcode",
139
  { data_type => "varchar", is_nullable => 1, size => 10 },
140
  "notificationdate",
141
  { data_type => "date", is_nullable => 1 },
142
  "reminderdate",
143
  { data_type => "date", is_nullable => 1 },
144
  "cancellationdate",
145
  { data_type => "date", is_nullable => 1 },
146
  "reservenotes",
147
  { data_type => "mediumtext", is_nullable => 1 },
148
  "priority",
149
  { data_type => "smallint", is_nullable => 1 },
150
  "found",
151
  { data_type => "varchar", is_nullable => 1, size => 1 },
152
  "timestamp",
153
  {
154
    data_type     => "timestamp",
155
    default_value => \"current_timestamp",
156
    is_nullable   => 0,
157
  },
158
  "itemnumber",
159
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
160
  "waitingdate",
161
  { data_type => "date", is_nullable => 1 },
162
  "expirationdate",
163
  { data_type => "date", is_nullable => 1 },
164
  "lowestpriority",
165
  { data_type => "tinyint", is_nullable => 0 },
166
  "suspend",
167
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
168
  "suspend_until",
169
  { data_type => "datetime", is_nullable => 1 },
170
);
171
__PACKAGE__->set_primary_key("reserve_id");
172
173
=head1 RELATIONS
174
175
=head2 borrowernumber
176
177
Type: belongs_to
178
179
Related object: L<Koha::Schema::Result::Borrower>
180
181
=cut
182
183
__PACKAGE__->belongs_to(
184
  "borrowernumber",
185
  "Koha::Schema::Result::Borrower",
186
  { borrowernumber => "borrowernumber" },
187
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
188
);
189
190
=head2 biblionumber
191
192
Type: belongs_to
193
194
Related object: L<Koha::Schema::Result::Biblio>
195
196
=cut
197
198
__PACKAGE__->belongs_to(
199
  "biblionumber",
200
  "Koha::Schema::Result::Biblio",
201
  { biblionumber => "biblionumber" },
202
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
203
);
204
205
=head2 itemnumber
206
207
Type: belongs_to
208
209
Related object: L<Koha::Schema::Result::Item>
210
211
=cut
212
213
__PACKAGE__->belongs_to(
214
  "itemnumber",
215
  "Koha::Schema::Result::Item",
216
  { itemnumber => "itemnumber" },
217
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
218
);
219
220
221
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
222
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1b1FcIuOJ5ZRU2apc6swkQ
223
224
225
# You can replace this text with custom content, and it will be preserved on regeneration
226
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 (+94 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: 0
56
  size: 20
57
58
=head2 cardnumber
59
60
  data_type: 'varchar'
61
  is_nullable: 1
62
  size: 16
63
64
=cut
65
66
__PACKAGE__->add_columns(
67
  "operationid",
68
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
69
  "userid",
70
  { data_type => "varchar", is_nullable => 0, size => 30 },
71
  "branchcode",
72
  { data_type => "varchar", is_nullable => 0, size => 10 },
73
  "timestamp",
74
  {
75
    data_type     => "timestamp",
76
    default_value => \"current_timestamp",
77
    is_nullable   => 0,
78
  },
79
  "action",
80
  { data_type => "varchar", is_nullable => 0, size => 10 },
81
  "barcode",
82
  { data_type => "varchar", is_nullable => 0, size => 20 },
83
  "cardnumber",
84
  { data_type => "varchar", is_nullable => 1, size => 16 },
85
);
86
__PACKAGE__->set_primary_key("operationid");
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:PFEH3bfCYOG8Q3dOX/IQ5w
91
92
93
# You can replace this text with custom content, and it will be preserved on regeneration
94
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/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 (+255 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
=cut
130
131
__PACKAGE__->add_columns(
132
  "reserve_id",
133
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
134
  "borrowernumber",
135
  {
136
    data_type      => "integer",
137
    default_value  => 0,
138
    is_foreign_key => 1,
139
    is_nullable    => 0,
140
  },
141
  "reservedate",
142
  { data_type => "date", is_nullable => 1 },
143
  "biblionumber",
144
  {
145
    data_type      => "integer",
146
    default_value  => 0,
147
    is_foreign_key => 1,
148
    is_nullable    => 0,
149
  },
150
  "constrainttype",
151
  { data_type => "varchar", is_nullable => 1, size => 1 },
152
  "branchcode",
153
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
154
  "notificationdate",
155
  { data_type => "date", is_nullable => 1 },
156
  "reminderdate",
157
  { data_type => "date", is_nullable => 1 },
158
  "cancellationdate",
159
  { data_type => "date", is_nullable => 1 },
160
  "reservenotes",
161
  { data_type => "mediumtext", is_nullable => 1 },
162
  "priority",
163
  { data_type => "smallint", is_nullable => 1 },
164
  "found",
165
  { data_type => "varchar", is_nullable => 1, size => 1 },
166
  "timestamp",
167
  {
168
    data_type     => "timestamp",
169
    default_value => \"current_timestamp",
170
    is_nullable   => 0,
171
  },
172
  "itemnumber",
173
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
174
  "waitingdate",
175
  { data_type => "date", is_nullable => 1 },
176
  "expirationdate",
177
  { data_type => "date", is_nullable => 1 },
178
  "lowestpriority",
179
  { data_type => "tinyint", is_nullable => 0 },
180
  "suspend",
181
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
182
  "suspend_until",
183
  { data_type => "datetime", is_nullable => 1 },
184
);
185
__PACKAGE__->set_primary_key("reserve_id");
186
187
=head1 RELATIONS
188
189
=head2 borrowernumber
190
191
Type: belongs_to
192
193
Related object: L<Koha::Schema::Result::Borrower>
194
195
=cut
196
197
__PACKAGE__->belongs_to(
198
  "borrowernumber",
199
  "Koha::Schema::Result::Borrower",
200
  { borrowernumber => "borrowernumber" },
201
  { on_delete => "CASCADE", on_update => "CASCADE" },
202
);
203
204
=head2 biblionumber
205
206
Type: belongs_to
207
208
Related object: L<Koha::Schema::Result::Biblio>
209
210
=cut
211
212
__PACKAGE__->belongs_to(
213
  "biblionumber",
214
  "Koha::Schema::Result::Biblio",
215
  { biblionumber => "biblionumber" },
216
  { on_delete => "CASCADE", on_update => "CASCADE" },
217
);
218
219
=head2 itemnumber
220
221
Type: belongs_to
222
223
Related object: L<Koha::Schema::Result::Item>
224
225
=cut
226
227
__PACKAGE__->belongs_to(
228
  "itemnumber",
229
  "Koha::Schema::Result::Item",
230
  { itemnumber => "itemnumber" },
231
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
232
);
233
234
=head2 branchcode
235
236
Type: belongs_to
237
238
Related object: L<Koha::Schema::Result::Branch>
239
240
=cut
241
242
__PACKAGE__->belongs_to(
243
  "branchcode",
244
  "Koha::Schema::Result::Branch",
245
  { branchcode => "branchcode" },
246
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
247
);
248
249
250
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
251
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+8kr13IjL7oHVHRXQzTReA
252
253
254
# You can replace this text with custom content, and it will be preserved on regeneration
255
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 (+136 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 itemnumber
71
72
  data_type: 'text'
73
  is_nullable: 1
74
75
=head2 claimdate
76
77
  data_type: 'date'
78
  is_nullable: 1
79
80
=head2 routingnotes
81
82
  data_type: 'text'
83
  is_nullable: 1
84
85
=cut
86
87
__PACKAGE__->add_columns(
88
  "serialid",
89
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
90
  "biblionumber",
91
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
92
  "subscriptionid",
93
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
94
  "serialseq",
95
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
96
  "status",
97
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
98
  "planneddate",
99
  { data_type => "date", is_nullable => 1 },
100
  "notes",
101
  { data_type => "text", is_nullable => 1 },
102
  "publisheddate",
103
  { data_type => "date", is_nullable => 1 },
104
  "itemnumber",
105
  { data_type => "text", is_nullable => 1 },
106
  "claimdate",
107
  { data_type => "date", is_nullable => 1 },
108
  "routingnotes",
109
  { data_type => "text", is_nullable => 1 },
110
);
111
__PACKAGE__->set_primary_key("serialid");
112
113
=head1 RELATIONS
114
115
=head2 serialitems
116
117
Type: has_many
118
119
Related object: L<Koha::Schema::Result::Serialitem>
120
121
=cut
122
123
__PACKAGE__->has_many(
124
  "serialitems",
125
  "Koha::Schema::Result::Serialitem",
126
  { "foreign.serialid" => "self.serialid" },
127
  { cascade_copy => 0, cascade_delete => 0 },
128
);
129
130
131
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
132
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PqzibMlED9bg0uOONSBnmg
133
134
135
# You can replace this text with custom content, and it will be preserved on regeneration
136
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 (+451 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
=cut
321
322
__PACKAGE__->add_columns(
323
  "biblionumber",
324
  { data_type => "integer", default_value => 0, is_nullable => 0 },
325
  "subscriptionid",
326
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
327
  "librarian",
328
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
329
  "startdate",
330
  { data_type => "date", is_nullable => 1 },
331
  "aqbooksellerid",
332
  { data_type => "integer", default_value => 0, is_nullable => 1 },
333
  "cost",
334
  { data_type => "integer", default_value => 0, is_nullable => 1 },
335
  "aqbudgetid",
336
  { data_type => "integer", default_value => 0, is_nullable => 1 },
337
  "weeklength",
338
  { data_type => "integer", default_value => 0, is_nullable => 1 },
339
  "monthlength",
340
  { data_type => "integer", default_value => 0, is_nullable => 1 },
341
  "numberlength",
342
  { data_type => "integer", default_value => 0, is_nullable => 1 },
343
  "periodicity",
344
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
345
  "dow",
346
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
347
  "numberingmethod",
348
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
349
  "notes",
350
  { data_type => "mediumtext", is_nullable => 1 },
351
  "status",
352
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
353
  "add1",
354
  { data_type => "integer", default_value => 0, is_nullable => 1 },
355
  "every1",
356
  { data_type => "integer", default_value => 0, is_nullable => 1 },
357
  "whenmorethan1",
358
  { data_type => "integer", default_value => 0, is_nullable => 1 },
359
  "setto1",
360
  { data_type => "integer", is_nullable => 1 },
361
  "lastvalue1",
362
  { data_type => "integer", is_nullable => 1 },
363
  "add2",
364
  { data_type => "integer", default_value => 0, is_nullable => 1 },
365
  "every2",
366
  { data_type => "integer", default_value => 0, is_nullable => 1 },
367
  "whenmorethan2",
368
  { data_type => "integer", default_value => 0, is_nullable => 1 },
369
  "setto2",
370
  { data_type => "integer", is_nullable => 1 },
371
  "lastvalue2",
372
  { data_type => "integer", is_nullable => 1 },
373
  "add3",
374
  { data_type => "integer", default_value => 0, is_nullable => 1 },
375
  "every3",
376
  { data_type => "integer", default_value => 0, is_nullable => 1 },
377
  "innerloop1",
378
  { data_type => "integer", default_value => 0, is_nullable => 1 },
379
  "innerloop2",
380
  { data_type => "integer", default_value => 0, is_nullable => 1 },
381
  "innerloop3",
382
  { data_type => "integer", default_value => 0, is_nullable => 1 },
383
  "whenmorethan3",
384
  { data_type => "integer", default_value => 0, is_nullable => 1 },
385
  "setto3",
386
  { data_type => "integer", is_nullable => 1 },
387
  "lastvalue3",
388
  { data_type => "integer", is_nullable => 1 },
389
  "issuesatonce",
390
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
391
  "firstacquidate",
392
  { data_type => "date", is_nullable => 1 },
393
  "manualhistory",
394
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
395
  "irregularity",
396
  { data_type => "text", is_nullable => 1 },
397
  "letter",
398
  { data_type => "varchar", is_nullable => 1, size => 20 },
399
  "numberpattern",
400
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
401
  "distributedto",
402
  { data_type => "text", is_nullable => 1 },
403
  "internalnotes",
404
  { data_type => "longtext", is_nullable => 1 },
405
  "callnumber",
406
  { data_type => "text", is_nullable => 1 },
407
  "location",
408
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 80 },
409
  "branchcode",
410
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
411
  "hemisphere",
412
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
413
  "lastbranch",
414
  { data_type => "varchar", is_nullable => 1, size => 10 },
415
  "serialsadditems",
416
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
417
  "staffdisplaycount",
418
  { data_type => "varchar", is_nullable => 1, size => 10 },
419
  "opacdisplaycount",
420
  { data_type => "varchar", is_nullable => 1, size => 10 },
421
  "graceperiod",
422
  { data_type => "integer", default_value => 0, is_nullable => 0 },
423
  "enddate",
424
  { data_type => "date", is_nullable => 1 },
425
);
426
__PACKAGE__->set_primary_key("subscriptionid");
427
428
=head1 RELATIONS
429
430
=head2 subscriptionroutinglists
431
432
Type: has_many
433
434
Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
435
436
=cut
437
438
__PACKAGE__->has_many(
439
  "subscriptionroutinglists",
440
  "Koha::Schema::Result::Subscriptionroutinglist",
441
  { "foreign.subscriptionid" => "self.subscriptionid" },
442
  { cascade_copy => 0, cascade_delete => 0 },
443
);
444
445
446
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
447
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:V94nwW1uwvdVX634/QPe6A
448
449
450
# You can replace this text with custom content, and it will be preserved on regeneration
451
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: 80
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 => 80 },
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 @ 2012-09-02 08:44:15
277
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Yseojs5ogx6ZmYsbhE03Gw
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 biblionumber
77
78
Type: belongs_to
79
80
Related object: L<Koha::Schema::Result::Biblio>
81
82
=cut
83
84
__PACKAGE__->belongs_to(
85
  "biblionumber",
86
  "Koha::Schema::Result::Biblio",
87
  { biblionumber => "biblionumber" },
88
  { on_delete => "CASCADE", on_update => "CASCADE" },
89
);
90
91
=head2 borrowernumber
92
93
Type: belongs_to
94
95
Related object: L<Koha::Schema::Result::Borrower>
96
97
=cut
98
99
__PACKAGE__->belongs_to(
100
  "borrowernumber",
101
  "Koha::Schema::Result::Borrower",
102
  { borrowernumber => "borrowernumber" },
103
  { on_delete => "CASCADE", on_update => "CASCADE" },
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:xdc0YzmHsXuuuUWfa1aRpg
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 biblionumber
56
57
Type: belongs_to
58
59
Related object: L<Koha::Schema::Result::Biblio>
60
61
=cut
62
63
__PACKAGE__->belongs_to(
64
  "biblionumber",
65
  "Koha::Schema::Result::Biblio",
66
  { biblionumber => "biblionumber" },
67
  { on_delete => "CASCADE", on_update => "CASCADE" },
68
);
69
70
=head2 term
71
72
Type: belongs_to
73
74
Related object: L<Koha::Schema::Result::TagsApproval>
75
76
=cut
77
78
__PACKAGE__->belongs_to(
79
  "term",
80
  "Koha::Schema::Result::TagsApproval",
81
  { term => "term" },
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:BTw4FJK85g85U1U0RELiQQ
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 biblionumber
85
86
Type: belongs_to
87
88
Related object: L<Koha::Schema::Result::Biblio>
89
90
=cut
91
92
__PACKAGE__->belongs_to(
93
  "biblionumber",
94
  "Koha::Schema::Result::Biblio",
95
  { biblionumber => "biblionumber" },
96
  { on_delete => "CASCADE", on_update => "CASCADE" },
97
);
98
99
=head2 borrowernumber
100
101
Type: belongs_to
102
103
Related object: L<Koha::Schema::Result::Borrower>
104
105
=cut
106
107
__PACKAGE__->belongs_to(
108
  "borrowernumber",
109
  "Koha::Schema::Result::Borrower",
110
  { borrowernumber => "borrowernumber" },
111
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
112
);
113
114
=head2 shelfnumber
115
116
Type: belongs_to
117
118
Related object: L<Koha::Schema::Result::Virtualshelve>
119
120
=cut
121
122
__PACKAGE__->belongs_to(
123
  "shelfnumber",
124
  "Koha::Schema::Result::Virtualshelve",
125
  { shelfnumber => "shelfnumber" },
126
  { on_delete => "CASCADE", on_update => "CASCADE" },
127
);
128
129
130
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
131
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LytHu3VzJUfDRLgSsRHy1Q
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 29-34 Build-Depends: libcgi-session-driver-memcached-perl, Link Here
29
 libdbd-mysql-perl,
29
 libdbd-mysql-perl,
30
 libdbd-sqlite2-perl,
30
 libdbd-sqlite2-perl,
31
 libdbi-perl,
31
 libdbi-perl,
32
 libdbix-class-schema-loader-perl,
32
 libdigest-sha-perl | perl,
33
 libdigest-sha-perl | perl,
33
 libemail-date-perl,
34
 libemail-date-perl,
34
 libgd-barcode-perl,
35
 libgd-barcode-perl,
(-)a/install_misc/debian.packages (+1 lines)
Lines 30-35 libdatetime-timezone-perl install Link Here
30
libdbd-mysql-perl install
30
libdbd-mysql-perl install
31
libdbd-sqlite2-perl install
31
libdbd-sqlite2-perl install
32
libdbi-perl	install
32
libdbi-perl	install
33
libdbix-class-schema-loader-perl	install
33
libemail-date-perl	install
34
libemail-date-perl	install
34
libgcrypt11-dev install
35
libgcrypt11-dev install
35
libgcrypt11 install
36
libgcrypt11 install
(-)a/misc/devel/updateDatabase.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 (-1 / +10 lines)
Line 0 Link Here
0
- 
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
}

Return to bug 8798