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

(-)a/C4/Biblio.pm (-18 / +11 lines)
Lines 1502-1526 sub GetAuthorisedValueDesc { Link Here
1502
1502
1503
    my $dbh = C4::Context->dbh;
1503
    my $dbh = C4::Context->dbh;
1504
    if ( $category ne "" ) {
1504
    if ( $category ne "" ) {
1505
        $cache_key = "AV_descriptions:" . $category;
1505
        my $memory_cache = Koha::Cache::Memory::Lite->get_instance();
1506
        my $av_descriptions = $cache->get_from_cache( $cache_key, { unsafe => 1 } );
1506
        my $cache_key = 'GetAuthorisedValueDesc:authorised_values';
1507
        if ( !$av_descriptions ) {
1507
        my $authorised_values = $memory_cache->get_from_cache($cache_key);
1508
            $av_descriptions = {
1508
        unless ($authorised_values) {
1509
                map {
1509
            $authorised_values = { map { $_->authorised_value => $_ } Koha::AuthorisedValues->as_list };
1510
                    $_->authorised_value =>
1510
            $memory_cache->set_in_cache($cache_key, $authorised_values);
1511
                      { lib => $_->lib, lib_opac => $_->lib_opac }
1512
                } Koha::AuthorisedValues->search(
1513
                    { category => $category },
1514
                    {
1515
                        columns => [ 'authorised_value', 'lib_opac', 'lib' ]
1516
                    }
1517
                )->as_list
1518
            };
1519
            $cache->set_in_cache($cache_key, $av_descriptions);
1520
        }
1511
        }
1521
        return ( $opac && $av_descriptions->{$value}->{'lib_opac'} )
1512
        my $av = $authorised_values->{$value};
1522
          ? $av_descriptions->{$value}->{'lib_opac'}
1513
        return unless $av;
1523
          : $av_descriptions->{$value}->{'lib'};
1514
1515
        my $lang = C4::Languages::getlanguage();
1516
        return $opac ? $av->opac_translated_description($lang) : $av->localization('lib', $lang);
1524
    } else {
1517
    } else {
1525
        return $value;    # if nothing is found return the original value
1518
        return $value;    # if nothing is found return the original value
1526
    }
1519
    }
(-)a/Koha/AuthorisedValue.pm (+12 lines)
Lines 103-108 sub opac_description { Link Here
103
    return $self->lib_opac() || $self->lib();
103
    return $self->lib_opac() || $self->lib();
104
}
104
}
105
105
106
=head3 opac_translated_description
107
108
my $description = $av->opac_translated_description($lang);
109
110
=cut
111
112
sub opac_translated_description {
113
    my ($self, $lang) = @_;
114
115
    return $self->localization('lib_opac', $lang) || $self->localization('lib', $lang);
116
}
117
106
=head3 to_api_mapping
118
=head3 to_api_mapping
107
119
108
This method returns the mapping for representing a Koha::AuthorisedValue object
120
This method returns the mapping for representing a Koha::AuthorisedValue object
(-)a/Koha/Schema/Result/AccountCreditType.pm (-4 / +2 lines)
Lines 61-68 Is autogeneration of credit number enabled for this credit type Link Here
61
  default_value: 0
61
  default_value: 0
62
  is_nullable: 0
62
  is_nullable: 0
63
63
64
boolean flag to denote if this till is archived or not
65
66
=cut
64
=cut
67
65
68
__PACKAGE__->add_columns(
66
__PACKAGE__->add_columns(
Lines 125-132 __PACKAGE__->has_many( Link Here
125
);
123
);
126
124
127
125
128
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
126
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pqgg1XzDq/zm/epjihLT8Q
127
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9z6Ihv0XgezUAG/7CnUyJQ
130
128
131
__PACKAGE__->add_columns(
129
__PACKAGE__->add_columns(
132
    '+is_system'             => { is_boolean => 1 },
130
    '+is_system'             => { is_boolean => 1 },
(-)a/Koha/Schema/Result/AccountDebitType.pm (-10 / +4 lines)
Lines 41-55 __PACKAGE__->table("account_debit_types"); Link Here
41
  default_value: 1
41
  default_value: 1
42
  is_nullable: 0
42
  is_nullable: 0
43
43
44
boolean flag to denote if this debit type is available for manual invoicing
45
46
=head2 can_be_sold
44
=head2 can_be_sold
47
45
48
  data_type: 'tinyint'
46
  data_type: 'tinyint'
49
  default_value: 0
47
  default_value: 0
50
  is_nullable: 0
48
  is_nullable: 1
51
52
boolean flag to denote if this debit type is available at point of sale
53
49
54
=head2 default_amount
50
=head2 default_amount
55
51
Lines 69-76 boolean flag to denote if this debit type is available at point of sale Link Here
69
  default_value: 0
65
  default_value: 0
70
  is_nullable: 0
66
  is_nullable: 0
71
67
72
boolean flag to denote if this till is archived or not
73
74
=head2 restricts_checkouts
68
=head2 restricts_checkouts
75
69
76
  data_type: 'tinyint'
70
  data_type: 'tinyint'
Lines 89-95 __PACKAGE__->add_columns( Link Here
89
  "can_be_invoiced",
83
  "can_be_invoiced",
90
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
84
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
91
  "can_be_sold",
85
  "can_be_sold",
92
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
86
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
93
  "default_amount",
87
  "default_amount",
94
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
88
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
95
  "is_system",
89
  "is_system",
Lines 145-152 __PACKAGE__->has_many( Link Here
145
);
139
);
146
140
147
141
148
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-01-10 14:49:18
142
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
149
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9+mMPMSWcc/PwryYNQ2Jqg
143
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hYxJcO3aBCn6JuKHhlxWBA
150
144
151
__PACKAGE__->add_columns(
145
__PACKAGE__->add_columns(
152
    '+is_system' => { is_boolean => 1 }
146
    '+is_system' => { is_boolean => 1 }
(-)a/Koha/Schema/Result/AccountOffset.pm (-12 / +2 lines)
Lines 29-68 __PACKAGE__->table("account_offsets"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier for each offset
33
34
=head2 credit_id
32
=head2 credit_id
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
The id of the accountline the increased the patron's balance
41
42
=head2 debit_id
38
=head2 debit_id
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
The id of the accountline that decreased the patron's balance
49
50
=head2 type
44
=head2 type
51
45
52
  data_type: 'enum'
46
  data_type: 'enum'
53
  extra: {list => ["CREATE","APPLY","VOID","OVERDUE_INCREASE","OVERDUE_DECREASE"]}
47
  extra: {list => ["CREATE","APPLY","VOID","OVERDUE_INCREASE","OVERDUE_DECREASE"]}
54
  is_nullable: 0
48
  is_nullable: 0
55
49
56
The type of offset this is
57
58
=head2 amount
50
=head2 amount
59
51
60
  data_type: 'decimal'
52
  data_type: 'decimal'
61
  is_nullable: 0
53
  is_nullable: 0
62
  size: [26,6]
54
  size: [26,6]
63
55
64
The amount of the change
65
66
=head2 created_on
56
=head2 created_on
67
57
68
  data_type: 'timestamp'
58
  data_type: 'timestamp'
Lines 159-166 __PACKAGE__->belongs_to( Link Here
159
);
149
);
160
150
161
151
162
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-06-21 15:27:32
152
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zCeE/SWvdz898zlfcvfRGg
153
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UC1xDrjAuAD1F4qECetAog
164
154
165
sub koha_object_class {
155
sub koha_object_class {
166
    'Koha::Account::Offset';
156
    'Koha::Account::Offset';
(-)a/Koha/Schema/Result/Accountline.pm (-7 / +52 lines)
Lines 32-37 __PACKAGE__->table("accountlines"); Link Here
32
=head2 issue_id
32
=head2 issue_id
33
33
34
  data_type: 'integer'
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 1
37
38
=head2 old_issue_id
39
40
  data_type: 'integer'
41
  is_foreign_key: 1
35
  is_nullable: 1
42
  is_nullable: 1
36
43
37
=head2 borrowernumber
44
=head2 borrowernumber
Lines 97-104 autogenerated number for credits Link Here
97
  is_nullable: 1
104
  is_nullable: 1
98
  size: 80
105
  size: 80
99
106
100
optional authorised value PAYMENT_TYPE
101
102
=head2 amountoutstanding
107
=head2 amountoutstanding
103
108
104
  data_type: 'decimal'
109
  data_type: 'decimal'
Lines 142-156 optional authorised value PAYMENT_TYPE Link Here
142
  is_nullable: 1
147
  is_nullable: 1
143
  size: 10
148
  size: 10
144
149
145
the branchcode of the library where a payment was made, a manual invoice created, etc.
146
147
=cut
150
=cut
148
151
149
__PACKAGE__->add_columns(
152
__PACKAGE__->add_columns(
150
  "accountlines_id",
153
  "accountlines_id",
151
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
154
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
152
  "issue_id",
155
  "issue_id",
153
  { data_type => "integer", is_nullable => 1 },
156
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
157
  "old_issue_id",
158
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
154
  "borrowernumber",
159
  "borrowernumber",
155
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
160
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
156
  "itemnumber",
161
  "itemnumber",
Lines 335-340 __PACKAGE__->belongs_to( Link Here
335
  },
340
  },
336
);
341
);
337
342
343
=head2 issue
344
345
Type: belongs_to
346
347
Related object: L<Koha::Schema::Result::Issue>
348
349
=cut
350
351
__PACKAGE__->belongs_to(
352
  "issue",
353
  "Koha::Schema::Result::Issue",
354
  { issue_id => "issue_id" },
355
  {
356
    is_deferrable => 1,
357
    join_type     => "LEFT",
358
    on_delete     => "SET NULL",
359
    on_update     => "CASCADE",
360
  },
361
);
362
338
=head2 itemnumber
363
=head2 itemnumber
339
364
340
Type: belongs_to
365
Type: belongs_to
Lines 375-380 __PACKAGE__->belongs_to( Link Here
375
  },
400
  },
376
);
401
);
377
402
403
=head2 old_issue
404
405
Type: belongs_to
406
407
Related object: L<Koha::Schema::Result::OldIssue>
408
409
=cut
410
411
__PACKAGE__->belongs_to(
412
  "old_issue",
413
  "Koha::Schema::Result::OldIssue",
414
  { issue_id => "old_issue_id" },
415
  {
416
    is_deferrable => 1,
417
    join_type     => "LEFT",
418
    on_delete     => "SET NULL",
419
    on_update     => "CASCADE",
420
  },
421
);
422
378
=head2 register
423
=head2 register
379
424
380
Type: belongs_to
425
Type: belongs_to
Lines 396-403 __PACKAGE__->belongs_to( Link Here
396
);
441
);
397
442
398
443
399
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-28 20:21:02
444
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
400
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PjQR7oUkefiDt+eV69jZ3A
445
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K4NaFTLMZFkAO9kFf0FqLQ
401
446
402
=head2 patron
447
=head2 patron
403
448
(-)a/Koha/Schema/Result/ActionLog.pm (-20 / +2 lines)
Lines 29-36 __PACKAGE__->table("action_logs"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier for each action
33
34
=head2 timestamp
32
=head2 timestamp
35
33
36
  data_type: 'timestamp'
34
  data_type: 'timestamp'
Lines 38-89 unique identifier for each action Link Here
38
  default_value: current_timestamp
36
  default_value: current_timestamp
39
  is_nullable: 0
37
  is_nullable: 0
40
38
41
the date and time the action took place
42
43
=head2 user
39
=head2 user
44
40
45
  data_type: 'integer'
41
  data_type: 'integer'
46
  default_value: 0
42
  default_value: 0
47
  is_nullable: 0
43
  is_nullable: 0
48
44
49
the staff member who performed the action (borrowers.borrowernumber)
50
51
=head2 module
45
=head2 module
52
46
53
  data_type: 'mediumtext'
47
  data_type: 'mediumtext'
54
  is_nullable: 1
48
  is_nullable: 1
55
49
56
the module this action was taken against
57
58
=head2 action
50
=head2 action
59
51
60
  data_type: 'mediumtext'
52
  data_type: 'mediumtext'
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
the action (includes things like DELETED, ADDED, MODIFY, etc)
64
65
=head2 object
55
=head2 object
66
56
67
  data_type: 'integer'
57
  data_type: 'integer'
68
  is_nullable: 1
58
  is_nullable: 1
69
59
70
the object that the action was taken against (could be a borrowernumber, itemnumber, etc)
71
72
=head2 info
60
=head2 info
73
61
74
  data_type: 'mediumtext'
62
  data_type: 'mediumtext'
75
  is_nullable: 1
63
  is_nullable: 1
76
64
77
information about the action (usually includes SQL statement)
78
79
=head2 interface
65
=head2 interface
80
66
81
  data_type: 'varchar'
67
  data_type: 'varchar'
82
  is_nullable: 1
68
  is_nullable: 1
83
  size: 30
69
  size: 30
84
70
85
the context this action was taken in
86
87
=head2 script
71
=head2 script
88
72
89
  data_type: 'varchar'
73
  data_type: 'varchar'
Lines 104-111 An optional stack trace enabled by ActionLogsTraceDepth Link Here
104
  data_type: 'longtext'
88
  data_type: 'longtext'
105
  is_nullable: 1
89
  is_nullable: 1
106
90
107
Stores a diff of the changed object
108
109
=cut
91
=cut
110
92
111
__PACKAGE__->add_columns(
93
__PACKAGE__->add_columns(
Lines 151-158 __PACKAGE__->add_columns( Link Here
151
__PACKAGE__->set_primary_key("action_id");
133
__PACKAGE__->set_primary_key("action_id");
152
134
153
135
154
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-02 14:28:43
136
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
155
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8ZJaG4iJAbay93LAg5xPsQ
137
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FaRCXL9HY8tDIdIAVV17+w
156
138
157
139
158
# You can replace this text with custom code or comments, and it will be preserved on regeneration
140
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AdditionalContent.pm (-16 / +2 lines)
Lines 46-53 category for the additional content Link Here
46
  is_nullable: 0
46
  is_nullable: 0
47
  size: 100
47
  size: 100
48
48
49
code to group content per lang
50
51
=head2 location
49
=head2 location
52
50
53
  data_type: 'varchar'
51
  data_type: 'varchar'
Lines 63-78 location of the additional content Link Here
63
  is_nullable: 1
61
  is_nullable: 1
64
  size: 10
62
  size: 10
65
63
66
branch code users to create branch specific additional content, NULL is every branch.
67
68
=head2 published_on
64
=head2 published_on
69
65
70
  data_type: 'date'
66
  data_type: 'date'
71
  datetime_undef_if_invalid: 1
67
  datetime_undef_if_invalid: 1
72
  is_nullable: 1
68
  is_nullable: 1
73
69
74
publication date
75
76
=head2 updated_on
70
=head2 updated_on
77
71
78
  data_type: 'timestamp'
72
  data_type: 'timestamp'
Lines 80-110 publication date Link Here
80
  default_value: current_timestamp
74
  default_value: current_timestamp
81
  is_nullable: 0
75
  is_nullable: 0
82
76
83
last modification
84
85
=head2 expirationdate
77
=head2 expirationdate
86
78
87
  data_type: 'date'
79
  data_type: 'date'
88
  datetime_undef_if_invalid: 1
80
  datetime_undef_if_invalid: 1
89
  is_nullable: 1
81
  is_nullable: 1
90
82
91
date the additional content is set to expire or no longer be visible
92
93
=head2 number
83
=head2 number
94
84
95
  data_type: 'integer'
85
  data_type: 'integer'
96
  is_nullable: 1
86
  is_nullable: 1
97
87
98
the order in which this additional content appears in that specific location
99
100
=head2 borrowernumber
88
=head2 borrowernumber
101
89
102
  data_type: 'integer'
90
  data_type: 'integer'
103
  is_foreign_key: 1
91
  is_foreign_key: 1
104
  is_nullable: 1
92
  is_nullable: 1
105
93
106
The user who created the additional content
107
108
=cut
94
=cut
109
95
110
__PACKAGE__->add_columns(
96
__PACKAGE__->add_columns(
Lines 231-238 __PACKAGE__->belongs_to( Link Here
231
);
217
);
232
218
233
219
234
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-03 07:19:57
220
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
235
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0w/fOUAy+4V4aVls/i7Wig
221
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PlwFnZyxRlTox7dDo4eH7w
236
222
237
223
238
# You can replace this text with custom code or comments, and it will be preserved on regeneration
224
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AdditionalField.pm (-13 / +3 lines)
Lines 29-36 __PACKAGE__->table("additional_fields"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key identifier
33
34
=head2 tablename
32
=head2 tablename
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
Lines 38-45 primary key identifier Link Here
38
  is_nullable: 0
36
  is_nullable: 0
39
  size: 255
37
  size: 255
40
38
41
tablename of the new field
42
43
=head2 name
39
=head2 name
44
40
45
  data_type: 'varchar'
41
  data_type: 'varchar'
Lines 47-54 tablename of the new field Link Here
47
  is_nullable: 0
43
  is_nullable: 0
48
  size: 255
44
  size: 255
49
45
50
name of the field
51
52
=head2 authorised_value_category
46
=head2 authorised_value_category
53
47
54
  data_type: 'varchar'
48
  data_type: 'varchar'
Lines 64-71 is an authorised value category Link Here
64
  is_nullable: 0
58
  is_nullable: 0
65
  size: 16
59
  size: 16
66
60
67
contains the marc field to copied into the record
68
69
=head2 marcfield_mode
61
=head2 marcfield_mode
70
62
71
  data_type: 'enum'
63
  data_type: 'enum'
Lines 81-95 mode of operation (get or set) for marcfield Link Here
81
  default_value: 0
73
  default_value: 0
82
  is_nullable: 0
74
  is_nullable: 0
83
75
84
is the field searchable?
85
86
=head2 repeatable
76
=head2 repeatable
87
77
88
  data_type: 'tinyint'
78
  data_type: 'tinyint'
89
  default_value: 0
79
  default_value: 0
90
  is_nullable: 0
80
  is_nullable: 0
91
81
92
is the field repeatable?
82
does the field allow more than one option?
93
83
94
=cut
84
=cut
95
85
Lines 163-170 __PACKAGE__->has_many( Link Here
163
);
153
);
164
154
165
155
166
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56
156
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
167
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8ZpUf0l+6h44AHDf7eV/1g
157
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+3pEANYwK5xbGbGkYFh81g
168
158
169
__PACKAGE__->add_columns(
159
__PACKAGE__->add_columns(
170
    '+repeatable' => { is_boolean => 1 },
160
    '+repeatable' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/AdditionalFieldValue.pm (-10 / +2 lines)
Lines 29-51 __PACKAGE__->table("additional_field_values"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key identifier
33
34
=head2 field_id
32
=head2 field_id
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key references additional_fields(id)
41
42
=head2 record_id
38
=head2 record_id
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_nullable: 0
41
  is_nullable: 0
46
42
47
record_id
48
49
=head2 value
43
=head2 value
50
44
51
  data_type: 'varchar'
45
  data_type: 'varchar'
Lines 53-60 record_id Link Here
53
  is_nullable: 0
47
  is_nullable: 0
54
  size: 255
48
  size: 255
55
49
56
value for this field
57
58
=cut
50
=cut
59
51
60
__PACKAGE__->add_columns(
52
__PACKAGE__->add_columns(
Lines 98-105 __PACKAGE__->belongs_to( Link Here
98
);
90
);
99
91
100
92
101
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56
93
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0XP6wuopWZEao4nJd4PF5g
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:t2xcroWAVtsBBmEI+NGEEQ
103
95
104
96
105
# You can replace this text with custom code or comments, and it will be preserved on regeneration
97
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AdvancedEditorMacro.pm (-12 / +2 lines)
Lines 29-67 __PACKAGE__->table("advanced_editor_macros"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
Unique ID of the macro
33
34
=head2 name
32
=head2 name
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 0
35
  is_nullable: 0
38
  size: 80
36
  size: 80
39
37
40
Name of the macro
41
42
=head2 macro
38
=head2 macro
43
39
44
  data_type: 'longtext'
40
  data_type: 'longtext'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
The macro code itself
48
49
=head2 borrowernumber
43
=head2 borrowernumber
50
44
51
  data_type: 'integer'
45
  data_type: 'integer'
52
  is_foreign_key: 1
46
  is_foreign_key: 1
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
ID of the borrower who created this macro
56
57
=head2 shared
49
=head2 shared
58
50
59
  data_type: 'tinyint'
51
  data_type: 'tinyint'
60
  default_value: 0
52
  default_value: 0
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
Bit to define if shared or private macro
64
65
=cut
55
=cut
66
56
67
__PACKAGE__->add_columns(
57
__PACKAGE__->add_columns(
Lines 112-119 __PACKAGE__->belongs_to( Link Here
112
);
102
);
113
103
114
104
115
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
105
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
116
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:abYuKrQLDx8KB3ZdEGBlqA
106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PstMExAyyqnp0ZoQoMtE2g
117
107
118
__PACKAGE__->add_columns(
108
__PACKAGE__->add_columns(
119
            '+shared' => { is_boolean => 1 },
109
            '+shared' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/ApiKey.pm (-12 / +2 lines)
Lines 29-68 __PACKAGE__->table("api_keys"); Link Here
29
  is_nullable: 0
29
  is_nullable: 0
30
  size: 191
30
  size: 191
31
31
32
API client ID
33
34
=head2 secret
32
=head2 secret
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 0
35
  is_nullable: 0
38
  size: 191
36
  size: 191
39
37
40
API client secret used for API authentication
41
42
=head2 description
38
=head2 description
43
39
44
  data_type: 'varchar'
40
  data_type: 'varchar'
45
  is_nullable: 0
41
  is_nullable: 0
46
  size: 255
42
  size: 255
47
43
48
API client description
49
50
=head2 patron_id
44
=head2 patron_id
51
45
52
  data_type: 'integer'
46
  data_type: 'integer'
53
  is_foreign_key: 1
47
  is_foreign_key: 1
54
  is_nullable: 0
48
  is_nullable: 0
55
49
56
Foreign key to the borrowers table
57
58
=head2 active
50
=head2 active
59
51
60
  data_type: 'tinyint'
52
  data_type: 'tinyint'
61
  default_value: 1
53
  default_value: 1
62
  is_nullable: 0
54
  is_nullable: 0
63
55
64
0 means this API key is revoked
65
66
=cut
56
=cut
67
57
68
__PACKAGE__->add_columns(
58
__PACKAGE__->add_columns(
Lines 122-129 __PACKAGE__->belongs_to( Link Here
122
);
112
);
123
113
124
114
125
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
115
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
126
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2yvvoid4Taq7cjXFDuMoAA
116
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CLvpwKD/mzeNSyEyM5lYCA
127
117
128
__PACKAGE__->add_columns(
118
__PACKAGE__->add_columns(
129
    '+active' => { is_boolean => 1 }
119
    '+active' => { is_boolean => 1 }
(-)a/Koha/Schema/Result/Aqbasket.pm (-34 / +2 lines)
Lines 29-82 __PACKAGE__->table("aqbasket"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key, Koha defined number
33
34
=head2 basketname
32
=head2 basketname
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 1
35
  is_nullable: 1
38
  size: 50
36
  size: 50
39
37
40
name given to the basket at creation
41
42
=head2 note
38
=head2 note
43
39
44
  data_type: 'longtext'
40
  data_type: 'longtext'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
the internal note added at basket creation
48
49
=head2 booksellernote
43
=head2 booksellernote
50
44
51
  data_type: 'longtext'
45
  data_type: 'longtext'
52
  is_nullable: 1
46
  is_nullable: 1
53
47
54
the vendor note added at basket creation
55
56
=head2 contractnumber
48
=head2 contractnumber
57
49
58
  data_type: 'integer'
50
  data_type: 'integer'
59
  is_foreign_key: 1
51
  is_foreign_key: 1
60
  is_nullable: 1
52
  is_nullable: 1
61
53
62
links this basket to the aqcontract table (aqcontract.contractnumber)
63
64
=head2 creationdate
54
=head2 creationdate
65
55
66
  data_type: 'date'
56
  data_type: 'date'
67
  datetime_undef_if_invalid: 1
57
  datetime_undef_if_invalid: 1
68
  is_nullable: 1
58
  is_nullable: 1
69
59
70
the date the basket was created
71
72
=head2 closedate
60
=head2 closedate
73
61
74
  data_type: 'date'
62
  data_type: 'date'
75
  datetime_undef_if_invalid: 1
63
  datetime_undef_if_invalid: 1
76
  is_nullable: 1
64
  is_nullable: 1
77
65
78
the date the basket was closed
79
80
=head2 booksellerid
66
=head2 booksellerid
81
67
82
  data_type: 'integer'
68
  data_type: 'integer'
Lines 84-130 the date the basket was closed Link Here
84
  is_foreign_key: 1
70
  is_foreign_key: 1
85
  is_nullable: 0
71
  is_nullable: 0
86
72
87
the Koha assigned ID for the vendor (aqbooksellers.id)
88
89
=head2 authorisedby
73
=head2 authorisedby
90
74
91
  data_type: 'varchar'
75
  data_type: 'varchar'
92
  is_nullable: 1
76
  is_nullable: 1
93
  size: 10
77
  size: 10
94
78
95
the borrowernumber of the person who created the basket
96
97
=head2 booksellerinvoicenumber
79
=head2 booksellerinvoicenumber
98
80
99
  data_type: 'longtext'
81
  data_type: 'longtext'
100
  is_nullable: 1
82
  is_nullable: 1
101
83
102
appears to always be NULL
103
104
=head2 basketgroupid
84
=head2 basketgroupid
105
85
106
  data_type: 'integer'
86
  data_type: 'integer'
107
  is_foreign_key: 1
87
  is_foreign_key: 1
108
  is_nullable: 1
88
  is_nullable: 1
109
89
110
links this basket to its group (aqbasketgroups.id)
111
112
=head2 deliveryplace
90
=head2 deliveryplace
113
91
114
  data_type: 'varchar'
92
  data_type: 'varchar'
115
  is_nullable: 1
93
  is_nullable: 1
116
  size: 10
94
  size: 10
117
95
118
basket delivery place
119
120
=head2 billingplace
96
=head2 billingplace
121
97
122
  data_type: 'varchar'
98
  data_type: 'varchar'
123
  is_nullable: 1
99
  is_nullable: 1
124
  size: 10
100
  size: 10
125
101
126
basket billing place
127
128
=head2 branch
102
=head2 branch
129
103
130
  data_type: 'varchar'
104
  data_type: 'varchar'
Lines 132-155 basket billing place Link Here
132
  is_nullable: 1
106
  is_nullable: 1
133
  size: 10
107
  size: 10
134
108
135
basket branch
136
137
=head2 is_standing
109
=head2 is_standing
138
110
139
  data_type: 'tinyint'
111
  data_type: 'tinyint'
140
  default_value: 0
112
  default_value: 0
141
  is_nullable: 0
113
  is_nullable: 0
142
114
143
orders in this basket are standing
144
145
=head2 create_items
115
=head2 create_items
146
116
147
  data_type: 'enum'
117
  data_type: 'enum'
148
  extra: {list => ["ordering","receiving","cataloguing"]}
118
  extra: {list => ["ordering","receiving","cataloguing"]}
149
  is_nullable: 1
119
  is_nullable: 1
150
120
151
when items should be created for orders in this basket
152
153
=cut
121
=cut
154
122
155
__PACKAGE__->add_columns(
123
__PACKAGE__->add_columns(
Lines 341-348 Composing rels: L</aqbasketusers> -> borrowernumber Link Here
341
__PACKAGE__->many_to_many("borrowernumbers", "aqbasketusers", "borrowernumber");
309
__PACKAGE__->many_to_many("borrowernumbers", "aqbasketusers", "borrowernumber");
342
310
343
311
344
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
312
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
345
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6NoSiMu1GqEqT7F5wAVeig
313
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TeaaOmdPMrA/1v2AfWirZA
346
314
347
__PACKAGE__->has_many(
315
__PACKAGE__->has_many(
348
  "additional_field_values",
316
  "additional_field_values",
(-)a/Koha/Schema/Result/Aqbookseller.pm (-46 / +32 lines)
Lines 29-86 __PACKAGE__->table("aqbooksellers"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key and unique identifier assigned by Koha
33
34
=head2 name
32
=head2 name
35
33
36
  data_type: 'longtext'
34
  data_type: 'longtext'
37
  is_nullable: 0
35
  is_nullable: 0
38
36
39
vendor name
40
41
=head2 address1
37
=head2 address1
42
38
43
  data_type: 'longtext'
39
  data_type: 'longtext'
44
  is_nullable: 1
40
  is_nullable: 1
45
41
46
first line of vendor physical address
47
48
=head2 address2
42
=head2 address2
49
43
50
  data_type: 'longtext'
44
  data_type: 'longtext'
51
  is_nullable: 1
45
  is_nullable: 1
52
46
53
second line of vendor physical address
54
55
=head2 address3
47
=head2 address3
56
48
57
  data_type: 'longtext'
49
  data_type: 'longtext'
58
  is_nullable: 1
50
  is_nullable: 1
59
51
60
third line of vendor physical address
61
62
=head2 address4
52
=head2 address4
63
53
64
  data_type: 'longtext'
54
  data_type: 'longtext'
65
  is_nullable: 1
55
  is_nullable: 1
66
56
67
fourth line of vendor physical address
68
69
=head2 phone
57
=head2 phone
70
58
71
  data_type: 'varchar'
59
  data_type: 'varchar'
72
  is_nullable: 1
60
  is_nullable: 1
73
  size: 30
61
  size: 30
74
62
75
vendor phone number
76
77
=head2 accountnumber
63
=head2 accountnumber
78
64
79
  data_type: 'longtext'
65
  data_type: 'longtext'
80
  is_nullable: 1
66
  is_nullable: 1
81
67
82
vendor account number
83
84
=head2 type
68
=head2 type
85
69
86
  data_type: 'varchar'
70
  data_type: 'varchar'
Lines 92-121 vendor account number Link Here
92
  data_type: 'longtext'
76
  data_type: 'longtext'
93
  is_nullable: 1
77
  is_nullable: 1
94
78
95
order notes
96
97
=head2 postal
79
=head2 postal
98
80
99
  data_type: 'longtext'
81
  data_type: 'longtext'
100
  is_nullable: 1
82
  is_nullable: 1
101
83
102
vendor postal address (all lines)
103
104
=head2 url
84
=head2 url
105
85
106
  data_type: 'varchar'
86
  data_type: 'varchar'
107
  is_nullable: 1
87
  is_nullable: 1
108
  size: 255
88
  size: 255
109
89
110
vendor web address
111
112
=head2 active
90
=head2 active
113
91
114
  data_type: 'tinyint'
92
  data_type: 'tinyint'
115
  is_nullable: 1
93
  is_nullable: 1
116
94
117
is this vendor active (1 for yes, 0 for no)
118
119
=head2 listprice
95
=head2 listprice
120
96
121
  data_type: 'varchar'
97
  data_type: 'varchar'
Lines 123-130 is this vendor active (1 for yes, 0 for no) Link Here
123
  is_nullable: 1
99
  is_nullable: 1
124
  size: 10
100
  size: 10
125
101
126
currency code for list prices
127
128
=head2 invoiceprice
102
=head2 invoiceprice
129
103
130
  data_type: 'varchar'
104
  data_type: 'varchar'
Lines 132-199 currency code for list prices Link Here
132
  is_nullable: 1
106
  is_nullable: 1
133
  size: 10
107
  size: 10
134
108
135
currency code for invoice prices
136
137
=head2 gstreg
109
=head2 gstreg
138
110
139
  data_type: 'tinyint'
111
  data_type: 'tinyint'
140
  is_nullable: 1
112
  is_nullable: 1
141
113
142
is your library charged tax (1 for yes, 0 for no)
143
144
=head2 listincgst
114
=head2 listincgst
145
115
146
  data_type: 'tinyint'
116
  data_type: 'tinyint'
147
  is_nullable: 1
117
  is_nullable: 1
148
118
149
is tax included in list prices (1 for yes, 0 for no)
150
151
=head2 invoiceincgst
119
=head2 invoiceincgst
152
120
153
  data_type: 'tinyint'
121
  data_type: 'tinyint'
154
  is_nullable: 1
122
  is_nullable: 1
155
123
156
is tax included in invoice prices (1 for yes, 0 for no)
157
158
=head2 tax_rate
124
=head2 tax_rate
159
125
160
  data_type: 'decimal'
126
  data_type: 'decimal'
161
  is_nullable: 1
127
  is_nullable: 1
162
  size: [6,4]
128
  size: [6,4]
163
129
164
the tax rate the library is charged
165
166
=head2 discount
130
=head2 discount
167
131
168
  data_type: 'float'
132
  data_type: 'float'
169
  is_nullable: 1
133
  is_nullable: 1
170
  size: [6,4]
134
  size: [6,4]
171
135
172
discount offered on all items ordered from this vendor
173
174
=head2 fax
136
=head2 fax
175
137
176
  data_type: 'varchar'
138
  data_type: 'varchar'
177
  is_nullable: 1
139
  is_nullable: 1
178
  size: 50
140
  size: 50
179
141
180
vendor fax number
181
182
=head2 deliverytime
142
=head2 deliverytime
183
143
184
  data_type: 'integer'
144
  data_type: 'integer'
185
  is_nullable: 1
145
  is_nullable: 1
186
146
187
vendor delivery time
188
189
=head2 external_id
147
=head2 external_id
190
148
191
  data_type: 'varchar'
149
  data_type: 'varchar'
192
  is_nullable: 1
150
  is_nullable: 1
193
  size: 255
151
  size: 255
194
152
195
external id of the vendor
196
197
=cut
153
=cut
198
154
199
__PACKAGE__->add_columns(
155
__PACKAGE__->add_columns(
Lines 494-499 __PACKAGE__->belongs_to( Link Here
494
  },
450
  },
495
);
451
);
496
452
453
=head2 marc_order_accounts
454
455
Type: has_many
456
457
Related object: L<Koha::Schema::Result::MarcOrderAccount>
458
459
=cut
460
461
__PACKAGE__->has_many(
462
  "marc_order_accounts",
463
  "Koha::Schema::Result::MarcOrderAccount",
464
  { "foreign.vendor_id" => "self.id" },
465
  { cascade_copy => 0, cascade_delete => 0 },
466
);
467
468
=head2 subscriptions
469
470
Type: has_many
471
472
Related object: L<Koha::Schema::Result::Subscription>
473
474
=cut
475
476
__PACKAGE__->has_many(
477
  "subscriptions",
478
  "Koha::Schema::Result::Subscription",
479
  { "foreign.aqbooksellerid" => "self.id" },
480
  { cascade_copy => 0, cascade_delete => 0 },
481
);
482
497
=head2 vendor_edi_accounts
483
=head2 vendor_edi_accounts
498
484
499
Type: has_many
485
Type: has_many
Lines 510-517 __PACKAGE__->has_many( Link Here
510
);
496
);
511
497
512
498
513
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-06-30 09:54:35
499
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
514
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xjeOqpcdN3Kb1wmLGDjzLg
500
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3sUuINV4jexCOmS9Fo4S7Q
515
501
516
__PACKAGE__->add_columns(
502
__PACKAGE__->add_columns(
517
    '+active' => { is_boolean => 1 },
503
    '+active' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Aqbudget.pm (-32 / +17 lines)
Lines 29-67 __PACKAGE__->table("aqbudgets"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key and unique number assigned to each fund by Koha
33
34
=head2 budget_parent_id
32
=head2 budget_parent_id
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_nullable: 1
35
  is_nullable: 1
38
36
39
if this fund is a child of another this will include the parent id (aqbudgets.budget_id)
40
41
=head2 budget_code
37
=head2 budget_code
42
38
43
  data_type: 'varchar'
39
  data_type: 'varchar'
44
  is_nullable: 1
40
  is_nullable: 1
45
  size: 30
41
  size: 30
46
42
47
code assigned to the fund by the user
48
49
=head2 budget_name
43
=head2 budget_name
50
44
51
  data_type: 'varchar'
45
  data_type: 'varchar'
52
  is_nullable: 1
46
  is_nullable: 1
53
  size: 80
47
  size: 80
54
48
55
name assigned to the fund by the user
56
57
=head2 budget_branchcode
49
=head2 budget_branchcode
58
50
59
  data_type: 'varchar'
51
  data_type: 'varchar'
60
  is_nullable: 1
52
  is_nullable: 1
61
  size: 10
53
  size: 10
62
54
63
branch that this fund belongs to (branches.branchcode)
64
65
=head2 budget_amount
55
=head2 budget_amount
66
56
67
  data_type: 'decimal'
57
  data_type: 'decimal'
Lines 69-76 branch that this fund belongs to (branches.branchcode) Link Here
69
  is_nullable: 1
59
  is_nullable: 1
70
  size: [28,6]
60
  size: [28,6]
71
61
72
total amount for this fund
73
74
=head2 budget_encumb
62
=head2 budget_encumb
75
63
76
  data_type: 'decimal'
64
  data_type: 'decimal'
Lines 78-85 total amount for this fund Link Here
78
  is_nullable: 1
66
  is_nullable: 1
79
  size: [28,6]
67
  size: [28,6]
80
68
81
budget warning at percentage
82
83
=head2 budget_expend
69
=head2 budget_expend
84
70
85
  data_type: 'decimal'
71
  data_type: 'decimal'
Lines 87-101 budget warning at percentage Link Here
87
  is_nullable: 1
73
  is_nullable: 1
88
  size: [28,6]
74
  size: [28,6]
89
75
90
budget warning at amount
91
92
=head2 budget_notes
76
=head2 budget_notes
93
77
94
  data_type: 'longtext'
78
  data_type: 'longtext'
95
  is_nullable: 1
79
  is_nullable: 1
96
80
97
notes related to this fund
98
99
=head2 timestamp
81
=head2 timestamp
100
82
101
  data_type: 'timestamp'
83
  data_type: 'timestamp'
Lines 103-149 notes related to this fund Link Here
103
  default_value: current_timestamp
85
  default_value: current_timestamp
104
  is_nullable: 0
86
  is_nullable: 0
105
87
106
date and time this fund was last touched (created or modified)
107
108
=head2 budget_period_id
88
=head2 budget_period_id
109
89
110
  data_type: 'integer'
90
  data_type: 'integer'
111
  is_foreign_key: 1
91
  is_foreign_key: 1
112
  is_nullable: 0
92
  is_nullable: 0
113
93
114
id of the budget that this fund belongs to (aqbudgetperiods.budget_period_id)
115
116
=head2 sort1_authcat
94
=head2 sort1_authcat
117
95
118
  data_type: 'varchar'
96
  data_type: 'varchar'
119
  is_nullable: 1
97
  is_nullable: 1
120
  size: 80
98
  size: 80
121
99
122
statistical category for this fund
123
124
=head2 sort2_authcat
100
=head2 sort2_authcat
125
101
126
  data_type: 'varchar'
102
  data_type: 'varchar'
127
  is_nullable: 1
103
  is_nullable: 1
128
  size: 80
104
  size: 80
129
105
130
second statistical category for this fund
131
132
=head2 budget_owner_id
106
=head2 budget_owner_id
133
107
134
  data_type: 'integer'
108
  data_type: 'integer'
135
  is_nullable: 1
109
  is_nullable: 1
136
110
137
borrowernumber of the person who owns this fund (borrowers.borrowernumber)
138
139
=head2 budget_permission
111
=head2 budget_permission
140
112
141
  data_type: 'integer'
113
  data_type: 'integer'
142
  default_value: 0
114
  default_value: 0
143
  is_nullable: 1
115
  is_nullable: 1
144
116
145
level of permission for this fund (used only by the owner, only by the library, or anyone)
146
147
=cut
117
=cut
148
118
149
__PACKAGE__->add_columns(
119
__PACKAGE__->add_columns(
Lines 303-308 __PACKAGE__->belongs_to( Link Here
303
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
273
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
304
);
274
);
305
275
276
=head2 marc_order_accounts
277
278
Type: has_many
279
280
Related object: L<Koha::Schema::Result::MarcOrderAccount>
281
282
=cut
283
284
__PACKAGE__->has_many(
285
  "marc_order_accounts",
286
  "Koha::Schema::Result::MarcOrderAccount",
287
  { "foreign.budget_id" => "self.budget_id" },
288
  { cascade_copy => 0, cascade_delete => 0 },
289
);
290
306
=head2 suggestions
291
=head2 suggestions
307
292
308
Type: has_many
293
Type: has_many
Lines 344-351 Composing rels: L</aqbudgetborrowers> -> borrowernumber Link Here
344
__PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber");
329
__PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber");
345
330
346
331
347
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-19 17:02:59
332
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
348
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5solU2GxDRyXxtWgpbcGVQ
333
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HHjOfFq3ets5FzzId2iU5w
349
334
350
__PACKAGE__->belongs_to(
335
__PACKAGE__->belongs_to(
351
  "budget",
336
  "budget",
(-)a/Koha/Schema/Result/Aqbudgetperiod.pm (-20 / +2 lines)
Lines 29-98 __PACKAGE__->table("aqbudgetperiods"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key and unique number assigned by Koha
33
34
=head2 budget_period_startdate
32
=head2 budget_period_startdate
35
33
36
  data_type: 'date'
34
  data_type: 'date'
37
  datetime_undef_if_invalid: 1
35
  datetime_undef_if_invalid: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
date when the budget starts
41
42
=head2 budget_period_enddate
38
=head2 budget_period_enddate
43
39
44
  data_type: 'date'
40
  data_type: 'date'
45
  datetime_undef_if_invalid: 1
41
  datetime_undef_if_invalid: 1
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
date when the budget ends
49
50
=head2 budget_period_active
44
=head2 budget_period_active
51
45
52
  data_type: 'tinyint'
46
  data_type: 'tinyint'
53
  default_value: 0
47
  default_value: 0
54
  is_nullable: 1
48
  is_nullable: 1
55
49
56
whether this budget is active or not (1 for yes, 0 for no)
57
58
=head2 budget_period_description
50
=head2 budget_period_description
59
51
60
  data_type: 'longtext'
52
  data_type: 'longtext'
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
description assigned to this budget
64
65
=head2 budget_period_total
55
=head2 budget_period_total
66
56
67
  data_type: 'decimal'
57
  data_type: 'decimal'
68
  is_nullable: 1
58
  is_nullable: 1
69
  size: [28,6]
59
  size: [28,6]
70
60
71
total amount available in this budget
72
73
=head2 budget_period_locked
61
=head2 budget_period_locked
74
62
75
  data_type: 'tinyint'
63
  data_type: 'tinyint'
76
  is_nullable: 1
64
  is_nullable: 1
77
65
78
whether this budget is locked or not (1 for yes, 0 for no)
79
80
=head2 sort1_authcat
66
=head2 sort1_authcat
81
67
82
  data_type: 'varchar'
68
  data_type: 'varchar'
83
  is_nullable: 1
69
  is_nullable: 1
84
  size: 10
70
  size: 10
85
71
86
statistical category for this budget
87
88
=head2 sort2_authcat
72
=head2 sort2_authcat
89
73
90
  data_type: 'varchar'
74
  data_type: 'varchar'
91
  is_nullable: 1
75
  is_nullable: 1
92
  size: 10
76
  size: 10
93
77
94
second statistical category for this budget
95
96
=cut
78
=cut
97
79
98
__PACKAGE__->add_columns(
80
__PACKAGE__->add_columns(
Lines 146-153 __PACKAGE__->has_many( Link Here
146
);
128
);
147
129
148
130
149
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
131
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
150
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F/ipbU/Wrqy3pDInlmLOTw
132
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NeJG180XyLOl3/+CqWPHRA
151
133
152
sub koha_object_class {
134
sub koha_object_class {
153
    'Koha::Acquisition::Budget';
135
    'Koha::Acquisition::Budget';
(-)a/Koha/Schema/Result/Aqcontact.pm (-28 / +2 lines)
Lines 29-131 __PACKAGE__->table("aqcontacts"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key and unique number assigned by Koha
33
34
=head2 name
32
=head2 name
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 1
35
  is_nullable: 1
38
  size: 100
36
  size: 100
39
37
40
name of contact at vendor
41
42
=head2 position
38
=head2 position
43
39
44
  data_type: 'varchar'
40
  data_type: 'varchar'
45
  is_nullable: 1
41
  is_nullable: 1
46
  size: 100
42
  size: 100
47
43
48
contact person's position
49
50
=head2 phone
44
=head2 phone
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 1
47
  is_nullable: 1
54
  size: 100
48
  size: 100
55
49
56
contact's phone number
57
58
=head2 altphone
50
=head2 altphone
59
51
60
  data_type: 'varchar'
52
  data_type: 'varchar'
61
  is_nullable: 1
53
  is_nullable: 1
62
  size: 100
54
  size: 100
63
55
64
contact's alternate phone number
65
66
=head2 fax
56
=head2 fax
67
57
68
  data_type: 'varchar'
58
  data_type: 'varchar'
69
  is_nullable: 1
59
  is_nullable: 1
70
  size: 100
60
  size: 100
71
61
72
contact's fax number
73
74
=head2 email
62
=head2 email
75
63
76
  data_type: 'varchar'
64
  data_type: 'varchar'
77
  is_nullable: 1
65
  is_nullable: 1
78
  size: 100
66
  size: 100
79
67
80
contact's email address
81
82
=head2 notes
68
=head2 notes
83
69
84
  data_type: 'longtext'
70
  data_type: 'longtext'
85
  is_nullable: 1
71
  is_nullable: 1
86
72
87
notes related to the contact
88
89
=head2 orderacquisition
73
=head2 orderacquisition
90
74
91
  data_type: 'tinyint'
75
  data_type: 'tinyint'
92
  default_value: 0
76
  default_value: 0
93
  is_nullable: 0
77
  is_nullable: 0
94
78
95
should this contact receive acquisition orders
96
97
=head2 claimacquisition
79
=head2 claimacquisition
98
80
99
  data_type: 'tinyint'
81
  data_type: 'tinyint'
100
  default_value: 0
82
  default_value: 0
101
  is_nullable: 0
83
  is_nullable: 0
102
84
103
should this contact receive acquisitions claims
104
105
=head2 claimissues
85
=head2 claimissues
106
86
107
  data_type: 'tinyint'
87
  data_type: 'tinyint'
108
  default_value: 0
88
  default_value: 0
109
  is_nullable: 0
89
  is_nullable: 0
110
90
111
should this contact receive serial claims
112
113
=head2 acqprimary
91
=head2 acqprimary
114
92
115
  data_type: 'tinyint'
93
  data_type: 'tinyint'
116
  default_value: 0
94
  default_value: 0
117
  is_nullable: 0
95
  is_nullable: 0
118
96
119
is this the primary contact for acquisitions messages
120
121
=head2 serialsprimary
97
=head2 serialsprimary
122
98
123
  data_type: 'tinyint'
99
  data_type: 'tinyint'
124
  default_value: 0
100
  default_value: 0
125
  is_nullable: 0
101
  is_nullable: 0
126
102
127
is this the primary contact for serials messages
128
129
=head2 booksellerid
103
=head2 booksellerid
130
104
131
  data_type: 'integer'
105
  data_type: 'integer'
Lines 195-202 __PACKAGE__->belongs_to( Link Here
195
);
169
);
196
170
197
171
198
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
172
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
199
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IefjqDsoXPLWKSfhYGne1A
173
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LzCPsNQtARK7I9GBJb9XcA
200
174
201
__PACKAGE__->add_columns(
175
__PACKAGE__->add_columns(
202
    '+orderacquisition' => { is_boolean => 1 },
176
    '+orderacquisition' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Aqinvoice.pm (-20 / +2 lines)
Lines 29-99 __PACKAGE__->table("aqinvoices"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
ID of the invoice, primary key
33
34
=head2 invoicenumber
32
=head2 invoicenumber
35
33
36
  data_type: 'longtext'
34
  data_type: 'longtext'
37
  is_nullable: 0
35
  is_nullable: 0
38
36
39
Name of invoice
40
41
=head2 booksellerid
37
=head2 booksellerid
42
38
43
  data_type: 'integer'
39
  data_type: 'integer'
44
  is_foreign_key: 1
40
  is_foreign_key: 1
45
  is_nullable: 0
41
  is_nullable: 0
46
42
47
foreign key to aqbooksellers
48
49
=head2 shipmentdate
43
=head2 shipmentdate
50
44
51
  data_type: 'date'
45
  data_type: 'date'
52
  datetime_undef_if_invalid: 1
46
  datetime_undef_if_invalid: 1
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
date of shipment
56
57
=head2 billingdate
49
=head2 billingdate
58
50
59
  data_type: 'date'
51
  data_type: 'date'
60
  datetime_undef_if_invalid: 1
52
  datetime_undef_if_invalid: 1
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
date of billing
64
65
=head2 closedate
55
=head2 closedate
66
56
67
  data_type: 'date'
57
  data_type: 'date'
68
  datetime_undef_if_invalid: 1
58
  datetime_undef_if_invalid: 1
69
  is_nullable: 1
59
  is_nullable: 1
70
60
71
invoice close date, NULL means the invoice is open
72
73
=head2 shipmentcost
61
=head2 shipmentcost
74
62
75
  data_type: 'decimal'
63
  data_type: 'decimal'
76
  is_nullable: 1
64
  is_nullable: 1
77
  size: [28,6]
65
  size: [28,6]
78
66
79
shipment cost
80
81
=head2 shipmentcost_budgetid
67
=head2 shipmentcost_budgetid
82
68
83
  data_type: 'integer'
69
  data_type: 'integer'
84
  is_foreign_key: 1
70
  is_foreign_key: 1
85
  is_nullable: 1
71
  is_nullable: 1
86
72
87
foreign key to aqbudgets, link the shipment cost to a budget
88
89
=head2 message_id
73
=head2 message_id
90
74
91
  data_type: 'integer'
75
  data_type: 'integer'
92
  is_foreign_key: 1
76
  is_foreign_key: 1
93
  is_nullable: 1
77
  is_nullable: 1
94
78
95
foreign key to edifact invoice message
96
97
=cut
79
=cut
98
80
99
__PACKAGE__->add_columns(
81
__PACKAGE__->add_columns(
Lines 217-224 __PACKAGE__->belongs_to( Link Here
217
);
199
);
218
200
219
201
220
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
202
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
221
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LkekSbup37Z2WVnU/c9K+g
203
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LYqmd/oSMbfNkSsgpdYn3g
222
204
223
__PACKAGE__->has_many(
205
__PACKAGE__->has_many(
224
    "additional_field_values",
206
    "additional_field_values",
(-)a/Koha/Schema/Result/AqinvoiceAdjustment.pm (-18 / +2 lines)
Lines 29-83 __PACKAGE__->table("aqinvoice_adjustments"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key for adjustments
33
34
=head2 invoiceid
32
=head2 invoiceid
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key to link an adjustment to an invoice
41
42
=head2 adjustment
38
=head2 adjustment
43
39
44
  data_type: 'decimal'
40
  data_type: 'decimal'
45
  is_nullable: 1
41
  is_nullable: 1
46
  size: [28,6]
42
  size: [28,6]
47
43
48
amount of adjustment
49
50
=head2 reason
44
=head2 reason
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 1
47
  is_nullable: 1
54
  size: 80
48
  size: 80
55
49
56
reason for adjustment defined by authorised values in ADJ_REASON category
57
58
=head2 note
50
=head2 note
59
51
60
  data_type: 'mediumtext'
52
  data_type: 'mediumtext'
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
text to explain adjustment
64
65
=head2 budget_id
55
=head2 budget_id
66
56
67
  data_type: 'integer'
57
  data_type: 'integer'
68
  is_foreign_key: 1
58
  is_foreign_key: 1
69
  is_nullable: 1
59
  is_nullable: 1
70
60
71
optional link to budget to apply adjustment to
72
73
=head2 encumber_open
61
=head2 encumber_open
74
62
75
  data_type: 'smallint'
63
  data_type: 'smallint'
76
  default_value: 1
64
  default_value: 1
77
  is_nullable: 0
65
  is_nullable: 0
78
66
79
whether or not to encumber the funds when invoice is still open, 1 = yes, 0 = no
80
81
=head2 timestamp
67
=head2 timestamp
82
68
83
  data_type: 'timestamp'
69
  data_type: 'timestamp'
Lines 85-92 whether or not to encumber the funds when invoice is still open, 1 = yes, 0 = no Link Here
85
  default_value: current_timestamp
71
  default_value: current_timestamp
86
  is_nullable: 0
72
  is_nullable: 0
87
73
88
timestamp  of last adjustment to adjustment
89
90
=cut
74
=cut
91
75
92
__PACKAGE__->add_columns(
76
__PACKAGE__->add_columns(
Lines 163-170 __PACKAGE__->belongs_to( Link Here
163
);
147
);
164
148
165
149
166
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
150
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
167
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gy1vtvgPtZgUtWhwPWqlWA
151
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ctYEQjFx8jWlFUTE7aEwkw
168
152
169
sub koha_object_class {
153
sub koha_object_class {
170
    'Koha::Acquisition::Invoice::Adjustment';
154
    'Koha::Acquisition::Invoice::Adjustment';
(-)a/Koha/Schema/Result/Aqorder.pm (-102 / +10 lines)
Lines 29-44 __PACKAGE__->table("aqorders"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key and unique identifier assigned by Koha to each line
33
34
=head2 biblionumber
32
=head2 biblionumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
links the order to the biblio being ordered (biblio.biblionumber)
41
42
=head2 deleted_biblionumber
38
=head2 deleted_biblionumber
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
Lines 52-66 links the order to the deleted bibliographic record (deletedbiblio.biblionumber) Link Here
52
  datetime_undef_if_invalid: 1
48
  datetime_undef_if_invalid: 1
53
  is_nullable: 1
49
  is_nullable: 1
54
50
55
the date the bib was added to the basket
56
57
=head2 quantity
51
=head2 quantity
58
52
59
  data_type: 'smallint'
53
  data_type: 'smallint'
60
  is_nullable: 1
54
  is_nullable: 1
61
55
62
the quantity ordered
63
64
=head2 currency
56
=head2 currency
65
57
66
  data_type: 'varchar'
58
  data_type: 'varchar'
Lines 68-184 the quantity ordered Link Here
68
  is_nullable: 1
60
  is_nullable: 1
69
  size: 10
61
  size: 10
70
62
71
the currency used for the purchase
72
73
=head2 listprice
63
=head2 listprice
74
64
75
  data_type: 'decimal'
65
  data_type: 'decimal'
76
  is_nullable: 1
66
  is_nullable: 1
77
  size: [28,6]
67
  size: [28,6]
78
68
79
the vendor price for this line item
80
81
=head2 datereceived
69
=head2 datereceived
82
70
83
  data_type: 'date'
71
  data_type: 'date'
84
  datetime_undef_if_invalid: 1
72
  datetime_undef_if_invalid: 1
85
  is_nullable: 1
73
  is_nullable: 1
86
74
87
the date this order was received
88
89
=head2 invoiceid
75
=head2 invoiceid
90
76
91
  data_type: 'integer'
77
  data_type: 'integer'
92
  is_foreign_key: 1
78
  is_foreign_key: 1
93
  is_nullable: 1
79
  is_nullable: 1
94
80
95
id of invoice
96
97
=head2 freight
81
=head2 freight
98
82
99
  data_type: 'decimal'
83
  data_type: 'decimal'
100
  is_nullable: 1
84
  is_nullable: 1
101
  size: [28,6]
85
  size: [28,6]
102
86
103
shipping costs (not used)
104
105
=head2 unitprice
87
=head2 unitprice
106
88
107
  data_type: 'decimal'
89
  data_type: 'decimal'
108
  is_nullable: 1
90
  is_nullable: 1
109
  size: [28,6]
91
  size: [28,6]
110
92
111
the actual cost entered when receiving this line item
112
113
=head2 unitprice_tax_excluded
93
=head2 unitprice_tax_excluded
114
94
115
  data_type: 'decimal'
95
  data_type: 'decimal'
116
  is_nullable: 1
96
  is_nullable: 1
117
  size: [28,6]
97
  size: [28,6]
118
98
119
the unit price excluding tax (on receiving)
120
121
=head2 unitprice_tax_included
99
=head2 unitprice_tax_included
122
100
123
  data_type: 'decimal'
101
  data_type: 'decimal'
124
  is_nullable: 1
102
  is_nullable: 1
125
  size: [28,6]
103
  size: [28,6]
126
104
127
the unit price including tax (on receiving)
128
129
=head2 quantityreceived
105
=head2 quantityreceived
130
106
131
  data_type: 'smallint'
107
  data_type: 'smallint'
132
  default_value: 0
108
  default_value: 0
133
  is_nullable: 0
109
  is_nullable: 0
134
110
135
the quantity that have been received so far
136
137
=head2 created_by
111
=head2 created_by
138
112
139
  data_type: 'integer'
113
  data_type: 'integer'
140
  is_foreign_key: 1
114
  is_foreign_key: 1
141
  is_nullable: 1
115
  is_nullable: 1
142
116
143
the borrowernumber of order line's creator
144
145
=head2 datecancellationprinted
117
=head2 datecancellationprinted
146
118
147
  data_type: 'date'
119
  data_type: 'date'
148
  datetime_undef_if_invalid: 1
120
  datetime_undef_if_invalid: 1
149
  is_nullable: 1
121
  is_nullable: 1
150
122
151
the date the line item was deleted
152
153
=head2 cancellationreason
123
=head2 cancellationreason
154
124
155
  data_type: 'mediumtext'
125
  data_type: 'mediumtext'
156
  is_nullable: 1
126
  is_nullable: 1
157
127
158
reason of cancellation
159
160
=head2 order_internalnote
128
=head2 order_internalnote
161
129
162
  data_type: 'longtext'
130
  data_type: 'longtext'
163
  is_nullable: 1
131
  is_nullable: 1
164
132
165
notes related to this order line, made for staff
166
167
=head2 order_vendornote
133
=head2 order_vendornote
168
134
169
  data_type: 'longtext'
135
  data_type: 'longtext'
170
  is_nullable: 1
136
  is_nullable: 1
171
137
172
notes related to this order line, made for vendor
173
174
=head2 basketno
138
=head2 basketno
175
139
176
  data_type: 'integer'
140
  data_type: 'integer'
177
  is_foreign_key: 1
141
  is_foreign_key: 1
178
  is_nullable: 1
142
  is_nullable: 1
179
143
180
links this order line to a specific basket (aqbasket.basketno)
181
182
=head2 timestamp
144
=head2 timestamp
183
145
184
  data_type: 'timestamp'
146
  data_type: 'timestamp'
Lines 186-337 links this order line to a specific basket (aqbasket.basketno) Link Here
186
  default_value: current_timestamp
148
  default_value: current_timestamp
187
  is_nullable: 0
149
  is_nullable: 0
188
150
189
the date and time this order line was last modified
190
191
=head2 rrp
151
=head2 rrp
192
152
193
  data_type: 'decimal'
153
  data_type: 'decimal'
194
  is_nullable: 1
154
  is_nullable: 1
195
  size: [13,2]
155
  size: [13,2]
196
156
197
the retail cost for this line item
198
199
=head2 replacementprice
200
201
  data_type: 'decimal'
202
  is_nullable: 1
203
  size: [28,6]
204
205
the replacement cost for this line item
206
207
=head2 rrp_tax_excluded
157
=head2 rrp_tax_excluded
208
158
209
  data_type: 'decimal'
159
  data_type: 'decimal'
210
  is_nullable: 1
160
  is_nullable: 1
211
  size: [28,6]
161
  size: [28,6]
212
162
213
the replacement cost excluding tax
214
215
=head2 rrp_tax_included
163
=head2 rrp_tax_included
216
164
217
  data_type: 'decimal'
165
  data_type: 'decimal'
218
  is_nullable: 1
166
  is_nullable: 1
219
  size: [28,6]
167
  size: [28,6]
220
168
221
the replacement cost including tax
222
223
=head2 ecost
169
=head2 ecost
224
170
225
  data_type: 'decimal'
171
  data_type: 'decimal'
226
  is_nullable: 1
172
  is_nullable: 1
227
  size: [13,2]
173
  size: [13,2]
228
174
229
the replacement cost for this line item
230
231
=head2 ecost_tax_excluded
175
=head2 ecost_tax_excluded
232
176
233
  data_type: 'decimal'
177
  data_type: 'decimal'
234
  is_nullable: 1
178
  is_nullable: 1
235
  size: [28,6]
179
  size: [28,6]
236
180
237
the estimated cost excluding tax
238
239
=head2 ecost_tax_included
181
=head2 ecost_tax_included
240
182
241
  data_type: 'decimal'
183
  data_type: 'decimal'
242
  is_nullable: 1
184
  is_nullable: 1
243
  size: [28,6]
185
  size: [28,6]
244
186
245
the estimated cost including tax
246
247
=head2 tax_rate_bak
187
=head2 tax_rate_bak
248
188
249
  data_type: 'decimal'
189
  data_type: 'decimal'
250
  is_nullable: 1
190
  is_nullable: 1
251
  size: [6,4]
191
  size: [6,4]
252
192
253
the tax rate for this line item (%)
254
255
=head2 tax_rate_on_ordering
193
=head2 tax_rate_on_ordering
256
194
257
  data_type: 'decimal'
195
  data_type: 'decimal'
258
  is_nullable: 1
196
  is_nullable: 1
259
  size: [6,4]
197
  size: [6,4]
260
198
261
the tax rate on ordering for this line item (%)
262
263
=head2 tax_rate_on_receiving
199
=head2 tax_rate_on_receiving
264
200
265
  data_type: 'decimal'
201
  data_type: 'decimal'
266
  is_nullable: 1
202
  is_nullable: 1
267
  size: [6,4]
203
  size: [6,4]
268
204
269
the tax rate on receiving for this line item (%)
270
271
=head2 tax_value_bak
205
=head2 tax_value_bak
272
206
273
  data_type: 'decimal'
207
  data_type: 'decimal'
274
  is_nullable: 1
208
  is_nullable: 1
275
  size: [28,6]
209
  size: [28,6]
276
210
277
the tax value for this line item
278
279
=head2 tax_value_on_ordering
211
=head2 tax_value_on_ordering
280
212
281
  data_type: 'decimal'
213
  data_type: 'decimal'
282
  is_nullable: 1
214
  is_nullable: 1
283
  size: [28,6]
215
  size: [28,6]
284
216
285
the tax value on ordering for this line item
286
287
=head2 tax_value_on_receiving
217
=head2 tax_value_on_receiving
288
218
289
  data_type: 'decimal'
219
  data_type: 'decimal'
290
  is_nullable: 1
220
  is_nullable: 1
291
  size: [28,6]
221
  size: [28,6]
292
222
293
the tax value on receiving for this line item
294
295
=head2 discount
223
=head2 discount
296
224
297
  data_type: 'float'
225
  data_type: 'float'
298
  is_nullable: 1
226
  is_nullable: 1
299
  size: [6,4]
227
  size: [6,4]
300
228
301
the discount for this line item (%)
302
303
=head2 budget_id
229
=head2 budget_id
304
230
305
  data_type: 'integer'
231
  data_type: 'integer'
306
  is_foreign_key: 1
232
  is_foreign_key: 1
307
  is_nullable: 0
233
  is_nullable: 0
308
234
309
the fund this order goes against (aqbudgets.budget_id)
310
311
=head2 budgetdate
235
=head2 budgetdate
312
236
313
  data_type: 'date'
237
  data_type: 'date'
314
  datetime_undef_if_invalid: 1
238
  datetime_undef_if_invalid: 1
315
  is_nullable: 1
239
  is_nullable: 1
316
240
317
not used? always NULL
318
319
=head2 sort1
241
=head2 sort1
320
242
321
  data_type: 'varchar'
243
  data_type: 'varchar'
322
  is_nullable: 1
244
  is_nullable: 1
323
  size: 80
245
  size: 80
324
246
325
statistical field
326
327
=head2 sort2
247
=head2 sort2
328
248
329
  data_type: 'varchar'
249
  data_type: 'varchar'
330
  is_nullable: 1
250
  is_nullable: 1
331
  size: 80
251
  size: 80
332
252
333
second statistical field
334
335
=head2 sort1_authcat
253
=head2 sort1_authcat
336
254
337
  data_type: 'varchar'
255
  data_type: 'varchar'
Lines 349-371 second statistical field Link Here
349
  data_type: 'tinyint'
267
  data_type: 'tinyint'
350
  is_nullable: 1
268
  is_nullable: 1
351
269
352
was this price uncertain (1 for yes, 0 for no)
353
354
=head2 subscriptionid
270
=head2 subscriptionid
355
271
356
  data_type: 'integer'
272
  data_type: 'integer'
357
  is_foreign_key: 1
273
  is_foreign_key: 1
358
  is_nullable: 1
274
  is_nullable: 1
359
275
360
links this order line to a subscription (subscription.subscriptionid)
361
362
=head2 parent_ordernumber
276
=head2 parent_ordernumber
363
277
364
  data_type: 'integer'
278
  data_type: 'integer'
365
  is_nullable: 1
279
  is_nullable: 1
366
280
367
ordernumber of parent order line, or same as ordernumber if no parent
368
369
=head2 orderstatus
281
=head2 orderstatus
370
282
371
  data_type: 'varchar'
283
  data_type: 'varchar'
Lines 373-411 ordernumber of parent order line, or same as ordernumber if no parent Link Here
373
  is_nullable: 1
285
  is_nullable: 1
374
  size: 16
286
  size: 16
375
287
376
the current status for this line item. Can be 'new', 'ordered', 'partial', 'complete' or 'cancelled'
377
378
=head2 line_item_id
288
=head2 line_item_id
379
289
380
  data_type: 'varchar'
290
  data_type: 'varchar'
381
  is_nullable: 1
291
  is_nullable: 1
382
  size: 35
292
  size: 35
383
293
384
Supplier's article id for Edifact orderline
385
386
=head2 suppliers_reference_number
294
=head2 suppliers_reference_number
387
295
388
  data_type: 'varchar'
296
  data_type: 'varchar'
389
  is_nullable: 1
297
  is_nullable: 1
390
  size: 35
298
  size: 35
391
299
392
Suppliers unique edifact quote ref
393
394
=head2 suppliers_reference_qualifier
300
=head2 suppliers_reference_qualifier
395
301
396
  data_type: 'varchar'
302
  data_type: 'varchar'
397
  is_nullable: 1
303
  is_nullable: 1
398
  size: 3
304
  size: 3
399
305
400
Type of number above usually 'QLI'
401
402
=head2 suppliers_report
306
=head2 suppliers_report
403
307
404
  data_type: 'mediumtext'
308
  data_type: 'mediumtext'
405
  is_nullable: 1
309
  is_nullable: 1
406
310
407
reports received from suppliers
408
409
=head2 estimated_delivery_date
311
=head2 estimated_delivery_date
410
312
411
  data_type: 'date'
313
  data_type: 'date'
Lines 431-436 the unit price in foreign currency Link Here
431
333
432
the currency of the invoice_unitprice
334
the currency of the invoice_unitprice
433
335
336
=head2 replacementprice
337
338
  data_type: 'decimal'
339
  is_nullable: 1
340
  size: [28,6]
341
434
=cut
342
=cut
435
343
436
__PACKAGE__->add_columns(
344
__PACKAGE__->add_columns(
Lines 483-490 __PACKAGE__->add_columns( Link Here
483
  },
391
  },
484
  "rrp",
392
  "rrp",
485
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
393
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
486
  "replacementprice",
487
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
488
  "rrp_tax_excluded",
394
  "rrp_tax_excluded",
489
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
395
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
490
  "rrp_tax_included",
396
  "rrp_tax_included",
Lines 548-553 __PACKAGE__->add_columns( Link Here
548
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
454
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
549
  "invoice_currency",
455
  "invoice_currency",
550
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
456
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
457
  "replacementprice",
458
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
551
);
459
);
552
460
553
=head1 PRIMARY KEY
461
=head1 PRIMARY KEY
Lines 805-812 Composing rels: L</aqorder_users> -> borrowernumber Link Here
805
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
713
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
806
714
807
715
808
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-04-30 13:34:51
716
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
809
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FyRqcj4OmkBR6PpW3tY8bA
717
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+2xQczVkjCrH00X4TZZ4KQ
810
718
811
__PACKAGE__->belongs_to(
719
__PACKAGE__->belongs_to(
812
  "basket",
720
  "basket",
(-)a/Koha/Schema/Result/AqorderUser.pm (-6 / +2 lines)
Lines 29-44 __PACKAGE__->table("aqorder_users"); Link Here
29
  is_foreign_key: 1
29
  is_foreign_key: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
the order this patrons receive notifications from (aqorders.ordernumber)
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
the borrowernumber for the patron receiving notifications for this order (borrowers.borrowernumber)
41
42
=cut
38
=cut
43
39
44
__PACKAGE__->add_columns(
40
__PACKAGE__->add_columns(
Lines 95-102 __PACKAGE__->belongs_to( Link Here
95
);
91
);
96
92
97
93
98
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
94
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
99
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G5LCF3HRXk7YKl8/t7HIyg
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EGlJzn7/bZaUZSlc9SRXzA
100
96
101
97
102
# You can replace this text with custom code or comments, and it will be preserved on regeneration
98
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AqordersClaim.pm (-8 / +2 lines)
Lines 29-44 __PACKAGE__->table("aqorders_claims"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
ID of the claims
33
34
=head2 ordernumber
32
=head2 ordernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
order linked to this claim
41
42
=head2 claimed_on
38
=head2 claimed_on
43
39
44
  data_type: 'timestamp'
40
  data_type: 'timestamp'
Lines 46-53 order linked to this claim Link Here
46
  default_value: current_timestamp
42
  default_value: current_timestamp
47
  is_nullable: 0
43
  is_nullable: 0
48
44
49
Date of the claims
50
51
=cut
45
=cut
52
46
53
__PACKAGE__->add_columns(
47
__PACKAGE__->add_columns(
Lines 94-101 __PACKAGE__->belongs_to( Link Here
94
);
88
);
95
89
96
90
97
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
91
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
98
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4/GYhhysSbrh67vIq67xZw
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jl+K7hrdiEdr6DBvn22FzQ
99
93
100
sub koha_object_class {
94
sub koha_object_class {
101
    'Koha::Acquisition::Order::Claim';
95
    'Koha::Acquisition::Order::Claim';
(-)a/Koha/Schema/Result/AqordersItem.pm (-8 / +2 lines)
Lines 29-43 __PACKAGE__->table("aqorders_items"); Link Here
29
  is_foreign_key: 1
29
  is_foreign_key: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
the order this item is attached to (aqorders.ordernumber)
33
34
=head2 itemnumber
32
=head2 itemnumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_nullable: 0
35
  is_nullable: 0
38
36
39
the item number for this item (items.itemnumber)
40
41
=head2 timestamp
37
=head2 timestamp
42
38
43
  data_type: 'timestamp'
39
  data_type: 'timestamp'
Lines 45-52 the item number for this item (items.itemnumber) Link Here
45
  default_value: current_timestamp
41
  default_value: current_timestamp
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
the date and time this order item was last touched
49
50
=cut
44
=cut
51
45
52
__PACKAGE__->add_columns(
46
__PACKAGE__->add_columns(
Lines 93-100 __PACKAGE__->belongs_to( Link Here
93
);
87
);
94
88
95
89
96
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
90
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
97
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0qoEUMlkDZDBMxvaNwYtrA
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DbL5aWyOlfrCGbMuQDpPdA
98
92
99
93
100
# You can replace this text with custom content, and it will be preserved on regeneration
94
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ArticleRequest.pm (-4 / +2 lines)
Lines 140-147 Debit line with cost for article scan request Link Here
140
  datetime_undef_if_invalid: 1
140
  datetime_undef_if_invalid: 1
141
  is_nullable: 1
141
  is_nullable: 1
142
142
143
Be careful with two timestamps in one table not allowing NULL
144
145
=head2 updated_on
143
=head2 updated_on
146
144
147
  data_type: 'timestamp'
145
  data_type: 'timestamp'
Lines 332-339 __PACKAGE__->belongs_to( Link Here
332
);
330
);
333
331
334
332
335
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-28 20:21:02
333
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
336
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/mPsUO8VPK6DVIX7Rynk0A
334
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lCBGn0HSuYssEZMRmxb6Gg
337
335
338
336
339
# You can replace this text with custom code or comments, and it will be preserved on regeneration
337
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AuthHeader.pm (-2 / +19 lines)
Lines 128-136 __PACKAGE__->add_columns( Link Here
128
128
129
__PACKAGE__->set_primary_key("authid");
129
__PACKAGE__->set_primary_key("authid");
130
130
131
=head1 RELATIONS
131
132
132
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56
133
=head2 import_oai_authorities
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gYG6yQ6EC5gVMZHF1h6MJA
134
135
Type: has_many
136
137
Related object: L<Koha::Schema::Result::ImportOaiAuthority>
138
139
=cut
140
141
__PACKAGE__->has_many(
142
  "import_oai_authorities",
143
  "Koha::Schema::Result::ImportOaiAuthority",
144
  { "foreign.authid" => "self.authid" },
145
  { cascade_copy => 0, cascade_delete => 0 },
146
);
147
148
149
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
150
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rERobZw9DeIMSIf9BGVONA
134
151
135
sub koha_object_class {
152
sub koha_object_class {
136
    'Koha::Authority';
153
    'Koha::Authority';
(-)a/Koha/Schema/Result/AuthorisedValue.pm (-2 / +24 lines)
Lines 142-147 __PACKAGE__->has_many( Link Here
142
  { cascade_copy => 0, cascade_delete => 0 },
142
  { cascade_copy => 0, cascade_delete => 0 },
143
);
143
);
144
144
145
=head2 authorised_values_localizations
146
147
Type: has_many
148
149
Related object: L<Koha::Schema::Result::AuthorisedValuesLocalization>
150
151
=cut
152
153
__PACKAGE__->has_many(
154
  "authorised_values_localizations",
155
  "Koha::Schema::Result::AuthorisedValuesLocalization",
156
  { "foreign.authorised_value_id" => "self.id" },
157
  { cascade_copy => 0, cascade_delete => 0 },
158
);
159
145
=head2 category
160
=head2 category
146
161
147
Type: belongs_to
162
Type: belongs_to
Lines 173-181 __PACKAGE__->has_many( Link Here
173
);
188
);
174
189
175
190
176
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
191
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 16:11:15
177
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LH9dpEEzlVVsjNVv/jnONg
192
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mlwkraQyS4N5mlE7J5g7qQ
178
193
194
__PACKAGE__->load_components('+Koha::Schema::Component::Localization');
195
__PACKAGE__->localization_add_relationships(
196
    'authorised_values_localizations',
197
    'authorised_value_id' => 'id',
198
    'lib',
199
    'lib_opac',
200
);
179
201
180
# You can replace this text with custom code or comments, and it will be preserved on regeneration
202
# You can replace this text with custom code or comments, and it will be preserved on regeneration
181
1;
203
1;
(-)a/Koha/Schema/Result/Biblio.pm (-32 / +17 lines)
Lines 29-36 __PACKAGE__->table("biblio"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned to each bibliographic record
33
34
=head2 frameworkcode
32
=head2 frameworkcode
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
Lines 38-108 unique identifier assigned to each bibliographic record Link Here
38
  is_nullable: 0
36
  is_nullable: 0
39
  size: 4
37
  size: 4
40
38
41
foreign key from the biblio_framework table to identify which framework was used in cataloging this record
42
43
=head2 author
39
=head2 author
44
40
45
  data_type: 'longtext'
41
  data_type: 'longtext'
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
statement of responsibility from MARC record (100$a in MARC21)
49
50
=head2 title
44
=head2 title
51
45
52
  data_type: 'longtext'
46
  data_type: 'longtext'
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
title (without the subtitle) from the MARC record (245$a in MARC21)
56
57
=head2 medium
49
=head2 medium
58
50
59
  data_type: 'longtext'
51
  data_type: 'longtext'
60
  is_nullable: 1
52
  is_nullable: 1
61
53
62
medium from the MARC record (245$h in MARC21)
63
64
=head2 subtitle
54
=head2 subtitle
65
55
66
  data_type: 'longtext'
56
  data_type: 'longtext'
67
  is_nullable: 1
57
  is_nullable: 1
68
58
69
remainder of the title from the MARC record (245$b in MARC21)
70
71
=head2 part_number
59
=head2 part_number
72
60
73
  data_type: 'longtext'
61
  data_type: 'longtext'
74
  is_nullable: 1
62
  is_nullable: 1
75
63
76
part number from the MARC record (245$n in MARC21)
77
78
=head2 part_name
64
=head2 part_name
79
65
80
  data_type: 'longtext'
66
  data_type: 'longtext'
81
  is_nullable: 1
67
  is_nullable: 1
82
68
83
part name from the MARC record (245$p in MARC21)
84
85
=head2 unititle
69
=head2 unititle
86
70
87
  data_type: 'longtext'
71
  data_type: 'longtext'
88
  is_nullable: 1
72
  is_nullable: 1
89
73
90
uniform title (without the subtitle) from the MARC record (240$a in MARC21)
91
92
=head2 notes
74
=head2 notes
93
75
94
  data_type: 'longtext'
76
  data_type: 'longtext'
95
  is_nullable: 1
77
  is_nullable: 1
96
78
97
values from the general notes field in the MARC record (500$a in MARC21) split by bar (|)
98
99
=head2 serial
79
=head2 serial
100
80
101
  data_type: 'tinyint'
81
  data_type: 'tinyint'
102
  is_nullable: 1
82
  is_nullable: 1
103
83
104
Boolean indicating whether biblio is for a serial
105
106
=head2 seriestitle
84
=head2 seriestitle
107
85
108
  data_type: 'longtext'
86
  data_type: 'longtext'
Lines 113-120 Boolean indicating whether biblio is for a serial Link Here
113
  data_type: 'smallint'
91
  data_type: 'smallint'
114
  is_nullable: 1
92
  is_nullable: 1
115
93
116
publication or copyright date from the MARC record
117
118
=head2 timestamp
94
=head2 timestamp
119
95
120
  data_type: 'timestamp'
96
  data_type: 'timestamp'
Lines 122-144 publication or copyright date from the MARC record Link Here
122
  default_value: current_timestamp
98
  default_value: current_timestamp
123
  is_nullable: 0
99
  is_nullable: 0
124
100
125
date and time this record was last touched
126
127
=head2 datecreated
101
=head2 datecreated
128
102
129
  data_type: 'date'
103
  data_type: 'date'
130
  datetime_undef_if_invalid: 1
104
  datetime_undef_if_invalid: 1
131
  is_nullable: 0
105
  is_nullable: 0
132
106
133
the date this record was added to Koha
134
135
=head2 abstract
107
=head2 abstract
136
108
137
  data_type: 'longtext'
109
  data_type: 'longtext'
138
  is_nullable: 1
110
  is_nullable: 1
139
111
140
summary from the MARC record (520$a in MARC21)
141
142
=cut
112
=cut
143
113
144
__PACKAGE__->add_columns(
114
__PACKAGE__->add_columns(
Lines 360-365 __PACKAGE__->has_many( Link Here
360
  { cascade_copy => 0, cascade_delete => 0 },
330
  { cascade_copy => 0, cascade_delete => 0 },
361
);
331
);
362
332
333
=head2 import_oai_biblios
334
335
Type: has_many
336
337
Related object: L<Koha::Schema::Result::ImportOaiBiblio>
338
339
=cut
340
341
__PACKAGE__->has_many(
342
  "import_oai_biblios",
343
  "Koha::Schema::Result::ImportOaiBiblio",
344
  { "foreign.biblionumber" => "self.biblionumber" },
345
  { cascade_copy => 0, cascade_delete => 0 },
346
);
347
363
=head2 item_groups
348
=head2 item_groups
364
349
365
Type: has_many
350
Type: has_many
Lines 616-623 __PACKAGE__->has_many( Link Here
616
);
601
);
617
602
618
603
619
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-09 07:11:30
604
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
620
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AZgt+4mVV/QYtSsdhxmaBQ
605
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pGOj9Ovn5se6qzeqcNeKBw
621
606
622
__PACKAGE__->has_many(
607
__PACKAGE__->has_many(
623
  "biblioitem",
608
  "biblioitem",
(-)a/Koha/Schema/Result/BiblioFramework.pm (-6 / +2 lines)
Lines 30-37 __PACKAGE__->table("biblio_framework"); Link Here
30
  is_nullable: 0
30
  is_nullable: 0
31
  size: 4
31
  size: 4
32
32
33
the unique code assigned to the framework
34
35
=head2 frameworktext
33
=head2 frameworktext
36
34
37
  data_type: 'varchar'
35
  data_type: 'varchar'
Lines 39-46 the unique code assigned to the framework Link Here
39
  is_nullable: 0
37
  is_nullable: 0
40
  size: 255
38
  size: 255
41
39
42
the description/name given to the framework
43
44
=cut
40
=cut
45
41
46
__PACKAGE__->add_columns(
42
__PACKAGE__->add_columns(
Lines 63-70 __PACKAGE__->add_columns( Link Here
63
__PACKAGE__->set_primary_key("frameworkcode");
59
__PACKAGE__->set_primary_key("frameworkcode");
64
60
65
61
66
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
62
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
67
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YdCNaeY5v1WcfcDuA6xE0w
63
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HArFXS6lRQORjGfzITuF0A
68
64
69
# FIXME This should not be needed, we need to add the FK at DB level
65
# FIXME This should not be needed, we need to add the FK at DB level
70
# It cannot be done now because the default framework (frameworkcode=='')
66
# It cannot be done now because the default framework (frameworkcode=='')
(-)a/Koha/Schema/Result/BiblioMetadata.pm (-4 / +4 lines)
Lines 44-50 __PACKAGE__->table("biblio_metadata"); Link Here
44
=head2 schema
44
=head2 schema
45
45
46
  data_type: 'varchar'
46
  data_type: 'varchar'
47
  is_nullable: 0
47
  is_nullable: 1
48
  size: 16
48
  size: 16
49
49
50
=head2 metadata
50
=head2 metadata
Lines 77-83 __PACKAGE__->add_columns( Link Here
77
  "format",
77
  "format",
78
  { data_type => "varchar", is_nullable => 0, size => 16 },
78
  { data_type => "varchar", is_nullable => 0, size => 16 },
79
  "schema",
79
  "schema",
80
  { data_type => "varchar", is_nullable => 0, size => 16 },
80
  { data_type => "varchar", is_nullable => 1, size => 16 },
81
  "metadata",
81
  "metadata",
82
  { data_type => "longtext", is_nullable => 0 },
82
  { data_type => "longtext", is_nullable => 0 },
83
  "timestamp",
83
  "timestamp",
Lines 162-169 __PACKAGE__->belongs_to( Link Here
162
);
162
);
163
163
164
164
165
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-01 15:57:42
165
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ar73Sy86oYHspxu0udvnoA
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vbc5f5kkUlzLRNHFHMrCWg
167
167
168
sub koha_object_class {
168
sub koha_object_class {
169
    'Koha::Biblio::Metadata';
169
    'Koha::Biblio::Metadata';
(-)a/Koha/Schema/Result/Biblioitem.pm (-22 / +2 lines)
Lines 29-36 __PACKAGE__->table("biblioitems"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key, unique identifier assigned by Koha
33
34
=head2 biblionumber
32
=head2 biblionumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
Lines 38-45 primary key, unique identifier assigned by Koha Link Here
38
  is_foreign_key: 1
36
  is_foreign_key: 1
39
  is_nullable: 0
37
  is_nullable: 0
40
38
41
foreign key linking this table to the biblio table
42
43
=head2 volume
39
=head2 volume
44
40
45
  data_type: 'longtext'
41
  data_type: 'longtext'
Lines 56-77 foreign key linking this table to the biblio table Link Here
56
  is_nullable: 1
52
  is_nullable: 1
57
  size: 10
53
  size: 10
58
54
59
biblio level item type (MARC21 942$c)
60
61
=head2 isbn
55
=head2 isbn
62
56
63
  data_type: 'longtext'
57
  data_type: 'longtext'
64
  is_nullable: 1
58
  is_nullable: 1
65
59
66
ISBN (MARC21 020$a)
67
68
=head2 issn
60
=head2 issn
69
61
70
  data_type: 'longtext'
62
  data_type: 'longtext'
71
  is_nullable: 1
63
  is_nullable: 1
72
64
73
ISSN (MARC21 022$a)
74
75
=head2 ean
65
=head2 ean
76
66
77
  data_type: 'longtext'
67
  data_type: 'longtext'
Lines 100-107 publisher (MARC21 260$b and 264$b) Link Here
100
  data_type: 'mediumtext'
90
  data_type: 'mediumtext'
101
  is_nullable: 1
91
  is_nullable: 1
102
92
103
volume information (MARC21 362$a)
104
105
=head2 collectiontitle
93
=head2 collectiontitle
106
94
107
  data_type: 'longtext'
95
  data_type: 'longtext'
Lines 179-194 library of congress control number (MARC21 010$a) Link Here
179
  data_type: 'mediumtext'
167
  data_type: 'mediumtext'
180
  is_nullable: 1
168
  is_nullable: 1
181
169
182
url (MARC21 856$u)
183
184
=head2 cn_source
170
=head2 cn_source
185
171
186
  data_type: 'varchar'
172
  data_type: 'varchar'
187
  is_nullable: 1
173
  is_nullable: 1
188
  size: 10
174
  size: 10
189
175
190
classification source (MARC21 942$2)
191
192
=head2 cn_class
176
=head2 cn_class
193
177
194
  data_type: 'varchar'
178
  data_type: 'varchar'
Lines 213-228 classification source (MARC21 942$2) Link Here
213
  is_nullable: 1
197
  is_nullable: 1
214
  size: 255
198
  size: 255
215
199
216
normalized version of the call number used for sorting
217
218
=head2 agerestriction
200
=head2 agerestriction
219
201
220
  data_type: 'varchar'
202
  data_type: 'varchar'
221
  is_nullable: 1
203
  is_nullable: 1
222
  size: 255
204
  size: 255
223
205
224
target audience/age restriction from the bib record (MARC21 521$a)
225
226
=head2 totalissues
206
=head2 totalissues
227
207
228
  data_type: 'integer'
208
  data_type: 'integer'
Lines 352-359 __PACKAGE__->has_many( Link Here
352
);
332
);
353
333
354
334
355
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-01 18:20:33
335
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
356
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fNII5fQeY3BY5JPXOMY48Q
336
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iW0q6emTA/r+GqSG7b4AEA
357
337
358
__PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" );
338
__PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" );
359
339
(-)a/Koha/Schema/Result/Booking.pm (-16 / +26 lines)
Lines 84-104 the end date of the booking Link Here
84
84
85
=head2 creation_date
85
=head2 creation_date
86
86
87
  data_type: 'timestamp'
87
  data_type: 'datetime'
88
  datetime_undef_if_invalid: 1
88
  datetime_undef_if_invalid: 1
89
  default_value: current_timestamp
89
  default_value: 'current_timestamp()'
90
  is_nullable: 0
90
  is_nullable: 1
91
91
92
the timestamp for when a booking was created
92
The datetime for when a bookings was created
93
93
94
=head2 modification_date
94
=head2 modification_date
95
95
96
  data_type: 'timestamp'
96
  data_type: 'datetime'
97
  datetime_undef_if_invalid: 1
97
  datetime_undef_if_invalid: 1
98
  default_value: current_timestamp
98
  default_value: 'current_timestamp()'
99
  is_nullable: 0
99
  is_nullable: 1
100
100
101
the timestamp for when a booking has been updated
101
The datetime for when a booking has been updated
102
102
103
=head2 status
103
=head2 status
104
104
Lines 109-114 the timestamp for when a booking has been updated Link Here
109
109
110
current status of the booking
110
current status of the booking
111
111
112
=head2 cancellation_reason
113
114
  data_type: 'varchar'
115
  is_nullable: 1
116
  size: 80
117
118
optional authorised value BOOKING_CANCELLATION
119
112
=cut
120
=cut
113
121
114
__PACKAGE__->add_columns(
122
__PACKAGE__->add_columns(
Lines 146-162 __PACKAGE__->add_columns( Link Here
146
  },
154
  },
147
  "creation_date",
155
  "creation_date",
148
  {
156
  {
149
    data_type => "timestamp",
157
    data_type => "datetime",
150
    datetime_undef_if_invalid => 1,
158
    datetime_undef_if_invalid => 1,
151
    default_value => \"current_timestamp",
159
    default_value => "current_timestamp()",
152
    is_nullable => 0,
160
    is_nullable => 1,
153
  },
161
  },
154
  "modification_date",
162
  "modification_date",
155
  {
163
  {
156
    data_type => "timestamp",
164
    data_type => "datetime",
157
    datetime_undef_if_invalid => 1,
165
    datetime_undef_if_invalid => 1,
158
    default_value => \"current_timestamp",
166
    default_value => "current_timestamp()",
159
    is_nullable => 0,
167
    is_nullable => 1,
160
  },
168
  },
161
  "status",
169
  "status",
162
  {
170
  {
Lines 165-170 __PACKAGE__->add_columns( Link Here
165
    extra => { list => ["new", "cancelled", "completed"] },
173
    extra => { list => ["new", "cancelled", "completed"] },
166
    is_nullable => 0,
174
    is_nullable => 0,
167
  },
175
  },
176
  "cancellation_reason",
177
  { data_type => "varchar", is_nullable => 1, size => 80 },
168
);
178
);
169
179
170
=head1 PRIMARY KEY
180
=head1 PRIMARY KEY
Lines 247-254 __PACKAGE__->belongs_to( Link Here
247
);
257
);
248
258
249
259
250
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-09-18 08:58:14
260
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
251
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3ctwNEgFUMhV+uR/UGSWag
261
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9QxeC0EBtW2bUtpWAVVEdg
252
262
253
263
254
# You can replace this text with custom code or comments, and it will be preserved on regeneration
264
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Borrower.pm (-154 / +11 lines)
Lines 29-57 __PACKAGE__->table("borrowers"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key, Koha assigned ID number for patrons/borrowers
33
34
=head2 cardnumber
32
=head2 cardnumber
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 1
35
  is_nullable: 1
38
  size: 32
36
  size: 32
39
37
40
unique key, library assigned ID number for patrons/borrowers
41
42
=head2 surname
38
=head2 surname
43
39
44
  data_type: 'longtext'
40
  data_type: 'longtext'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
patron/borrower's last name (surname)
48
49
=head2 firstname
43
=head2 firstname
50
44
51
  data_type: 'mediumtext'
45
  data_type: 'mediumtext'
52
  is_nullable: 1
46
  is_nullable: 1
53
47
54
patron/borrower's first name
48
=head2 preferred_name
49
50
  data_type: 'longtext'
51
  is_nullable: 1
52
53
patron/borrower's preferred name
55
54
56
=head2 middle_name
55
=head2 middle_name
57
56
Lines 65-279 patron/borrower's middle name Link Here
65
  data_type: 'longtext'
64
  data_type: 'longtext'
66
  is_nullable: 1
65
  is_nullable: 1
67
66
68
patron/borrower's title, for example: Mr. or Mrs.
69
70
=head2 othernames
67
=head2 othernames
71
68
72
  data_type: 'longtext'
69
  data_type: 'longtext'
73
  is_nullable: 1
70
  is_nullable: 1
74
71
75
any other names associated with the patron/borrower
76
77
=head2 initials
72
=head2 initials
78
73
79
  data_type: 'mediumtext'
74
  data_type: 'mediumtext'
80
  is_nullable: 1
75
  is_nullable: 1
81
76
82
initials for your patron/borrower
83
84
=head2 pronouns
77
=head2 pronouns
85
78
86
  data_type: 'longtext'
79
  data_type: 'longtext'
87
  is_nullable: 1
80
  is_nullable: 1
88
81
89
patron/borrower pronouns
82
patron/borrower's pronouns
90
83
91
=head2 streetnumber
84
=head2 streetnumber
92
85
93
  data_type: 'tinytext'
86
  data_type: 'tinytext'
94
  is_nullable: 1
87
  is_nullable: 1
95
88
96
the house number for your patron/borrower's primary address
97
98
=head2 streettype
89
=head2 streettype
99
90
100
  data_type: 'tinytext'
91
  data_type: 'tinytext'
101
  is_nullable: 1
92
  is_nullable: 1
102
93
103
the street type (Rd., Blvd, etc) for your patron/borrower's primary address
104
105
=head2 address
94
=head2 address
106
95
107
  data_type: 'longtext'
96
  data_type: 'longtext'
108
  is_nullable: 1
97
  is_nullable: 1
109
98
110
the first address line for your patron/borrower's primary address
111
112
=head2 address2
99
=head2 address2
113
100
114
  data_type: 'mediumtext'
101
  data_type: 'mediumtext'
115
  is_nullable: 1
102
  is_nullable: 1
116
103
117
the second address line for your patron/borrower's primary address
118
119
=head2 city
104
=head2 city
120
105
121
  data_type: 'longtext'
106
  data_type: 'longtext'
122
  is_nullable: 1
107
  is_nullable: 1
123
108
124
the city or town for your patron/borrower's primary address
125
126
=head2 state
109
=head2 state
127
110
128
  data_type: 'mediumtext'
111
  data_type: 'mediumtext'
129
  is_nullable: 1
112
  is_nullable: 1
130
113
131
the state or province for your patron/borrower's primary address
132
133
=head2 zipcode
114
=head2 zipcode
134
115
135
  data_type: 'tinytext'
116
  data_type: 'tinytext'
136
  is_nullable: 1
117
  is_nullable: 1
137
118
138
the zip or postal code for your patron/borrower's primary address
139
140
=head2 country
119
=head2 country
141
120
142
  data_type: 'mediumtext'
121
  data_type: 'mediumtext'
143
  is_nullable: 1
122
  is_nullable: 1
144
123
145
the country for your patron/borrower's primary address
146
147
=head2 email
124
=head2 email
148
125
149
  data_type: 'longtext'
126
  data_type: 'longtext'
150
  is_nullable: 1
127
  is_nullable: 1
151
128
152
the primary email address for your patron/borrower's primary address
153
154
=head2 phone
129
=head2 phone
155
130
156
  data_type: 'mediumtext'
131
  data_type: 'mediumtext'
157
  is_nullable: 1
132
  is_nullable: 1
158
133
159
the primary phone number for your patron/borrower's primary address
160
161
=head2 mobile
134
=head2 mobile
162
135
163
  data_type: 'tinytext'
136
  data_type: 'tinytext'
164
  is_nullable: 1
137
  is_nullable: 1
165
138
166
the other phone number for your patron/borrower's primary address
167
168
=head2 fax
139
=head2 fax
169
140
170
  data_type: 'longtext'
141
  data_type: 'longtext'
171
  is_nullable: 1
142
  is_nullable: 1
172
143
173
the fax number for your patron/borrower's primary address
174
175
=head2 emailpro
144
=head2 emailpro
176
145
177
  data_type: 'mediumtext'
146
  data_type: 'mediumtext'
178
  is_nullable: 1
147
  is_nullable: 1
179
148
180
the secondary email addres for your patron/borrower's primary address
181
182
=head2 phonepro
149
=head2 phonepro
183
150
184
  data_type: 'mediumtext'
151
  data_type: 'mediumtext'
185
  is_nullable: 1
152
  is_nullable: 1
186
153
187
the secondary phone number for your patron/borrower's primary address
188
189
=head2 B_streetnumber
154
=head2 B_streetnumber
190
155
191
  accessor: 'b_streetnumber'
156
  accessor: 'b_streetnumber'
192
  data_type: 'tinytext'
157
  data_type: 'tinytext'
193
  is_nullable: 1
158
  is_nullable: 1
194
159
195
the house number for your patron/borrower's alternate address
196
197
=head2 B_streettype
160
=head2 B_streettype
198
161
199
  accessor: 'b_streettype'
162
  accessor: 'b_streettype'
200
  data_type: 'tinytext'
163
  data_type: 'tinytext'
201
  is_nullable: 1
164
  is_nullable: 1
202
165
203
the street type (Rd., Blvd, etc) for your patron/borrower's alternate address
204
205
=head2 B_address
166
=head2 B_address
206
167
207
  accessor: 'b_address'
168
  accessor: 'b_address'
208
  data_type: 'mediumtext'
169
  data_type: 'mediumtext'
209
  is_nullable: 1
170
  is_nullable: 1
210
171
211
the first address line for your patron/borrower's alternate address
212
213
=head2 B_address2
172
=head2 B_address2
214
173
215
  accessor: 'b_address2'
174
  accessor: 'b_address2'
216
  data_type: 'mediumtext'
175
  data_type: 'mediumtext'
217
  is_nullable: 1
176
  is_nullable: 1
218
177
219
the second address line for your patron/borrower's alternate address
220
221
=head2 B_city
178
=head2 B_city
222
179
223
  accessor: 'b_city'
180
  accessor: 'b_city'
224
  data_type: 'longtext'
181
  data_type: 'longtext'
225
  is_nullable: 1
182
  is_nullable: 1
226
183
227
the city or town for your patron/borrower's alternate address
228
229
=head2 B_state
184
=head2 B_state
230
185
231
  accessor: 'b_state'
186
  accessor: 'b_state'
232
  data_type: 'mediumtext'
187
  data_type: 'mediumtext'
233
  is_nullable: 1
188
  is_nullable: 1
234
189
235
the state for your patron/borrower's alternate address
236
237
=head2 B_zipcode
190
=head2 B_zipcode
238
191
239
  accessor: 'b_zipcode'
192
  accessor: 'b_zipcode'
240
  data_type: 'tinytext'
193
  data_type: 'tinytext'
241
  is_nullable: 1
194
  is_nullable: 1
242
195
243
the zip or postal code for your patron/borrower's alternate address
244
245
=head2 B_country
196
=head2 B_country
246
197
247
  accessor: 'b_country'
198
  accessor: 'b_country'
248
  data_type: 'mediumtext'
199
  data_type: 'mediumtext'
249
  is_nullable: 1
200
  is_nullable: 1
250
201
251
the country for your patron/borrower's alternate address
252
253
=head2 B_email
202
=head2 B_email
254
203
255
  accessor: 'b_email'
204
  accessor: 'b_email'
256
  data_type: 'mediumtext'
205
  data_type: 'mediumtext'
257
  is_nullable: 1
206
  is_nullable: 1
258
207
259
the patron/borrower's alternate email address
260
261
=head2 B_phone
208
=head2 B_phone
262
209
263
  accessor: 'b_phone'
210
  accessor: 'b_phone'
264
  data_type: 'longtext'
211
  data_type: 'longtext'
265
  is_nullable: 1
212
  is_nullable: 1
266
213
267
the patron/borrower's alternate phone number
268
269
=head2 dateofbirth
214
=head2 dateofbirth
270
215
271
  data_type: 'date'
216
  data_type: 'date'
272
  datetime_undef_if_invalid: 1
217
  datetime_undef_if_invalid: 1
273
  is_nullable: 1
218
  is_nullable: 1
274
219
275
the patron/borrower's date of birth (YYYY-MM-DD)
276
277
=head2 branchcode
220
=head2 branchcode
278
221
279
  data_type: 'varchar'
222
  data_type: 'varchar'
Lines 282-289 the patron/borrower's date of birth (YYYY-MM-DD) Link Here
282
  is_nullable: 0
225
  is_nullable: 0
283
  size: 10
226
  size: 10
284
227
285
foreign key from the branches table, includes the code of the patron/borrower's home branch
286
287
=head2 categorycode
228
=head2 categorycode
288
229
289
  data_type: 'varchar'
230
  data_type: 'varchar'
Lines 292-413 foreign key from the branches table, includes the code of the patron/borrower's Link Here
292
  is_nullable: 0
233
  is_nullable: 0
293
  size: 10
234
  size: 10
294
235
295
foreign key from the categories table, includes the code of the patron category
296
297
=head2 dateenrolled
236
=head2 dateenrolled
298
237
299
  data_type: 'date'
238
  data_type: 'date'
300
  datetime_undef_if_invalid: 1
239
  datetime_undef_if_invalid: 1
301
  is_nullable: 1
240
  is_nullable: 1
302
241
303
date the patron was added to Koha (YYYY-MM-DD)
304
305
=head2 dateexpiry
242
=head2 dateexpiry
306
243
307
  data_type: 'date'
244
  data_type: 'date'
308
  datetime_undef_if_invalid: 1
245
  datetime_undef_if_invalid: 1
309
  is_nullable: 1
246
  is_nullable: 1
310
247
311
date the patron/borrower's card is set to expire (YYYY-MM-DD)
312
313
=head2 password_expiration_date
248
=head2 password_expiration_date
314
249
315
  data_type: 'date'
250
  data_type: 'date'
316
  datetime_undef_if_invalid: 1
251
  datetime_undef_if_invalid: 1
317
  is_nullable: 1
252
  is_nullable: 1
318
253
319
date the patron/borrower's password is set to expire (YYYY-MM-DD)
320
321
=head2 date_renewed
254
=head2 date_renewed
322
255
323
  data_type: 'date'
256
  data_type: 'date'
324
  datetime_undef_if_invalid: 1
257
  datetime_undef_if_invalid: 1
325
  is_nullable: 1
258
  is_nullable: 1
326
259
327
date the patron/borrower's card was last renewed
328
329
=head2 gonenoaddress
260
=head2 gonenoaddress
330
261
331
  data_type: 'tinyint'
262
  data_type: 'tinyint'
332
  is_nullable: 1
263
  is_nullable: 1
333
264
334
set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having an unconfirmed address
335
336
=head2 lost
265
=head2 lost
337
266
338
  data_type: 'tinyint'
267
  data_type: 'tinyint'
339
  is_nullable: 1
268
  is_nullable: 1
340
269
341
set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having lost their card
342
343
=head2 debarred
270
=head2 debarred
344
271
345
  data_type: 'date'
272
  data_type: 'date'
346
  datetime_undef_if_invalid: 1
273
  datetime_undef_if_invalid: 1
347
  is_nullable: 1
274
  is_nullable: 1
348
275
349
until this date the patron can only check-in (no loans, no holds, etc.), is a fine based on days instead of money (YYYY-MM-DD)
350
351
=head2 debarredcomment
276
=head2 debarredcomment
352
277
353
  data_type: 'varchar'
278
  data_type: 'varchar'
354
  is_nullable: 1
279
  is_nullable: 1
355
  size: 255
280
  size: 255
356
281
357
comment on the stop of the patron
358
359
=head2 contactname
282
=head2 contactname
360
283
361
  data_type: 'longtext'
284
  data_type: 'longtext'
362
  is_nullable: 1
285
  is_nullable: 1
363
286
364
used for children and profesionals to include surname or last name of guarantor or organization name
365
366
=head2 contactfirstname
287
=head2 contactfirstname
367
288
368
  data_type: 'mediumtext'
289
  data_type: 'mediumtext'
369
  is_nullable: 1
290
  is_nullable: 1
370
291
371
used for children to include first name of guarantor
372
373
=head2 contacttitle
292
=head2 contacttitle
374
293
375
  data_type: 'mediumtext'
294
  data_type: 'mediumtext'
376
  is_nullable: 1
295
  is_nullable: 1
377
296
378
used for children to include title (Mr., Mrs., etc) of guarantor
379
380
=head2 borrowernotes
297
=head2 borrowernotes
381
298
382
  data_type: 'longtext'
299
  data_type: 'longtext'
383
  is_nullable: 1
300
  is_nullable: 1
384
301
385
a note on the patron/borrower's account that is only visible in the staff interface
386
387
=head2 relationship
302
=head2 relationship
388
303
389
  data_type: 'varchar'
304
  data_type: 'varchar'
390
  is_nullable: 1
305
  is_nullable: 1
391
  size: 100
306
  size: 100
392
307
393
used for children to include the relationship to their guarantor
394
395
=head2 sex
308
=head2 sex
396
309
397
  data_type: 'varchar'
310
  data_type: 'varchar'
398
  is_nullable: 1
311
  is_nullable: 1
399
  size: 1
312
  size: 1
400
313
401
patron/borrower's gender
402
403
=head2 password
314
=head2 password
404
315
405
  data_type: 'varchar'
316
  data_type: 'varchar'
406
  is_nullable: 1
317
  is_nullable: 1
407
  size: 60
318
  size: 60
408
319
409
patron/borrower's Bcrypt encrypted password
410
411
=head2 secret
320
=head2 secret
412
321
413
  data_type: 'mediumtext'
322
  data_type: 'mediumtext'
Lines 437-578 will include a number associated with the staff member's permissions Link Here
437
  is_nullable: 1
346
  is_nullable: 1
438
  size: 75
347
  size: 75
439
348
440
patron/borrower's opac and/or staff interface log in
441
442
=head2 opacnote
349
=head2 opacnote
443
350
444
  data_type: 'longtext'
351
  data_type: 'longtext'
445
  is_nullable: 1
352
  is_nullable: 1
446
353
447
a note on the patron/borrower's account that is visible in the OPAC and staff interface
448
449
=head2 contactnote
354
=head2 contactnote
450
355
451
  data_type: 'varchar'
356
  data_type: 'varchar'
452
  is_nullable: 1
357
  is_nullable: 1
453
  size: 255
358
  size: 255
454
359
455
a note related to the patron/borrower's alternate address
456
457
=head2 sort1
360
=head2 sort1
458
361
459
  data_type: 'varchar'
362
  data_type: 'varchar'
460
  is_nullable: 1
363
  is_nullable: 1
461
  size: 80
364
  size: 80
462
365
463
a field that can be used for any information unique to the library
464
465
=head2 sort2
366
=head2 sort2
466
367
467
  data_type: 'varchar'
368
  data_type: 'varchar'
468
  is_nullable: 1
369
  is_nullable: 1
469
  size: 80
370
  size: 80
470
371
471
a field that can be used for any information unique to the library
472
473
=head2 altcontactfirstname
372
=head2 altcontactfirstname
474
373
475
  data_type: 'mediumtext'
374
  data_type: 'mediumtext'
476
  is_nullable: 1
375
  is_nullable: 1
477
376
478
first name of alternate contact for the patron/borrower
479
480
=head2 altcontactsurname
377
=head2 altcontactsurname
481
378
482
  data_type: 'mediumtext'
379
  data_type: 'mediumtext'
483
  is_nullable: 1
380
  is_nullable: 1
484
381
485
surname or last name of the alternate contact for the patron/borrower
486
487
=head2 altcontactaddress1
382
=head2 altcontactaddress1
488
383
489
  data_type: 'mediumtext'
384
  data_type: 'mediumtext'
490
  is_nullable: 1
385
  is_nullable: 1
491
386
492
the first address line for the alternate contact for the patron/borrower
493
494
=head2 altcontactaddress2
387
=head2 altcontactaddress2
495
388
496
  data_type: 'mediumtext'
389
  data_type: 'mediumtext'
497
  is_nullable: 1
390
  is_nullable: 1
498
391
499
the second address line for the alternate contact for the patron/borrower
500
501
=head2 altcontactaddress3
392
=head2 altcontactaddress3
502
393
503
  data_type: 'mediumtext'
394
  data_type: 'mediumtext'
504
  is_nullable: 1
395
  is_nullable: 1
505
396
506
the city for the alternate contact for the patron/borrower
507
508
=head2 altcontactstate
397
=head2 altcontactstate
509
398
510
  data_type: 'mediumtext'
399
  data_type: 'mediumtext'
511
  is_nullable: 1
400
  is_nullable: 1
512
401
513
the state for the alternate contact for the patron/borrower
514
515
=head2 altcontactzipcode
402
=head2 altcontactzipcode
516
403
517
  data_type: 'mediumtext'
404
  data_type: 'mediumtext'
518
  is_nullable: 1
405
  is_nullable: 1
519
406
520
the zipcode for the alternate contact for the patron/borrower
521
522
=head2 altcontactcountry
407
=head2 altcontactcountry
523
408
524
  data_type: 'mediumtext'
409
  data_type: 'mediumtext'
525
  is_nullable: 1
410
  is_nullable: 1
526
411
527
the country for the alternate contact for the patron/borrower
528
529
=head2 altcontactphone
412
=head2 altcontactphone
530
413
531
  data_type: 'mediumtext'
414
  data_type: 'mediumtext'
532
  is_nullable: 1
415
  is_nullable: 1
533
416
534
the phone number for the alternate contact for the patron/borrower
535
536
=head2 smsalertnumber
417
=head2 smsalertnumber
537
418
538
  data_type: 'varchar'
419
  data_type: 'varchar'
539
  is_nullable: 1
420
  is_nullable: 1
540
  size: 50
421
  size: 50
541
422
542
the mobile phone number where the patron/borrower would like to receive notices (if SMS turned on)
543
544
=head2 sms_provider_id
423
=head2 sms_provider_id
545
424
546
  data_type: 'integer'
425
  data_type: 'integer'
547
  is_foreign_key: 1
426
  is_foreign_key: 1
548
  is_nullable: 1
427
  is_nullable: 1
549
428
550
the provider of the mobile phone number defined in smsalertnumber
551
552
=head2 privacy
429
=head2 privacy
553
430
554
  data_type: 'integer'
431
  data_type: 'integer'
555
  default_value: 1
432
  default_value: 1
556
  is_nullable: 0
433
  is_nullable: 0
557
434
558
patron/borrower's privacy settings related to their checkout history
559
560
=head2 privacy_guarantor_fines
435
=head2 privacy_guarantor_fines
561
436
562
  data_type: 'tinyint'
437
  data_type: 'tinyint'
563
  default_value: 0
438
  default_value: 0
564
  is_nullable: 0
439
  is_nullable: 0
565
440
566
controls if relatives can see this patron's fines
567
568
=head2 privacy_guarantor_checkouts
441
=head2 privacy_guarantor_checkouts
569
442
570
  data_type: 'tinyint'
443
  data_type: 'tinyint'
571
  default_value: 0
444
  default_value: 0
572
  is_nullable: 0
445
  is_nullable: 0
573
446
574
controls if relatives can see this patron's checkouts
575
576
=head2 checkprevcheckout
447
=head2 checkprevcheckout
577
448
578
  data_type: 'varchar'
449
  data_type: 'varchar'
Lines 580-587 controls if relatives can see this patron's checkouts Link Here
580
  is_nullable: 0
451
  is_nullable: 0
581
  size: 7
452
  size: 7
582
453
583
produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'.
584
585
=head2 updated_on
454
=head2 updated_on
586
455
587
  data_type: 'timestamp'
456
  data_type: 'timestamp'
Lines 597-604 time of last change could be useful for synchronization with external systems (a Link Here
597
  datetime_undef_if_invalid: 1
466
  datetime_undef_if_invalid: 1
598
  is_nullable: 1
467
  is_nullable: 1
599
468
600
last time a patron has been seen (connected at the OPAC or staff interface)
601
602
=head2 lang
469
=head2 lang
603
470
604
  data_type: 'varchar'
471
  data_type: 'varchar'
Lines 606-652 last time a patron has been seen (connected at the OPAC or staff interface) Link Here
606
  is_nullable: 0
473
  is_nullable: 0
607
  size: 25
474
  size: 25
608
475
609
lang to use to send notices to this patron
610
611
=head2 login_attempts
476
=head2 login_attempts
612
477
613
  data_type: 'integer'
478
  data_type: 'integer'
614
  default_value: 0
479
  default_value: 0
615
  is_nullable: 0
480
  is_nullable: 0
616
481
617
number of failed login attemps
618
619
=head2 overdrive_auth_token
482
=head2 overdrive_auth_token
620
483
621
  data_type: 'mediumtext'
484
  data_type: 'mediumtext'
622
  is_nullable: 1
485
  is_nullable: 1
623
486
624
persist OverDrive auth token
625
626
=head2 anonymized
487
=head2 anonymized
627
488
628
  data_type: 'tinyint'
489
  data_type: 'tinyint'
629
  default_value: 0
490
  default_value: 0
630
  is_nullable: 0
491
  is_nullable: 0
631
492
632
flag for data anonymization
633
634
=head2 autorenew_checkouts
493
=head2 autorenew_checkouts
635
494
636
  data_type: 'tinyint'
495
  data_type: 'tinyint'
637
  default_value: 1
496
  default_value: 1
638
  is_nullable: 0
497
  is_nullable: 0
639
498
640
flag for allowing auto-renewal
641
642
=head2 primary_contact_method
499
=head2 primary_contact_method
643
500
644
  data_type: 'varchar'
501
  data_type: 'varchar'
645
  is_nullable: 1
502
  is_nullable: 1
646
  size: 45
503
  size: 45
647
504
648
useful for reporting purposes
649
650
=head2 protected
505
=head2 protected
651
506
652
  data_type: 'tinyint'
507
  data_type: 'tinyint'
Lines 666-671 __PACKAGE__->add_columns( Link Here
666
  { data_type => "longtext", is_nullable => 1 },
521
  { data_type => "longtext", is_nullable => 1 },
667
  "firstname",
522
  "firstname",
668
  { data_type => "mediumtext", is_nullable => 1 },
523
  { data_type => "mediumtext", is_nullable => 1 },
524
  "preferred_name",
525
  { data_type => "longtext", is_nullable => 1 },
669
  "middle_name",
526
  "middle_name",
670
  { data_type => "longtext", is_nullable => 1 },
527
  { data_type => "longtext", is_nullable => 1 },
671
  "title",
528
  "title",
Lines 2188-2195 Composing rels: L</user_permissions> -> permission Link Here
2188
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2045
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2189
2046
2190
2047
2191
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-02 11:36:36
2048
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
2192
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jUOMoSonNmA3KwtZKVxqOA
2049
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4jqUuLydPvfX65PL7oC3wA
2193
2050
2194
__PACKAGE__->has_many(
2051
__PACKAGE__->has_many(
2195
  "restrictions",
2052
  "restrictions",
(-)a/Koha/Schema/Result/BorrowerAttribute.pm (-8 / +2 lines)
Lines 29-44 __PACKAGE__->table("borrower_attributes"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
Row id field
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key from the borrowers table, defines which patron/borrower has this attribute
41
42
=head2 code
38
=head2 code
43
39
44
  data_type: 'varchar'
40
  data_type: 'varchar'
Lines 54-61 foreign key from the borrower_attribute_types table, defines which custom field Link Here
54
  is_nullable: 1
50
  is_nullable: 1
55
  size: 255
51
  size: 255
56
52
57
custom patron field value
58
59
=cut
53
=cut
60
54
61
__PACKAGE__->add_columns(
55
__PACKAGE__->add_columns(
Lines 114-121 __PACKAGE__->belongs_to( Link Here
114
);
108
);
115
109
116
110
117
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56
111
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
118
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TBNaH57NxoyhytT5cXD/WQ
112
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8H2GvgjmqxvdqHHU5TLTFg
119
113
120
=head2 borrower_attribute_types
114
=head2 borrower_attribute_types
121
115
(-)a/Koha/Schema/Result/BorrowerAttributeType.pm (-46 / +30 lines)
Lines 37-92 unique key used to identify each custom field Link Here
37
  is_nullable: 0
37
  is_nullable: 0
38
  size: 255
38
  size: 255
39
39
40
description for each custom field
41
42
=head2 repeatable
40
=head2 repeatable
43
41
44
  data_type: 'tinyint'
42
  data_type: 'tinyint'
45
  default_value: 0
43
  default_value: 0
46
  is_nullable: 0
44
  is_nullable: 0
47
45
48
defines whether one patron/borrower can have multiple values for this custom field  (1 for yes, 0 for no)
49
50
=head2 unique_id
46
=head2 unique_id
51
47
52
  data_type: 'tinyint'
48
  data_type: 'tinyint'
53
  default_value: 0
49
  default_value: 0
54
  is_nullable: 0
50
  is_nullable: 0
55
51
56
defines if this value needs to be unique (1 for yes, 0 for no)
57
58
=head2 is_date
52
=head2 is_date
59
53
60
  data_type: 'tinyint'
54
  data_type: 'tinyint'
61
  default_value: 0
55
  default_value: 0
62
  is_nullable: 0
56
  is_nullable: 0
63
57
64
defines if this field is displayed as a date
65
66
=head2 opac_display
58
=head2 opac_display
67
59
68
  data_type: 'tinyint'
60
  data_type: 'tinyint'
69
  default_value: 0
61
  default_value: 0
70
  is_nullable: 0
62
  is_nullable: 0
71
63
72
defines if this field is visible to patrons on their account in the OPAC (1 for yes, 0 for no)
73
74
=head2 opac_editable
64
=head2 opac_editable
75
65
76
  data_type: 'tinyint'
66
  data_type: 'tinyint'
77
  default_value: 0
67
  default_value: 0
78
  is_nullable: 0
68
  is_nullable: 0
79
69
80
defines if this field is editable by patrons on their account in the OPAC (1 for yes, 0 for no)
81
82
=head2 staff_searchable
70
=head2 staff_searchable
83
71
84
  data_type: 'tinyint'
72
  data_type: 'tinyint'
85
  default_value: 0
73
  default_value: 0
86
  is_nullable: 0
74
  is_nullable: 0
87
75
88
defines if this field is searchable via the patron search in the staff interface (1 for yes, 0 for no)
89
90
=head2 searched_by_default
76
=head2 searched_by_default
91
77
92
  data_type: 'tinyint'
78
  data_type: 'tinyint'
Lines 101-120 defines if this field is included in "Standard" patron searches in the staff int Link Here
101
  is_nullable: 1
87
  is_nullable: 1
102
  size: 32
88
  size: 32
103
89
104
foreign key from authorised_values that links this custom field to an authorized value category
105
106
=head2 display_checkout
90
=head2 display_checkout
107
91
108
  data_type: 'tinyint'
92
  data_type: 'tinyint'
109
  default_value: 0
93
  default_value: 0
110
  is_nullable: 0
94
  is_nullable: 0
111
95
112
defines if this field displays in checkout screens
113
114
=head2 category_code
96
=head2 category_code
115
97
116
  data_type: 'varchar'
98
  data_type: 'varchar'
117
  is_foreign_key: 1
118
  is_nullable: 1
99
  is_nullable: 1
119
  size: 10
100
  size: 10
120
101
Lines 127-150 defines a category for an attribute_type Link Here
127
  is_nullable: 0
108
  is_nullable: 0
128
  size: 255
109
  size: 255
129
110
130
defines a class for an attribute_type
131
132
=head2 keep_for_pseudonymization
111
=head2 keep_for_pseudonymization
133
112
134
  data_type: 'tinyint'
113
  data_type: 'tinyint'
135
  default_value: 0
114
  default_value: 0
136
  is_nullable: 0
115
  is_nullable: 0
137
116
138
defines if this field is copied to anonymized_borrower_attributes (1 for yes, 0 for no)
139
140
=head2 mandatory
117
=head2 mandatory
141
118
142
  data_type: 'tinyint'
119
  data_type: 'tinyint'
143
  default_value: 0
120
  default_value: 0
144
  is_nullable: 0
121
  is_nullable: 0
145
122
146
defines if the attribute is mandatory or not
147
148
=cut
123
=cut
149
124
150
__PACKAGE__->add_columns(
125
__PACKAGE__->add_columns(
Lines 171-177 __PACKAGE__->add_columns( Link Here
171
  "display_checkout",
146
  "display_checkout",
172
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
147
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
173
  "category_code",
148
  "category_code",
174
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
149
  { data_type => "varchar", is_nullable => 1, size => 10 },
175
  "class",
150
  "class",
176
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
151
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
177
  "keep_for_pseudonymization",
152
  "keep_for_pseudonymization",
Lines 209-247 __PACKAGE__->has_many( Link Here
209
  { cascade_copy => 0, cascade_delete => 0 },
184
  { cascade_copy => 0, cascade_delete => 0 },
210
);
185
);
211
186
212
=head2 borrower_attributes
187
=head2 borrower_attribute_types_categories
213
188
214
Type: has_many
189
Type: has_many
215
190
216
Related object: L<Koha::Schema::Result::BorrowerAttribute>
191
Related object: L<Koha::Schema::Result::BorrowerAttributeTypesCategory>
217
192
218
=cut
193
=cut
219
194
220
__PACKAGE__->has_many(
195
__PACKAGE__->has_many(
221
  "borrower_attributes",
196
  "borrower_attribute_types_categories",
222
  "Koha::Schema::Result::BorrowerAttribute",
197
  "Koha::Schema::Result::BorrowerAttributeTypesCategory",
223
  { "foreign.code" => "self.code" },
198
  { "foreign.borrower_attribute_type_code" => "self.code" },
224
  { cascade_copy => 0, cascade_delete => 0 },
199
  { cascade_copy => 0, cascade_delete => 0 },
225
);
200
);
226
201
227
=head2 category_code
202
=head2 borrower_attributes
228
203
229
Type: belongs_to
204
Type: has_many
230
205
231
Related object: L<Koha::Schema::Result::Category>
206
Related object: L<Koha::Schema::Result::BorrowerAttribute>
232
207
233
=cut
208
=cut
234
209
235
__PACKAGE__->belongs_to(
210
__PACKAGE__->has_many(
236
  "category_code",
211
  "borrower_attributes",
237
  "Koha::Schema::Result::Category",
212
  "Koha::Schema::Result::BorrowerAttribute",
238
  { categorycode => "category_code" },
213
  { "foreign.code" => "self.code" },
239
  {
214
  { cascade_copy => 0, cascade_delete => 0 },
240
    is_deferrable => 1,
241
    join_type     => "LEFT",
242
    on_delete     => "RESTRICT",
243
    on_update     => "RESTRICT",
244
  },
245
);
215
);
246
216
247
=head2 pseudonymized_borrower_attributes
217
=head2 pseudonymized_borrower_attributes
Lines 259-267 __PACKAGE__->has_many( Link Here
259
  { cascade_copy => 0, cascade_delete => 0 },
229
  { cascade_copy => 0, cascade_delete => 0 },
260
);
230
);
261
231
232
=head2 categorycodes
233
234
Type: many_to_many
235
236
Composing rels: L</borrower_attribute_types_categories> -> categorycode
237
238
=cut
239
240
__PACKAGE__->many_to_many(
241
  "categorycodes",
242
  "borrower_attribute_types_categories",
243
  "categorycode",
244
);
245
262
246
263
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56
247
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
264
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZmiiXHqRGV2SDb4IgSPvJQ
248
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nFJm8Bi3C6xdsvJqG9LaCA
265
249
266
__PACKAGE__->add_columns(
250
__PACKAGE__->add_columns(
267
    '+keep_for_pseudonymization' => { is_boolean => 1 },
251
    '+keep_for_pseudonymization' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/BorrowerDebarment.pm (-18 / +2 lines)
Lines 29-52 __PACKAGE__->table("borrower_debarments"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique key for the restriction
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key for borrowers.borrowernumber for patron who is restricted
41
42
=head2 expiration
38
=head2 expiration
43
39
44
  data_type: 'date'
40
  data_type: 'date'
45
  datetime_undef_if_invalid: 1
41
  datetime_undef_if_invalid: 1
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
expiration date of the restriction
49
50
=head2 type
44
=head2 type
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
Lines 54-75 expiration date of the restriction Link Here
54
  is_nullable: 0
48
  is_nullable: 0
55
  size: 50
49
  size: 50
56
50
57
type of restriction, FK to restriction_types.code
58
59
=head2 comment
51
=head2 comment
60
52
61
  data_type: 'mediumtext'
53
  data_type: 'mediumtext'
62
  is_nullable: 1
54
  is_nullable: 1
63
55
64
comments about the restriction
65
66
=head2 manager_id
56
=head2 manager_id
67
57
68
  data_type: 'integer'
58
  data_type: 'integer'
69
  is_nullable: 1
59
  is_nullable: 1
70
60
71
foreign key for borrowers.borrowernumber for the librarian managing the restriction
72
73
=head2 created
61
=head2 created
74
62
75
  data_type: 'timestamp'
63
  data_type: 'timestamp'
Lines 77-92 foreign key for borrowers.borrowernumber for the librarian managing the restrict Link Here
77
  default_value: current_timestamp
65
  default_value: current_timestamp
78
  is_nullable: 0
66
  is_nullable: 0
79
67
80
date the restriction was added
81
82
=head2 updated
68
=head2 updated
83
69
84
  data_type: 'timestamp'
70
  data_type: 'timestamp'
85
  datetime_undef_if_invalid: 1
71
  datetime_undef_if_invalid: 1
86
  is_nullable: 1
72
  is_nullable: 1
87
73
88
date the restriction was updated
89
90
=cut
74
=cut
91
75
92
__PACKAGE__->add_columns(
76
__PACKAGE__->add_columns(
Lines 162-169 __PACKAGE__->belongs_to( Link Here
162
);
146
);
163
147
164
148
165
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-19 17:53:04
149
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kDCkA7XrjKXlrFG5lk8Lgg
150
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AzL+ri/7OrtFxwiuEkpqFQ
167
151
168
sub koha_objects_class {
152
sub koha_objects_class {
169
    'Koha::Patron::Restrictions';
153
    'Koha::Patron::Restrictions';
(-)a/Koha/Schema/Result/BorrowerFile.pm (-16 / +2 lines)
Lines 29-75 __PACKAGE__->table("borrower_files"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique key
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key linking to the patron via the borrowernumber
41
42
=head2 file_name
38
=head2 file_name
43
39
44
  data_type: 'varchar'
40
  data_type: 'varchar'
45
  is_nullable: 0
41
  is_nullable: 0
46
  size: 255
42
  size: 255
47
43
48
file name
49
50
=head2 file_type
44
=head2 file_type
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 0
47
  is_nullable: 0
54
  size: 255
48
  size: 255
55
49
56
type of file
57
58
=head2 file_description
50
=head2 file_description
59
51
60
  data_type: 'varchar'
52
  data_type: 'varchar'
61
  is_nullable: 1
53
  is_nullable: 1
62
  size: 255
54
  size: 255
63
55
64
description given to the file
65
66
=head2 file_content
56
=head2 file_content
67
57
68
  data_type: 'longblob'
58
  data_type: 'longblob'
69
  is_nullable: 0
59
  is_nullable: 0
70
60
71
the file
72
73
=head2 date_uploaded
61
=head2 date_uploaded
74
62
75
  data_type: 'timestamp'
63
  data_type: 'timestamp'
Lines 77-84 the file Link Here
77
  default_value: current_timestamp
65
  default_value: current_timestamp
78
  is_nullable: 0
66
  is_nullable: 0
79
67
80
date and time the file was added
81
82
=cut
68
=cut
83
69
84
__PACKAGE__->add_columns(
70
__PACKAGE__->add_columns(
Lines 133-140 __PACKAGE__->belongs_to( Link Here
133
);
119
);
134
120
135
121
136
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
122
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
137
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fWpDdEeF4RHkIiD71sGvsQ
123
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:L2mSnSmc1tTxkGB5ia1mJQ
138
124
139
125
140
# You can replace this text with custom content, and it will be preserved on regeneration
126
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BorrowerModification.pm (-6 / +13 lines)
Lines 64-69 __PACKAGE__->table("borrower_modifications"); Link Here
64
  data_type: 'mediumtext'
64
  data_type: 'mediumtext'
65
  is_nullable: 1
65
  is_nullable: 1
66
66
67
=head2 preferred_name
68
69
  data_type: 'longtext'
70
  is_nullable: 1
71
72
patron/borrower's preferred name
73
67
=head2 middle_name
74
=head2 middle_name
68
75
69
  data_type: 'longtext'
76
  data_type: 'longtext'
Lines 91-96 patron/borrower's middle name Link Here
91
  data_type: 'longtext'
98
  data_type: 'longtext'
92
  is_nullable: 1
99
  is_nullable: 1
93
100
101
patron/borrower's pronouns
102
94
=head2 streetnumber
103
=head2 streetnumber
95
104
96
  data_type: 'varchar'
105
  data_type: 'varchar'
Lines 433-448 patron/borrower's middle name Link Here
433
  datetime_undef_if_invalid: 1
442
  datetime_undef_if_invalid: 1
434
  is_nullable: 1
443
  is_nullable: 1
435
444
436
data processing consent
437
438
=head2 primary_contact_method
445
=head2 primary_contact_method
439
446
440
  data_type: 'varchar'
447
  data_type: 'varchar'
441
  is_nullable: 1
448
  is_nullable: 1
442
  size: 45
449
  size: 45
443
450
444
useful for reporting purposes
445
446
=head2 lang
451
=head2 lang
447
452
448
  data_type: 'varchar'
453
  data_type: 'varchar'
Lines 471-476 __PACKAGE__->add_columns( Link Here
471
  { data_type => "longtext", is_nullable => 1 },
476
  { data_type => "longtext", is_nullable => 1 },
472
  "firstname",
477
  "firstname",
473
  { data_type => "mediumtext", is_nullable => 1 },
478
  { data_type => "mediumtext", is_nullable => 1 },
479
  "preferred_name",
480
  { data_type => "longtext", is_nullable => 1 },
474
  "middle_name",
481
  "middle_name",
475
  { data_type => "longtext", is_nullable => 1 },
482
  { data_type => "longtext", is_nullable => 1 },
476
  "title",
483
  "title",
Lines 646-653 __PACKAGE__->add_columns( Link Here
646
__PACKAGE__->set_primary_key("verification_token", "borrowernumber");
653
__PACKAGE__->set_primary_key("verification_token", "borrowernumber");
647
654
648
655
649
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-08 13:26:34
656
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
650
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pgmClJsT12pxLZHRYrRY9g
657
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dF2+w/IDra9VOgqWW09Jzw
651
658
652
sub koha_object_class {
659
sub koha_object_class {
653
    'Koha::Patron::Modification';
660
    'Koha::Patron::Modification';
(-)a/Koha/Schema/Result/BorrowerPasswordRecovery.pm (-8 / +2 lines)
Lines 28-43 __PACKAGE__->table("borrower_password_recovery"); Link Here
28
  data_type: 'integer'
28
  data_type: 'integer'
29
  is_nullable: 0
29
  is_nullable: 0
30
30
31
the user asking a password recovery
32
33
=head2 uuid
31
=head2 uuid
34
32
35
  data_type: 'varchar'
33
  data_type: 'varchar'
36
  is_nullable: 0
34
  is_nullable: 0
37
  size: 128
35
  size: 128
38
36
39
a unique string to identify a password recovery attempt
40
41
=head2 valid_until
37
=head2 valid_until
42
38
43
  data_type: 'timestamp'
39
  data_type: 'timestamp'
Lines 45-52 a unique string to identify a password recovery attempt Link Here
45
  default_value: current_timestamp
41
  default_value: current_timestamp
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
a time limit on the password recovery attempt
49
50
=cut
44
=cut
51
45
52
__PACKAGE__->add_columns(
46
__PACKAGE__->add_columns(
Lines 76-83 __PACKAGE__->add_columns( Link Here
76
__PACKAGE__->set_primary_key("borrowernumber");
70
__PACKAGE__->set_primary_key("borrowernumber");
77
71
78
72
79
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
73
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
80
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hEkX4lXahD+yz2VEb+JP1A
74
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZFiLBGd0N11JjTF2Up3vxg
81
75
82
76
83
# You can replace this text with custom code or comments, and it will be preserved on regeneration
77
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Branch.pm (-48 / +2 lines)
Lines 30-197 __PACKAGE__->table("branches"); Link Here
30
  is_nullable: 0
30
  is_nullable: 0
31
  size: 10
31
  size: 10
32
32
33
a unique key assigned to each branch
34
35
=head2 branchname
33
=head2 branchname
36
34
37
  data_type: 'longtext'
35
  data_type: 'longtext'
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
the name of your library or branch
41
42
=head2 branchaddress1
38
=head2 branchaddress1
43
39
44
  data_type: 'longtext'
40
  data_type: 'longtext'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
the first address line of for your library or branch
48
49
=head2 branchaddress2
43
=head2 branchaddress2
50
44
51
  data_type: 'longtext'
45
  data_type: 'longtext'
52
  is_nullable: 1
46
  is_nullable: 1
53
47
54
the second address line of for your library or branch
55
56
=head2 branchaddress3
48
=head2 branchaddress3
57
49
58
  data_type: 'longtext'
50
  data_type: 'longtext'
59
  is_nullable: 1
51
  is_nullable: 1
60
52
61
the third address line of for your library or branch
62
63
=head2 branchzip
53
=head2 branchzip
64
54
65
  data_type: 'varchar'
55
  data_type: 'varchar'
66
  is_nullable: 1
56
  is_nullable: 1
67
  size: 25
57
  size: 25
68
58
69
the zip or postal code for your library or branch
70
71
=head2 branchcity
59
=head2 branchcity
72
60
73
  data_type: 'longtext'
61
  data_type: 'longtext'
74
  is_nullable: 1
62
  is_nullable: 1
75
63
76
the city or province for your library or branch
77
78
=head2 branchstate
64
=head2 branchstate
79
65
80
  data_type: 'longtext'
66
  data_type: 'longtext'
81
  is_nullable: 1
67
  is_nullable: 1
82
68
83
the state for your library or branch
84
85
=head2 branchcountry
69
=head2 branchcountry
86
70
87
  data_type: 'mediumtext'
71
  data_type: 'mediumtext'
88
  is_nullable: 1
72
  is_nullable: 1
89
73
90
the county for your library or branch
91
92
=head2 branchphone
74
=head2 branchphone
93
75
94
  data_type: 'longtext'
76
  data_type: 'longtext'
95
  is_nullable: 1
77
  is_nullable: 1
96
78
97
the primary phone for your library or branch
98
99
=head2 branchfax
79
=head2 branchfax
100
80
101
  data_type: 'longtext'
81
  data_type: 'longtext'
102
  is_nullable: 1
82
  is_nullable: 1
103
83
104
the fax number for your library or branch
105
106
=head2 branchemail
84
=head2 branchemail
107
85
108
  data_type: 'longtext'
86
  data_type: 'longtext'
109
  is_nullable: 1
87
  is_nullable: 1
110
88
111
the primary email address for your library or branch
112
113
=head2 branchillemail
89
=head2 branchillemail
114
90
115
  data_type: 'longtext'
91
  data_type: 'longtext'
116
  is_nullable: 1
92
  is_nullable: 1
117
93
118
the ILL staff email address for your library or branch
119
120
=head2 branchreplyto
94
=head2 branchreplyto
121
95
122
  data_type: 'longtext'
96
  data_type: 'longtext'
123
  is_nullable: 1
97
  is_nullable: 1
124
98
125
the email to be used as a Reply-To
126
127
=head2 branchreturnpath
99
=head2 branchreturnpath
128
100
129
  data_type: 'longtext'
101
  data_type: 'longtext'
130
  is_nullable: 1
102
  is_nullable: 1
131
103
132
the email to be used as Return-Path
133
134
=head2 branchurl
104
=head2 branchurl
135
105
136
  data_type: 'longtext'
106
  data_type: 'longtext'
137
  is_nullable: 1
107
  is_nullable: 1
138
108
139
the URL for your library or branch's website
140
141
=head2 issuing
109
=head2 issuing
142
110
143
  data_type: 'tinyint'
111
  data_type: 'tinyint'
144
  is_nullable: 1
112
  is_nullable: 1
145
113
146
unused in Koha
147
148
=head2 branchip
114
=head2 branchip
149
115
150
  data_type: 'varchar'
116
  data_type: 'varchar'
151
  is_nullable: 1
117
  is_nullable: 1
152
  size: 15
118
  size: 15
153
119
154
the IP address for your library or branch
155
156
=head2 branchnotes
120
=head2 branchnotes
157
121
158
  data_type: 'longtext'
122
  data_type: 'longtext'
159
  is_nullable: 1
123
  is_nullable: 1
160
124
161
notes related to your library or branch
162
163
=head2 geolocation
125
=head2 geolocation
164
126
165
  data_type: 'varchar'
127
  data_type: 'varchar'
166
  is_nullable: 1
128
  is_nullable: 1
167
  size: 255
129
  size: 255
168
130
169
geolocation of your library
170
171
=head2 marcorgcode
131
=head2 marcorgcode
172
132
173
  data_type: 'varchar'
133
  data_type: 'varchar'
174
  is_nullable: 1
134
  is_nullable: 1
175
  size: 16
135
  size: 16
176
136
177
MARC Organization Code, see http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults to syspref MARCOrgCode
178
179
=head2 pickup_location
137
=head2 pickup_location
180
138
181
  data_type: 'tinyint'
139
  data_type: 'tinyint'
182
  default_value: 1
140
  default_value: 1
183
  is_nullable: 0
141
  is_nullable: 0
184
142
185
the ability to act as a pickup location
186
187
=head2 public
143
=head2 public
188
144
189
  data_type: 'tinyint'
145
  data_type: 'tinyint'
190
  default_value: 1
146
  default_value: 1
191
  is_nullable: 0
147
  is_nullable: 0
192
148
193
whether this library should show in the opac
194
195
=head2 opacuserjs
149
=head2 opacuserjs
196
150
197
  data_type: 'longtext'
151
  data_type: 'longtext'
Lines 996-1003 __PACKAGE__->has_many( Link Here
996
);
950
);
997
951
998
952
999
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-03 13:13:25
953
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
1000
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiH1QNlDqKcq9GeM85Pu0A
954
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uPEqYhJHemEHpZZOv0Z3ww
1001
955
1002
__PACKAGE__->add_columns(
956
__PACKAGE__->add_columns(
1003
    '+pickup_location' => { is_boolean => 1 },
957
    '+pickup_location' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Branchtransfer.pm (-20 / +2 lines)
Lines 29-36 __PACKAGE__->table("branchtransfers"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key
33
34
=head2 itemnumber
32
=head2 itemnumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
Lines 38-45 primary key Link Here
38
  is_foreign_key: 1
36
  is_foreign_key: 1
39
  is_nullable: 0
37
  is_nullable: 0
40
38
41
the itemnumber that it is in transit (items.itemnumber)
42
43
=head2 daterequested
39
=head2 daterequested
44
40
45
  data_type: 'timestamp'
41
  data_type: 'timestamp'
Lines 47-62 the itemnumber that it is in transit (items.itemnumber) Link Here
47
  default_value: current_timestamp
43
  default_value: current_timestamp
48
  is_nullable: 0
44
  is_nullable: 0
49
45
50
the date the transfer was requested
51
52
=head2 datesent
46
=head2 datesent
53
47
54
  data_type: 'datetime'
48
  data_type: 'datetime'
55
  datetime_undef_if_invalid: 1
49
  datetime_undef_if_invalid: 1
56
  is_nullable: 1
50
  is_nullable: 1
57
51
58
the date the transfer was initialized
59
60
=head2 frombranch
52
=head2 frombranch
61
53
62
  data_type: 'varchar'
54
  data_type: 'varchar'
Lines 65-88 the date the transfer was initialized Link Here
65
  is_nullable: 0
57
  is_nullable: 0
66
  size: 10
58
  size: 10
67
59
68
the branch the transfer is coming from
69
70
=head2 datearrived
60
=head2 datearrived
71
61
72
  data_type: 'datetime'
62
  data_type: 'datetime'
73
  datetime_undef_if_invalid: 1
63
  datetime_undef_if_invalid: 1
74
  is_nullable: 1
64
  is_nullable: 1
75
65
76
the date the transfer arrived at its destination
77
78
=head2 datecancelled
66
=head2 datecancelled
79
67
80
  data_type: 'datetime'
68
  data_type: 'datetime'
81
  datetime_undef_if_invalid: 1
69
  datetime_undef_if_invalid: 1
82
  is_nullable: 1
70
  is_nullable: 1
83
71
84
the date the transfer was cancelled
85
86
=head2 tobranch
72
=head2 tobranch
87
73
88
  data_type: 'varchar'
74
  data_type: 'varchar'
Lines 91-105 the date the transfer was cancelled Link Here
91
  is_nullable: 0
77
  is_nullable: 0
92
  size: 10
78
  size: 10
93
79
94
the branch the transfer was going to
95
96
=head2 comments
80
=head2 comments
97
81
98
  data_type: 'longtext'
82
  data_type: 'longtext'
99
  is_nullable: 1
83
  is_nullable: 1
100
84
101
any comments related to the transfer
102
103
=head2 reason
85
=head2 reason
104
86
105
  data_type: 'enum'
87
  data_type: 'enum'
Lines 275-282 __PACKAGE__->belongs_to( Link Here
275
);
257
);
276
258
277
259
278
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-03 16:48:17
260
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
279
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BkhtfptiDqKKSv/hmCQy3w
261
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yLYZESmZvW47JfIa9UA4sw
280
262
281
sub koha_object_class {
263
sub koha_object_class {
282
    'Koha::Item::Transfer';
264
    'Koha::Item::Transfer';
(-)a/Koha/Schema/Result/CashRegister.pm (-16 / +2 lines)
Lines 29-51 __PACKAGE__->table("cash_registers"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier for each account register
33
34
=head2 name
32
=head2 name
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 0
35
  is_nullable: 0
38
  size: 24
36
  size: 24
39
37
40
the user friendly identifier for each account register
41
42
=head2 description
38
=head2 description
43
39
44
  data_type: 'longtext'
40
  data_type: 'longtext'
45
  is_nullable: 0
41
  is_nullable: 0
46
42
47
the user friendly description for each account register
48
49
=head2 branch
43
=head2 branch
50
44
51
  data_type: 'varchar'
45
  data_type: 'varchar'
Lines 53-84 the user friendly description for each account register Link Here
53
  is_nullable: 0
47
  is_nullable: 0
54
  size: 10
48
  size: 10
55
49
56
the foreign key the library this account register belongs
57
58
=head2 branch_default
50
=head2 branch_default
59
51
60
  data_type: 'tinyint'
52
  data_type: 'tinyint'
61
  default_value: 0
53
  default_value: 0
62
  is_nullable: 0
54
  is_nullable: 0
63
55
64
boolean flag to denote that this till is the branch default
65
66
=head2 starting_float
56
=head2 starting_float
67
57
68
  data_type: 'decimal'
58
  data_type: 'decimal'
69
  is_nullable: 1
59
  is_nullable: 1
70
  size: [28,6]
60
  size: [28,6]
71
61
72
the starting float this account register should be assigned
73
74
=head2 archived
62
=head2 archived
75
63
76
  data_type: 'tinyint'
64
  data_type: 'tinyint'
77
  default_value: 0
65
  default_value: 0
78
  is_nullable: 0
66
  is_nullable: 0
79
67
80
boolean flag to denote if this till is archived or not
81
82
=cut
68
=cut
83
69
84
__PACKAGE__->add_columns(
70
__PACKAGE__->add_columns(
Lines 174-181 __PACKAGE__->has_many( Link Here
174
);
160
);
175
161
176
162
177
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
163
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
178
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NNSzc20vEH34dmEsTb5K0Q
164
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rrdVRgOYAuRLA2cwjYtmsg
179
165
180
__PACKAGE__->add_columns(
166
__PACKAGE__->add_columns(
181
    '+archived'       => { is_boolean => 1 },
167
    '+archived'       => { is_boolean => 1 },
(-)a/Koha/Schema/Result/CashRegisterAction.pm (-12 / +2 lines)
Lines 29-68 __PACKAGE__->table("cash_register_actions"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier for each account register action
33
34
=head2 code
32
=head2 code
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 0
35
  is_nullable: 0
38
  size: 24
36
  size: 24
39
37
40
action code denoting the type of action recorded (enum),
41
42
=head2 register_id
38
=head2 register_id
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
id of cash_register this action belongs to,
49
50
=head2 manager_id
44
=head2 manager_id
51
45
52
  data_type: 'integer'
46
  data_type: 'integer'
53
  is_foreign_key: 1
47
  is_foreign_key: 1
54
  is_nullable: 0
48
  is_nullable: 0
55
49
56
staff member performing the action
57
58
=head2 amount
50
=head2 amount
59
51
60
  data_type: 'decimal'
52
  data_type: 'decimal'
61
  is_nullable: 1
53
  is_nullable: 1
62
  size: [28,6]
54
  size: [28,6]
63
55
64
amount recorded in action (signed)
65
66
=head2 timestamp
56
=head2 timestamp
67
57
68
  data_type: 'timestamp'
58
  data_type: 'timestamp'
Lines 137-144 __PACKAGE__->belongs_to( Link Here
137
);
127
);
138
128
139
129
140
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
130
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
141
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Fo6979mQEueJrDQw38Bh0w
131
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9Z4ns7whpf04cCNjWLozvQ
142
132
143
sub koha_objects_class {
133
sub koha_objects_class {
144
    'Koha::Cash::Register::Actions';
134
    'Koha::Cash::Register::Actions';
(-)a/Koha/Schema/Result/Category.pm (-50 / +27 lines)
Lines 30-111 __PACKAGE__->table("categories"); Link Here
30
  is_nullable: 0
30
  is_nullable: 0
31
  size: 10
31
  size: 10
32
32
33
unique primary key used to idenfity the patron category
34
35
=head2 description
33
=head2 description
36
34
37
  data_type: 'longtext'
35
  data_type: 'longtext'
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
description of the patron category
41
42
=head2 enrolmentperiod
38
=head2 enrolmentperiod
43
39
44
  data_type: 'smallint'
40
  data_type: 'smallint'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
number of months the patron is enrolled for (will be NULL if enrolmentperioddate is set)
48
49
=head2 enrolmentperioddate
43
=head2 enrolmentperioddate
50
44
51
  data_type: 'date'
45
  data_type: 'date'
52
  datetime_undef_if_invalid: 1
46
  datetime_undef_if_invalid: 1
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
date the patron is enrolled until (will be NULL if enrolmentperiod is set)
56
57
=head2 password_expiry_days
49
=head2 password_expiry_days
58
50
59
  data_type: 'smallint'
51
  data_type: 'smallint'
60
  is_nullable: 1
52
  is_nullable: 1
61
53
62
number of days after which the patron must reset their password
63
64
=head2 upperagelimit
54
=head2 upperagelimit
65
55
66
  data_type: 'smallint'
56
  data_type: 'smallint'
67
  is_nullable: 1
57
  is_nullable: 1
68
58
69
age limit for the patron
70
71
=head2 dateofbirthrequired
59
=head2 dateofbirthrequired
72
60
73
  data_type: 'tinyint'
61
  data_type: 'tinyint'
74
  is_nullable: 1
62
  is_nullable: 1
75
63
76
the minimum age required for the patron category
77
78
=head2 enrolmentfee
64
=head2 enrolmentfee
79
65
80
  data_type: 'decimal'
66
  data_type: 'decimal'
81
  is_nullable: 1
67
  is_nullable: 1
82
  size: [28,6]
68
  size: [28,6]
83
69
84
enrollment fee for the patron
85
86
=head2 overduenoticerequired
70
=head2 overduenoticerequired
87
71
88
  data_type: 'tinyint'
72
  data_type: 'tinyint'
89
  is_nullable: 1
73
  is_nullable: 1
90
74
91
are overdue notices sent to this patron category (1 for yes, 0 for no)
92
93
=head2 reservefee
75
=head2 reservefee
94
76
95
  data_type: 'decimal'
77
  data_type: 'decimal'
96
  is_nullable: 1
78
  is_nullable: 1
97
  size: [28,6]
79
  size: [28,6]
98
80
99
cost to place holds
100
101
=head2 hidelostitems
81
=head2 hidelostitems
102
82
103
  data_type: 'tinyint'
83
  data_type: 'tinyint'
104
  default_value: 0
84
  default_value: 0
105
  is_nullable: 0
85
  is_nullable: 0
106
86
107
are lost items shown to this category (1 for yes, 0 for no)
108
109
=head2 category_type
87
=head2 category_type
110
88
111
  data_type: 'varchar'
89
  data_type: 'varchar'
Lines 113-120 are lost items shown to this category (1 for yes, 0 for no) Link Here
113
  is_nullable: 0
91
  is_nullable: 0
114
  size: 1
92
  size: 1
115
93
116
type of Koha patron (Adult, Child, Professional, Organizational, Statistical, Staff)
117
118
=head2 BlockExpiredPatronOpacActions
94
=head2 BlockExpiredPatronOpacActions
119
95
120
  accessor: 'block_expired_patron_opac_actions'
96
  accessor: 'block_expired_patron_opac_actions'
Lines 132-139 specific actions expired patrons of this category are blocked from performing or Link Here
132
  extra: {list => ["default","never","forever"]}
108
  extra: {list => ["default","never","forever"]}
133
  is_nullable: 0
109
  is_nullable: 0
134
110
135
Default privacy setting for this patron category
136
137
=head2 checkprevcheckout
111
=head2 checkprevcheckout
138
112
139
  data_type: 'varchar'
113
  data_type: 'varchar'
Lines 141-148 Default privacy setting for this patron category Link Here
141
  is_nullable: 0
115
  is_nullable: 0
142
  size: 7
116
  size: 7
143
117
144
produce a warning for this patron category if this item has previously been checked out to this patron if 'yes', not if 'no', defer to syspref setting if 'inherit'.
145
146
=head2 can_place_ill_in_opac
118
=head2 can_place_ill_in_opac
147
119
148
  data_type: 'tinyint'
120
  data_type: 'tinyint'
Lines 164-220 if patrons of this category can be guarantees Link Here
164
  data_type: 'tinyint'
136
  data_type: 'tinyint'
165
  is_nullable: 1
137
  is_nullable: 1
166
138
167
if patrons of this category can do the password reset flow,
168
169
=head2 change_password
139
=head2 change_password
170
140
171
  data_type: 'tinyint'
141
  data_type: 'tinyint'
172
  is_nullable: 1
142
  is_nullable: 1
173
143
174
if patrons of this category can change their passwords in the OAPC
175
176
=head2 min_password_length
144
=head2 min_password_length
177
145
178
  data_type: 'smallint'
146
  data_type: 'smallint'
179
  is_nullable: 1
147
  is_nullable: 1
180
148
181
set minimum password length for patrons in this category
182
183
=head2 require_strong_password
149
=head2 require_strong_password
184
150
185
  data_type: 'tinyint'
151
  data_type: 'tinyint'
186
  is_nullable: 1
152
  is_nullable: 1
187
153
188
set required password strength for patrons in this category
154
=head2 force_password_reset_when_set_by_staff
155
156
  data_type: 'tinyint'
157
  is_nullable: 1
189
158
190
=head2 exclude_from_local_holds_priority
159
=head2 exclude_from_local_holds_priority
191
160
192
  data_type: 'tinyint'
161
  data_type: 'tinyint'
193
  is_nullable: 1
162
  is_nullable: 1
194
163
195
Exclude patrons of this category from local holds priority
196
197
=head2 noissuescharge
164
=head2 noissuescharge
198
165
199
  data_type: 'integer'
166
  data_type: 'integer'
200
  is_nullable: 1
167
  is_nullable: 1
201
168
202
define maximum amount outstanding before checkouts are blocked
203
204
=head2 noissueschargeguarantees
169
=head2 noissueschargeguarantees
205
170
206
  data_type: 'integer'
171
  data_type: 'integer'
207
  is_nullable: 1
172
  is_nullable: 1
208
173
209
define maximum amount that the guarantees of a patron in this category can have outstanding before checkouts are blocked
210
211
=head2 noissueschargeguarantorswithguarantees
174
=head2 noissueschargeguarantorswithguarantees
212
175
213
  data_type: 'integer'
176
  data_type: 'integer'
214
  is_nullable: 1
177
  is_nullable: 1
215
178
216
define maximum amount that the guarantors with guarantees of a patron in this category can have outstanding before checkouts are blocked
217
218
=cut
179
=cut
219
180
220
__PACKAGE__->add_columns(
181
__PACKAGE__->add_columns(
Lines 276-281 __PACKAGE__->add_columns( Link Here
276
  { data_type => "smallint", is_nullable => 1 },
237
  { data_type => "smallint", is_nullable => 1 },
277
  "require_strong_password",
238
  "require_strong_password",
278
  { data_type => "tinyint", is_nullable => 1 },
239
  { data_type => "tinyint", is_nullable => 1 },
240
  "force_password_reset_when_set_by_staff",
241
  { data_type => "tinyint", is_nullable => 1 },
279
  "exclude_from_local_holds_priority",
242
  "exclude_from_local_holds_priority",
280
  { data_type => "tinyint", is_nullable => 1 },
243
  { data_type => "tinyint", is_nullable => 1 },
281
  "noissuescharge",
244
  "noissuescharge",
Lines 300-317 __PACKAGE__->set_primary_key("categorycode"); Link Here
300
263
301
=head1 RELATIONS
264
=head1 RELATIONS
302
265
303
=head2 borrower_attribute_types
266
=head2 borrower_attribute_types_categories
304
267
305
Type: has_many
268
Type: has_many
306
269
307
Related object: L<Koha::Schema::Result::BorrowerAttributeType>
270
Related object: L<Koha::Schema::Result::BorrowerAttributeTypesCategory>
308
271
309
=cut
272
=cut
310
273
311
__PACKAGE__->has_many(
274
__PACKAGE__->has_many(
312
  "borrower_attribute_types",
275
  "borrower_attribute_types_categories",
313
  "Koha::Schema::Result::BorrowerAttributeType",
276
  "Koha::Schema::Result::BorrowerAttributeTypesCategory",
314
  { "foreign.category_code" => "self.categorycode" },
277
  { "foreign.categorycode" => "self.categorycode" },
315
  { cascade_copy => 0, cascade_delete => 0 },
278
  { cascade_copy => 0, cascade_delete => 0 },
316
);
279
);
317
280
Lines 390-398 __PACKAGE__->has_many( Link Here
390
  { cascade_copy => 0, cascade_delete => 0 },
353
  { cascade_copy => 0, cascade_delete => 0 },
391
);
354
);
392
355
356
=head2 borrower_attribute_type_codes
357
358
Type: many_to_many
359
360
Composing rels: L</borrower_attribute_types_categories> -> borrower_attribute_type_code
361
362
=cut
363
364
__PACKAGE__->many_to_many(
365
  "borrower_attribute_type_codes",
366
  "borrower_attribute_types_categories",
367
  "borrower_attribute_type_code",
368
);
369
393
370
394
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-19 12:29:41
371
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
395
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WC8+n0x/UB9kDO1ZAVTo/A
372
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:P1wpV4Q/NsFQup4HKLpmfA
396
373
397
374
398
# You can replace this text with custom code or comments, and it will be preserved on regeneration
375
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CheckoutRenewal.pm (-4 / +2 lines)
Lines 76-83 the date and time the renewal took place Link Here
76
  extra: {list => ["Automatic","Manual"]}
76
  extra: {list => ["Automatic","Manual"]}
77
  is_nullable: 0
77
  is_nullable: 0
78
78
79
whether the renewal was an automatic or manual renewal
80
81
=cut
79
=cut
82
80
83
__PACKAGE__->add_columns(
81
__PACKAGE__->add_columns(
Lines 142-149 __PACKAGE__->belongs_to( Link Here
142
);
140
);
143
141
144
142
145
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-12-08 10:49:16
143
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
146
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Si1gkXWqpvt98YN0dO7vgw
144
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jFcTuBbtRSNwCTN1OMIbkw
147
145
148
=head2 checkout
146
=head2 checkout
149
147
(-)a/Koha/Schema/Result/City.pm (-12 / +2 lines)
Lines 29-36 __PACKAGE__->table("cities"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier added by Koha
33
34
=head2 city_name
32
=head2 city_name
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
Lines 38-69 unique identifier added by Koha Link Here
38
  is_nullable: 0
36
  is_nullable: 0
39
  size: 100
37
  size: 100
40
38
41
name of the city
42
43
=head2 city_state
39
=head2 city_state
44
40
45
  data_type: 'varchar'
41
  data_type: 'varchar'
46
  is_nullable: 1
42
  is_nullable: 1
47
  size: 100
43
  size: 100
48
44
49
name of the state/province
50
51
=head2 city_country
45
=head2 city_country
52
46
53
  data_type: 'varchar'
47
  data_type: 'varchar'
54
  is_nullable: 1
48
  is_nullable: 1
55
  size: 100
49
  size: 100
56
50
57
name of the country
58
59
=head2 city_zipcode
51
=head2 city_zipcode
60
52
61
  data_type: 'varchar'
53
  data_type: 'varchar'
62
  is_nullable: 1
54
  is_nullable: 1
63
  size: 20
55
  size: 20
64
56
65
zip or postal code
66
67
=cut
57
=cut
68
58
69
__PACKAGE__->add_columns(
59
__PACKAGE__->add_columns(
Lines 92-99 __PACKAGE__->add_columns( Link Here
92
__PACKAGE__->set_primary_key("cityid");
82
__PACKAGE__->set_primary_key("cityid");
93
83
94
84
95
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
85
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PF0pi+dNbKvxVDSpvHgB1Q
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4l2AyN8gHIoCaHGqscndEQ
97
87
98
sub koha_objects_class {
88
sub koha_objects_class {
99
    'Koha::Cities';
89
    'Koha::Cities';
(-)a/Koha/Schema/Result/ClubHold.pm (-10 / +2 lines)
Lines 35-58 __PACKAGE__->table("club_holds"); Link Here
35
  is_foreign_key: 1
35
  is_foreign_key: 1
36
  is_nullable: 0
36
  is_nullable: 0
37
37
38
id for the club the hold was generated for
39
40
=head2 biblio_id
38
=head2 biblio_id
41
39
42
  data_type: 'integer'
40
  data_type: 'integer'
43
  is_foreign_key: 1
41
  is_foreign_key: 1
44
  is_nullable: 0
42
  is_nullable: 0
45
43
46
id for the bibliographic record the hold has been placed against
47
48
=head2 item_id
44
=head2 item_id
49
45
50
  data_type: 'integer'
46
  data_type: 'integer'
51
  is_foreign_key: 1
47
  is_foreign_key: 1
52
  is_nullable: 1
48
  is_nullable: 1
53
49
54
If item-level, the id for the item the hold has been placed agains
55
56
=head2 date_created
50
=head2 date_created
57
51
58
  data_type: 'timestamp'
52
  data_type: 'timestamp'
Lines 60-67 If item-level, the id for the item the hold has been placed agains Link Here
60
  default_value: current_timestamp
54
  default_value: current_timestamp
61
  is_nullable: 0
55
  is_nullable: 0
62
56
63
Timestamp for the placed hold
64
65
=cut
57
=cut
66
58
67
__PACKAGE__->add_columns(
59
__PACKAGE__->add_columns(
Lines 162-169 __PACKAGE__->belongs_to( Link Here
162
);
154
);
163
155
164
156
165
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
157
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dGkIYbw9CX0LqiH8XmuGAQ
158
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tWYWUZf1RQLyVUmgVUDKgg
167
159
168
sub koha_objects_class {
160
sub koha_objects_class {
169
    'Koha::Club::Holds';
161
    'Koha::Club::Holds';
(-)a/Koha/Schema/Result/Collection.pm (-4 / +2 lines)
Lines 52-59 __PACKAGE__->table("collections"); Link Here
52
  is_nullable: 1
52
  is_nullable: 1
53
  size: 10
53
  size: 10
54
54
55
'branchcode for branch where item should be held.'
56
57
=cut
55
=cut
58
56
59
__PACKAGE__->add_columns(
57
__PACKAGE__->add_columns(
Lines 134-141 __PACKAGE__->has_many( Link Here
134
);
132
);
135
133
136
134
137
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-04-29 07:54:20
135
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
138
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:le+rc9BRLaPAApAZSZrKRg
136
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fyc/JdSGpr2vSICa3moXRg
139
137
140
138
141
# You can replace this text with custom content, and it will be preserved on regeneration
139
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Course.pm (-22 / +2 lines)
Lines 29-98 __PACKAGE__->table("courses"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique id for the course
33
34
=head2 department
32
=head2 department
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 1
35
  is_nullable: 1
38
  size: 80
36
  size: 80
39
37
40
the authorised value for the DEPARTMENT
41
42
=head2 course_number
38
=head2 course_number
43
39
44
  data_type: 'varchar'
40
  data_type: 'varchar'
45
  is_nullable: 1
41
  is_nullable: 1
46
  size: 255
42
  size: 255
47
43
48
the 'course number' assigned to a course
49
50
=head2 section
44
=head2 section
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 1
47
  is_nullable: 1
54
  size: 255
48
  size: 255
55
49
56
the 'section' of a course
57
58
=head2 course_name
50
=head2 course_name
59
51
60
  data_type: 'varchar'
52
  data_type: 'varchar'
61
  is_nullable: 1
53
  is_nullable: 1
62
  size: 255
54
  size: 255
63
55
64
the name of the course
65
66
=head2 term
56
=head2 term
67
57
68
  data_type: 'varchar'
58
  data_type: 'varchar'
69
  is_nullable: 1
59
  is_nullable: 1
70
  size: 80
60
  size: 80
71
61
72
the authorised value for the TERM
73
74
=head2 staff_note
62
=head2 staff_note
75
63
76
  data_type: 'longtext'
64
  data_type: 'longtext'
77
  is_nullable: 1
65
  is_nullable: 1
78
66
79
the text of the staff only note
80
81
=head2 public_note
67
=head2 public_note
82
68
83
  data_type: 'longtext'
69
  data_type: 'longtext'
84
  is_nullable: 1
70
  is_nullable: 1
85
71
86
the text of the public / opac note
87
88
=head2 students_count
72
=head2 students_count
89
73
90
  data_type: 'varchar'
74
  data_type: 'varchar'
91
  is_nullable: 1
75
  is_nullable: 1
92
  size: 20
76
  size: 20
93
77
94
how many students will be taking this course/section
95
96
=head2 enabled
78
=head2 enabled
97
79
98
  data_type: 'enum'
80
  data_type: 'enum'
Lines 100-107 how many students will be taking this course/section Link Here
100
  extra: {list => ["yes","no"]}
82
  extra: {list => ["yes","no"]}
101
  is_nullable: 0
83
  is_nullable: 0
102
84
103
determines whether the course is active
104
105
=head2 timestamp
85
=head2 timestamp
106
86
107
  data_type: 'timestamp'
87
  data_type: 'timestamp'
Lines 201-208 Composing rels: L</course_instructors> -> borrowernumber Link Here
201
__PACKAGE__->many_to_many("borrowernumbers", "course_instructors", "borrowernumber");
181
__PACKAGE__->many_to_many("borrowernumbers", "course_instructors", "borrowernumber");
202
182
203
183
204
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
184
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
205
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Yoy4Un1rFmPk2EJW7Rf5/g
185
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gdVuHSUiAgdQImlorqRs3g
206
186
207
187
208
# You can replace this text with custom content, and it will be preserved on regeneration
188
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CourseInstructor.pm (-6 / +2 lines)
Lines 29-44 __PACKAGE__->table("course_instructors"); Link Here
29
  is_foreign_key: 1
29
  is_foreign_key: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
foreign key to link to courses.course_id
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key to link to borrowers.borrowernumber for instructor information
41
42
=cut
38
=cut
43
39
44
__PACKAGE__->add_columns(
40
__PACKAGE__->add_columns(
Lines 95-102 __PACKAGE__->belongs_to( Link Here
95
);
91
);
96
92
97
93
98
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
94
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
99
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8JrMgWOtc6LGT7EjOzyjrQ
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XAAuCU7SFX5GhwR7mjCSRQ
100
96
101
sub koha_objects_class {
97
sub koha_objects_class {
102
    'Koha::Course::Instructors';
98
    'Koha::Course::Instructors';
(-)a/Koha/Schema/Result/CourseItem.pm (-43 / +9 lines)
Lines 29-91 __PACKAGE__->table("course_items"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
course item id
33
34
=head2 itemnumber
32
=head2 itemnumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
items.itemnumber for the item on reserve
41
42
=head2 biblionumber
38
=head2 biblionumber
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
biblio.biblionumber for the bibliographic record on reserve
49
50
=head2 itype
44
=head2 itype
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 1
47
  is_nullable: 1
54
  size: 10
48
  size: 10
55
49
56
new itemtype for the item to have while on reserve (optional)
57
58
=head2 itype_enabled
50
=head2 itype_enabled
59
51
60
  data_type: 'tinyint'
52
  data_type: 'tinyint'
61
  default_value: 0
53
  default_value: 0
62
  is_nullable: 0
54
  is_nullable: 0
63
55
64
indicates if itype should be changed while on course reserve
65
66
=head2 itype_storage
56
=head2 itype_storage
67
57
68
  data_type: 'varchar'
58
  data_type: 'varchar'
69
  is_nullable: 1
59
  is_nullable: 1
70
  size: 10
60
  size: 10
71
61
72
a place to store the itype when item is on course reserve
73
74
=head2 ccode
62
=head2 ccode
75
63
76
  data_type: 'varchar'
64
  data_type: 'varchar'
77
  is_nullable: 1
65
  is_nullable: 1
78
  size: 80
66
  size: 80
79
67
80
new category code for the item to have while on reserve (optional)
81
82
=head2 ccode_enabled
68
=head2 ccode_enabled
83
69
84
  data_type: 'tinyint'
70
  data_type: 'tinyint'
85
  default_value: 0
71
  default_value: 0
86
  is_nullable: 0
72
  is_nullable: 0
87
73
88
indicates if ccode should be changed while on course reserve
74
=head2 holdingbranch_storage
75
76
  data_type: 'varchar'
77
  is_nullable: 1
78
  size: 10
89
79
90
=head2 ccode_storage
80
=head2 ccode_storage
91
81
Lines 93-100 indicates if ccode should be changed while on course reserve Link Here
93
  is_nullable: 1
83
  is_nullable: 1
94
  size: 80
84
  size: 80
95
85
96
a place to store the ccode when item is on course reserve
97
98
=head2 homebranch
86
=head2 homebranch
99
87
100
  data_type: 'varchar'
88
  data_type: 'varchar'
Lines 102-117 a place to store the ccode when item is on course reserve Link Here
102
  is_nullable: 1
90
  is_nullable: 1
103
  size: 10
91
  size: 10
104
92
105
new home branch for the item to have while on reserve (optional)
106
107
=head2 homebranch_enabled
93
=head2 homebranch_enabled
108
94
109
  data_type: 'tinyint'
95
  data_type: 'tinyint'
110
  default_value: 0
96
  default_value: 0
111
  is_nullable: 0
97
  is_nullable: 0
112
98
113
indicates if homebranch should be changed while on course reserve
114
115
=head2 homebranch_storage
99
=head2 homebranch_storage
116
100
117
  data_type: 'varchar'
101
  data_type: 'varchar'
Lines 119-126 indicates if homebranch should be changed while on course reserve Link Here
119
  is_nullable: 1
103
  is_nullable: 1
120
  size: 10
104
  size: 10
121
105
122
a place to store the homebranch when item is on course reserve
123
124
=head2 holdingbranch
106
=head2 holdingbranch
125
107
126
  data_type: 'varchar'
108
  data_type: 'varchar'
Lines 128-151 a place to store the homebranch when item is on course reserve Link Here
128
  is_nullable: 1
110
  is_nullable: 1
129
  size: 10
111
  size: 10
130
112
131
new holding branch for the item to have while on reserve (optional)
132
133
=head2 holdingbranch_enabled
113
=head2 holdingbranch_enabled
134
114
135
  data_type: 'tinyint'
115
  data_type: 'tinyint'
136
  default_value: 0
116
  default_value: 0
137
  is_nullable: 0
117
  is_nullable: 0
138
118
139
indicates if itype should be changed while on course reserve
140
141
=head2 holdingbranch_storage
142
143
  data_type: 'varchar'
144
  is_nullable: 1
145
  size: 10
146
147
a place to store the holdingbranch when item is on course reserve
148
149
=head2 location
119
=head2 location
150
120
151
  data_type: 'varchar'
121
  data_type: 'varchar'
Lines 160-175 new shelving location for the item to have while on reserve (optional) Link Here
160
  default_value: 0
130
  default_value: 0
161
  is_nullable: 0
131
  is_nullable: 0
162
132
163
indicates if itype should be changed while on course reserve
164
165
=head2 location_storage
133
=head2 location_storage
166
134
167
  data_type: 'varchar'
135
  data_type: 'varchar'
168
  is_nullable: 1
136
  is_nullable: 1
169
  size: 80
137
  size: 80
170
138
171
a place to store the location when the item is on course reserve
172
173
=head2 enabled
139
=head2 enabled
174
140
175
  data_type: 'enum'
141
  data_type: 'enum'
Lines 205-210 __PACKAGE__->add_columns( Link Here
205
  { data_type => "varchar", is_nullable => 1, size => 80 },
171
  { data_type => "varchar", is_nullable => 1, size => 80 },
206
  "ccode_enabled",
172
  "ccode_enabled",
207
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
173
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
174
  "holdingbranch_storage",
175
  { data_type => "varchar", is_nullable => 1, size => 10 },
208
  "ccode_storage",
176
  "ccode_storage",
209
  { data_type => "varchar", is_nullable => 1, size => 80 },
177
  { data_type => "varchar", is_nullable => 1, size => 80 },
210
  "homebranch",
178
  "homebranch",
Lines 217-224 __PACKAGE__->add_columns( Link Here
217
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
185
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
218
  "holdingbranch_enabled",
186
  "holdingbranch_enabled",
219
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
187
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
220
  "holdingbranch_storage",
221
  { data_type => "varchar", is_nullable => 1, size => 10 },
222
  "location",
188
  "location",
223
  { data_type => "varchar", is_nullable => 1, size => 80 },
189
  { data_type => "varchar", is_nullable => 1, size => 80 },
224
  "location_enabled",
190
  "location_enabled",
Lines 380-387 __PACKAGE__->belongs_to( Link Here
380
);
346
);
381
347
382
348
383
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-19 12:30:40
349
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
384
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZlR7CGNngDWQKmuggaYgVw
350
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QSanYN7G9YbvdQBrKzTtTQ
385
351
386
352
387
# You can replace this text with custom code or comments, and it will be preserved on regeneration
353
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CourseReserve.pm (-10 / +2 lines)
Lines 35-64 __PACKAGE__->table("course_reserves"); Link Here
35
  is_foreign_key: 1
35
  is_foreign_key: 1
36
  is_nullable: 0
36
  is_nullable: 0
37
37
38
foreign key to link to courses.course_id
39
40
=head2 ci_id
38
=head2 ci_id
41
39
42
  data_type: 'integer'
40
  data_type: 'integer'
43
  is_foreign_key: 1
41
  is_foreign_key: 1
44
  is_nullable: 0
42
  is_nullable: 0
45
43
46
foreign key to link to courses_items.ci_id
47
48
=head2 staff_note
44
=head2 staff_note
49
45
50
  data_type: 'longtext'
46
  data_type: 'longtext'
51
  is_nullable: 1
47
  is_nullable: 1
52
48
53
staff only note
54
55
=head2 public_note
49
=head2 public_note
56
50
57
  data_type: 'longtext'
51
  data_type: 'longtext'
58
  is_nullable: 1
52
  is_nullable: 1
59
53
60
public, OPAC visible note
61
62
=head2 timestamp
54
=head2 timestamp
63
55
64
  data_type: 'timestamp'
56
  data_type: 'timestamp'
Lines 149-156 __PACKAGE__->belongs_to( Link Here
149
);
141
);
150
142
151
143
152
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
144
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
153
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K3co29iVHAcF2/S0tGT1LA
145
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BoVVaH3AYL42xGh/SAtcZQ
154
146
155
sub koha_objects_class {
147
sub koha_objects_class {
156
    'Koha::Course::Reserves';
148
    'Koha::Course::Reserves';
(-)a/Koha/Schema/Result/CoverImage.pm (-16 / +2 lines)
Lines 29-74 __PACKAGE__->table("cover_images"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier for the image
33
34
=head2 biblionumber
32
=head2 biblionumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
foreign key from biblio table to link to biblionumber
41
42
=head2 itemnumber
38
=head2 itemnumber
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
foreign key from item table to link to itemnumber
49
50
=head2 mimetype
44
=head2 mimetype
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 0
47
  is_nullable: 0
54
  size: 15
48
  size: 15
55
49
56
image type
57
58
=head2 imagefile
50
=head2 imagefile
59
51
60
  data_type: 'mediumblob'
52
  data_type: 'mediumblob'
61
  is_nullable: 0
53
  is_nullable: 0
62
54
63
image file contents
64
65
=head2 thumbnail
55
=head2 thumbnail
66
56
67
  data_type: 'mediumblob'
57
  data_type: 'mediumblob'
68
  is_nullable: 0
58
  is_nullable: 0
69
59
70
thumbnail file contents
71
72
=head2 timestamp
60
=head2 timestamp
73
61
74
  data_type: 'timestamp'
62
  data_type: 'timestamp'
Lines 76-83 thumbnail file contents Link Here
76
  default_value: current_timestamp
64
  default_value: current_timestamp
77
  is_nullable: 0
65
  is_nullable: 0
78
66
79
image creation/update time
80
81
=cut
67
=cut
82
68
83
__PACKAGE__->add_columns(
69
__PACKAGE__->add_columns(
Lines 157-164 __PACKAGE__->belongs_to( Link Here
157
);
143
);
158
144
159
145
160
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
146
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
161
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Qzy8edw2HP4jZbZRNCOf4A
147
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8Chx7eVkDFVejuTk4LY6HQ
162
148
163
149
164
# You can replace this text with custom code or comments, and it will be preserved on regeneration
150
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CreatorLayout.pm (-20 / +8 lines)
Lines 83-99 __PACKAGE__->table("creator_layouts"); Link Here
83
83
84
=head2 scale_width
84
=head2 scale_width
85
85
86
  data_type: 'decimal'
86
  data_type: 'float'
87
  default_value: 0.800000
87
  default_value: 0.8
88
  is_nullable: 0
88
  is_nullable: 0
89
  size: [28,6]
90
89
91
=head2 scale_height
90
=head2 scale_height
92
91
93
  data_type: 'decimal'
92
  data_type: 'float'
94
  default_value: 0.010000
93
  default_value: 0.01
95
  is_nullable: 0
94
  is_nullable: 0
96
  size: [28,6]
97
95
98
=head2 units
96
=head2 units
99
97
Lines 166-184 __PACKAGE__->add_columns( Link Here
166
  "font_size",
164
  "font_size",
167
  { data_type => "integer", default_value => 10, is_nullable => 0 },
165
  { data_type => "integer", default_value => 10, is_nullable => 0 },
168
  "scale_width",
166
  "scale_width",
169
  {
167
  { data_type => "float", default_value => 0.8, is_nullable => 0 },
170
    data_type => "decimal",
171
    default_value => "0.800000",
172
    is_nullable => 0,
173
    size => [28, 6],
174
  },
175
  "scale_height",
168
  "scale_height",
176
  {
169
  { data_type => "float", default_value => 0.01, is_nullable => 0 },
177
    data_type => "decimal",
178
    default_value => "0.010000",
179
    is_nullable => 0,
180
    size => [28, 6],
181
  },
182
  "units",
170
  "units",
183
  { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 },
171
  { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 },
184
  "callnum_split",
172
  "callnum_split",
Lines 216-223 __PACKAGE__->add_columns( Link Here
216
__PACKAGE__->set_primary_key("layout_id");
204
__PACKAGE__->set_primary_key("layout_id");
217
205
218
206
219
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-24 13:05:15
207
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
220
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W/ICw+9yY7wxZ0IgqqXcFg
208
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I5tEDWTLS9yzjMLUU9ZPJg
221
209
222
210
223
# You can replace this text with custom content, and it will be preserved on regeneration
211
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Currency.pm (-2 / +10 lines)
Lines 72-77 __PACKAGE__->table("currency"); Link Here
72
  default_value: 0
72
  default_value: 0
73
  is_nullable: 1
73
  is_nullable: 1
74
74
75
=head2 p_cs_precedes
76
77
  data_type: 'tinyint'
78
  default_value: 1
79
  is_nullable: 1
80
75
=cut
81
=cut
76
82
77
__PACKAGE__->add_columns(
83
__PACKAGE__->add_columns(
Lines 96-101 __PACKAGE__->add_columns( Link Here
96
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
102
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
97
  "p_sep_by_space",
103
  "p_sep_by_space",
98
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
104
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
105
  "p_cs_precedes",
106
  { data_type => "tinyint", default_value => 1, is_nullable => 1 },
99
);
107
);
100
108
101
=head1 PRIMARY KEY
109
=head1 PRIMARY KEY
Lines 173-180 __PACKAGE__->has_many( Link Here
173
);
181
);
174
182
175
183
176
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-06 16:45:06
184
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
177
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FmTABTXRmT/kwlkKkO/0pw
185
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kUKfAYtgL+mkeJMRwJ/NIg
178
186
179
187
180
sub koha_object_class {
188
sub koha_object_class {
(-)a/Koha/Schema/Result/Deletedbiblio.pm (-32 / +2 lines)
Lines 29-36 __PACKAGE__->table("deletedbiblio"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned to each bibliographic record
33
34
=head2 frameworkcode
32
=head2 frameworkcode
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
Lines 38-108 unique identifier assigned to each bibliographic record Link Here
38
  is_nullable: 0
36
  is_nullable: 0
39
  size: 4
37
  size: 4
40
38
41
foriegn key from the biblio_framework table to identify which framework was used in cataloging this record
42
43
=head2 author
39
=head2 author
44
40
45
  data_type: 'longtext'
41
  data_type: 'longtext'
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
statement of responsibility from MARC record (100$a in MARC21)
49
50
=head2 title
44
=head2 title
51
45
52
  data_type: 'longtext'
46
  data_type: 'longtext'
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
title (without the subtitle) from the MARC record (245$a in MARC21)
56
57
=head2 medium
49
=head2 medium
58
50
59
  data_type: 'longtext'
51
  data_type: 'longtext'
60
  is_nullable: 1
52
  is_nullable: 1
61
53
62
medium from the MARC record (245$h in MARC21)
63
64
=head2 subtitle
54
=head2 subtitle
65
55
66
  data_type: 'longtext'
56
  data_type: 'longtext'
67
  is_nullable: 1
57
  is_nullable: 1
68
58
69
remainder of the title from the MARC record (245$b in MARC21)
70
71
=head2 part_number
59
=head2 part_number
72
60
73
  data_type: 'longtext'
61
  data_type: 'longtext'
74
  is_nullable: 1
62
  is_nullable: 1
75
63
76
part number from the MARC record (245$n in MARC21)
77
78
=head2 part_name
64
=head2 part_name
79
65
80
  data_type: 'longtext'
66
  data_type: 'longtext'
81
  is_nullable: 1
67
  is_nullable: 1
82
68
83
part name from the MARC record (245$p in MARC21)
84
85
=head2 unititle
69
=head2 unititle
86
70
87
  data_type: 'longtext'
71
  data_type: 'longtext'
88
  is_nullable: 1
72
  is_nullable: 1
89
73
90
uniform title (without the subtitle) from the MARC record (240$a in MARC21)
91
92
=head2 notes
74
=head2 notes
93
75
94
  data_type: 'longtext'
76
  data_type: 'longtext'
95
  is_nullable: 1
77
  is_nullable: 1
96
78
97
values from the general notes field in the MARC record (500$a in MARC21) split by bar (|)
98
99
=head2 serial
79
=head2 serial
100
80
101
  data_type: 'tinyint'
81
  data_type: 'tinyint'
102
  is_nullable: 1
82
  is_nullable: 1
103
83
104
Boolean indicating whether biblio is for a serial
105
106
=head2 seriestitle
84
=head2 seriestitle
107
85
108
  data_type: 'longtext'
86
  data_type: 'longtext'
Lines 113-120 Boolean indicating whether biblio is for a serial Link Here
113
  data_type: 'smallint'
91
  data_type: 'smallint'
114
  is_nullable: 1
92
  is_nullable: 1
115
93
116
publication or copyright date from the MARC record
117
118
=head2 timestamp
94
=head2 timestamp
119
95
120
  data_type: 'timestamp'
96
  data_type: 'timestamp'
Lines 122-144 publication or copyright date from the MARC record Link Here
122
  default_value: current_timestamp
98
  default_value: current_timestamp
123
  is_nullable: 0
99
  is_nullable: 0
124
100
125
date and time this record was last touched
126
127
=head2 datecreated
101
=head2 datecreated
128
102
129
  data_type: 'date'
103
  data_type: 'date'
130
  datetime_undef_if_invalid: 1
104
  datetime_undef_if_invalid: 1
131
  is_nullable: 0
105
  is_nullable: 0
132
106
133
the date this record was added to Koha
134
135
=head2 abstract
107
=head2 abstract
136
108
137
  data_type: 'longtext'
109
  data_type: 'longtext'
138
  is_nullable: 1
110
  is_nullable: 1
139
111
140
summary from the MARC record (520$a in MARC21)
141
142
=cut
112
=cut
143
113
144
__PACKAGE__->add_columns(
114
__PACKAGE__->add_columns(
Lines 211-218 __PACKAGE__->has_many( Link Here
211
);
181
);
212
182
213
183
214
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
184
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
215
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KwlqhkWWX6CYWb3l2fCcSg
185
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Gp0l2H0e065Q7W/gEW2Sog
216
186
217
__PACKAGE__->has_many(
187
__PACKAGE__->has_many(
218
    "biblioitem",
188
    "biblioitem",
(-)a/Koha/Schema/Result/DeletedbiblioMetadata.pm (-4 / +4 lines)
Lines 44-50 __PACKAGE__->table("deletedbiblio_metadata"); Link Here
44
=head2 schema
44
=head2 schema
45
45
46
  data_type: 'varchar'
46
  data_type: 'varchar'
47
  is_nullable: 0
47
  is_nullable: 1
48
  size: 16
48
  size: 16
49
49
50
=head2 metadata
50
=head2 metadata
Lines 77-83 __PACKAGE__->add_columns( Link Here
77
  "format",
77
  "format",
78
  { data_type => "varchar", is_nullable => 0, size => 16 },
78
  { data_type => "varchar", is_nullable => 0, size => 16 },
79
  "schema",
79
  "schema",
80
  { data_type => "varchar", is_nullable => 0, size => 16 },
80
  { data_type => "varchar", is_nullable => 1, size => 16 },
81
  "metadata",
81
  "metadata",
82
  { data_type => "longtext", is_nullable => 0 },
82
  { data_type => "longtext", is_nullable => 0 },
83
  "timestamp",
83
  "timestamp",
Lines 162-169 __PACKAGE__->belongs_to( Link Here
162
);
162
);
163
163
164
164
165
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 13:23:01
165
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n/IgiGmKu1znMd78vA+pVw
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:duTrmoI+4eVn9b6LMSbumA
167
167
168
sub koha_objects_class {
168
sub koha_objects_class {
169
    'Koha::Old::Biblio::Metadatas';
169
    'Koha::Old::Biblio::Metadatas';
(-)a/Koha/Schema/Result/Deletedbiblioitem.pm (-22 / +2 lines)
Lines 29-44 __PACKAGE__->table("deletedbiblioitems"); Link Here
29
  default_value: 0
29
  default_value: 0
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key, unique identifier assigned by Koha
33
34
=head2 biblionumber
32
=head2 biblionumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  default_value: 0
35
  default_value: 0
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key linking this table to the biblio table
41
42
=head2 volume
38
=head2 volume
43
39
44
  data_type: 'longtext'
40
  data_type: 'longtext'
Lines 55-76 foreign key linking this table to the biblio table Link Here
55
  is_nullable: 1
51
  is_nullable: 1
56
  size: 10
52
  size: 10
57
53
58
biblio level item type (MARC21 942$c)
59
60
=head2 isbn
54
=head2 isbn
61
55
62
  data_type: 'longtext'
56
  data_type: 'longtext'
63
  is_nullable: 1
57
  is_nullable: 1
64
58
65
ISBN (MARC21 020$a)
66
67
=head2 issn
59
=head2 issn
68
60
69
  data_type: 'longtext'
61
  data_type: 'longtext'
70
  is_nullable: 1
62
  is_nullable: 1
71
63
72
ISSN (MARC21 022$a)
73
74
=head2 ean
64
=head2 ean
75
65
76
  data_type: 'longtext'
66
  data_type: 'longtext'
Lines 99-106 publisher (MARC21 260$b and 264$b) Link Here
99
  data_type: 'mediumtext'
89
  data_type: 'mediumtext'
100
  is_nullable: 1
90
  is_nullable: 1
101
91
102
volume information (MARC21 362$a)
103
104
=head2 collectiontitle
92
=head2 collectiontitle
105
93
106
  data_type: 'longtext'
94
  data_type: 'longtext'
Lines 178-193 library of congress control number (MARC21 010$a) Link Here
178
  data_type: 'mediumtext'
166
  data_type: 'mediumtext'
179
  is_nullable: 1
167
  is_nullable: 1
180
168
181
url (MARC21 856$u)
182
183
=head2 cn_source
169
=head2 cn_source
184
170
185
  data_type: 'varchar'
171
  data_type: 'varchar'
186
  is_nullable: 1
172
  is_nullable: 1
187
  size: 10
173
  size: 10
188
174
189
classification source (MARC21 942$2)
190
191
=head2 cn_class
175
=head2 cn_class
192
176
193
  data_type: 'varchar'
177
  data_type: 'varchar'
Lines 212-227 classification source (MARC21 942$2) Link Here
212
  is_nullable: 1
196
  is_nullable: 1
213
  size: 255
197
  size: 255
214
198
215
normalized version of the call number used for sorting
216
217
=head2 agerestriction
199
=head2 agerestriction
218
200
219
  data_type: 'varchar'
201
  data_type: 'varchar'
220
  is_nullable: 1
202
  is_nullable: 1
221
  size: 255
203
  size: 255
222
204
223
target audience/age restriction from the bib record (MARC21 521$a)
224
225
=head2 totalissues
205
=head2 totalissues
226
206
227
  data_type: 'integer'
207
  data_type: 'integer'
Lines 314-321 __PACKAGE__->add_columns( Link Here
314
__PACKAGE__->set_primary_key("biblioitemnumber");
294
__PACKAGE__->set_primary_key("biblioitemnumber");
315
295
316
296
317
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-06-29 12:50:28
297
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
318
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q5ULiqLlmYdZQy4qr0wBtg
298
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xZqKWgUwuzurhDperScQ9w
319
299
320
sub koha_objects_class {
300
sub koha_objects_class {
321
    'Koha::Old::Biblioitems';
301
    'Koha::Old::Biblioitems';
(-)a/Koha/Schema/Result/Deletedborrower.pm (-154 / +11 lines)
Lines 29-57 __PACKAGE__->table("deletedborrowers"); Link Here
29
  default_value: 0
29
  default_value: 0
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key, Koha assigned ID number for patrons/borrowers
33
34
=head2 cardnumber
32
=head2 cardnumber
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 1
35
  is_nullable: 1
38
  size: 32
36
  size: 32
39
37
40
unique key, library assigned ID number for patrons/borrowers
41
42
=head2 surname
38
=head2 surname
43
39
44
  data_type: 'longtext'
40
  data_type: 'longtext'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
patron/borrower's last name (surname)
48
49
=head2 firstname
43
=head2 firstname
50
44
51
  data_type: 'mediumtext'
45
  data_type: 'mediumtext'
52
  is_nullable: 1
46
  is_nullable: 1
53
47
54
patron/borrower's first name
48
=head2 preferred_name
49
50
  data_type: 'longtext'
51
  is_nullable: 1
52
53
patron/borrower's preferred name
55
54
56
=head2 middle_name
55
=head2 middle_name
57
56
Lines 65-279 patron/borrower's middle name Link Here
65
  data_type: 'longtext'
64
  data_type: 'longtext'
66
  is_nullable: 1
65
  is_nullable: 1
67
66
68
patron/borrower's title, for example: Mr. or Mrs.
69
70
=head2 othernames
67
=head2 othernames
71
68
72
  data_type: 'longtext'
69
  data_type: 'longtext'
73
  is_nullable: 1
70
  is_nullable: 1
74
71
75
any other names associated with the patron/borrower
76
77
=head2 initials
72
=head2 initials
78
73
79
  data_type: 'mediumtext'
74
  data_type: 'mediumtext'
80
  is_nullable: 1
75
  is_nullable: 1
81
76
82
initials for your patron/borrower
83
84
=head2 pronouns
77
=head2 pronouns
85
78
86
  data_type: 'longtext'
79
  data_type: 'longtext'
87
  is_nullable: 1
80
  is_nullable: 1
88
81
89
patron/borrower pronouns
82
patron/borrower's pronouns
90
83
91
=head2 streetnumber
84
=head2 streetnumber
92
85
93
  data_type: 'tinytext'
86
  data_type: 'tinytext'
94
  is_nullable: 1
87
  is_nullable: 1
95
88
96
the house number for your patron/borrower's primary address
97
98
=head2 streettype
89
=head2 streettype
99
90
100
  data_type: 'tinytext'
91
  data_type: 'tinytext'
101
  is_nullable: 1
92
  is_nullable: 1
102
93
103
the street type (Rd., Blvd, etc) for your patron/borrower's primary address
104
105
=head2 address
94
=head2 address
106
95
107
  data_type: 'longtext'
96
  data_type: 'longtext'
108
  is_nullable: 1
97
  is_nullable: 1
109
98
110
the first address line for your patron/borrower's primary address
111
112
=head2 address2
99
=head2 address2
113
100
114
  data_type: 'mediumtext'
101
  data_type: 'mediumtext'
115
  is_nullable: 1
102
  is_nullable: 1
116
103
117
the second address line for your patron/borrower's primary address
118
119
=head2 city
104
=head2 city
120
105
121
  data_type: 'longtext'
106
  data_type: 'longtext'
122
  is_nullable: 1
107
  is_nullable: 1
123
108
124
the city or town for your patron/borrower's primary address
125
126
=head2 state
109
=head2 state
127
110
128
  data_type: 'mediumtext'
111
  data_type: 'mediumtext'
129
  is_nullable: 1
112
  is_nullable: 1
130
113
131
the state or province for your patron/borrower's primary address
132
133
=head2 zipcode
114
=head2 zipcode
134
115
135
  data_type: 'tinytext'
116
  data_type: 'tinytext'
136
  is_nullable: 1
117
  is_nullable: 1
137
118
138
the zip or postal code for your patron/borrower's primary address
139
140
=head2 country
119
=head2 country
141
120
142
  data_type: 'mediumtext'
121
  data_type: 'mediumtext'
143
  is_nullable: 1
122
  is_nullable: 1
144
123
145
the country for your patron/borrower's primary address
146
147
=head2 email
124
=head2 email
148
125
149
  data_type: 'longtext'
126
  data_type: 'longtext'
150
  is_nullable: 1
127
  is_nullable: 1
151
128
152
the primary email address for your patron/borrower's primary address
153
154
=head2 phone
129
=head2 phone
155
130
156
  data_type: 'mediumtext'
131
  data_type: 'mediumtext'
157
  is_nullable: 1
132
  is_nullable: 1
158
133
159
the primary phone number for your patron/borrower's primary address
160
161
=head2 mobile
134
=head2 mobile
162
135
163
  data_type: 'tinytext'
136
  data_type: 'tinytext'
164
  is_nullable: 1
137
  is_nullable: 1
165
138
166
the other phone number for your patron/borrower's primary address
167
168
=head2 fax
139
=head2 fax
169
140
170
  data_type: 'longtext'
141
  data_type: 'longtext'
171
  is_nullable: 1
142
  is_nullable: 1
172
143
173
the fax number for your patron/borrower's primary address
174
175
=head2 emailpro
144
=head2 emailpro
176
145
177
  data_type: 'mediumtext'
146
  data_type: 'mediumtext'
178
  is_nullable: 1
147
  is_nullable: 1
179
148
180
the secondary email addres for your patron/borrower's primary address
181
182
=head2 phonepro
149
=head2 phonepro
183
150
184
  data_type: 'mediumtext'
151
  data_type: 'mediumtext'
185
  is_nullable: 1
152
  is_nullable: 1
186
153
187
the secondary phone number for your patron/borrower's primary address
188
189
=head2 B_streetnumber
154
=head2 B_streetnumber
190
155
191
  accessor: 'b_streetnumber'
156
  accessor: 'b_streetnumber'
192
  data_type: 'tinytext'
157
  data_type: 'tinytext'
193
  is_nullable: 1
158
  is_nullable: 1
194
159
195
the house number for your patron/borrower's alternate address
196
197
=head2 B_streettype
160
=head2 B_streettype
198
161
199
  accessor: 'b_streettype'
162
  accessor: 'b_streettype'
200
  data_type: 'tinytext'
163
  data_type: 'tinytext'
201
  is_nullable: 1
164
  is_nullable: 1
202
165
203
the street type (Rd., Blvd, etc) for your patron/borrower's alternate address
204
205
=head2 B_address
166
=head2 B_address
206
167
207
  accessor: 'b_address'
168
  accessor: 'b_address'
208
  data_type: 'mediumtext'
169
  data_type: 'mediumtext'
209
  is_nullable: 1
170
  is_nullable: 1
210
171
211
the first address line for your patron/borrower's alternate address
212
213
=head2 B_address2
172
=head2 B_address2
214
173
215
  accessor: 'b_address2'
174
  accessor: 'b_address2'
216
  data_type: 'mediumtext'
175
  data_type: 'mediumtext'
217
  is_nullable: 1
176
  is_nullable: 1
218
177
219
the second address line for your patron/borrower's alternate address
220
221
=head2 B_city
178
=head2 B_city
222
179
223
  accessor: 'b_city'
180
  accessor: 'b_city'
224
  data_type: 'longtext'
181
  data_type: 'longtext'
225
  is_nullable: 1
182
  is_nullable: 1
226
183
227
the city or town for your patron/borrower's alternate address
228
229
=head2 B_state
184
=head2 B_state
230
185
231
  accessor: 'b_state'
186
  accessor: 'b_state'
232
  data_type: 'mediumtext'
187
  data_type: 'mediumtext'
233
  is_nullable: 1
188
  is_nullable: 1
234
189
235
the state for your patron/borrower's alternate address
236
237
=head2 B_zipcode
190
=head2 B_zipcode
238
191
239
  accessor: 'b_zipcode'
192
  accessor: 'b_zipcode'
240
  data_type: 'tinytext'
193
  data_type: 'tinytext'
241
  is_nullable: 1
194
  is_nullable: 1
242
195
243
the zip or postal code for your patron/borrower's alternate address
244
245
=head2 B_country
196
=head2 B_country
246
197
247
  accessor: 'b_country'
198
  accessor: 'b_country'
248
  data_type: 'mediumtext'
199
  data_type: 'mediumtext'
249
  is_nullable: 1
200
  is_nullable: 1
250
201
251
the country for your patron/borrower's alternate address
252
253
=head2 B_email
202
=head2 B_email
254
203
255
  accessor: 'b_email'
204
  accessor: 'b_email'
256
  data_type: 'mediumtext'
205
  data_type: 'mediumtext'
257
  is_nullable: 1
206
  is_nullable: 1
258
207
259
the patron/borrower's alternate email address
260
261
=head2 B_phone
208
=head2 B_phone
262
209
263
  accessor: 'b_phone'
210
  accessor: 'b_phone'
264
  data_type: 'longtext'
211
  data_type: 'longtext'
265
  is_nullable: 1
212
  is_nullable: 1
266
213
267
the patron/borrower's alternate phone number
268
269
=head2 dateofbirth
214
=head2 dateofbirth
270
215
271
  data_type: 'date'
216
  data_type: 'date'
272
  datetime_undef_if_invalid: 1
217
  datetime_undef_if_invalid: 1
273
  is_nullable: 1
218
  is_nullable: 1
274
219
275
the patron/borrower's date of birth (YYYY-MM-DD)
276
277
=head2 branchcode
220
=head2 branchcode
278
221
279
  data_type: 'varchar'
222
  data_type: 'varchar'
Lines 281-288 the patron/borrower's date of birth (YYYY-MM-DD) Link Here
281
  is_nullable: 0
224
  is_nullable: 0
282
  size: 10
225
  size: 10
283
226
284
foreign key from the branches table, includes the code of the patron/borrower's home branch
285
286
=head2 categorycode
227
=head2 categorycode
287
228
288
  data_type: 'varchar'
229
  data_type: 'varchar'
Lines 290-411 foreign key from the branches table, includes the code of the patron/borrower's Link Here
290
  is_nullable: 0
231
  is_nullable: 0
291
  size: 10
232
  size: 10
292
233
293
foreign key from the categories table, includes the code of the patron category
294
295
=head2 dateenrolled
234
=head2 dateenrolled
296
235
297
  data_type: 'date'
236
  data_type: 'date'
298
  datetime_undef_if_invalid: 1
237
  datetime_undef_if_invalid: 1
299
  is_nullable: 1
238
  is_nullable: 1
300
239
301
date the patron was added to Koha (YYYY-MM-DD)
302
303
=head2 dateexpiry
240
=head2 dateexpiry
304
241
305
  data_type: 'date'
242
  data_type: 'date'
306
  datetime_undef_if_invalid: 1
243
  datetime_undef_if_invalid: 1
307
  is_nullable: 1
244
  is_nullable: 1
308
245
309
date the patron/borrower's card is set to expire (YYYY-MM-DD)
310
311
=head2 password_expiration_date
246
=head2 password_expiration_date
312
247
313
  data_type: 'date'
248
  data_type: 'date'
314
  datetime_undef_if_invalid: 1
249
  datetime_undef_if_invalid: 1
315
  is_nullable: 1
250
  is_nullable: 1
316
251
317
date the patron/borrower's password is set to expire (YYYY-MM-DD)
318
319
=head2 date_renewed
252
=head2 date_renewed
320
253
321
  data_type: 'date'
254
  data_type: 'date'
322
  datetime_undef_if_invalid: 1
255
  datetime_undef_if_invalid: 1
323
  is_nullable: 1
256
  is_nullable: 1
324
257
325
date the patron/borrower's card was last renewed
326
327
=head2 gonenoaddress
258
=head2 gonenoaddress
328
259
329
  data_type: 'tinyint'
260
  data_type: 'tinyint'
330
  is_nullable: 1
261
  is_nullable: 1
331
262
332
set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having an unconfirmed address
333
334
=head2 lost
263
=head2 lost
335
264
336
  data_type: 'tinyint'
265
  data_type: 'tinyint'
337
  is_nullable: 1
266
  is_nullable: 1
338
267
339
set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having lost their card
340
341
=head2 debarred
268
=head2 debarred
342
269
343
  data_type: 'date'
270
  data_type: 'date'
344
  datetime_undef_if_invalid: 1
271
  datetime_undef_if_invalid: 1
345
  is_nullable: 1
272
  is_nullable: 1
346
273
347
until this date the patron can only check-in (no loans, no holds, etc.), is a fine based on days instead of money (YYYY-MM-DD)
348
349
=head2 debarredcomment
274
=head2 debarredcomment
350
275
351
  data_type: 'varchar'
276
  data_type: 'varchar'
352
  is_nullable: 1
277
  is_nullable: 1
353
  size: 255
278
  size: 255
354
279
355
comment on the stop of patron
356
357
=head2 contactname
280
=head2 contactname
358
281
359
  data_type: 'longtext'
282
  data_type: 'longtext'
360
  is_nullable: 1
283
  is_nullable: 1
361
284
362
used for children and profesionals to include surname or last name of guarantor or organization name
363
364
=head2 contactfirstname
285
=head2 contactfirstname
365
286
366
  data_type: 'mediumtext'
287
  data_type: 'mediumtext'
367
  is_nullable: 1
288
  is_nullable: 1
368
289
369
used for children to include first name of guarantor
370
371
=head2 contacttitle
290
=head2 contacttitle
372
291
373
  data_type: 'mediumtext'
292
  data_type: 'mediumtext'
374
  is_nullable: 1
293
  is_nullable: 1
375
294
376
used for children to include title (Mr., Mrs., etc) of guarantor
377
378
=head2 borrowernotes
295
=head2 borrowernotes
379
296
380
  data_type: 'longtext'
297
  data_type: 'longtext'
381
  is_nullable: 1
298
  is_nullable: 1
382
299
383
a note on the patron/borrower's account that is only visible in the staff interface
384
385
=head2 relationship
300
=head2 relationship
386
301
387
  data_type: 'varchar'
302
  data_type: 'varchar'
388
  is_nullable: 1
303
  is_nullable: 1
389
  size: 100
304
  size: 100
390
305
391
used for children to include the relationship to their guarantor
392
393
=head2 sex
306
=head2 sex
394
307
395
  data_type: 'varchar'
308
  data_type: 'varchar'
396
  is_nullable: 1
309
  is_nullable: 1
397
  size: 1
310
  size: 1
398
311
399
patron/borrower's gender
400
401
=head2 password
312
=head2 password
402
313
403
  data_type: 'varchar'
314
  data_type: 'varchar'
404
  is_nullable: 1
315
  is_nullable: 1
405
  size: 60
316
  size: 60
406
317
407
patron/borrower's encrypted password
408
409
=head2 secret
318
=head2 secret
410
319
411
  data_type: 'mediumtext'
320
  data_type: 'mediumtext'
Lines 435-575 will include a number associated with the staff member's permissions Link Here
435
  is_nullable: 1
344
  is_nullable: 1
436
  size: 75
345
  size: 75
437
346
438
patron/borrower's opac and/or staff interface log in
439
440
=head2 opacnote
347
=head2 opacnote
441
348
442
  data_type: 'longtext'
349
  data_type: 'longtext'
443
  is_nullable: 1
350
  is_nullable: 1
444
351
445
a note on the patron/borrower's account that is visible in the OPAC and staff interface
446
447
=head2 contactnote
352
=head2 contactnote
448
353
449
  data_type: 'varchar'
354
  data_type: 'varchar'
450
  is_nullable: 1
355
  is_nullable: 1
451
  size: 255
356
  size: 255
452
357
453
a note related to the patron/borrower's alternate address
454
455
=head2 sort1
358
=head2 sort1
456
359
457
  data_type: 'varchar'
360
  data_type: 'varchar'
458
  is_nullable: 1
361
  is_nullable: 1
459
  size: 80
362
  size: 80
460
363
461
a field that can be used for any information unique to the library
462
463
=head2 sort2
364
=head2 sort2
464
365
465
  data_type: 'varchar'
366
  data_type: 'varchar'
466
  is_nullable: 1
367
  is_nullable: 1
467
  size: 80
368
  size: 80
468
369
469
a field that can be used for any information unique to the library
470
471
=head2 altcontactfirstname
370
=head2 altcontactfirstname
472
371
473
  data_type: 'mediumtext'
372
  data_type: 'mediumtext'
474
  is_nullable: 1
373
  is_nullable: 1
475
374
476
first name of alternate contact for the patron/borrower
477
478
=head2 altcontactsurname
375
=head2 altcontactsurname
479
376
480
  data_type: 'mediumtext'
377
  data_type: 'mediumtext'
481
  is_nullable: 1
378
  is_nullable: 1
482
379
483
surname or last name of the alternate contact for the patron/borrower
484
485
=head2 altcontactaddress1
380
=head2 altcontactaddress1
486
381
487
  data_type: 'mediumtext'
382
  data_type: 'mediumtext'
488
  is_nullable: 1
383
  is_nullable: 1
489
384
490
the first address line for the alternate contact for the patron/borrower
491
492
=head2 altcontactaddress2
385
=head2 altcontactaddress2
493
386
494
  data_type: 'mediumtext'
387
  data_type: 'mediumtext'
495
  is_nullable: 1
388
  is_nullable: 1
496
389
497
the second address line for the alternate contact for the patron/borrower
498
499
=head2 altcontactaddress3
390
=head2 altcontactaddress3
500
391
501
  data_type: 'mediumtext'
392
  data_type: 'mediumtext'
502
  is_nullable: 1
393
  is_nullable: 1
503
394
504
the city for the alternate contact for the patron/borrower
505
506
=head2 altcontactstate
395
=head2 altcontactstate
507
396
508
  data_type: 'mediumtext'
397
  data_type: 'mediumtext'
509
  is_nullable: 1
398
  is_nullable: 1
510
399
511
the state for the alternate contact for the patron/borrower
512
513
=head2 altcontactzipcode
400
=head2 altcontactzipcode
514
401
515
  data_type: 'mediumtext'
402
  data_type: 'mediumtext'
516
  is_nullable: 1
403
  is_nullable: 1
517
404
518
the zipcode for the alternate contact for the patron/borrower
519
520
=head2 altcontactcountry
405
=head2 altcontactcountry
521
406
522
  data_type: 'mediumtext'
407
  data_type: 'mediumtext'
523
  is_nullable: 1
408
  is_nullable: 1
524
409
525
the country for the alternate contact for the patron/borrower
526
527
=head2 altcontactphone
410
=head2 altcontactphone
528
411
529
  data_type: 'mediumtext'
412
  data_type: 'mediumtext'
530
  is_nullable: 1
413
  is_nullable: 1
531
414
532
the phone number for the alternate contact for the patron/borrower
533
534
=head2 smsalertnumber
415
=head2 smsalertnumber
535
416
536
  data_type: 'varchar'
417
  data_type: 'varchar'
537
  is_nullable: 1
418
  is_nullable: 1
538
  size: 50
419
  size: 50
539
420
540
the mobile phone number where the patron/borrower would like to receive notices (if SMS turned on)
541
542
=head2 sms_provider_id
421
=head2 sms_provider_id
543
422
544
  data_type: 'integer'
423
  data_type: 'integer'
545
  is_nullable: 1
424
  is_nullable: 1
546
425
547
the provider of the mobile phone number defined in smsalertnumber
548
549
=head2 privacy
426
=head2 privacy
550
427
551
  data_type: 'integer'
428
  data_type: 'integer'
552
  default_value: 1
429
  default_value: 1
553
  is_nullable: 0
430
  is_nullable: 0
554
431
555
patron/borrower's privacy settings related to their checkout history  KEY `borrowernumber` (`borrowernumber`),
556
557
=head2 privacy_guarantor_fines
432
=head2 privacy_guarantor_fines
558
433
559
  data_type: 'tinyint'
434
  data_type: 'tinyint'
560
  default_value: 0
435
  default_value: 0
561
  is_nullable: 0
436
  is_nullable: 0
562
437
563
controls if relatives can see this patron's fines
564
565
=head2 privacy_guarantor_checkouts
438
=head2 privacy_guarantor_checkouts
566
439
567
  data_type: 'tinyint'
440
  data_type: 'tinyint'
568
  default_value: 0
441
  default_value: 0
569
  is_nullable: 0
442
  is_nullable: 0
570
443
571
controls if relatives can see this patron's checkouts
572
573
=head2 checkprevcheckout
444
=head2 checkprevcheckout
574
445
575
  data_type: 'varchar'
446
  data_type: 'varchar'
Lines 577-584 controls if relatives can see this patron's checkouts Link Here
577
  is_nullable: 0
448
  is_nullable: 0
578
  size: 7
449
  size: 7
579
450
580
produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'.
581
582
=head2 updated_on
451
=head2 updated_on
583
452
584
  data_type: 'timestamp'
453
  data_type: 'timestamp'
Lines 594-601 time of last change could be useful for synchronization with external systems (a Link Here
594
  datetime_undef_if_invalid: 1
463
  datetime_undef_if_invalid: 1
595
  is_nullable: 1
464
  is_nullable: 1
596
465
597
last time a patron has been seen (connected at the OPAC or staff interface)
598
599
=head2 lang
466
=head2 lang
600
467
601
  data_type: 'varchar'
468
  data_type: 'varchar'
Lines 603-649 last time a patron has been seen (connected at the OPAC or staff interface) Link Here
603
  is_nullable: 0
470
  is_nullable: 0
604
  size: 25
471
  size: 25
605
472
606
lang to use to send notices to this patron
607
608
=head2 login_attempts
473
=head2 login_attempts
609
474
610
  data_type: 'integer'
475
  data_type: 'integer'
611
  default_value: 0
476
  default_value: 0
612
  is_nullable: 0
477
  is_nullable: 0
613
478
614
number of failed login attemps
615
616
=head2 overdrive_auth_token
479
=head2 overdrive_auth_token
617
480
618
  data_type: 'mediumtext'
481
  data_type: 'mediumtext'
619
  is_nullable: 1
482
  is_nullable: 1
620
483
621
persist OverDrive auth token
622
623
=head2 anonymized
484
=head2 anonymized
624
485
625
  data_type: 'tinyint'
486
  data_type: 'tinyint'
626
  default_value: 0
487
  default_value: 0
627
  is_nullable: 0
488
  is_nullable: 0
628
489
629
flag for data anonymization
630
631
=head2 autorenew_checkouts
490
=head2 autorenew_checkouts
632
491
633
  data_type: 'tinyint'
492
  data_type: 'tinyint'
634
  default_value: 1
493
  default_value: 1
635
  is_nullable: 0
494
  is_nullable: 0
636
495
637
flag for allowing auto-renewal
638
639
=head2 primary_contact_method
496
=head2 primary_contact_method
640
497
641
  data_type: 'varchar'
498
  data_type: 'varchar'
642
  is_nullable: 1
499
  is_nullable: 1
643
  size: 45
500
  size: 45
644
501
645
useful for reporting purposes
646
647
=head2 protected
502
=head2 protected
648
503
649
  data_type: 'tinyint'
504
  data_type: 'tinyint'
Lines 663-668 __PACKAGE__->add_columns( Link Here
663
  { data_type => "longtext", is_nullable => 1 },
518
  { data_type => "longtext", is_nullable => 1 },
664
  "firstname",
519
  "firstname",
665
  { data_type => "mediumtext", is_nullable => 1 },
520
  { data_type => "mediumtext", is_nullable => 1 },
521
  "preferred_name",
522
  { data_type => "longtext", is_nullable => 1 },
666
  "middle_name",
523
  "middle_name",
667
  { data_type => "longtext", is_nullable => 1 },
524
  { data_type => "longtext", is_nullable => 1 },
668
  "title",
525
  "title",
Lines 848-855 __PACKAGE__->add_columns( Link Here
848
);
705
);
849
706
850
707
851
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-01 18:21:38
708
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
852
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WdNGUFdglTb3Heu+VjLWFw
709
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4CVBr61zGnR30QlsXFM8nQ
853
710
854
__PACKAGE__->add_columns(
711
__PACKAGE__->add_columns(
855
    '+anonymized'              => { is_boolean => 1 },
712
    '+anonymized'              => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Deleteditem.pm (-95 / +6 lines)
Lines 29-67 __PACKAGE__->table("deleteditems"); Link Here
29
  default_value: 0
29
  default_value: 0
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key and unique identifier added by Koha
33
34
=head2 biblionumber
32
=head2 biblionumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  default_value: 0
35
  default_value: 0
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key from biblio table used to link this item to the right bib record
41
42
=head2 biblioitemnumber
38
=head2 biblioitemnumber
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  default_value: 0
41
  default_value: 0
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
foreign key from the biblioitems table to link to item to additional information
49
50
=head2 barcode
44
=head2 barcode
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 1
47
  is_nullable: 1
54
  size: 20
48
  size: 20
55
49
56
item barcode (MARC21 952$p)
57
58
=head2 bookable
50
=head2 bookable
59
51
60
  data_type: 'tinyint'
52
  data_type: 'tinyint'
61
  default_value: 0
53
  is_nullable: 1
62
  is_nullable: 0
63
54
64
boolean value defining whether this item is available for bookings or not
55
nullable boolean value defining whether this this item is available for bookings or not
65
56
66
=head2 dateaccessioned
57
=head2 dateaccessioned
67
58
Lines 69-131 boolean value defining whether this item is available for bookings or not Link Here
69
  datetime_undef_if_invalid: 1
60
  datetime_undef_if_invalid: 1
70
  is_nullable: 1
61
  is_nullable: 1
71
62
72
date the item was acquired or added to Koha (MARC21 952$d)
73
74
=head2 booksellerid
63
=head2 booksellerid
75
64
76
  data_type: 'longtext'
65
  data_type: 'longtext'
77
  is_nullable: 1
66
  is_nullable: 1
78
67
79
where the item was purchased (MARC21 952$e)
80
81
=head2 homebranch
68
=head2 homebranch
82
69
83
  data_type: 'varchar'
70
  data_type: 'varchar'
84
  is_nullable: 1
71
  is_nullable: 1
85
  size: 10
72
  size: 10
86
73
87
foreign key from the branches table for the library that owns this item (MARC21 952$a)
88
89
=head2 price
74
=head2 price
90
75
91
  data_type: 'decimal'
76
  data_type: 'decimal'
92
  is_nullable: 1
77
  is_nullable: 1
93
  size: [8,2]
78
  size: [8,2]
94
79
95
purchase price (MARC21 952$g)
96
97
=head2 replacementprice
80
=head2 replacementprice
98
81
99
  data_type: 'decimal'
82
  data_type: 'decimal'
100
  is_nullable: 1
83
  is_nullable: 1
101
  size: [8,2]
84
  size: [8,2]
102
85
103
cost the library charges to replace the item if it has been marked lost (MARC21 952$v)
104
105
=head2 replacementpricedate
86
=head2 replacementpricedate
106
87
107
  data_type: 'date'
88
  data_type: 'date'
108
  datetime_undef_if_invalid: 1
89
  datetime_undef_if_invalid: 1
109
  is_nullable: 1
90
  is_nullable: 1
110
91
111
the date the price is effective from (MARC21 952$w)
112
113
=head2 datelastborrowed
92
=head2 datelastborrowed
114
93
115
  data_type: 'date'
94
  data_type: 'date'
116
  datetime_undef_if_invalid: 1
95
  datetime_undef_if_invalid: 1
117
  is_nullable: 1
96
  is_nullable: 1
118
97
119
the date the item was last checked out
120
121
=head2 datelastseen
98
=head2 datelastseen
122
99
123
  data_type: 'datetime'
100
  data_type: 'datetime'
124
  datetime_undef_if_invalid: 1
101
  datetime_undef_if_invalid: 1
125
  is_nullable: 1
102
  is_nullable: 1
126
103
127
the date the item was last see (usually the last time the barcode was scanned or inventory was done)
128
129
=head2 stack
104
=head2 stack
130
105
131
  data_type: 'tinyint'
106
  data_type: 'tinyint'
Lines 137-266 the date the item was last see (usually the last time the barcode was scanned or Link Here
137
  default_value: 0
112
  default_value: 0
138
  is_nullable: 0
113
  is_nullable: 0
139
114
140
authorized value defining why this item is not for loan (MARC21 952$7)
141
142
=head2 damaged
115
=head2 damaged
143
116
144
  data_type: 'tinyint'
117
  data_type: 'tinyint'
145
  default_value: 0
118
  default_value: 0
146
  is_nullable: 0
119
  is_nullable: 0
147
120
148
authorized value defining this item as damaged (MARC21 952$4)
149
150
=head2 damaged_on
121
=head2 damaged_on
151
122
152
  data_type: 'datetime'
123
  data_type: 'datetime'
153
  datetime_undef_if_invalid: 1
124
  datetime_undef_if_invalid: 1
154
  is_nullable: 1
125
  is_nullable: 1
155
126
156
the date and time an item was last marked as damaged, NULL if not damaged
157
158
=head2 itemlost
127
=head2 itemlost
159
128
160
  data_type: 'tinyint'
129
  data_type: 'tinyint'
161
  default_value: 0
130
  default_value: 0
162
  is_nullable: 0
131
  is_nullable: 0
163
132
164
authorized value defining this item as lost (MARC21 952$1)
165
166
=head2 itemlost_on
133
=head2 itemlost_on
167
134
168
  data_type: 'datetime'
135
  data_type: 'datetime'
169
  datetime_undef_if_invalid: 1
136
  datetime_undef_if_invalid: 1
170
  is_nullable: 1
137
  is_nullable: 1
171
138
172
the date and time an item was last marked as lost, NULL if not lost
173
174
=head2 withdrawn
139
=head2 withdrawn
175
140
176
  data_type: 'tinyint'
141
  data_type: 'tinyint'
177
  default_value: 0
142
  default_value: 0
178
  is_nullable: 0
143
  is_nullable: 0
179
144
180
authorized value defining this item as withdrawn (MARC21 952$0)
181
182
=head2 withdrawn_on
145
=head2 withdrawn_on
183
146
184
  data_type: 'datetime'
147
  data_type: 'datetime'
185
  datetime_undef_if_invalid: 1
148
  datetime_undef_if_invalid: 1
186
  is_nullable: 1
149
  is_nullable: 1
187
150
188
the date and time an item was last marked as withdrawn, NULL if not withdrawn
189
190
=head2 itemcallnumber
151
=head2 itemcallnumber
191
152
192
  data_type: 'varchar'
153
  data_type: 'varchar'
193
  is_nullable: 1
154
  is_nullable: 1
194
  size: 255
155
  size: 255
195
156
196
call number for this item (MARC21 952$o)
197
198
=head2 coded_location_qualifier
157
=head2 coded_location_qualifier
199
158
200
  data_type: 'varchar'
159
  data_type: 'varchar'
201
  is_nullable: 1
160
  is_nullable: 1
202
  size: 10
161
  size: 10
203
162
204
coded location qualifier(MARC21 952$f)
205
206
=head2 issues
163
=head2 issues
207
164
208
  data_type: 'smallint'
165
  data_type: 'smallint'
209
  default_value: 0
166
  default_value: 0
210
  is_nullable: 1
167
  is_nullable: 1
211
168
212
number of times this item has been checked out
213
214
=head2 renewals
169
=head2 renewals
215
170
216
  data_type: 'smallint'
171
  data_type: 'smallint'
217
  is_nullable: 1
172
  is_nullable: 1
218
173
219
number of times this item has been renewed
220
221
=head2 localuse
174
=head2 localuse
222
175
223
  data_type: 'smallint'
176
  data_type: 'smallint'
224
  is_nullable: 1
177
  is_nullable: 1
225
178
226
number of times this item has been recorded as localuse
179
deleteditems local use count
227
180
228
=head2 reserves
181
=head2 reserves
229
182
230
  data_type: 'smallint'
183
  data_type: 'smallint'
231
  is_nullable: 1
184
  is_nullable: 1
232
185
233
number of times this item has been placed on hold/reserved
234
235
=head2 restricted
186
=head2 restricted
236
187
237
  data_type: 'tinyint'
188
  data_type: 'tinyint'
238
  is_nullable: 1
189
  is_nullable: 1
239
190
240
authorized value defining use restrictions for this item (MARC21 952$5)
241
242
=head2 itemnotes
191
=head2 itemnotes
243
192
244
  data_type: 'longtext'
193
  data_type: 'longtext'
245
  is_nullable: 1
194
  is_nullable: 1
246
195
247
public notes on this item (MARC21 952$z)
248
249
=head2 itemnotes_nonpublic
196
=head2 itemnotes_nonpublic
250
197
251
  data_type: 'longtext'
198
  data_type: 'longtext'
252
  is_nullable: 1
199
  is_nullable: 1
253
200
254
non-public notes on this item (MARC21 952$x)
255
256
=head2 holdingbranch
201
=head2 holdingbranch
257
202
258
  data_type: 'varchar'
203
  data_type: 'varchar'
259
  is_nullable: 1
204
  is_nullable: 1
260
  size: 10
205
  size: 10
261
206
262
foreign key from the branches table for the library that is currently in possession item (MARC21 952$b)
263
264
=head2 timestamp
207
=head2 timestamp
265
208
266
  data_type: 'timestamp'
209
  data_type: 'timestamp'
Lines 268-275 foreign key from the branches table for the library that is currently in possess Link Here
268
  default_value: current_timestamp
211
  default_value: current_timestamp
269
  is_nullable: 0
212
  is_nullable: 0
270
213
271
date and time this item was last altered
272
273
=head2 deleted_on
214
=head2 deleted_on
274
215
275
  data_type: 'datetime'
216
  data_type: 'datetime'
Lines 284-398 date/time of deletion Link Here
284
  is_nullable: 1
225
  is_nullable: 1
285
  size: 80
226
  size: 80
286
227
287
authorized value for the shelving location for this item (MARC21 952$c)
288
289
=head2 permanent_location
228
=head2 permanent_location
290
229
291
  data_type: 'varchar'
230
  data_type: 'varchar'
292
  is_nullable: 1
231
  is_nullable: 1
293
  size: 80
232
  size: 80
294
233
295
linked to the CART and PROC temporary locations feature, stores the permanent shelving location
296
297
=head2 onloan
234
=head2 onloan
298
235
299
  data_type: 'date'
236
  data_type: 'date'
300
  datetime_undef_if_invalid: 1
237
  datetime_undef_if_invalid: 1
301
  is_nullable: 1
238
  is_nullable: 1
302
239
303
defines if item is checked out (NULL for not checked out, and due date for checked out)
304
305
=head2 cn_source
240
=head2 cn_source
306
241
307
  data_type: 'varchar'
242
  data_type: 'varchar'
308
  is_nullable: 1
243
  is_nullable: 1
309
  size: 10
244
  size: 10
310
245
311
classification source used on this item (MARC21 952$2)
312
313
=head2 cn_sort
246
=head2 cn_sort
314
247
315
  data_type: 'varchar'
248
  data_type: 'varchar'
316
  is_nullable: 1
249
  is_nullable: 1
317
  size: 255
250
  size: 255
318
251
319
normalized form of the call number (MARC21 952$o) used for sorting
320
321
=head2 ccode
252
=head2 ccode
322
253
323
  data_type: 'varchar'
254
  data_type: 'varchar'
324
  is_nullable: 1
255
  is_nullable: 1
325
  size: 80
256
  size: 80
326
257
327
authorized value for the collection code associated with this item (MARC21 952$8)
328
329
=head2 materials
258
=head2 materials
330
259
331
  data_type: 'mediumtext'
260
  data_type: 'mediumtext'
332
  is_nullable: 1
261
  is_nullable: 1
333
262
334
materials specified (MARC21 952$3)
335
336
=head2 uri
263
=head2 uri
337
264
338
  data_type: 'mediumtext'
265
  data_type: 'mediumtext'
339
  is_nullable: 1
266
  is_nullable: 1
340
267
341
URL for the item (MARC21 952$u)
342
343
=head2 itype
268
=head2 itype
344
269
345
  data_type: 'varchar'
270
  data_type: 'varchar'
346
  is_nullable: 1
271
  is_nullable: 1
347
  size: 10
272
  size: 10
348
273
349
foreign key from the itemtypes table defining the type for this item (MARC21 952$y)
350
351
=head2 more_subfields_xml
274
=head2 more_subfields_xml
352
275
353
  data_type: 'longtext'
276
  data_type: 'longtext'
354
  is_nullable: 1
277
  is_nullable: 1
355
278
356
additional 952 subfields in XML format
357
358
=head2 enumchron
279
=head2 enumchron
359
280
360
  data_type: 'mediumtext'
281
  data_type: 'mediumtext'
361
  is_nullable: 1
282
  is_nullable: 1
362
283
363
serial enumeration/chronology for the item (MARC21 952$h)
364
365
=head2 copynumber
284
=head2 copynumber
366
285
367
  data_type: 'varchar'
286
  data_type: 'varchar'
368
  is_nullable: 1
287
  is_nullable: 1
369
  size: 32
288
  size: 32
370
289
371
copy number (MARC21 952$t)
372
373
=head2 stocknumber
290
=head2 stocknumber
374
291
375
  data_type: 'varchar'
292
  data_type: 'varchar'
376
  is_nullable: 1
293
  is_nullable: 1
377
  size: 32
294
  size: 32
378
295
379
inventory number (MARC21 952$i)
380
381
=head2 new_status
296
=head2 new_status
382
297
383
  data_type: 'varchar'
298
  data_type: 'varchar'
384
  is_nullable: 1
299
  is_nullable: 1
385
  size: 32
300
  size: 32
386
301
387
'new' value, you can put whatever free-text information. This field is intented to be managed by the automatic_item_modification_by_age cronjob.
388
389
=head2 exclude_from_local_holds_priority
302
=head2 exclude_from_local_holds_priority
390
303
391
  data_type: 'tinyint'
304
  data_type: 'tinyint'
392
  is_nullable: 1
305
  is_nullable: 1
393
306
394
Exclude this item from local holds priority
395
396
=cut
307
=cut
397
308
398
__PACKAGE__->add_columns(
309
__PACKAGE__->add_columns(
Lines 405-411 __PACKAGE__->add_columns( Link Here
405
  "barcode",
316
  "barcode",
406
  { data_type => "varchar", is_nullable => 1, size => 20 },
317
  { data_type => "varchar", is_nullable => 1, size => 20 },
407
  "bookable",
318
  "bookable",
408
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
319
  { data_type => "tinyint", is_nullable => 1 },
409
  "dateaccessioned",
320
  "dateaccessioned",
410
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
321
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
411
  "booksellerid",
322
  "booksellerid",
Lines 532-539 __PACKAGE__->add_columns( Link Here
532
__PACKAGE__->set_primary_key("itemnumber");
443
__PACKAGE__->set_primary_key("itemnumber");
533
444
534
445
535
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56
446
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
536
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YYwxdwFVXmG0NJ0oFd8bUg
447
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Y1SpAvgRu3lEpPslJa09g
537
448
538
__PACKAGE__->add_columns(
449
__PACKAGE__->add_columns(
539
    '+bookable'                          => { is_boolean => 1 },
450
    '+bookable'                          => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Desk.pm (-8 / +2 lines)
Lines 29-36 __PACKAGE__->table("desks"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier
33
34
=head2 desk_name
32
=head2 desk_name
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
Lines 38-45 unique identifier Link Here
38
  is_nullable: 0
36
  is_nullable: 0
39
  size: 100
37
  size: 100
40
38
41
name of the desk
42
43
=head2 branchcode
39
=head2 branchcode
44
40
45
  data_type: 'varchar'
41
  data_type: 'varchar'
Lines 47-54 name of the desk Link Here
47
  is_nullable: 0
43
  is_nullable: 0
48
  size: 10
44
  size: 10
49
45
50
library the desk is located at
51
52
=cut
46
=cut
53
47
54
__PACKAGE__->add_columns(
48
__PACKAGE__->add_columns(
Lines 105-112 __PACKAGE__->has_many( Link Here
105
);
99
);
106
100
107
101
108
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
102
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7qeCP25arGQpM4xxnTmWbw
103
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yrEgeIm5/N7WpA+8osCdtg
110
104
111
105
112
# You can replace this text with custom code or comments, and it will be preserved on regeneration
106
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ErmCounterFile.pm (-4 / +4 lines)
Lines 67-73 content of the counter file Link Here
67
  data_type: 'timestamp'
67
  data_type: 'timestamp'
68
  datetime_undef_if_invalid: 1
68
  datetime_undef_if_invalid: 1
69
  default_value: current_timestamp
69
  default_value: current_timestamp
70
  is_nullable: 1
70
  is_nullable: 0
71
71
72
counter file upload date
72
counter file upload date
73
73
Lines 89-95 __PACKAGE__->add_columns( Link Here
89
    data_type => "timestamp",
89
    data_type => "timestamp",
90
    datetime_undef_if_invalid => 1,
90
    datetime_undef_if_invalid => 1,
91
    default_value => \"current_timestamp",
91
    default_value => \"current_timestamp",
92
    is_nullable => 1,
92
    is_nullable => 0,
93
  },
93
  },
94
);
94
);
95
95
Lines 143-150 __PACKAGE__->belongs_to( Link Here
143
);
143
);
144
144
145
145
146
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-30 17:43:57
146
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
147
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnXyJtZQBhfxPPNnkyxJ8Q
147
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yYR3WnsXxqTwOZktcyLerQ
148
148
149
149
150
sub koha_object_class {
150
sub koha_object_class {
(-)a/Koha/Schema/Result/ErmCounterLog.pm (-4 / +4 lines)
Lines 60-66 foreign key to erm_usage_data_providers Link Here
60
  data_type: 'timestamp'
60
  data_type: 'timestamp'
61
  datetime_undef_if_invalid: 1
61
  datetime_undef_if_invalid: 1
62
  default_value: current_timestamp
62
  default_value: current_timestamp
63
  is_nullable: 1
63
  is_nullable: 0
64
64
65
counter file import date
65
counter file import date
66
66
Lines 95-101 __PACKAGE__->add_columns( Link Here
95
    data_type => "timestamp",
95
    data_type => "timestamp",
96
    datetime_undef_if_invalid => 1,
96
    datetime_undef_if_invalid => 1,
97
    default_value => \"current_timestamp",
97
    default_value => \"current_timestamp",
98
    is_nullable => 1,
98
    is_nullable => 0,
99
  },
99
  },
100
  "filename",
100
  "filename",
101
  { data_type => "varchar", is_nullable => 1, size => 80 },
101
  { data_type => "varchar", is_nullable => 1, size => 80 },
Lines 178-185 __PACKAGE__->belongs_to( Link Here
178
);
178
);
179
179
180
180
181
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-30 17:43:57
181
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
182
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fEB6HZDsjTTJVWlnW+y/Ng
182
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JFKRlR0HcnqIMTFnOyBFiQ
183
183
184
184
185
sub koha_object_class {
185
sub koha_object_class {
(-)a/Koha/Schema/Result/ErmDocument.pm (-3 / +3 lines)
Lines 45-51 link to the agreement Link Here
45
  is_foreign_key: 1
45
  is_foreign_key: 1
46
  is_nullable: 1
46
  is_nullable: 1
47
47
48
link to the license
48
link to the agreement
49
49
50
=head2 file_name
50
=head2 file_name
51
51
Lines 195-202 __PACKAGE__->belongs_to( Link Here
195
);
195
);
196
196
197
197
198
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-21 09:22:27
198
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
199
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rbU2G4zjKlEcOtuwVBSXaw
199
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zjASY5cR5PtRB6pI1uhgwA
200
200
201
sub koha_object_class {
201
sub koha_object_class {
202
    'Koha::ERM::Document';
202
    'Koha::ERM::Document';
(-)a/Koha/Schema/Result/HouseboundProfile.pm (-18 / +2 lines)
Lines 29-85 __PACKAGE__->table("housebound_profile"); Link Here
29
  is_foreign_key: 1
29
  is_foreign_key: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
Number of the borrower associated with this profile.
33
34
=head2 day
32
=head2 day
35
33
36
  data_type: 'mediumtext'
34
  data_type: 'mediumtext'
37
  is_nullable: 0
35
  is_nullable: 0
38
36
39
The preferred day of the week for delivery.
40
41
=head2 frequency
37
=head2 frequency
42
38
43
  data_type: 'mediumtext'
39
  data_type: 'mediumtext'
44
  is_nullable: 0
40
  is_nullable: 0
45
41
46
The Authorised_Value definining the pattern for delivery.
47
48
=head2 fav_itemtypes
42
=head2 fav_itemtypes
49
43
50
  data_type: 'mediumtext'
44
  data_type: 'mediumtext'
51
  is_nullable: 1
45
  is_nullable: 1
52
46
53
Free text describing preferred itemtypes.
54
55
=head2 fav_subjects
47
=head2 fav_subjects
56
48
57
  data_type: 'mediumtext'
49
  data_type: 'mediumtext'
58
  is_nullable: 1
50
  is_nullable: 1
59
51
60
Free text describing preferred subjects.
61
62
=head2 fav_authors
52
=head2 fav_authors
63
53
64
  data_type: 'mediumtext'
54
  data_type: 'mediumtext'
65
  is_nullable: 1
55
  is_nullable: 1
66
56
67
Free text describing preferred authors.
68
69
=head2 referral
57
=head2 referral
70
58
71
  data_type: 'mediumtext'
59
  data_type: 'mediumtext'
72
  is_nullable: 1
60
  is_nullable: 1
73
61
74
Free text indicating how the borrower was added to the service.
75
76
=head2 notes
62
=head2 notes
77
63
78
  data_type: 'mediumtext'
64
  data_type: 'mediumtext'
79
  is_nullable: 1
65
  is_nullable: 1
80
66
81
Free text for additional notes.
82
83
=cut
67
=cut
84
68
85
__PACKAGE__->add_columns(
69
__PACKAGE__->add_columns(
Lines 146-153 __PACKAGE__->has_many( Link Here
146
);
130
);
147
131
148
132
149
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
133
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
150
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VmCvv8WVQCmAXCfWHsLIdg
134
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Y0wlmZ8Taku/B/icA/Etpg
151
135
152
sub koha_object_class {
136
sub koha_object_class {
153
    'Koha::Patron::HouseboundProfile';
137
    'Koha::Patron::HouseboundProfile';
(-)a/Koha/Schema/Result/HouseboundRole.pm (-8 / +2 lines)
Lines 29-52 __PACKAGE__->table("housebound_role"); Link Here
29
  is_foreign_key: 1
29
  is_foreign_key: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
borrowernumber link
33
34
=head2 housebound_chooser
32
=head2 housebound_chooser
35
33
36
  data_type: 'tinyint'
34
  data_type: 'tinyint'
37
  default_value: 0
35
  default_value: 0
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
set to 1 to indicate this patron is a housebound chooser volunteer
41
42
=head2 housebound_deliverer
38
=head2 housebound_deliverer
43
39
44
  data_type: 'tinyint'
40
  data_type: 'tinyint'
45
  default_value: 0
41
  default_value: 0
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
set to 1 to indicate this patron is a housebound deliverer volunteer
49
50
=cut
44
=cut
51
45
52
__PACKAGE__->add_columns(
46
__PACKAGE__->add_columns(
Lines 88-95 __PACKAGE__->belongs_to( Link Here
88
);
82
);
89
83
90
84
91
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
85
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BocU8VE+5j4lYlxNU6Lofw
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s2PnvRRo5tOqRfG/OxfqdQ
93
87
94
sub koha_object_class {
88
sub koha_object_class {
95
    'Koha::Patron::HouseboundRole';
89
    'Koha::Patron::HouseboundRole';
(-)a/Koha/Schema/Result/HouseboundVisit.pm (-14 / +2 lines)
Lines 29-76 __PACKAGE__->table("housebound_visit"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
ID of the visit.
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
Number of the borrower, & the profile, linked to this visit.
41
42
=head2 appointment_date
38
=head2 appointment_date
43
39
44
  data_type: 'date'
40
  data_type: 'date'
45
  datetime_undef_if_invalid: 1
41
  datetime_undef_if_invalid: 1
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
Date of visit.
49
50
=head2 day_segment
44
=head2 day_segment
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 1
47
  is_nullable: 1
54
  size: 10
48
  size: 10
55
49
56
Rough time frame: 'morning', 'afternoon' 'evening'
57
58
=head2 chooser_brwnumber
50
=head2 chooser_brwnumber
59
51
60
  data_type: 'integer'
52
  data_type: 'integer'
61
  is_foreign_key: 1
53
  is_foreign_key: 1
62
  is_nullable: 1
54
  is_nullable: 1
63
55
64
Number of the borrower to choose items  for delivery.
65
66
=head2 deliverer_brwnumber
56
=head2 deliverer_brwnumber
67
57
68
  data_type: 'integer'
58
  data_type: 'integer'
69
  is_foreign_key: 1
59
  is_foreign_key: 1
70
  is_nullable: 1
60
  is_nullable: 1
71
61
72
Number of the borrower to deliver items.
73
74
=cut
62
=cut
75
63
76
__PACKAGE__->add_columns(
64
__PACKAGE__->add_columns(
Lines 158-165 __PACKAGE__->belongs_to( Link Here
158
);
146
);
159
147
160
148
161
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
149
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
162
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PJwWk4901BF+CG6AXgjffg
150
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YOMDRcb24vwXqrGIcmdqyw
163
151
164
sub koha_object_class {
152
sub koha_object_class {
165
    'Koha::Patron::HouseboundVisit';
153
    'Koha::Patron::HouseboundVisit';
(-)a/Koha/Schema/Result/Illcomment.pm (-12 / +2 lines)
Lines 29-36 __PACKAGE__->table("illcomments"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
Unique ID of the comment
33
34
=head2 illrequest_id
32
=head2 illrequest_id
35
33
36
  data_type: 'bigint'
34
  data_type: 'bigint'
Lines 38-60 Unique ID of the comment Link Here
38
  is_foreign_key: 1
36
  is_foreign_key: 1
39
  is_nullable: 0
37
  is_nullable: 0
40
38
41
ILL request number
42
43
=head2 borrowernumber
39
=head2 borrowernumber
44
40
45
  data_type: 'integer'
41
  data_type: 'integer'
46
  is_foreign_key: 1
42
  is_foreign_key: 1
47
  is_nullable: 1
43
  is_nullable: 1
48
44
49
Link to the user who made the comment (could be librarian, patron or ILL partner library)
50
51
=head2 comment
45
=head2 comment
52
46
53
  data_type: 'text'
47
  data_type: 'text'
54
  is_nullable: 1
48
  is_nullable: 1
55
49
56
The text of the comment
57
58
=head2 timestamp
50
=head2 timestamp
59
51
60
  data_type: 'timestamp'
52
  data_type: 'timestamp'
Lines 62-69 The text of the comment Link Here
62
  default_value: current_timestamp
54
  default_value: current_timestamp
63
  is_nullable: 0
55
  is_nullable: 0
64
56
65
Date and time when the comment was made
66
67
=cut
57
=cut
68
58
69
__PACKAGE__->add_columns(
59
__PACKAGE__->add_columns(
Lines 139-146 __PACKAGE__->belongs_to( Link Here
139
);
129
);
140
130
141
131
142
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
132
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
143
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z5Y6mVTLtrYxmqmyAc/E7A
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7JsdOuwMPLzGXsWQ1cm5Fw
144
#
134
#
145
sub koha_objects_class {
135
sub koha_objects_class {
146
    'Koha::ILL::Comments';
136
    'Koha::ILL::Comments';
(-)a/Koha/Schema/Result/Illrequest.pm (-36 / +2 lines)
Lines 30-53 __PACKAGE__->table("illrequests"); Link Here
30
  is_auto_increment: 1
30
  is_auto_increment: 1
31
  is_nullable: 0
31
  is_nullable: 0
32
32
33
ILL request number
34
35
=head2 borrowernumber
33
=head2 borrowernumber
36
34
37
  data_type: 'integer'
35
  data_type: 'integer'
38
  is_foreign_key: 1
36
  is_foreign_key: 1
39
  is_nullable: 1
37
  is_nullable: 1
40
38
41
Patron associated with request
42
43
=head2 biblio_id
39
=head2 biblio_id
44
40
45
  data_type: 'integer'
41
  data_type: 'integer'
46
  is_foreign_key: 1
42
  is_foreign_key: 1
47
  is_nullable: 1
43
  is_nullable: 1
48
44
49
Potential bib linked to request
50
51
=head2 deleted_biblio_id
45
=head2 deleted_biblio_id
52
46
53
  data_type: 'integer'
47
  data_type: 'integer'
Lines 70-85 Custom date due specified by backend, leave NULL for default date_due calculatio Link Here
70
  is_nullable: 0
64
  is_nullable: 0
71
  size: 50
65
  size: 50
72
66
73
The branch associated with the request
74
75
=head2 status
67
=head2 status
76
68
77
  data_type: 'varchar'
69
  data_type: 'varchar'
78
  is_nullable: 1
70
  is_nullable: 1
79
  size: 50
71
  size: 50
80
72
81
Current Koha status of request
82
83
=head2 status_alias
73
=head2 status_alias
84
74
85
  data_type: 'varchar'
75
  data_type: 'varchar'
Lines 87-110 Current Koha status of request Link Here
87
  is_nullable: 1
77
  is_nullable: 1
88
  size: 80
78
  size: 80
89
79
90
Foreign key to relevant authorised_values.authorised_value
91
92
=head2 placed
80
=head2 placed
93
81
94
  data_type: 'date'
82
  data_type: 'date'
95
  datetime_undef_if_invalid: 1
83
  datetime_undef_if_invalid: 1
96
  is_nullable: 1
84
  is_nullable: 1
97
85
98
Date the request was placed
99
100
=head2 replied
86
=head2 replied
101
87
102
  data_type: 'date'
88
  data_type: 'date'
103
  datetime_undef_if_invalid: 1
89
  datetime_undef_if_invalid: 1
104
  is_nullable: 1
90
  is_nullable: 1
105
91
106
Last API response
107
108
=head2 updated
92
=head2 updated
109
93
110
  data_type: 'timestamp'
94
  data_type: 'timestamp'
Lines 118-187 Last API response Link Here
118
  datetime_undef_if_invalid: 1
102
  datetime_undef_if_invalid: 1
119
  is_nullable: 1
103
  is_nullable: 1
120
104
121
Date the request was completed
122
123
=head2 medium
105
=head2 medium
124
106
125
  data_type: 'varchar'
107
  data_type: 'varchar'
126
  is_nullable: 1
108
  is_nullable: 1
127
  size: 30
109
  size: 30
128
110
129
The Koha request type
130
131
=head2 accessurl
111
=head2 accessurl
132
112
133
  data_type: 'varchar'
113
  data_type: 'varchar'
134
  is_nullable: 1
114
  is_nullable: 1
135
  size: 500
115
  size: 500
136
116
137
Potential URL for accessing item
138
139
=head2 cost
117
=head2 cost
140
118
141
  data_type: 'varchar'
119
  data_type: 'varchar'
142
  is_nullable: 1
120
  is_nullable: 1
143
  size: 20
121
  size: 20
144
122
145
Quotes cost of request
146
147
=head2 price_paid
123
=head2 price_paid
148
124
149
  data_type: 'varchar'
125
  data_type: 'varchar'
150
  is_nullable: 1
126
  is_nullable: 1
151
  size: 20
127
  size: 20
152
128
153
Final cost of request
154
155
=head2 notesopac
129
=head2 notesopac
156
130
157
  data_type: 'mediumtext'
131
  data_type: 'mediumtext'
158
  is_nullable: 1
132
  is_nullable: 1
159
133
160
Patron notes attached to request
161
162
=head2 notesstaff
134
=head2 notesstaff
163
135
164
  data_type: 'mediumtext'
136
  data_type: 'mediumtext'
165
  is_nullable: 1
137
  is_nullable: 1
166
138
167
Staff notes attached to request
168
169
=head2 orderid
139
=head2 orderid
170
140
171
  data_type: 'varchar'
141
  data_type: 'varchar'
172
  is_nullable: 1
142
  is_nullable: 1
173
  size: 50
143
  size: 50
174
144
175
Backend id attached to request
176
177
=head2 backend
145
=head2 backend
178
146
179
  data_type: 'varchar'
147
  data_type: 'varchar'
180
  is_nullable: 1
148
  is_nullable: 1
181
  size: 20
149
  size: 20
182
150
183
The backend used to create request
184
185
=head2 batch_id
151
=head2 batch_id
186
152
187
  data_type: 'integer'
153
  data_type: 'integer'
Lines 391-398 __PACKAGE__->belongs_to( Link Here
391
);
357
);
392
358
393
359
394
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-10 14:49:40
360
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
395
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DQl+7uwLCz5GeqU2hBFmMA
361
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zNb38zhSBhr1qFuX0MKLpw
396
362
397
__PACKAGE__->has_many(
363
__PACKAGE__->has_many(
398
  "comments",
364
  "comments",
(-)a/Koha/Schema/Result/Illrequestattribute.pm (-10 / +2 lines)
Lines 30-37 __PACKAGE__->table("illrequestattributes"); Link Here
30
  is_foreign_key: 1
30
  is_foreign_key: 1
31
  is_nullable: 0
31
  is_nullable: 0
32
32
33
ILL request number
34
35
=head2 backend
33
=head2 backend
36
34
37
  data_type: 'varchar'
35
  data_type: 'varchar'
Lines 46-68 API ILL backend name Link Here
46
  is_nullable: 0
44
  is_nullable: 0
47
  size: 200
45
  size: 200
48
46
49
API ILL property name
50
51
=head2 value
47
=head2 value
52
48
53
  data_type: 'mediumtext'
49
  data_type: 'mediumtext'
54
  is_nullable: 0
50
  is_nullable: 0
55
51
56
API ILL property value
57
58
=head2 readonly
52
=head2 readonly
59
53
60
  data_type: 'tinyint'
54
  data_type: 'tinyint'
61
  default_value: 1
55
  default_value: 1
62
  is_nullable: 0
56
  is_nullable: 0
63
57
64
Is this attribute read only
65
66
=cut
58
=cut
67
59
68
__PACKAGE__->add_columns(
60
__PACKAGE__->add_columns(
Lines 117-124 __PACKAGE__->belongs_to( Link Here
117
);
109
);
118
110
119
111
120
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-25 14:33:42
112
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ACb1xoMuMjLHDIit/H29Vw
113
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7bKpM3D84mESMJCB1qWzTQ
122
114
123
__PACKAGE__->add_columns(
115
__PACKAGE__->add_columns(
124
    '+readonly' => { is_boolean => 1 }
116
    '+readonly' => { is_boolean => 1 }
(-)a/Koha/Schema/Result/ImportBatch.pm (-28 / +2 lines)
Lines 29-43 __PACKAGE__->table("import_batches"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier and primary key
33
34
=head2 matcher_id
32
=head2 matcher_id
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_nullable: 1
35
  is_nullable: 1
38
36
39
the id of the match rule used (matchpoints.matcher_id)
40
41
=head2 template_id
37
=head2 template_id
42
38
43
  data_type: 'integer'
39
  data_type: 'integer'
Lines 55-70 the id of the match rule used (matchpoints.matcher_id) Link Here
55
  default_value: 0
51
  default_value: 0
56
  is_nullable: 0
52
  is_nullable: 0
57
53
58
number of records in the file
59
60
=head2 num_items
54
=head2 num_items
61
55
62
  data_type: 'integer'
56
  data_type: 'integer'
63
  default_value: 0
57
  default_value: 0
64
  is_nullable: 0
58
  is_nullable: 0
65
59
66
number of items in the file
67
68
=head2 upload_timestamp
60
=head2 upload_timestamp
69
61
70
  data_type: 'timestamp'
62
  data_type: 'timestamp'
Lines 72-79 number of items in the file Link Here
72
  default_value: current_timestamp
64
  default_value: current_timestamp
73
  is_nullable: 0
65
  is_nullable: 0
74
66
75
date and time the file was uploaded
76
77
=head2 overlay_action
67
=head2 overlay_action
78
68
79
  data_type: 'enum'
69
  data_type: 'enum'
Lines 81-88 date and time the file was uploaded Link Here
81
  extra: {list => ["replace","create_new","use_template","ignore"]}
71
  extra: {list => ["replace","create_new","use_template","ignore"]}
82
  is_nullable: 0
72
  is_nullable: 0
83
73
84
how to handle duplicate records
85
86
=head2 nomatch_action
74
=head2 nomatch_action
87
75
88
  data_type: 'enum'
76
  data_type: 'enum'
Lines 90-97 how to handle duplicate records Link Here
90
  extra: {list => ["create_new","ignore"]}
78
  extra: {list => ["create_new","ignore"]}
91
  is_nullable: 0
79
  is_nullable: 0
92
80
93
how to handle records where no match is found
94
95
=head2 item_action
81
=head2 item_action
96
82
97
  data_type: 'enum'
83
  data_type: 'enum'
Lines 99-106 how to handle records where no match is found Link Here
99
  extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore","replace"]}
85
  extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore","replace"]}
100
  is_nullable: 0
86
  is_nullable: 0
101
87
102
what to do with item records
103
104
=head2 import_status
88
=head2 import_status
105
89
106
  data_type: 'enum'
90
  data_type: 'enum'
Lines 108-115 what to do with item records Link Here
108
  extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]}
92
  extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]}
109
  is_nullable: 0
93
  is_nullable: 0
110
94
111
the status of the imported file
112
113
=head2 batch_type
95
=head2 batch_type
114
96
115
  data_type: 'enum'
97
  data_type: 'enum'
Lines 117-124 the status of the imported file Link Here
117
  extra: {list => ["batch","z3950","webservice"]}
99
  extra: {list => ["batch","z3950","webservice"]}
118
  is_nullable: 0
100
  is_nullable: 0
119
101
120
where this batch has come from
121
122
=head2 record_type
102
=head2 record_type
123
103
124
  data_type: 'enum'
104
  data_type: 'enum'
Lines 126-148 where this batch has come from Link Here
126
  extra: {list => ["biblio","auth","holdings"]}
106
  extra: {list => ["biblio","auth","holdings"]}
127
  is_nullable: 0
107
  is_nullable: 0
128
108
129
type of record in the batch
130
131
=head2 file_name
109
=head2 file_name
132
110
133
  data_type: 'varchar'
111
  data_type: 'varchar'
134
  is_nullable: 1
112
  is_nullable: 1
135
  size: 100
113
  size: 100
136
114
137
the name of the file uploaded
138
139
=head2 comments
115
=head2 comments
140
116
141
  data_type: 'longtext'
117
  data_type: 'longtext'
142
  is_nullable: 1
118
  is_nullable: 1
143
119
144
any comments added when the file was uploaded
145
146
=head2 profile_id
120
=head2 profile_id
147
121
148
  data_type: 'integer'
122
  data_type: 'integer'
Lines 289-296 __PACKAGE__->belongs_to( Link Here
289
);
263
);
290
264
291
265
292
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
266
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
293
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+/u1tQQzT5ygzGwVgWxxwg
267
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uFoAppnU5qt3O5SGTpDYNA
294
268
295
=head2 koha_object_class
269
=head2 koha_object_class
296
270
(-)a/Koha/Schema/Result/ImportBatchProfile.pm (-26 / +2 lines)
Lines 29-120 __PACKAGE__->table("import_batch_profiles"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier and primary key
33
34
=head2 name
32
=head2 name
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 0
35
  is_nullable: 0
38
  size: 100
36
  size: 100
39
37
40
name of this profile
41
42
=head2 matcher_id
38
=head2 matcher_id
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
the id of the match rule used (matchpoints.matcher_id)
48
49
=head2 template_id
43
=head2 template_id
50
44
51
  data_type: 'integer'
45
  data_type: 'integer'
52
  is_nullable: 1
46
  is_nullable: 1
53
47
54
the id of the marc modification template
55
56
=head2 overlay_action
48
=head2 overlay_action
57
49
58
  data_type: 'varchar'
50
  data_type: 'varchar'
59
  is_nullable: 1
51
  is_nullable: 1
60
  size: 50
52
  size: 50
61
53
62
how to handle duplicate records
63
64
=head2 nomatch_action
54
=head2 nomatch_action
65
55
66
  data_type: 'varchar'
56
  data_type: 'varchar'
67
  is_nullable: 1
57
  is_nullable: 1
68
  size: 50
58
  size: 50
69
59
70
how to handle records where no match is found
71
72
=head2 item_action
60
=head2 item_action
73
61
74
  data_type: 'varchar'
62
  data_type: 'varchar'
75
  is_nullable: 1
63
  is_nullable: 1
76
  size: 50
64
  size: 50
77
65
78
what to do with item records
79
80
=head2 parse_items
66
=head2 parse_items
81
67
82
  data_type: 'tinyint'
68
  data_type: 'tinyint'
83
  is_nullable: 1
69
  is_nullable: 1
84
70
85
should items be parsed
86
87
=head2 record_type
71
=head2 record_type
88
72
89
  data_type: 'varchar'
73
  data_type: 'varchar'
90
  is_nullable: 1
74
  is_nullable: 1
91
  size: 50
75
  size: 50
92
76
93
type of record in the batch
94
95
=head2 encoding
77
=head2 encoding
96
78
97
  data_type: 'varchar'
79
  data_type: 'varchar'
98
  is_nullable: 1
80
  is_nullable: 1
99
  size: 50
81
  size: 50
100
82
101
file encoding
102
103
=head2 format
83
=head2 format
104
84
105
  data_type: 'varchar'
85
  data_type: 'varchar'
106
  is_nullable: 1
86
  is_nullable: 1
107
  size: 50
87
  size: 50
108
88
109
marc format
110
111
=head2 comments
89
=head2 comments
112
90
113
  data_type: 'longtext'
91
  data_type: 'longtext'
114
  is_nullable: 1
92
  is_nullable: 1
115
93
116
any comments added when the file was uploaded
117
118
=cut
94
=cut
119
95
120
__PACKAGE__->add_columns(
96
__PACKAGE__->add_columns(
Lines 188-195 __PACKAGE__->has_many( Link Here
188
);
164
);
189
165
190
166
191
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
167
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
192
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RmvuwPN8RT+tBsxR+Q7unA
168
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OUHaIfgycYzwP8lVDNIq2w
193
169
194
170
195
# You can replace this text with custom code or comments, and it will be preserved on regeneration
171
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ImportRecordMatch.pm (-10 / +2 lines)
Lines 29-58 __PACKAGE__->table("import_record_matches"); Link Here
29
  is_foreign_key: 1
29
  is_foreign_key: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
the id given to the imported bib record (import_records.import_record_id)
33
34
=head2 candidate_match_id
32
=head2 candidate_match_id
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_nullable: 0
35
  is_nullable: 0
38
36
39
the biblio the imported record matches (biblio.biblionumber)
40
41
=head2 score
37
=head2 score
42
38
43
  data_type: 'integer'
39
  data_type: 'integer'
44
  default_value: 0
40
  default_value: 0
45
  is_nullable: 0
41
  is_nullable: 0
46
42
47
the match score
48
49
=head2 chosen
43
=head2 chosen
50
44
51
  data_type: 'tinyint'
45
  data_type: 'tinyint'
52
  is_nullable: 1
46
  is_nullable: 1
53
47
54
whether this match has been allowed or denied
55
56
=cut
48
=cut
57
49
58
__PACKAGE__->add_columns(
50
__PACKAGE__->add_columns(
Lines 98-105 __PACKAGE__->belongs_to( Link Here
98
);
90
);
99
91
100
92
101
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-03 20:30:28
93
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a1GMA3K9ZgtPGdsCWmDMFw
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:puw090AMgWU8yoOKjM3fIA
103
95
104
__PACKAGE__->add_columns(
96
__PACKAGE__->add_columns(
105
    '+chosen' => { is_boolean => 1 },
97
    '+chosen' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Issue.pm (-31 / +26 lines)
Lines 29-36 __PACKAGE__->table("issues"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key for issues table
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
Lines 45-52 foreign key, linking this to the borrowers table for the patron this item was ch Link Here
45
  is_foreign_key: 1
43
  is_foreign_key: 1
46
  is_nullable: 1
44
  is_nullable: 1
47
45
48
foreign key, linking this to the borrowers table for the user who checked out this item
49
50
=head2 itemnumber
46
=head2 itemnumber
51
47
52
  data_type: 'integer'
48
  data_type: 'integer'
Lines 61-83 foreign key, linking this to the items table for the item that was checked out Link Here
61
  datetime_undef_if_invalid: 1
57
  datetime_undef_if_invalid: 1
62
  is_nullable: 1
58
  is_nullable: 1
63
59
64
datetime the item is due (yyyy-mm-dd hh:mm::ss)
65
66
=head2 branchcode
60
=head2 branchcode
67
61
68
  data_type: 'varchar'
62
  data_type: 'varchar'
69
  is_nullable: 1
63
  is_nullable: 1
70
  size: 10
64
  size: 10
71
65
72
foreign key, linking to the branches table for the location the item was checked out
73
74
=head2 returndate
66
=head2 returndate
75
67
76
  data_type: 'datetime'
68
  data_type: 'datetime'
77
  datetime_undef_if_invalid: 1
69
  datetime_undef_if_invalid: 1
78
  is_nullable: 1
70
  is_nullable: 1
79
71
80
date the item was returned, will be NULL until moved to old_issues
72
=head2 checkin_library
73
74
  data_type: 'varchar'
75
  is_nullable: 1
76
  size: 10
77
78
library the item was checked in at
81
79
82
=head2 lastreneweddate
80
=head2 lastreneweddate
83
81
Lines 85-92 date the item was returned, will be NULL until moved to old_issues Link Here
85
  datetime_undef_if_invalid: 1
83
  datetime_undef_if_invalid: 1
86
  is_nullable: 1
84
  is_nullable: 1
87
85
88
date the item was last renewed
89
90
=head2 renewals_count
86
=head2 renewals_count
91
87
92
  data_type: 'tinyint'
88
  data_type: 'tinyint'
Lines 101-124 lists the number of times the item was renewed Link Here
101
  default_value: 0
97
  default_value: 0
102
  is_nullable: 0
98
  is_nullable: 0
103
99
104
lists the number of consecutive times the item was renewed without being seen
105
106
=head2 auto_renew
100
=head2 auto_renew
107
101
108
  data_type: 'tinyint'
102
  data_type: 'tinyint'
109
  default_value: 0
103
  default_value: 0
110
  is_nullable: 1
104
  is_nullable: 1
111
105
112
automatic renewal
113
114
=head2 auto_renew_error
106
=head2 auto_renew_error
115
107
116
  data_type: 'varchar'
108
  data_type: 'varchar'
117
  is_nullable: 1
109
  is_nullable: 1
118
  size: 32
110
  size: 32
119
111
120
automatic renewal error
121
122
=head2 timestamp
112
=head2 timestamp
123
113
124
  data_type: 'timestamp'
114
  data_type: 'timestamp'
Lines 126-171 automatic renewal error Link Here
126
  default_value: current_timestamp
116
  default_value: current_timestamp
127
  is_nullable: 0
117
  is_nullable: 0
128
118
129
the date and time this record was last touched
130
131
=head2 issuedate
119
=head2 issuedate
132
120
133
  data_type: 'datetime'
121
  data_type: 'datetime'
134
  datetime_undef_if_invalid: 1
122
  datetime_undef_if_invalid: 1
135
  is_nullable: 1
123
  is_nullable: 1
136
124
137
date the item was checked out or issued
138
139
=head2 onsite_checkout
125
=head2 onsite_checkout
140
126
141
  data_type: 'integer'
127
  data_type: 'integer'
142
  default_value: 0
128
  default_value: 0
143
  is_nullable: 0
129
  is_nullable: 0
144
130
145
in house use flag
146
147
=head2 note
131
=head2 note
148
132
149
  data_type: 'longtext'
133
  data_type: 'longtext'
150
  is_nullable: 1
134
  is_nullable: 1
151
135
152
issue note text
153
154
=head2 notedate
136
=head2 notedate
155
137
156
  data_type: 'datetime'
138
  data_type: 'datetime'
157
  datetime_undef_if_invalid: 1
139
  datetime_undef_if_invalid: 1
158
  is_nullable: 1
140
  is_nullable: 1
159
141
160
datetime of issue note (yyyy-mm-dd hh:mm::ss)
161
162
=head2 noteseen
142
=head2 noteseen
163
143
164
  data_type: 'integer'
144
  data_type: 'integer'
165
  is_nullable: 1
145
  is_nullable: 1
166
146
167
describes whether checkout note has been seen 1, not been seen 0 or doesn't exist null
168
169
=cut
147
=cut
170
148
171
__PACKAGE__->add_columns(
149
__PACKAGE__->add_columns(
Lines 191-196 __PACKAGE__->add_columns( Link Here
191
    datetime_undef_if_invalid => 1,
169
    datetime_undef_if_invalid => 1,
192
    is_nullable => 1,
170
    is_nullable => 1,
193
  },
171
  },
172
  "checkin_library",
173
  { data_type => "varchar", is_nullable => 1, size => 10 },
194
  "lastreneweddate",
174
  "lastreneweddate",
195
  {
175
  {
196
    data_type => "datetime",
176
    data_type => "datetime",
Lines 260-265 __PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]); Link Here
260
240
261
=head1 RELATIONS
241
=head1 RELATIONS
262
242
243
=head2 accountlines
244
245
Type: has_many
246
247
Related object: L<Koha::Schema::Result::Accountline>
248
249
=cut
250
251
__PACKAGE__->has_many(
252
  "accountlines",
253
  "Koha::Schema::Result::Accountline",
254
  { "foreign.issue_id" => "self.issue_id" },
255
  { cascade_copy => 0, cascade_delete => 0 },
256
);
257
263
=head2 borrowernumber
258
=head2 borrowernumber
264
259
265
Type: belongs_to
260
Type: belongs_to
Lines 311-318 __PACKAGE__->belongs_to( Link Here
311
);
306
);
312
307
313
308
314
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-12 11:34:50
309
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
315
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eNzDAKc3bmTLWeDu8u4nTQ
310
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qe/lwF8MIus9bQNtrvdSQg
316
311
317
__PACKAGE__->add_columns(
312
__PACKAGE__->add_columns(
318
    '+auto_renew'      => { is_boolean => 1 },
313
    '+auto_renew'      => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Item.pm (-95 / +6 lines)
Lines 29-36 __PACKAGE__->table("items"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key and unique identifier added by Koha
33
34
=head2 biblionumber
32
=head2 biblionumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
Lines 38-45 primary key and unique identifier added by Koha Link Here
38
  is_foreign_key: 1
36
  is_foreign_key: 1
39
  is_nullable: 0
37
  is_nullable: 0
40
38
41
foreign key from biblio table used to link this item to the right bib record
42
43
=head2 biblioitemnumber
39
=head2 biblioitemnumber
44
40
45
  data_type: 'integer'
41
  data_type: 'integer'
Lines 47-69 foreign key from biblio table used to link this item to the right bib record Link Here
47
  is_foreign_key: 1
43
  is_foreign_key: 1
48
  is_nullable: 0
44
  is_nullable: 0
49
45
50
foreign key from the biblioitems table to link to item to additional information
51
52
=head2 barcode
46
=head2 barcode
53
47
54
  data_type: 'varchar'
48
  data_type: 'varchar'
55
  is_nullable: 1
49
  is_nullable: 1
56
  size: 20
50
  size: 20
57
51
58
item barcode (MARC21 952$p)
59
60
=head2 bookable
52
=head2 bookable
61
53
62
  data_type: 'tinyint'
54
  data_type: 'tinyint'
63
  default_value: 0
55
  is_nullable: 1
64
  is_nullable: 0
65
56
66
boolean value defining whether this item is available for bookings or not
57
nullable boolean value defining whether this this item is available for bookings or not
67
58
68
=head2 dateaccessioned
59
=head2 dateaccessioned
69
60
Lines 71-85 boolean value defining whether this item is available for bookings or not Link Here
71
  datetime_undef_if_invalid: 1
62
  datetime_undef_if_invalid: 1
72
  is_nullable: 1
63
  is_nullable: 1
73
64
74
date the item was acquired or added to Koha (MARC21 952$d)
75
76
=head2 booksellerid
65
=head2 booksellerid
77
66
78
  data_type: 'longtext'
67
  data_type: 'longtext'
79
  is_nullable: 1
68
  is_nullable: 1
80
69
81
where the item was purchased (MARC21 952$e)
82
83
=head2 homebranch
70
=head2 homebranch
84
71
85
  data_type: 'varchar'
72
  data_type: 'varchar'
Lines 87-134 where the item was purchased (MARC21 952$e) Link Here
87
  is_nullable: 1
74
  is_nullable: 1
88
  size: 10
75
  size: 10
89
76
90
foreign key from the branches table for the library that owns this item (MARC21 952$a)
91
92
=head2 price
77
=head2 price
93
78
94
  data_type: 'decimal'
79
  data_type: 'decimal'
95
  is_nullable: 1
80
  is_nullable: 1
96
  size: [8,2]
81
  size: [8,2]
97
82
98
purchase price (MARC21 952$g)
99
100
=head2 replacementprice
83
=head2 replacementprice
101
84
102
  data_type: 'decimal'
85
  data_type: 'decimal'
103
  is_nullable: 1
86
  is_nullable: 1
104
  size: [8,2]
87
  size: [8,2]
105
88
106
cost the library charges to replace the item if it has been marked lost (MARC21 952$v)
107
108
=head2 replacementpricedate
89
=head2 replacementpricedate
109
90
110
  data_type: 'date'
91
  data_type: 'date'
111
  datetime_undef_if_invalid: 1
92
  datetime_undef_if_invalid: 1
112
  is_nullable: 1
93
  is_nullable: 1
113
94
114
the date the price is effective from (MARC21 952$w)
115
116
=head2 datelastborrowed
95
=head2 datelastborrowed
117
96
118
  data_type: 'date'
97
  data_type: 'date'
119
  datetime_undef_if_invalid: 1
98
  datetime_undef_if_invalid: 1
120
  is_nullable: 1
99
  is_nullable: 1
121
100
122
the date the item was last checked out/issued
123
124
=head2 datelastseen
101
=head2 datelastseen
125
102
126
  data_type: 'datetime'
103
  data_type: 'datetime'
127
  datetime_undef_if_invalid: 1
104
  datetime_undef_if_invalid: 1
128
  is_nullable: 1
105
  is_nullable: 1
129
106
130
the date the item was last see (usually the last time the barcode was scanned or inventory was done)
131
132
=head2 stack
107
=head2 stack
133
108
134
  data_type: 'tinyint'
109
  data_type: 'tinyint'
Lines 140-261 the date the item was last see (usually the last time the barcode was scanned or Link Here
140
  default_value: 0
115
  default_value: 0
141
  is_nullable: 0
116
  is_nullable: 0
142
117
143
authorized value defining why this item is not for loan (MARC21 952$7)
144
145
=head2 damaged
118
=head2 damaged
146
119
147
  data_type: 'tinyint'
120
  data_type: 'tinyint'
148
  default_value: 0
121
  default_value: 0
149
  is_nullable: 0
122
  is_nullable: 0
150
123
151
authorized value defining this item as damaged (MARC21 952$4)
152
153
=head2 damaged_on
124
=head2 damaged_on
154
125
155
  data_type: 'datetime'
126
  data_type: 'datetime'
156
  datetime_undef_if_invalid: 1
127
  datetime_undef_if_invalid: 1
157
  is_nullable: 1
128
  is_nullable: 1
158
129
159
the date and time an item was last marked as damaged, NULL if not damaged
160
161
=head2 itemlost
130
=head2 itemlost
162
131
163
  data_type: 'tinyint'
132
  data_type: 'tinyint'
164
  default_value: 0
133
  default_value: 0
165
  is_nullable: 0
134
  is_nullable: 0
166
135
167
authorized value defining this item as lost (MARC21 952$1)
168
169
=head2 itemlost_on
136
=head2 itemlost_on
170
137
171
  data_type: 'datetime'
138
  data_type: 'datetime'
172
  datetime_undef_if_invalid: 1
139
  datetime_undef_if_invalid: 1
173
  is_nullable: 1
140
  is_nullable: 1
174
141
175
the date and time an item was last marked as lost, NULL if not lost
176
177
=head2 withdrawn
142
=head2 withdrawn
178
143
179
  data_type: 'tinyint'
144
  data_type: 'tinyint'
180
  default_value: 0
145
  default_value: 0
181
  is_nullable: 0
146
  is_nullable: 0
182
147
183
authorized value defining this item as withdrawn (MARC21 952$0)
184
185
=head2 withdrawn_on
148
=head2 withdrawn_on
186
149
187
  data_type: 'datetime'
150
  data_type: 'datetime'
188
  datetime_undef_if_invalid: 1
151
  datetime_undef_if_invalid: 1
189
  is_nullable: 1
152
  is_nullable: 1
190
153
191
the date and time an item was last marked as withdrawn, NULL if not withdrawn
192
193
=head2 itemcallnumber
154
=head2 itemcallnumber
194
155
195
  data_type: 'varchar'
156
  data_type: 'varchar'
196
  is_nullable: 1
157
  is_nullable: 1
197
  size: 255
158
  size: 255
198
159
199
call number for this item (MARC21 952$o)
200
201
=head2 coded_location_qualifier
160
=head2 coded_location_qualifier
202
161
203
  data_type: 'varchar'
162
  data_type: 'varchar'
204
  is_nullable: 1
163
  is_nullable: 1
205
  size: 10
164
  size: 10
206
165
207
coded location qualifier(MARC21 952$f)
208
209
=head2 issues
166
=head2 issues
210
167
211
  data_type: 'smallint'
168
  data_type: 'smallint'
212
  default_value: 0
169
  default_value: 0
213
  is_nullable: 1
170
  is_nullable: 1
214
171
215
number of times this item has been checked out/issued
216
217
=head2 renewals
172
=head2 renewals
218
173
219
  data_type: 'smallint'
174
  data_type: 'smallint'
220
  is_nullable: 1
175
  is_nullable: 1
221
176
222
number of times this item has been renewed
223
224
=head2 localuse
177
=head2 localuse
225
178
226
  data_type: 'smallint'
179
  data_type: 'smallint'
227
  is_nullable: 1
180
  is_nullable: 1
228
181
229
number of times this item has been recorded as localuse
182
item's local use count
230
183
231
=head2 reserves
184
=head2 reserves
232
185
233
  data_type: 'smallint'
186
  data_type: 'smallint'
234
  is_nullable: 1
187
  is_nullable: 1
235
188
236
number of times this item has been placed on hold/reserved
237
238
=head2 restricted
189
=head2 restricted
239
190
240
  data_type: 'tinyint'
191
  data_type: 'tinyint'
241
  is_nullable: 1
192
  is_nullable: 1
242
193
243
authorized value defining use restrictions for this item (MARC21 952$5)
244
245
=head2 itemnotes
194
=head2 itemnotes
246
195
247
  data_type: 'longtext'
196
  data_type: 'longtext'
248
  is_nullable: 1
197
  is_nullable: 1
249
198
250
public notes on this item (MARC21 952$z)
251
252
=head2 itemnotes_nonpublic
199
=head2 itemnotes_nonpublic
253
200
254
  data_type: 'longtext'
201
  data_type: 'longtext'
255
  is_nullable: 1
202
  is_nullable: 1
256
203
257
non-public notes on this item (MARC21 952$x)
258
259
=head2 holdingbranch
204
=head2 holdingbranch
260
205
261
  data_type: 'varchar'
206
  data_type: 'varchar'
Lines 263-270 non-public notes on this item (MARC21 952$x) Link Here
263
  is_nullable: 1
208
  is_nullable: 1
264
  size: 10
209
  size: 10
265
210
266
foreign key from the branches table for the library that is currently in possession item (MARC21 952$b)
267
268
=head2 timestamp
211
=head2 timestamp
269
212
270
  data_type: 'timestamp'
213
  data_type: 'timestamp'
Lines 272-279 foreign key from the branches table for the library that is currently in possess Link Here
272
  default_value: current_timestamp
215
  default_value: current_timestamp
273
  is_nullable: 0
216
  is_nullable: 0
274
217
275
date and time this item was last altered
276
277
=head2 deleted_on
218
=head2 deleted_on
278
219
279
  data_type: 'datetime'
220
  data_type: 'datetime'
Lines 288-402 date/time of deletion Link Here
288
  is_nullable: 1
229
  is_nullable: 1
289
  size: 80
230
  size: 80
290
231
291
authorized value for the shelving location for this item (MARC21 952$c)
292
293
=head2 permanent_location
232
=head2 permanent_location
294
233
295
  data_type: 'varchar'
234
  data_type: 'varchar'
296
  is_nullable: 1
235
  is_nullable: 1
297
  size: 80
236
  size: 80
298
237
299
linked to the CART and PROC temporary locations feature, stores the permanent shelving location
300
301
=head2 onloan
238
=head2 onloan
302
239
303
  data_type: 'date'
240
  data_type: 'date'
304
  datetime_undef_if_invalid: 1
241
  datetime_undef_if_invalid: 1
305
  is_nullable: 1
242
  is_nullable: 1
306
243
307
defines if item is checked out (NULL for not checked out, and due date for checked out)
308
309
=head2 cn_source
244
=head2 cn_source
310
245
311
  data_type: 'varchar'
246
  data_type: 'varchar'
312
  is_nullable: 1
247
  is_nullable: 1
313
  size: 10
248
  size: 10
314
249
315
classification source used on this item (MARC21 952$2)
316
317
=head2 cn_sort
250
=head2 cn_sort
318
251
319
  data_type: 'varchar'
252
  data_type: 'varchar'
320
  is_nullable: 1
253
  is_nullable: 1
321
  size: 255
254
  size: 255
322
255
323
normalized form of the call number (MARC21 952$o) used for sorting
324
325
=head2 ccode
256
=head2 ccode
326
257
327
  data_type: 'varchar'
258
  data_type: 'varchar'
328
  is_nullable: 1
259
  is_nullable: 1
329
  size: 80
260
  size: 80
330
261
331
authorized value for the collection code associated with this item (MARC21 952$8)
332
333
=head2 materials
262
=head2 materials
334
263
335
  data_type: 'mediumtext'
264
  data_type: 'mediumtext'
336
  is_nullable: 1
265
  is_nullable: 1
337
266
338
materials specified (MARC21 952$3)
339
340
=head2 uri
267
=head2 uri
341
268
342
  data_type: 'mediumtext'
269
  data_type: 'mediumtext'
343
  is_nullable: 1
270
  is_nullable: 1
344
271
345
URL for the item (MARC21 952$u)
346
347
=head2 itype
272
=head2 itype
348
273
349
  data_type: 'varchar'
274
  data_type: 'varchar'
350
  is_nullable: 1
275
  is_nullable: 1
351
  size: 10
276
  size: 10
352
277
353
foreign key from the itemtypes table defining the type for this item (MARC21 952$y)
354
355
=head2 more_subfields_xml
278
=head2 more_subfields_xml
356
279
357
  data_type: 'longtext'
280
  data_type: 'longtext'
358
  is_nullable: 1
281
  is_nullable: 1
359
282
360
additional 952 subfields in XML format
361
362
=head2 enumchron
283
=head2 enumchron
363
284
364
  data_type: 'mediumtext'
285
  data_type: 'mediumtext'
365
  is_nullable: 1
286
  is_nullable: 1
366
287
367
serial enumeration/chronology for the item (MARC21 952$h)
368
369
=head2 copynumber
288
=head2 copynumber
370
289
371
  data_type: 'varchar'
290
  data_type: 'varchar'
372
  is_nullable: 1
291
  is_nullable: 1
373
  size: 32
292
  size: 32
374
293
375
copy number (MARC21 952$t)
376
377
=head2 stocknumber
294
=head2 stocknumber
378
295
379
  data_type: 'varchar'
296
  data_type: 'varchar'
380
  is_nullable: 1
297
  is_nullable: 1
381
  size: 32
298
  size: 32
382
299
383
inventory number (MARC21 952$i)
384
385
=head2 new_status
300
=head2 new_status
386
301
387
  data_type: 'varchar'
302
  data_type: 'varchar'
388
  is_nullable: 1
303
  is_nullable: 1
389
  size: 32
304
  size: 32
390
305
391
'new' value, you can put whatever free-text information. This field is intented to be managed by the automatic_item_modification_by_age cronjob.
392
393
=head2 exclude_from_local_holds_priority
306
=head2 exclude_from_local_holds_priority
394
307
395
  data_type: 'tinyint'
308
  data_type: 'tinyint'
396
  is_nullable: 1
309
  is_nullable: 1
397
310
398
Exclude this item from local holds priority
399
400
=cut
311
=cut
401
312
402
__PACKAGE__->add_columns(
313
__PACKAGE__->add_columns(
Lines 419-425 __PACKAGE__->add_columns( Link Here
419
  "barcode",
330
  "barcode",
420
  { data_type => "varchar", is_nullable => 1, size => 20 },
331
  { data_type => "varchar", is_nullable => 1, size => 20 },
421
  "bookable",
332
  "bookable",
422
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
333
  { data_type => "tinyint", is_nullable => 1 },
423
  "dateaccessioned",
334
  "dateaccessioned",
424
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
335
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
425
  "booksellerid",
336
  "booksellerid",
Lines 992-999 __PACKAGE__->might_have( Link Here
992
);
903
);
993
904
994
905
995
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56
906
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
996
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5OoZ3tUXC5pzN5JXWWu7fA
907
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UfX6t/8BFJctorSaf3rc0w
997
908
998
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
909
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
999
910
(-)a/Koha/Schema/Result/Itemtype.pm (-2 / +10 lines)
Lines 176-181 Group this item type with others with the same value on OPAC search options Link Here
176
176
177
If automatic checkin is enabled for items of this type
177
If automatic checkin is enabled for items of this type
178
178
179
=head2 bookable
180
181
  data_type: 'integer'
182
  default_value: 0
183
  is_nullable: 1
184
179
=cut
185
=cut
180
186
181
__PACKAGE__->add_columns(
187
__PACKAGE__->add_columns(
Lines 222-227 __PACKAGE__->add_columns( Link Here
222
  { data_type => "varchar", is_nullable => 1, size => 80 },
228
  { data_type => "varchar", is_nullable => 1, size => 80 },
223
  "automatic_checkin",
229
  "automatic_checkin",
224
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
230
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
231
  "bookable",
232
  { data_type => "integer", default_value => 0, is_nullable => 1 },
225
);
233
);
226
234
227
=head1 PRIMARY KEY
235
=head1 PRIMARY KEY
Lines 349-356 __PACKAGE__->has_many( Link Here
349
);
357
);
350
358
351
359
352
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-10-09 21:42:51
360
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
353
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+/gmrTCXAvhf12UGXmC3yg
361
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tvirQVYkf7pk/Uo0RE1E+Q
354
362
355
__PACKAGE__->add_columns(
363
__PACKAGE__->add_columns(
356
    '+automatic_checkin'            => { is_boolean => 1 },
364
    '+automatic_checkin'            => { is_boolean => 1 },
(-)a/Koha/Schema/Result/LanguageScriptBidi.pm (-6 / +2 lines)
Lines 29-44 __PACKAGE__->table("language_script_bidi"); Link Here
29
  is_nullable: 1
29
  is_nullable: 1
30
  size: 25
30
  size: 25
31
31
32
script subtag, Arab, Hebr, etc.
33
34
=head2 bidi
32
=head2 bidi
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 1
35
  is_nullable: 1
38
  size: 3
36
  size: 3
39
37
40
rtl ltr
41
42
=cut
38
=cut
43
39
44
__PACKAGE__->add_columns(
40
__PACKAGE__->add_columns(
Lines 49-56 __PACKAGE__->add_columns( Link Here
49
);
45
);
50
46
51
47
52
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
48
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GSnruAebthrEidJqzPY6Yg
49
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:utCAo0eCBCglxXLbaJqVSw
54
50
55
51
56
# You can replace this text with custom content, and it will be preserved on regeneration
52
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/LanguageSubtagRegistry.pm (-6 / +2 lines)
Lines 35-50 __PACKAGE__->table("language_subtag_registry"); Link Here
35
  is_nullable: 1
35
  is_nullable: 1
36
  size: 25
36
  size: 25
37
37
38
language-script-region-variant-extension-privateuse
39
40
=head2 description
38
=head2 description
41
39
42
  data_type: 'varchar'
40
  data_type: 'varchar'
43
  is_nullable: 1
41
  is_nullable: 1
44
  size: 255
42
  size: 255
45
43
46
only one of the possible descriptions for ease of reference, see language_descriptions for the complete list
47
48
=head2 added
44
=head2 added
49
45
50
  data_type: 'date'
46
  data_type: 'date'
Lines 101-108 __PACKAGE__->set_primary_key("id"); Link Here
101
__PACKAGE__->add_unique_constraint("uniq_lang", ["subtag", "type"]);
97
__PACKAGE__->add_unique_constraint("uniq_lang", ["subtag", "type"]);
102
98
103
99
104
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-09 07:52:09
100
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
105
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZeDY9hf5cnovkdtPQRe2Aw
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XSzbBlpgWkhk6PFNAXqeVw
106
102
107
103
108
# You can replace this text with custom content, and it will be preserved on regeneration
104
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Letter.pm (-26 / +2 lines)
Lines 29-36 __PACKAGE__->table("letter"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key identifier
33
34
=head2 module
32
=head2 module
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
Lines 38-45 primary key identifier Link Here
38
  is_nullable: 0
36
  is_nullable: 0
39
  size: 20
37
  size: 20
40
38
41
Koha module that triggers this notice or slip
42
43
=head2 code
39
=head2 code
44
40
45
  data_type: 'varchar'
41
  data_type: 'varchar'
Lines 47-54 Koha module that triggers this notice or slip Link Here
47
  is_nullable: 0
43
  is_nullable: 0
48
  size: 20
44
  size: 20
49
45
50
unique identifier for this notice or slip
51
52
=head2 branchcode
46
=head2 branchcode
53
47
54
  data_type: 'varchar'
48
  data_type: 'varchar'
Lines 56-63 unique identifier for this notice or slip Link Here
56
  is_nullable: 0
50
  is_nullable: 0
57
  size: 10
51
  size: 10
58
52
59
the branch this notice or slip is used at (branches.branchcode)
60
61
=head2 name
53
=head2 name
62
54
63
  data_type: 'varchar'
55
  data_type: 'varchar'
Lines 65-80 the branch this notice or slip is used at (branches.branchcode) Link Here
65
  is_nullable: 0
57
  is_nullable: 0
66
  size: 100
58
  size: 100
67
59
68
plain text name for this notice or slip
69
70
=head2 is_html
60
=head2 is_html
71
61
72
  data_type: 'tinyint'
62
  data_type: 'tinyint'
73
  default_value: 0
63
  default_value: 0
74
  is_nullable: 1
64
  is_nullable: 1
75
65
76
does this notice or slip use HTML (1 for yes, 0 for no)
77
78
=head2 title
66
=head2 title
79
67
80
  data_type: 'varchar'
68
  data_type: 'varchar'
Lines 82-96 does this notice or slip use HTML (1 for yes, 0 for no) Link Here
82
  is_nullable: 0
70
  is_nullable: 0
83
  size: 200
71
  size: 200
84
72
85
subject line of the notice
86
87
=head2 content
73
=head2 content
88
74
89
  data_type: 'mediumtext'
75
  data_type: 'mediumtext'
90
  is_nullable: 1
76
  is_nullable: 1
91
77
92
body text for the notice or slip
93
94
=head2 message_transport_type
78
=head2 message_transport_type
95
79
96
  data_type: 'varchar'
80
  data_type: 'varchar'
Lines 99-106 body text for the notice or slip Link Here
99
  is_nullable: 0
83
  is_nullable: 0
100
  size: 20
84
  size: 20
101
85
102
transport type for this notice
103
104
=head2 lang
86
=head2 lang
105
87
106
  data_type: 'varchar'
88
  data_type: 'varchar'
Lines 108-115 transport type for this notice Link Here
108
  is_nullable: 0
90
  is_nullable: 0
109
  size: 25
91
  size: 25
110
92
111
lang of the notice
112
113
=head2 updated_on
93
=head2 updated_on
114
94
115
  data_type: 'timestamp'
95
  data_type: 'timestamp'
Lines 117-131 lang of the notice Link Here
117
  default_value: current_timestamp
97
  default_value: current_timestamp
118
  is_nullable: 0
98
  is_nullable: 0
119
99
120
last modification
121
122
=head2 style
100
=head2 style
123
101
124
  data_type: 'mediumtext'
102
  data_type: 'mediumtext'
125
  is_nullable: 1
103
  is_nullable: 1
126
104
127
custom styles for this notice
128
129
=cut
105
=cut
130
106
131
__PACKAGE__->add_columns(
107
__PACKAGE__->add_columns(
Lines 241-248 __PACKAGE__->belongs_to( Link Here
241
);
217
);
242
218
243
219
244
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 17:01:21
220
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
245
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UglmO8Xk7xnC09bYETA5+w
221
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UFwxC/tQJckiRjdStuhV2A
246
222
247
sub koha_object_class {
223
sub koha_object_class {
248
    'Koha::Notice::Template';
224
    'Koha::Notice::Template';
(-)a/Koha/Schema/Result/LibraryGroup.pm (-26 / +2 lines)
Lines 29-44 __PACKAGE__->table("library_groups"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique id for each group
33
34
=head2 parent_id
32
=head2 parent_id
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
if this is a child group, the id of the parent group
41
42
=head2 branchcode
38
=head2 branchcode
43
39
44
  data_type: 'varchar'
40
  data_type: 'varchar'
Lines 46-108 if this is a child group, the id of the parent group Link Here
46
  is_nullable: 1
42
  is_nullable: 1
47
  size: 10
43
  size: 10
48
44
49
The branchcode of a branch belonging to the parent group
50
51
=head2 title
45
=head2 title
52
46
53
  data_type: 'varchar'
47
  data_type: 'varchar'
54
  is_nullable: 1
48
  is_nullable: 1
55
  size: 100
49
  size: 100
56
50
57
Short description of the goup
58
59
=head2 description
51
=head2 description
60
52
61
  data_type: 'mediumtext'
53
  data_type: 'mediumtext'
62
  is_nullable: 1
54
  is_nullable: 1
63
55
64
Longer explanation of the group, if necessary
65
66
=head2 ft_hide_patron_info
56
=head2 ft_hide_patron_info
67
57
68
  data_type: 'tinyint'
58
  data_type: 'tinyint'
69
  default_value: 0
59
  default_value: 0
70
  is_nullable: 0
60
  is_nullable: 0
71
61
72
Turn on the feature 'Hide patron's info' for this group
73
74
=head2 ft_limit_item_editing
62
=head2 ft_limit_item_editing
75
63
76
  data_type: 'tinyint'
64
  data_type: 'tinyint'
77
  default_value: 0
65
  default_value: 0
78
  is_nullable: 0
66
  is_nullable: 0
79
67
80
Turn on the feature "Limit item editing by group" for this group
81
82
=head2 ft_search_groups_opac
68
=head2 ft_search_groups_opac
83
69
84
  data_type: 'tinyint'
70
  data_type: 'tinyint'
85
  default_value: 0
71
  default_value: 0
86
  is_nullable: 0
72
  is_nullable: 0
87
73
88
Use this group for staff side search groups
89
90
=head2 ft_search_groups_staff
74
=head2 ft_search_groups_staff
91
75
92
  data_type: 'tinyint'
76
  data_type: 'tinyint'
93
  default_value: 0
77
  default_value: 0
94
  is_nullable: 0
78
  is_nullable: 0
95
79
96
Use this group for opac side search groups
97
98
=head2 ft_local_hold_group
80
=head2 ft_local_hold_group
99
81
100
  data_type: 'tinyint'
82
  data_type: 'tinyint'
101
  default_value: 0
83
  default_value: 0
102
  is_nullable: 0
84
  is_nullable: 0
103
85
104
Use this group to identify libraries as pick up location for holds
105
106
=head2 ft_local_float_group
86
=head2 ft_local_float_group
107
87
108
  data_type: 'tinyint'
88
  data_type: 'tinyint'
Lines 117-124 Use this group to identify libraries as part of float group Link Here
117
  datetime_undef_if_invalid: 1
97
  datetime_undef_if_invalid: 1
118
  is_nullable: 1
98
  is_nullable: 1
119
99
120
Date and time of creation
121
122
=head2 updated_on
100
=head2 updated_on
123
101
124
  data_type: 'timestamp'
102
  data_type: 'timestamp'
Lines 126-133 Date and time of creation Link Here
126
  default_value: current_timestamp
104
  default_value: current_timestamp
127
  is_nullable: 0
105
  is_nullable: 0
128
106
129
Date and time of last
130
131
=cut
107
=cut
132
108
133
__PACKAGE__->add_columns(
109
__PACKAGE__->add_columns(
Lines 266-273 __PACKAGE__->belongs_to( Link Here
266
);
242
);
267
243
268
244
269
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-04 17:58:31
245
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
270
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M9YgMuCWhncegAzkH8uoJg
246
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4AxoI+SJ7Ds7xALwzdOoZg
271
247
272
sub koha_object_class {
248
sub koha_object_class {
273
    'Koha::Library::Group';
249
    'Koha::Library::Group';
(-)a/Koha/Schema/Result/Linktracker.pm (-14 / +2 lines)
Lines 29-75 __PACKAGE__->table("linktracker"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key identifier
33
34
=head2 biblionumber
32
=head2 biblionumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
biblionumber of the record the link is from
41
42
=head2 itemnumber
38
=head2 itemnumber
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
itemnumber if applicable that the link was from
49
50
=head2 borrowernumber
44
=head2 borrowernumber
51
45
52
  data_type: 'integer'
46
  data_type: 'integer'
53
  is_foreign_key: 1
47
  is_foreign_key: 1
54
  is_nullable: 1
48
  is_nullable: 1
55
49
56
borrowernumber who clicked the link
57
58
=head2 url
50
=head2 url
59
51
60
  data_type: 'mediumtext'
52
  data_type: 'mediumtext'
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
the link itself
64
65
=head2 timeclicked
55
=head2 timeclicked
66
56
67
  data_type: 'datetime'
57
  data_type: 'datetime'
68
  datetime_undef_if_invalid: 1
58
  datetime_undef_if_invalid: 1
69
  is_nullable: 1
59
  is_nullable: 1
70
60
71
the date and time the link was clicked
72
73
=cut
61
=cut
74
62
75
__PACKAGE__->add_columns(
63
__PACKAGE__->add_columns(
Lines 166-173 __PACKAGE__->belongs_to( Link Here
166
);
154
);
167
155
168
156
169
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-08-27 08:42:21
157
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
170
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ksT3i//fQn+HnBKt4YZlhg
158
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Fafcir6jNWbVKJ7DPb/JCg
171
159
172
sub koha_object_class {
160
sub koha_object_class {
173
    'Koha::TrackedLink';
161
    'Koha::TrackedLink';
(-)a/Koha/Schema/Result/MarcMatcher.pm (-2 / +22 lines)
Lines 56-61 __PACKAGE__->table("marc_matchers"); Link Here
56
  default_value: 0
56
  default_value: 0
57
  is_nullable: 0
57
  is_nullable: 0
58
58
59
=head2 use_for_manual_cataloging
60
61
  data_type: 'tinyint'
62
  default_value: 0
63
  is_nullable: 0
64
65
Use this matching rule to find duplicates while cataloging manually instead of the default matching mechanism
66
67
=head2 forbid_duplicate_creation
68
69
  data_type: 'tinyint'
70
  default_value: 0
71
  is_nullable: 0
72
73
Do not show an option to create a duplicate record when a duplicate is found
74
59
=cut
75
=cut
60
76
61
__PACKAGE__->add_columns(
77
__PACKAGE__->add_columns(
Lines 74-79 __PACKAGE__->add_columns( Link Here
74
  },
90
  },
75
  "threshold",
91
  "threshold",
76
  { data_type => "integer", default_value => 0, is_nullable => 0 },
92
  { data_type => "integer", default_value => 0, is_nullable => 0 },
93
  "use_for_manual_cataloging",
94
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
95
  "forbid_duplicate_creation",
96
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
77
);
97
);
78
98
79
=head1 PRIMARY KEY
99
=head1 PRIMARY KEY
Lines 136-143 __PACKAGE__->has_many( Link Here
136
);
156
);
137
157
138
158
139
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
159
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2K4K9wfjRlJJKDztPgHJDA
160
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xmqg/jJHJzD3aO6VW6myIA
141
161
142
162
143
# You can replace this text with custom content, and it will be preserved on regeneration
163
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MarcModificationTemplateAction.pm (-4 / +4 lines)
Lines 44-50 __PACKAGE__->table("marc_modification_template_actions"); Link Here
44
44
45
  data_type: 'enum'
45
  data_type: 'enum'
46
  extra: {list => ["delete_field","add_field","update_field","move_field","copy_field","copy_and_replace_field"]}
46
  extra: {list => ["delete_field","add_field","update_field","move_field","copy_field","copy_and_replace_field"]}
47
  is_nullable: 0
47
  is_nullable: 1
48
48
49
=head2 field_number
49
=head2 field_number
50
50
Lines 160-166 __PACKAGE__->add_columns( Link Here
160
        "copy_and_replace_field",
160
        "copy_and_replace_field",
161
      ],
161
      ],
162
    },
162
    },
163
    is_nullable => 0,
163
    is_nullable => 1,
164
  },
164
  },
165
  "field_number",
165
  "field_number",
166
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
166
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
Lines 234-241 __PACKAGE__->belongs_to( Link Here
234
);
234
);
235
235
236
236
237
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-02-24 20:18:23
237
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
238
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yDK2nFt+Fj3UuXAij1UwQw
238
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vv2bxtISArzl/CINxnSeiQ
239
239
240
240
241
# You can replace this text with custom code or comments, and it will be preserved on regeneration
241
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Message.pm (-18 / +2 lines)
Lines 29-67 __PACKAGE__->table("messages"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned by Koha
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key linking this message to the borrowers table
41
42
=head2 branchcode
38
=head2 branchcode
43
39
44
  data_type: 'varchar'
40
  data_type: 'varchar'
45
  is_nullable: 1
41
  is_nullable: 1
46
  size: 10
42
  size: 10
47
43
48
foreign key linking the message to the branches table
49
50
=head2 message_type
44
=head2 message_type
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 0
47
  is_nullable: 0
54
  size: 1
48
  size: 1
55
49
56
whether the message is for the librarians (L) or the patron (B)
57
58
=head2 message
50
=head2 message
59
51
60
  data_type: 'mediumtext'
52
  data_type: 'mediumtext'
61
  is_nullable: 0
53
  is_nullable: 0
62
54
63
the text of the message
64
65
=head2 message_date
55
=head2 message_date
66
56
67
  data_type: 'timestamp'
57
  data_type: 'timestamp'
Lines 69-92 the text of the message Link Here
69
  default_value: current_timestamp
59
  default_value: current_timestamp
70
  is_nullable: 0
60
  is_nullable: 0
71
61
72
the date and time the message was written
73
74
=head2 manager_id
62
=head2 manager_id
75
63
76
  data_type: 'integer'
64
  data_type: 'integer'
77
  is_foreign_key: 1
65
  is_foreign_key: 1
78
  is_nullable: 1
66
  is_nullable: 1
79
67
80
creator of message
81
82
=head2 patron_read_date
68
=head2 patron_read_date
83
69
84
  data_type: 'timestamp'
70
  data_type: 'timestamp'
85
  datetime_undef_if_invalid: 1
71
  datetime_undef_if_invalid: 1
86
  is_nullable: 1
72
  is_nullable: 1
87
73
88
the date and time the patron dismissed the message
89
90
=cut
74
=cut
91
75
92
__PACKAGE__->add_columns(
76
__PACKAGE__->add_columns(
Lines 167-174 __PACKAGE__->belongs_to( Link Here
167
);
151
);
168
152
169
153
170
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-20 18:35:40
154
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
171
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y3cJsv6T0LekoQiyi3T/aA
155
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Az+E1LqqgJo9oLC7YLnQ7Q
172
156
173
sub koha_object_class {
157
sub koha_object_class {
174
    'Koha::Patron::Message';
158
    'Koha::Patron::Message';
(-)a/Koha/Schema/Result/MiscFile.pm (-18 / +2 lines)
Lines 29-82 __PACKAGE__->table("misc_files"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique id for the file record
33
34
=head2 table_tag
32
=head2 table_tag
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 0
35
  is_nullable: 0
38
  size: 255
36
  size: 255
39
37
40
usually table name, or arbitrary unique tag
41
42
=head2 record_id
38
=head2 record_id
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_nullable: 0
41
  is_nullable: 0
46
42
47
record id from the table this file is associated to
48
49
=head2 file_name
43
=head2 file_name
50
44
51
  data_type: 'varchar'
45
  data_type: 'varchar'
52
  is_nullable: 0
46
  is_nullable: 0
53
  size: 255
47
  size: 255
54
48
55
file name
56
57
=head2 file_type
49
=head2 file_type
58
50
59
  data_type: 'varchar'
51
  data_type: 'varchar'
60
  is_nullable: 0
52
  is_nullable: 0
61
  size: 255
53
  size: 255
62
54
63
MIME type of the file
64
65
=head2 file_description
55
=head2 file_description
66
56
67
  data_type: 'varchar'
57
  data_type: 'varchar'
68
  is_nullable: 1
58
  is_nullable: 1
69
  size: 255
59
  size: 255
70
60
71
description given to the file
72
73
=head2 file_content
61
=head2 file_content
74
62
75
  data_type: 'longblob'
63
  data_type: 'longblob'
76
  is_nullable: 0
64
  is_nullable: 0
77
65
78
file content
79
80
=head2 date_uploaded
66
=head2 date_uploaded
81
67
82
  data_type: 'timestamp'
68
  data_type: 'timestamp'
Lines 84-91 file content Link Here
84
  default_value: current_timestamp
70
  default_value: current_timestamp
85
  is_nullable: 0
71
  is_nullable: 0
86
72
87
date and time the file was added
88
89
=cut
73
=cut
90
74
91
__PACKAGE__->add_columns(
75
__PACKAGE__->add_columns(
Lines 125-132 __PACKAGE__->add_columns( Link Here
125
__PACKAGE__->set_primary_key("file_id");
109
__PACKAGE__->set_primary_key("file_id");
126
110
127
111
128
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
112
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pMegXaTV3y1vCURBL1Zsdg
113
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RuXau+YOz1SIXSXRV1JGDA
130
114
131
115
132
# You can replace this text with custom code or comments, and it will be preserved on regeneration
116
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/NeedMergeAuthority.pm (-12 / +2 lines)
Lines 29-57 __PACKAGE__->table("need_merge_authorities"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique id
33
34
=head2 authid
32
=head2 authid
35
33
36
  data_type: 'bigint'
34
  data_type: 'bigint'
37
  is_nullable: 0
35
  is_nullable: 0
38
36
39
reference to original authority record
40
41
=head2 authid_new
37
=head2 authid_new
42
38
43
  data_type: 'bigint'
39
  data_type: 'bigint'
44
  is_nullable: 1
40
  is_nullable: 1
45
41
46
reference to optional new authority record
47
48
=head2 reportxml
42
=head2 reportxml
49
43
50
  data_type: 'mediumtext'
44
  data_type: 'mediumtext'
51
  is_nullable: 1
45
  is_nullable: 1
52
46
53
xml showing original reporting tag
54
55
=head2 timestamp
47
=head2 timestamp
56
48
57
  data_type: 'timestamp'
49
  data_type: 'timestamp'
Lines 59-66 xml showing original reporting tag Link Here
59
  default_value: current_timestamp
51
  default_value: current_timestamp
60
  is_nullable: 0
52
  is_nullable: 0
61
53
62
date and time last modified
63
64
=head2 done
54
=head2 done
65
55
66
  data_type: 'tinyint'
56
  data_type: 'tinyint'
Lines 102-109 __PACKAGE__->add_columns( Link Here
102
__PACKAGE__->set_primary_key("id");
92
__PACKAGE__->set_primary_key("id");
103
93
104
94
105
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
95
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZGE483WQMHZLpdgAAPHMKg
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iz9qkeTppTB1c7IlFaWx1Q
107
97
108
sub koha_object_class {
98
sub koha_object_class {
109
    'Koha::Authority::MergeRequest';
99
    'Koha::Authority::MergeRequest';
(-)a/Koha/Schema/Result/OauthAccessToken.pm (-8 / +2 lines)
Lines 29-51 __PACKAGE__->table("oauth_access_tokens"); Link Here
29
  is_nullable: 0
29
  is_nullable: 0
30
  size: 191
30
  size: 191
31
31
32
generarated access token
33
34
=head2 client_id
32
=head2 client_id
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 0
35
  is_nullable: 0
38
  size: 191
36
  size: 191
39
37
40
the client id the access token belongs to
41
42
=head2 expires
38
=head2 expires
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_nullable: 0
41
  is_nullable: 0
46
42
47
expiration time in seconds
48
49
=cut
43
=cut
50
44
51
__PACKAGE__->add_columns(
45
__PACKAGE__->add_columns(
Lines 70-77 __PACKAGE__->add_columns( Link Here
70
__PACKAGE__->set_primary_key("access_token");
64
__PACKAGE__->set_primary_key("access_token");
71
65
72
66
73
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
67
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
74
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3mL1s811AK45Nn5yPSJSaA
68
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LKgmlWrdARp2aAphOAuaYw
75
69
76
sub koha_object_class {
70
sub koha_object_class {
77
    'Koha::OAuthAccessToken';
71
    'Koha::OAuthAccessToken';
(-)a/Koha/Schema/Result/OldIssue.pm (-35 / +26 lines)
Lines 28-82 __PACKAGE__->table("old_issues"); Link Here
28
  data_type: 'integer'
28
  data_type: 'integer'
29
  is_nullable: 0
29
  is_nullable: 0
30
30
31
primary key for issues table
32
33
=head2 borrowernumber
31
=head2 borrowernumber
34
32
35
  data_type: 'integer'
33
  data_type: 'integer'
36
  is_foreign_key: 1
34
  is_foreign_key: 1
37
  is_nullable: 1
35
  is_nullable: 1
38
36
39
foreign key, linking this to the borrowers table for the patron this item was checked out to
40
41
=head2 issuer_id
37
=head2 issuer_id
42
38
43
  data_type: 'integer'
39
  data_type: 'integer'
44
  is_foreign_key: 1
40
  is_foreign_key: 1
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
foreign key, linking this to the borrowers table for the user who checked out this item
48
49
=head2 itemnumber
43
=head2 itemnumber
50
44
51
  data_type: 'integer'
45
  data_type: 'integer'
52
  is_foreign_key: 1
46
  is_foreign_key: 1
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
foreign key, linking this to the items table for the item that was checked out
56
57
=head2 date_due
49
=head2 date_due
58
50
59
  data_type: 'datetime'
51
  data_type: 'datetime'
60
  datetime_undef_if_invalid: 1
52
  datetime_undef_if_invalid: 1
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
date the item is due (yyyy-mm-dd)
64
65
=head2 branchcode
55
=head2 branchcode
66
56
67
  data_type: 'varchar'
57
  data_type: 'varchar'
68
  is_nullable: 1
58
  is_nullable: 1
69
  size: 10
59
  size: 10
70
60
71
foreign key, linking to the branches table for the location the item was checked out
72
73
=head2 returndate
61
=head2 returndate
74
62
75
  data_type: 'datetime'
63
  data_type: 'datetime'
76
  datetime_undef_if_invalid: 1
64
  datetime_undef_if_invalid: 1
77
  is_nullable: 1
65
  is_nullable: 1
78
66
79
date the item was returned
67
=head2 checkin_library
68
69
  data_type: 'varchar'
70
  is_nullable: 1
71
  size: 10
72
73
library the item was checked in at
80
74
81
=head2 lastreneweddate
75
=head2 lastreneweddate
82
76
Lines 84-91 date the item was returned Link Here
84
  datetime_undef_if_invalid: 1
78
  datetime_undef_if_invalid: 1
85
  is_nullable: 1
79
  is_nullable: 1
86
80
87
date the item was last renewed
88
89
=head2 renewals_count
81
=head2 renewals_count
90
82
91
  data_type: 'tinyint'
83
  data_type: 'tinyint'
Lines 100-123 lists the number of times the item was renewed Link Here
100
  default_value: 0
92
  default_value: 0
101
  is_nullable: 0
93
  is_nullable: 0
102
94
103
lists the number of consecutive times the item was renewed without being seen
104
105
=head2 auto_renew
95
=head2 auto_renew
106
96
107
  data_type: 'tinyint'
97
  data_type: 'tinyint'
108
  default_value: 0
98
  default_value: 0
109
  is_nullable: 1
99
  is_nullable: 1
110
100
111
automatic renewal
112
113
=head2 auto_renew_error
101
=head2 auto_renew_error
114
102
115
  data_type: 'varchar'
103
  data_type: 'varchar'
116
  is_nullable: 1
104
  is_nullable: 1
117
  size: 32
105
  size: 32
118
106
119
automatic renewal error
120
121
=head2 timestamp
107
=head2 timestamp
122
108
123
  data_type: 'timestamp'
109
  data_type: 'timestamp'
Lines 125-170 automatic renewal error Link Here
125
  default_value: current_timestamp
111
  default_value: current_timestamp
126
  is_nullable: 0
112
  is_nullable: 0
127
113
128
the date and time this record was last touched
129
130
=head2 issuedate
114
=head2 issuedate
131
115
132
  data_type: 'datetime'
116
  data_type: 'datetime'
133
  datetime_undef_if_invalid: 1
117
  datetime_undef_if_invalid: 1
134
  is_nullable: 1
118
  is_nullable: 1
135
119
136
date the item was checked out or issued
137
138
=head2 onsite_checkout
120
=head2 onsite_checkout
139
121
140
  data_type: 'integer'
122
  data_type: 'integer'
141
  default_value: 0
123
  default_value: 0
142
  is_nullable: 0
124
  is_nullable: 0
143
125
144
in house use flag
145
146
=head2 note
126
=head2 note
147
127
148
  data_type: 'longtext'
128
  data_type: 'longtext'
149
  is_nullable: 1
129
  is_nullable: 1
150
130
151
issue note text
152
153
=head2 notedate
131
=head2 notedate
154
132
155
  data_type: 'datetime'
133
  data_type: 'datetime'
156
  datetime_undef_if_invalid: 1
134
  datetime_undef_if_invalid: 1
157
  is_nullable: 1
135
  is_nullable: 1
158
136
159
datetime of issue note (yyyy-mm-dd hh:mm::ss)
160
161
=head2 noteseen
137
=head2 noteseen
162
138
163
  data_type: 'integer'
139
  data_type: 'integer'
164
  is_nullable: 1
140
  is_nullable: 1
165
141
166
describes whether checkout note has been seen 1, not been seen 0 or doesn't exist null
167
168
=cut
142
=cut
169
143
170
__PACKAGE__->add_columns(
144
__PACKAGE__->add_columns(
Lines 190-195 __PACKAGE__->add_columns( Link Here
190
    datetime_undef_if_invalid => 1,
164
    datetime_undef_if_invalid => 1,
191
    is_nullable => 1,
165
    is_nullable => 1,
192
  },
166
  },
167
  "checkin_library",
168
  { data_type => "varchar", is_nullable => 1, size => 10 },
193
  "lastreneweddate",
169
  "lastreneweddate",
194
  {
170
  {
195
    data_type => "datetime",
171
    data_type => "datetime",
Lines 245-250 __PACKAGE__->set_primary_key("issue_id"); Link Here
245
221
246
=head1 RELATIONS
222
=head1 RELATIONS
247
223
224
=head2 accountlines
225
226
Type: has_many
227
228
Related object: L<Koha::Schema::Result::Accountline>
229
230
=cut
231
232
__PACKAGE__->has_many(
233
  "accountlines",
234
  "Koha::Schema::Result::Accountline",
235
  { "foreign.old_issue_id" => "self.issue_id" },
236
  { cascade_copy => 0, cascade_delete => 0 },
237
);
238
248
=head2 borrowernumber
239
=head2 borrowernumber
249
240
250
Type: belongs_to
241
Type: belongs_to
Lines 306-313 __PACKAGE__->belongs_to( Link Here
306
);
297
);
307
298
308
299
309
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-18 12:35:21
300
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
310
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0XlDHyg8uB3oD9/jJtOxRg
301
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R2IhmytEDnDBAG2TzZzvcA
311
302
312
__PACKAGE__->add_columns(
303
__PACKAGE__->add_columns(
313
    '+auto_renew'      => { is_boolean => 1 },
304
    '+auto_renew'      => { is_boolean => 1 },
(-)a/Koha/Schema/Result/OldReserve.pm (-49 / +10 lines)
Lines 28-58 __PACKAGE__->table("old_reserves"); Link Here
28
  data_type: 'integer'
28
  data_type: 'integer'
29
  is_nullable: 0
29
  is_nullable: 0
30
30
31
primary key
32
33
=head2 borrowernumber
31
=head2 borrowernumber
34
32
35
  data_type: 'integer'
33
  data_type: 'integer'
36
  is_foreign_key: 1
34
  is_foreign_key: 1
37
  is_nullable: 1
35
  is_nullable: 1
38
36
39
foreign key from the borrowers table defining which patron this hold is for
40
41
=head2 reservedate
37
=head2 reservedate
42
38
43
  data_type: 'date'
39
  data_type: 'date'
44
  datetime_undef_if_invalid: 1
40
  datetime_undef_if_invalid: 1
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
the date the hold was places
48
49
=head2 biblionumber
43
=head2 biblionumber
50
44
51
  data_type: 'integer'
45
  data_type: 'integer'
52
  is_foreign_key: 1
46
  is_foreign_key: 1
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
foreign key from the biblio table defining which bib record this hold is on
49
=head2 deleted_biblionumber
50
51
  data_type: 'integer'
52
  is_nullable: 1
53
54
links the hold to the deleted bibliographic record (deletedbiblio.biblionumber)
56
55
57
=head2 item_group_id
56
=head2 item_group_id
58
57
Lines 60-67 foreign key from the biblio table defining which bib record this hold is on Link Here
60
  is_foreign_key: 1
59
  is_foreign_key: 1
61
  is_nullable: 1
60
  is_nullable: 1
62
61
63
foreign key from the item_groups table defining if this is an item group level hold
64
65
=head2 branchcode
62
=head2 branchcode
66
63
67
  data_type: 'varchar'
64
  data_type: 'varchar'
Lines 69-138 foreign key from the item_groups table defining if this is an item group level h Link Here
69
  is_nullable: 1
66
  is_nullable: 1
70
  size: 10
67
  size: 10
71
68
72
foreign key from the branches table defining which branch the patron wishes to pick this hold up at
73
74
=head2 desk_id
69
=head2 desk_id
75
70
76
  data_type: 'integer'
71
  data_type: 'integer'
77
  is_nullable: 1
72
  is_nullable: 1
78
73
79
foreign key from the desks table defining which desk the patron should pick this hold up at
80
81
=head2 notificationdate
74
=head2 notificationdate
82
75
83
  data_type: 'date'
76
  data_type: 'date'
84
  datetime_undef_if_invalid: 1
77
  datetime_undef_if_invalid: 1
85
  is_nullable: 1
78
  is_nullable: 1
86
79
87
currently unused
88
89
=head2 reminderdate
80
=head2 reminderdate
90
81
91
  data_type: 'date'
82
  data_type: 'date'
92
  datetime_undef_if_invalid: 1
83
  datetime_undef_if_invalid: 1
93
  is_nullable: 1
84
  is_nullable: 1
94
85
95
currently unused
96
97
=head2 cancellationdate
86
=head2 cancellationdate
98
87
99
  data_type: 'date'
88
  data_type: 'date'
100
  datetime_undef_if_invalid: 1
89
  datetime_undef_if_invalid: 1
101
  is_nullable: 1
90
  is_nullable: 1
102
91
103
the date this hold was cancelled
104
105
=head2 cancellation_reason
92
=head2 cancellation_reason
106
93
107
  data_type: 'varchar'
94
  data_type: 'varchar'
108
  is_nullable: 1
95
  is_nullable: 1
109
  size: 80
96
  size: 80
110
97
111
optional authorised value CANCELLATION_REASON
112
113
=head2 reservenotes
98
=head2 reservenotes
114
99
115
  data_type: 'longtext'
100
  data_type: 'longtext'
116
  is_nullable: 1
101
  is_nullable: 1
117
102
118
notes related to this hold
119
120
=head2 priority
103
=head2 priority
121
104
122
  data_type: 'smallint'
105
  data_type: 'smallint'
123
  default_value: 1
106
  default_value: 1
124
  is_nullable: 0
107
  is_nullable: 0
125
108
126
where in the queue the patron sits
127
128
=head2 found
109
=head2 found
129
110
130
  data_type: 'varchar'
111
  data_type: 'varchar'
131
  is_nullable: 1
112
  is_nullable: 1
132
  size: 1
113
  size: 1
133
114
134
a one letter code defining what the status is of the hold is after it has been confirmed
135
136
=head2 timestamp
115
=head2 timestamp
137
116
138
  data_type: 'timestamp'
117
  data_type: 'timestamp'
Lines 140-171 a one letter code defining what the status is of the hold is after it has been c Link Here
140
  default_value: current_timestamp
119
  default_value: current_timestamp
141
  is_nullable: 0
120
  is_nullable: 0
142
121
143
the date and time this hold was last updated
144
145
=head2 itemnumber
122
=head2 itemnumber
146
123
147
  data_type: 'integer'
124
  data_type: 'integer'
148
  is_foreign_key: 1
125
  is_foreign_key: 1
149
  is_nullable: 1
126
  is_nullable: 1
150
127
151
foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with
152
153
=head2 waitingdate
128
=head2 waitingdate
154
129
155
  data_type: 'date'
130
  data_type: 'date'
156
  datetime_undef_if_invalid: 1
131
  datetime_undef_if_invalid: 1
157
  is_nullable: 1
132
  is_nullable: 1
158
133
159
the date the item was marked as waiting for the patron at the library
160
161
=head2 expirationdate
134
=head2 expirationdate
162
135
163
  data_type: 'date'
136
  data_type: 'date'
164
  datetime_undef_if_invalid: 1
137
  datetime_undef_if_invalid: 1
165
  is_nullable: 1
138
  is_nullable: 1
166
139
167
the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date)
168
169
=head2 patron_expiration_date
140
=head2 patron_expiration_date
170
141
171
  data_type: 'date'
142
  data_type: 'date'
Lines 181-204 the date the hold expires - usually the date entered by the patron to say they d Link Here
181
  default_value: 0
152
  default_value: 0
182
  is_nullable: 0
153
  is_nullable: 0
183
154
184
has this hold been pinned to the lowest priority in the holds queue (1 for yes, 0 for no)
185
186
=head2 suspend
155
=head2 suspend
187
156
188
  data_type: 'tinyint'
157
  data_type: 'tinyint'
189
  default_value: 0
158
  default_value: 0
190
  is_nullable: 0
159
  is_nullable: 0
191
160
192
in this hold suspended (1 for yes, 0 for no)
193
194
=head2 suspend_until
161
=head2 suspend_until
195
162
196
  data_type: 'datetime'
163
  data_type: 'datetime'
197
  datetime_undef_if_invalid: 1
164
  datetime_undef_if_invalid: 1
198
  is_nullable: 1
165
  is_nullable: 1
199
166
200
the date this hold is suspended until (NULL for infinitely)
201
202
=head2 itemtype
167
=head2 itemtype
203
168
204
  data_type: 'varchar'
169
  data_type: 'varchar'
Lines 206-229 the date this hold is suspended until (NULL for infinitely) Link Here
206
  is_nullable: 1
171
  is_nullable: 1
207
  size: 10
172
  size: 10
208
173
209
If record level hold, the optional itemtype of the item the patron is requesting
210
211
=head2 item_level_hold
174
=head2 item_level_hold
212
175
213
  data_type: 'tinyint'
176
  data_type: 'tinyint'
214
  default_value: 0
177
  default_value: 0
215
  is_nullable: 0
178
  is_nullable: 0
216
179
217
Is the hold placed at item level
218
219
=head2 non_priority
180
=head2 non_priority
220
181
221
  data_type: 'tinyint'
182
  data_type: 'tinyint'
222
  default_value: 0
183
  default_value: 0
223
  is_nullable: 0
184
  is_nullable: 0
224
185
225
Is this a non priority hold
226
227
=cut
186
=cut
228
187
229
__PACKAGE__->add_columns(
188
__PACKAGE__->add_columns(
Lines 235-240 __PACKAGE__->add_columns( Link Here
235
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
194
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
236
  "biblionumber",
195
  "biblionumber",
237
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
196
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
197
  "deleted_biblionumber",
198
  { data_type => "integer", is_nullable => 1 },
238
  "item_group_id",
199
  "item_group_id",
239
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
200
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
240
  "branchcode",
201
  "branchcode",
Lines 428-435 __PACKAGE__->belongs_to( Link Here
428
);
389
);
429
390
430
391
431
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-05 06:44:57
392
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
432
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SQp2OEYb3im1x3A+W0h37w
393
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NrjO5Qm10RH9vr+NCyF3Sw
433
394
434
__PACKAGE__->belongs_to(
395
__PACKAGE__->belongs_to(
435
  "item",
396
  "item",
(-)a/Koha/Schema/Result/Overduerule.pm (-26 / +2 lines)
Lines 29-36 __PACKAGE__->table("overduerules"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier for the overduerules
33
34
=head2 branchcode
32
=head2 branchcode
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
Lines 38-45 unique identifier for the overduerules Link Here
38
  is_nullable: 0
36
  is_nullable: 0
39
  size: 10
37
  size: 10
40
38
41
foreign key from the branches table to define which branch this rule is for (if blank it's all libraries)
42
43
=head2 categorycode
39
=head2 categorycode
44
40
45
  data_type: 'varchar'
41
  data_type: 'varchar'
Lines 47-69 foreign key from the branches table to define which branch this rule is for (if Link Here
47
  is_nullable: 0
43
  is_nullable: 0
48
  size: 10
44
  size: 10
49
45
50
foreign key from the categories table to define which patron category this rule is for
51
52
=head2 delay1
46
=head2 delay1
53
47
54
  data_type: 'integer'
48
  data_type: 'integer'
55
  is_nullable: 1
49
  is_nullable: 1
56
50
57
number of days after the item is overdue that the first notice is sent
58
59
=head2 letter1
51
=head2 letter1
60
52
61
  data_type: 'varchar'
53
  data_type: 'varchar'
62
  is_nullable: 1
54
  is_nullable: 1
63
  size: 20
55
  size: 20
64
56
65
foreign key from the letter table to define which notice should be sent as the first notice
66
67
=head2 debarred1
57
=head2 debarred1
68
58
69
  data_type: 'varchar'
59
  data_type: 'varchar'
Lines 71-85 foreign key from the letter table to define which notice should be sent as the f Link Here
71
  is_nullable: 1
61
  is_nullable: 1
72
  size: 1
62
  size: 1
73
63
74
is the patron restricted when the first notice is sent (1 for yes, 0 for no)
75
76
=head2 delay2
64
=head2 delay2
77
65
78
  data_type: 'integer'
66
  data_type: 'integer'
79
  is_nullable: 1
67
  is_nullable: 1
80
68
81
number of days after the item is overdue that the second notice is sent
82
83
=head2 debarred2
69
=head2 debarred2
84
70
85
  data_type: 'varchar'
71
  data_type: 'varchar'
Lines 87-125 number of days after the item is overdue that the second notice is sent Link Here
87
  is_nullable: 1
73
  is_nullable: 1
88
  size: 1
74
  size: 1
89
75
90
is the patron restricted when the second notice is sent (1 for yes, 0 for no)
91
92
=head2 letter2
76
=head2 letter2
93
77
94
  data_type: 'varchar'
78
  data_type: 'varchar'
95
  is_nullable: 1
79
  is_nullable: 1
96
  size: 20
80
  size: 20
97
81
98
foreign key from the letter table to define which notice should be sent as the second notice
99
100
=head2 delay3
82
=head2 delay3
101
83
102
  data_type: 'integer'
84
  data_type: 'integer'
103
  is_nullable: 1
85
  is_nullable: 1
104
86
105
number of days after the item is overdue that the third notice is sent
106
107
=head2 letter3
87
=head2 letter3
108
88
109
  data_type: 'varchar'
89
  data_type: 'varchar'
110
  is_nullable: 1
90
  is_nullable: 1
111
  size: 20
91
  size: 20
112
92
113
foreign key from the letter table to define which notice should be sent as the third notice
114
115
=head2 debarred3
93
=head2 debarred3
116
94
117
  data_type: 'integer'
95
  data_type: 'integer'
118
  default_value: 0
96
  default_value: 0
119
  is_nullable: 1
97
  is_nullable: 1
120
98
121
is the patron restricted when the third notice is sent (1 for yes, 0 for no)
122
123
=cut
99
=cut
124
100
125
__PACKAGE__->add_columns(
101
__PACKAGE__->add_columns(
Lines 195-202 __PACKAGE__->has_many( Link Here
195
);
171
);
196
172
197
173
198
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
174
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
199
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pORigxtC5qztZWHI29mZ/g
175
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QywQERZW9y9xcxcePmWdTQ
200
176
201
sub koha_object_class {
177
sub koha_object_class {
202
    'Koha::OverdueRule';
178
    'Koha::OverdueRule';
(-)a/Koha/Schema/Result/PatronList.pm (-8 / +2 lines)
Lines 29-52 __PACKAGE__->table("patron_lists"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier
33
34
=head2 name
32
=head2 name
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 0
35
  is_nullable: 0
38
  size: 255
36
  size: 255
39
37
40
the list's name
41
42
=head2 owner
38
=head2 owner
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
borrowernumber of the list creator
49
50
=head2 shared
44
=head2 shared
51
45
52
  data_type: 'tinyint'
46
  data_type: 'tinyint'
Lines 111-118 __PACKAGE__->has_many( Link Here
111
);
105
);
112
106
113
107
114
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
108
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
115
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+gAlf5GQ7YSgAtFIXgqVWw
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+9NJkvfoz1TpBRUtWXM1EQ
116
110
117
111
118
# You can replace this text with custom content, and it will be preserved on regeneration
112
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/PatronListPatron.pm (-8 / +2 lines)
Lines 29-52 __PACKAGE__->table("patron_list_patrons"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier
33
34
=head2 patron_list_id
32
=head2 patron_list_id
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
the list this entry is part of
41
42
=head2 borrowernumber
38
=head2 borrowernumber
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
the borrower that is part of this list
49
50
=cut
44
=cut
51
45
52
__PACKAGE__->add_columns(
46
__PACKAGE__->add_columns(
Lines 103-110 __PACKAGE__->belongs_to( Link Here
103
);
97
);
104
98
105
99
106
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
100
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WEOKHfprX7+detNjQ3pV/g
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9w1Pdu1hWQ5jpWwcW2mTqw
108
102
109
103
110
# You can replace this text with custom content, and it will be preserved on regeneration
104
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Patronimage.pm (-8 / +2 lines)
Lines 29-51 __PACKAGE__->table("patronimage"); Link Here
29
  is_foreign_key: 1
29
  is_foreign_key: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
the borrowernumber of the patron this image is attached to (borrowers.borrowernumber)
33
34
=head2 mimetype
32
=head2 mimetype
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 0
35
  is_nullable: 0
38
  size: 15
36
  size: 15
39
37
40
the format of the image (png, jpg, etc)
41
42
=head2 imagefile
38
=head2 imagefile
43
39
44
  data_type: 'mediumblob'
40
  data_type: 'mediumblob'
45
  is_nullable: 0
41
  is_nullable: 0
46
42
47
the image
48
49
=cut
43
=cut
50
44
51
__PACKAGE__->add_columns(
45
__PACKAGE__->add_columns(
Lines 87-94 __PACKAGE__->belongs_to( Link Here
87
);
81
);
88
82
89
83
90
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
84
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DWbMgbxlYcZhGF1YK9fDIA
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ETwVPZfltjB6HXa+B93F1Q
92
86
93
sub koha_object_class {
87
sub koha_object_class {
94
    'Koha::Patron::Image';
88
    'Koha::Patron::Image';
(-)a/Koha/Schema/Result/ProblemReport.pm (-22 / +2 lines)
Lines 29-36 __PACKAGE__->table("problem_reports"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned by Koha
33
34
=head2 title
32
=head2 title
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
Lines 38-52 unique identifier assigned by Koha Link Here
38
  is_nullable: 0
36
  is_nullable: 0
39
  size: 40
37
  size: 40
40
38
41
report subject line
42
43
=head2 content
39
=head2 content
44
40
45
  data_type: 'text'
41
  data_type: 'text'
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
report message content
49
50
=head2 borrowernumber
44
=head2 borrowernumber
51
45
52
  data_type: 'integer'
46
  data_type: 'integer'
Lines 54-61 report message content Link Here
54
  is_foreign_key: 1
48
  is_foreign_key: 1
55
  is_nullable: 0
49
  is_nullable: 0
56
50
57
the user who created the problem report
58
59
=head2 branchcode
51
=head2 branchcode
60
52
61
  data_type: 'varchar'
53
  data_type: 'varchar'
Lines 64-86 the user who created the problem report Link Here
64
  is_nullable: 0
56
  is_nullable: 0
65
  size: 10
57
  size: 10
66
58
67
borrower's branch
68
69
=head2 username
59
=head2 username
70
60
71
  data_type: 'varchar'
61
  data_type: 'varchar'
72
  is_nullable: 1
62
  is_nullable: 1
73
  size: 75
63
  size: 75
74
64
75
OPAC username
76
77
=head2 problempage
65
=head2 problempage
78
66
79
  data_type: 'text'
67
  data_type: 'text'
80
  is_nullable: 1
68
  is_nullable: 1
81
69
82
page the user triggered the problem report form from
83
84
=head2 recipient
70
=head2 recipient
85
71
86
  data_type: 'enum'
72
  data_type: 'enum'
Lines 88-95 page the user triggered the problem report form from Link Here
88
  extra: {list => ["admin","library"]}
74
  extra: {list => ["admin","library"]}
89
  is_nullable: 0
75
  is_nullable: 0
90
76
91
the 'to-address' of the problem report
92
93
=head2 created_on
77
=head2 created_on
94
78
95
  data_type: 'timestamp'
79
  data_type: 'timestamp'
Lines 97-104 the 'to-address' of the problem report Link Here
97
  default_value: current_timestamp
81
  default_value: current_timestamp
98
  is_nullable: 0
82
  is_nullable: 0
99
83
100
timestamp of report submission
101
102
=head2 status
84
=head2 status
103
85
104
  data_type: 'varchar'
86
  data_type: 'varchar'
Lines 106-113 timestamp of report submission Link Here
106
  is_nullable: 0
88
  is_nullable: 0
107
  size: 6
89
  size: 6
108
90
109
status of the report. New, Viewed, Closed
110
111
=cut
91
=cut
112
92
113
__PACKAGE__->add_columns(
93
__PACKAGE__->add_columns(
Lines 199-206 __PACKAGE__->belongs_to( Link Here
199
);
179
);
200
180
201
181
202
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-04-12 13:27:06
182
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
203
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YdCX1Hak6UwiJo1iBJqqzg
183
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xsbTQDex5Qytc3Jk4hDWEw
204
184
205
185
206
# You can replace this text with custom code or comments, and it will be preserved on regeneration
186
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/PseudonymizedBorrowerAttribute.pm (-6 / +2 lines)
Lines 29-36 __PACKAGE__->table("pseudonymized_borrower_attributes"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
Row id field
33
34
=head2 transaction_id
32
=head2 transaction_id
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
Lines 52-59 foreign key from the borrower_attribute_types table, defines which custom field Link Here
52
  is_nullable: 1
50
  is_nullable: 1
53
  size: 255
51
  size: 255
54
52
55
custom patron field value
56
57
=cut
53
=cut
58
54
59
__PACKAGE__->add_columns(
55
__PACKAGE__->add_columns(
Lines 112-119 __PACKAGE__->belongs_to( Link Here
112
);
108
);
113
109
114
110
115
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56
111
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
116
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:09zbX6WErMxrZSBrc/nvdA
112
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HAp46+QfDzJssQk8LHEaGg
117
113
118
114
119
# You can replace this text with custom code or comments, and it will be preserved on regeneration
115
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Quote.pm (-10 / +2 lines)
Lines 29-58 __PACKAGE__->table("quotes"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique id for the quote
33
34
=head2 source
32
=head2 source
35
33
36
  data_type: 'mediumtext'
34
  data_type: 'mediumtext'
37
  is_nullable: 1
35
  is_nullable: 1
38
36
39
source/credit for the quote
40
41
=head2 text
37
=head2 text
42
38
43
  data_type: 'longtext'
39
  data_type: 'longtext'
44
  is_nullable: 0
40
  is_nullable: 0
45
41
46
text of the quote
47
48
=head2 timestamp
42
=head2 timestamp
49
43
50
  data_type: 'datetime'
44
  data_type: 'datetime'
51
  datetime_undef_if_invalid: 1
45
  datetime_undef_if_invalid: 1
52
  is_nullable: 1
46
  is_nullable: 1
53
47
54
date and time that the quote last appeared in the opac
55
56
=cut
48
=cut
57
49
58
__PACKAGE__->add_columns(
50
__PACKAGE__->add_columns(
Lines 83-90 __PACKAGE__->add_columns( Link Here
83
__PACKAGE__->set_primary_key("id");
75
__PACKAGE__->set_primary_key("id");
84
76
85
77
86
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
78
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AsjlfoqGCpt8DKeRpizVjA
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:joJqM519yhWSVIPJv92MtQ
88
80
89
81
90
# You can replace this text with custom content, and it will be preserved on regeneration
82
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Rating.pm (-8 / +2 lines)
Lines 29-51 __PACKAGE__->table("ratings"); Link Here
29
  is_foreign_key: 1
29
  is_foreign_key: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
the borrowernumber of the patron who left this rating (borrowers.borrowernumber)
33
34
=head2 biblionumber
32
=head2 biblionumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
the biblio this rating is for (biblio.biblionumber)
41
42
=head2 rating_value
38
=head2 rating_value
43
39
44
  data_type: 'tinyint'
40
  data_type: 'tinyint'
45
  is_nullable: 0
41
  is_nullable: 0
46
42
47
the rating, from 1 to 5
48
49
=head2 timestamp
43
=head2 timestamp
50
44
51
  data_type: 'timestamp'
45
  data_type: 'timestamp'
Lines 118-125 __PACKAGE__->belongs_to( Link Here
118
);
112
);
119
113
120
114
121
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
115
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
122
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wUwI/h1WR8kVGMNCrv/tUQ
116
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s/mt0FLycvwtE6eQSbF+KQ
123
117
124
118
125
# You can replace this text with custom content, and it will be preserved on regeneration
119
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Recall.pm (-31 / +3 lines)
Lines 6-12 package Koha::Schema::Result::Recall; Link Here
6
6
7
=head1 NAME
7
=head1 NAME
8
8
9
Koha::Schema::Result::Recall - Information related to recalls in Koha
9
Koha::Schema::Result::Recall
10
10
11
=cut
11
=cut
12
12
Lines 29-36 __PACKAGE__->table("recalls"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
Unique identifier for this recall
33
34
=head2 patron_id
32
=head2 patron_id
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
Lines 38-53 Unique identifier for this recall Link Here
38
  is_foreign_key: 1
36
  is_foreign_key: 1
39
  is_nullable: 0
37
  is_nullable: 0
40
38
41
Identifier for patron who requested recall
42
43
=head2 created_date
39
=head2 created_date
44
40
45
  data_type: 'datetime'
41
  data_type: 'datetime'
46
  datetime_undef_if_invalid: 1
42
  datetime_undef_if_invalid: 1
47
  is_nullable: 1
43
  is_nullable: 1
48
44
49
Date the recall was requested
50
51
=head2 biblio_id
45
=head2 biblio_id
52
46
53
  data_type: 'integer'
47
  data_type: 'integer'
Lines 63-92 Identifier for bibliographic record that has been recalled Link Here
63
  is_nullable: 1
57
  is_nullable: 1
64
  size: 10
58
  size: 10
65
59
66
Identifier for recall pickup library
67
68
=head2 completed_date
60
=head2 completed_date
69
61
70
  data_type: 'datetime'
62
  data_type: 'datetime'
71
  datetime_undef_if_invalid: 1
63
  datetime_undef_if_invalid: 1
72
  is_nullable: 1
64
  is_nullable: 1
73
65
74
Date the recall is completed (fulfilled, cancelled or expired)
75
76
=head2 notes
66
=head2 notes
77
67
78
  data_type: 'mediumtext'
68
  data_type: 'mediumtext'
79
  is_nullable: 1
69
  is_nullable: 1
80
70
81
Notes related to the recall
82
83
=head2 priority
71
=head2 priority
84
72
85
  data_type: 'smallint'
73
  data_type: 'smallint'
86
  is_nullable: 1
74
  is_nullable: 1
87
75
88
Where in the queue the patron sits
89
90
=head2 status
76
=head2 status
91
77
92
  data_type: 'enum'
78
  data_type: 'enum'
Lines 94-101 Where in the queue the patron sits Link Here
94
  extra: {list => ["requested","overdue","waiting","in_transit","cancelled","expired","fulfilled"]}
80
  extra: {list => ["requested","overdue","waiting","in_transit","cancelled","expired","fulfilled"]}
95
  is_nullable: 1
81
  is_nullable: 1
96
82
97
Status of recall
98
99
=head2 timestamp
83
=head2 timestamp
100
84
101
  data_type: 'timestamp'
85
  data_type: 'timestamp'
Lines 103-150 Status of recall Link Here
103
  default_value: current_timestamp
87
  default_value: current_timestamp
104
  is_nullable: 0
88
  is_nullable: 0
105
89
106
Date and time the recall was last updated
107
108
=head2 item_id
90
=head2 item_id
109
91
110
  data_type: 'integer'
92
  data_type: 'integer'
111
  is_foreign_key: 1
93
  is_foreign_key: 1
112
  is_nullable: 1
94
  is_nullable: 1
113
95
114
Identifier for item record that was recalled, if an item-level recall
115
116
=head2 waiting_date
96
=head2 waiting_date
117
97
118
  data_type: 'datetime'
98
  data_type: 'datetime'
119
  datetime_undef_if_invalid: 1
99
  datetime_undef_if_invalid: 1
120
  is_nullable: 1
100
  is_nullable: 1
121
101
122
Date an item was marked as waiting for the patron at the library
123
124
=head2 expiration_date
102
=head2 expiration_date
125
103
126
  data_type: 'datetime'
104
  data_type: 'datetime'
127
  datetime_undef_if_invalid: 1
105
  datetime_undef_if_invalid: 1
128
  is_nullable: 1
106
  is_nullable: 1
129
107
130
Date recall is no longer required, or date recall will expire after waiting on shelf for pickup
131
132
=head2 completed
108
=head2 completed
133
109
134
  data_type: 'tinyint'
110
  data_type: 'tinyint'
135
  default_value: 0
111
  default_value: 0
136
  is_nullable: 0
112
  is_nullable: 0
137
113
138
Flag if recall is old and no longer active, i.e. expired, cancelled or completed
139
140
=head2 item_level
114
=head2 item_level
141
115
142
  data_type: 'tinyint'
116
  data_type: 'tinyint'
143
  default_value: 0
117
  default_value: 0
144
  is_nullable: 0
118
  is_nullable: 0
145
119
146
Flag if recall is for a specific item
147
148
=cut
120
=cut
149
121
150
__PACKAGE__->add_columns(
122
__PACKAGE__->add_columns(
Lines 306-313 __PACKAGE__->belongs_to( Link Here
306
);
278
);
307
279
308
280
309
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-10 17:06:39
281
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
310
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PHc8RtTZ7G02D0ZW4wrPGQ
282
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YjuOo2c0kpcFk3tvLziBWA
311
283
312
__PACKAGE__->add_columns(
284
__PACKAGE__->add_columns(
313
    '+completed' => { is_boolean => 1 },
285
    '+completed' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/RepeatableHoliday.pm (-17 / +10 lines)
Lines 29-66 __PACKAGE__->table("repeatable_holidays"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned by Koha
33
34
=head2 branchcode
32
=head2 branchcode
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
35
  default_value: (empty string)
37
  is_foreign_key: 1
36
  is_foreign_key: 1
38
  is_nullable: 0
37
  is_nullable: 0
39
  size: 10
38
  size: 10
40
39
41
foreign key from the branches table, defines which branch this closing is for
42
43
=head2 weekday
40
=head2 weekday
44
41
45
  data_type: 'smallint'
42
  data_type: 'smallint'
46
  is_nullable: 1
43
  is_nullable: 1
47
44
48
day of the week (0=Sunday, 1=Monday, etc) this closing is repeated on
49
50
=head2 day
45
=head2 day
51
46
52
  data_type: 'smallint'
47
  data_type: 'smallint'
53
  is_nullable: 1
48
  is_nullable: 1
54
49
55
day of the month this closing is on
56
57
=head2 month
50
=head2 month
58
51
59
  data_type: 'smallint'
52
  data_type: 'smallint'
60
  is_nullable: 1
53
  is_nullable: 1
61
54
62
month this closing is in
63
64
=head2 title
55
=head2 title
65
56
66
  data_type: 'varchar'
57
  data_type: 'varchar'
Lines 68-89 month this closing is in Link Here
68
  is_nullable: 0
59
  is_nullable: 0
69
  size: 50
60
  size: 50
70
61
71
title of this closing
72
73
=head2 description
62
=head2 description
74
63
75
  data_type: 'mediumtext'
64
  data_type: 'mediumtext'
76
  is_nullable: 0
65
  is_nullable: 0
77
66
78
description for this closing
79
80
=cut
67
=cut
81
68
82
__PACKAGE__->add_columns(
69
__PACKAGE__->add_columns(
83
  "id",
70
  "id",
84
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
71
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
85
  "branchcode",
72
  "branchcode",
86
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
73
  {
74
    data_type => "varchar",
75
    default_value => "",
76
    is_foreign_key => 1,
77
    is_nullable => 0,
78
    size => 10,
79
  },
87
  "weekday",
80
  "weekday",
88
  { data_type => "smallint", is_nullable => 1 },
81
  { data_type => "smallint", is_nullable => 1 },
89
  "day",
82
  "day",
Lines 126-133 __PACKAGE__->belongs_to( Link Here
126
);
119
);
127
120
128
121
129
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
122
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
130
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OZykv+F1kgqeLvezCyhvZA
123
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8QO1YRNFnTyIppJKRYXQ8A
131
124
132
125
133
# You can replace this text with custom content, and it will be preserved on regeneration
126
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ReportsDictionary.pm (-16 / +2 lines)
Lines 29-82 __PACKAGE__->table("reports_dictionary"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned by Koha
33
34
=head2 name
32
=head2 name
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 1
35
  is_nullable: 1
38
  size: 255
36
  size: 255
39
37
40
name for this definition
41
42
=head2 description
38
=head2 description
43
39
44
  data_type: 'mediumtext'
40
  data_type: 'mediumtext'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
description for this definition
48
49
=head2 date_created
43
=head2 date_created
50
44
51
  data_type: 'datetime'
45
  data_type: 'datetime'
52
  datetime_undef_if_invalid: 1
46
  datetime_undef_if_invalid: 1
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
date and time this definition was created
56
57
=head2 date_modified
49
=head2 date_modified
58
50
59
  data_type: 'datetime'
51
  data_type: 'datetime'
60
  datetime_undef_if_invalid: 1
52
  datetime_undef_if_invalid: 1
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
date and time this definition was last modified
64
65
=head2 saved_sql
55
=head2 saved_sql
66
56
67
  data_type: 'mediumtext'
57
  data_type: 'mediumtext'
68
  is_nullable: 1
58
  is_nullable: 1
69
59
70
SQL snippet for us in reports
71
72
=head2 report_area
60
=head2 report_area
73
61
74
  data_type: 'varchar'
62
  data_type: 'varchar'
75
  is_nullable: 1
63
  is_nullable: 1
76
  size: 6
64
  size: 6
77
65
78
Koha module this definition is for Circulation, Catalog, Patrons, Acquistions, Accounts)
79
80
=cut
66
=cut
81
67
82
__PACKAGE__->add_columns(
68
__PACKAGE__->add_columns(
Lines 117-124 __PACKAGE__->add_columns( Link Here
117
__PACKAGE__->set_primary_key("id");
103
__PACKAGE__->set_primary_key("id");
118
104
119
105
120
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
106
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7r8vJ2yWD3yQCyri+uNSRw
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gNbGITm89dAUiVZ7ZtRU6Q
122
108
123
109
124
# You can replace this text with custom content, and it will be preserved on regeneration
110
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Reserve.pm (-41 / +10 lines)
Lines 29-36 __PACKAGE__->table("reserves"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
primary key
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
Lines 38-53 primary key Link Here
38
  is_foreign_key: 1
36
  is_foreign_key: 1
39
  is_nullable: 0
37
  is_nullable: 0
40
38
41
foreign key from the borrowers table defining which patron this hold is for
42
43
=head2 reservedate
39
=head2 reservedate
44
40
45
  data_type: 'date'
41
  data_type: 'date'
46
  datetime_undef_if_invalid: 1
42
  datetime_undef_if_invalid: 1
47
  is_nullable: 1
43
  is_nullable: 1
48
44
49
the date the hold was placed
50
51
=head2 biblionumber
45
=head2 biblionumber
52
46
53
  data_type: 'integer'
47
  data_type: 'integer'
Lines 55-61 the date the hold was placed Link Here
55
  is_foreign_key: 1
49
  is_foreign_key: 1
56
  is_nullable: 0
50
  is_nullable: 0
57
51
58
foreign key from the biblio table defining which bib record this hold is on
52
=head2 deleted_biblionumber
53
54
  data_type: 'integer'
55
  is_nullable: 1
56
57
links the hold to the deleted bibliographic record (deletedbiblio.biblionumber)
59
58
60
=head2 item_group_id
59
=head2 item_group_id
61
60
Lines 63-70 foreign key from the biblio table defining which bib record this hold is on Link Here
63
  is_foreign_key: 1
62
  is_foreign_key: 1
64
  is_nullable: 1
63
  is_nullable: 1
65
64
66
foreign key from the item_groups table defining if this is an item group level hold
67
68
=head2 branchcode
65
=head2 branchcode
69
66
70
  data_type: 'varchar'
67
  data_type: 'varchar'
Lines 80-142 foreign key from the branches table defining which branch the patron wishes to p Link Here
80
  is_foreign_key: 1
77
  is_foreign_key: 1
81
  is_nullable: 1
78
  is_nullable: 1
82
79
83
foreign key from the desks table defining which desk the patron should pick this hold up at
84
85
=head2 notificationdate
80
=head2 notificationdate
86
81
87
  data_type: 'date'
82
  data_type: 'date'
88
  datetime_undef_if_invalid: 1
83
  datetime_undef_if_invalid: 1
89
  is_nullable: 1
84
  is_nullable: 1
90
85
91
currently unused
92
93
=head2 reminderdate
86
=head2 reminderdate
94
87
95
  data_type: 'date'
88
  data_type: 'date'
96
  datetime_undef_if_invalid: 1
89
  datetime_undef_if_invalid: 1
97
  is_nullable: 1
90
  is_nullable: 1
98
91
99
currently unused
100
101
=head2 cancellationdate
92
=head2 cancellationdate
102
93
103
  data_type: 'date'
94
  data_type: 'date'
104
  datetime_undef_if_invalid: 1
95
  datetime_undef_if_invalid: 1
105
  is_nullable: 1
96
  is_nullable: 1
106
97
107
the date this hold was cancelled
108
109
=head2 cancellation_reason
98
=head2 cancellation_reason
110
99
111
  data_type: 'varchar'
100
  data_type: 'varchar'
112
  is_nullable: 1
101
  is_nullable: 1
113
  size: 80
102
  size: 80
114
103
115
optional authorised value CANCELLATION_REASON
116
117
=head2 reservenotes
104
=head2 reservenotes
118
105
119
  data_type: 'longtext'
106
  data_type: 'longtext'
120
  is_nullable: 1
107
  is_nullable: 1
121
108
122
notes related to this hold
123
124
=head2 priority
109
=head2 priority
125
110
126
  data_type: 'smallint'
111
  data_type: 'smallint'
127
  default_value: 1
112
  default_value: 1
128
  is_nullable: 0
113
  is_nullable: 0
129
114
130
where in the queue the patron sits
131
132
=head2 found
115
=head2 found
133
116
134
  data_type: 'varchar'
117
  data_type: 'varchar'
135
  is_nullable: 1
118
  is_nullable: 1
136
  size: 1
119
  size: 1
137
120
138
a one letter code defining what the status is of the hold is after it has been confirmed
139
140
=head2 timestamp
121
=head2 timestamp
141
122
142
  data_type: 'timestamp'
123
  data_type: 'timestamp'
Lines 144-175 a one letter code defining what the status is of the hold is after it has been c Link Here
144
  default_value: current_timestamp
125
  default_value: current_timestamp
145
  is_nullable: 0
126
  is_nullable: 0
146
127
147
the date and time this hold was last updated
148
149
=head2 itemnumber
128
=head2 itemnumber
150
129
151
  data_type: 'integer'
130
  data_type: 'integer'
152
  is_foreign_key: 1
131
  is_foreign_key: 1
153
  is_nullable: 1
132
  is_nullable: 1
154
133
155
foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with
156
157
=head2 waitingdate
134
=head2 waitingdate
158
135
159
  data_type: 'date'
136
  data_type: 'date'
160
  datetime_undef_if_invalid: 1
137
  datetime_undef_if_invalid: 1
161
  is_nullable: 1
138
  is_nullable: 1
162
139
163
the date the item was marked as waiting for the patron at the library
164
165
=head2 expirationdate
140
=head2 expirationdate
166
141
167
  data_type: 'date'
142
  data_type: 'date'
168
  datetime_undef_if_invalid: 1
143
  datetime_undef_if_invalid: 1
169
  is_nullable: 1
144
  is_nullable: 1
170
145
171
the date the hold expires (calculated value)
172
173
=head2 patron_expiration_date
146
=head2 patron_expiration_date
174
147
175
  data_type: 'date'
148
  data_type: 'date'
Lines 204-227 the date the hold expires - usually the date entered by the patron to say they d Link Here
204
  is_nullable: 1
177
  is_nullable: 1
205
  size: 10
178
  size: 10
206
179
207
If record level hold, the optional itemtype of the item the patron is requesting
208
209
=head2 item_level_hold
180
=head2 item_level_hold
210
181
211
  data_type: 'tinyint'
182
  data_type: 'tinyint'
212
  default_value: 0
183
  default_value: 0
213
  is_nullable: 0
184
  is_nullable: 0
214
185
215
Is the hold placed at item level
216
217
=head2 non_priority
186
=head2 non_priority
218
187
219
  data_type: 'tinyint'
188
  data_type: 'tinyint'
220
  default_value: 0
189
  default_value: 0
221
  is_nullable: 0
190
  is_nullable: 0
222
191
223
Is this a non priority hold
224
225
=cut
192
=cut
226
193
227
__PACKAGE__->add_columns(
194
__PACKAGE__->add_columns(
Lines 243-248 __PACKAGE__->add_columns( Link Here
243
    is_foreign_key => 1,
210
    is_foreign_key => 1,
244
    is_nullable    => 0,
211
    is_nullable    => 0,
245
  },
212
  },
213
  "deleted_biblionumber",
214
  { data_type => "integer", is_nullable => 1 },
246
  "item_group_id",
215
  "item_group_id",
247
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
216
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
248
  "branchcode",
217
  "branchcode",
Lines 456-463 __PACKAGE__->belongs_to( Link Here
456
);
425
);
457
426
458
427
459
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-01 18:21:38
428
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
460
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6BAjuPSwjtyWJaJN9fcOtg
429
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ALXxCzoT0I7SshXvFZL9cQ
461
430
462
__PACKAGE__->belongs_to(
431
__PACKAGE__->belongs_to(
463
  "item",
432
  "item",
(-)a/Koha/Schema/Result/ReturnClaim.pm (-26 / +2 lines)
Lines 29-122 __PACKAGE__->table("return_claims"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
Unique ID of the return claim
33
34
=head2 itemnumber
32
=head2 itemnumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
ID of the item
41
42
=head2 issue_id
38
=head2 issue_id
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
ID of the checkout that triggered the claim
48
49
=head2 borrowernumber
43
=head2 borrowernumber
50
44
51
  data_type: 'integer'
45
  data_type: 'integer'
52
  is_foreign_key: 1
46
  is_foreign_key: 1
53
  is_nullable: 0
47
  is_nullable: 0
54
48
55
ID of the patron
56
57
=head2 notes
49
=head2 notes
58
50
59
  data_type: 'mediumtext'
51
  data_type: 'mediumtext'
60
  is_nullable: 1
52
  is_nullable: 1
61
53
62
Notes about the claim
63
64
=head2 created_on
54
=head2 created_on
65
55
66
  data_type: 'timestamp'
56
  data_type: 'timestamp'
67
  datetime_undef_if_invalid: 1
57
  datetime_undef_if_invalid: 1
68
  is_nullable: 1
58
  is_nullable: 1
69
59
70
Time and date the claim was created
71
72
=head2 created_by
60
=head2 created_by
73
61
74
  data_type: 'integer'
62
  data_type: 'integer'
75
  is_foreign_key: 1
63
  is_foreign_key: 1
76
  is_nullable: 1
64
  is_nullable: 1
77
65
78
ID of the staff member that registered the claim
79
80
=head2 updated_on
66
=head2 updated_on
81
67
82
  data_type: 'timestamp'
68
  data_type: 'timestamp'
83
  datetime_undef_if_invalid: 1
69
  datetime_undef_if_invalid: 1
84
  is_nullable: 1
70
  is_nullable: 1
85
71
86
Time and date of the latest change on the claim (notes)
87
88
=head2 updated_by
72
=head2 updated_by
89
73
90
  data_type: 'integer'
74
  data_type: 'integer'
91
  is_foreign_key: 1
75
  is_foreign_key: 1
92
  is_nullable: 1
76
  is_nullable: 1
93
77
94
ID of the staff member that updated the claim
95
96
=head2 resolution
78
=head2 resolution
97
79
98
  data_type: 'varchar'
80
  data_type: 'varchar'
99
  is_nullable: 1
81
  is_nullable: 1
100
  size: 80
82
  size: 80
101
83
102
Resolution code (RETURN_CLAIM_RESOLUTION AVs)
103
104
=head2 resolved_on
84
=head2 resolved_on
105
85
106
  data_type: 'timestamp'
86
  data_type: 'timestamp'
107
  datetime_undef_if_invalid: 1
87
  datetime_undef_if_invalid: 1
108
  is_nullable: 1
88
  is_nullable: 1
109
89
110
Time and date the claim was resolved
111
112
=head2 resolved_by
90
=head2 resolved_by
113
91
114
  data_type: 'integer'
92
  data_type: 'integer'
115
  is_foreign_key: 1
93
  is_foreign_key: 1
116
  is_nullable: 1
94
  is_nullable: 1
117
95
118
ID of the staff member that resolved the claim
119
120
=cut
96
=cut
121
97
122
__PACKAGE__->add_columns(
98
__PACKAGE__->add_columns(
Lines 279-286 __PACKAGE__->belongs_to( Link Here
279
);
255
);
280
256
281
257
282
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-18 15:06:21
258
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
283
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Xj7Juwt0e0wxEf+CZRfyMQ
259
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uvBDk30Gpy8XhZQpiBLapA
284
260
285
=head2 checkout
261
=head2 checkout
286
262
(-)a/Koha/Schema/Result/Review.pm (-14 / +2 lines)
Lines 29-75 __PACKAGE__->table("reviews"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier for this comment
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
foreign key from the borrowers table defining which patron left this comment
41
42
=head2 biblionumber
38
=head2 biblionumber
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
foreign key from the biblio table defining which bibliographic record this comment is for
49
50
=head2 review
44
=head2 review
51
45
52
  data_type: 'mediumtext'
46
  data_type: 'mediumtext'
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
the body of the comment
56
57
=head2 approved
49
=head2 approved
58
50
59
  data_type: 'tinyint'
51
  data_type: 'tinyint'
60
  default_value: 0
52
  default_value: 0
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
whether this comment has been approved by a librarian (1 for yes, 0 for no)
64
65
=head2 datereviewed
55
=head2 datereviewed
66
56
67
  data_type: 'datetime'
57
  data_type: 'datetime'
68
  datetime_undef_if_invalid: 1
58
  datetime_undef_if_invalid: 1
69
  is_nullable: 1
59
  is_nullable: 1
70
60
71
the date the comment was left
72
73
=cut
61
=cut
74
62
75
__PACKAGE__->add_columns(
63
__PACKAGE__->add_columns(
Lines 146-153 __PACKAGE__->belongs_to( Link Here
146
);
134
);
147
135
148
136
149
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
137
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
150
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1Am1qqe4ETom7ylth3Tvpg
138
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UclEmfhbvc8Xg8YffpAXSA
151
139
152
140
153
# You can replace this text with custom content, and it will be preserved on regeneration
141
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/SavedSql.pm (-18 / +2 lines)
Lines 29-66 __PACKAGE__->table("saved_sql"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique id and primary key assigned by Koha
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_nullable: 1
35
  is_nullable: 1
38
36
39
the staff member who created this report (borrowers.borrowernumber)
40
41
=head2 date_created
37
=head2 date_created
42
38
43
  data_type: 'datetime'
39
  data_type: 'datetime'
44
  datetime_undef_if_invalid: 1
40
  datetime_undef_if_invalid: 1
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
the date this report was created
48
49
=head2 last_modified
43
=head2 last_modified
50
44
51
  data_type: 'datetime'
45
  data_type: 'datetime'
52
  datetime_undef_if_invalid: 1
46
  datetime_undef_if_invalid: 1
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
the date this report was last edited
56
57
=head2 savedsql
49
=head2 savedsql
58
50
59
  data_type: 'mediumtext'
51
  data_type: 'mediumtext'
60
  is_nullable: 1
52
  is_nullable: 1
61
53
62
the SQL for this report
63
64
=head2 last_run
54
=head2 last_run
65
55
66
  data_type: 'datetime'
56
  data_type: 'datetime'
Lines 74-96 the SQL for this report Link Here
74
  is_nullable: 0
64
  is_nullable: 0
75
  size: 255
65
  size: 255
76
66
77
the name of this report
78
79
=head2 type
67
=head2 type
80
68
81
  data_type: 'varchar'
69
  data_type: 'varchar'
82
  is_nullable: 1
70
  is_nullable: 1
83
  size: 255
71
  size: 255
84
72
85
always 1 for tabular
86
87
=head2 notes
73
=head2 notes
88
74
89
  data_type: 'mediumtext'
75
  data_type: 'mediumtext'
90
  is_nullable: 1
76
  is_nullable: 1
91
77
92
the notes or description given to this report
93
94
=head2 cache_expiry
78
=head2 cache_expiry
95
79
96
  data_type: 'integer'
80
  data_type: 'integer'
Lines 186-193 __PACKAGE__->add_columns( Link Here
186
__PACKAGE__->set_primary_key("id");
170
__PACKAGE__->set_primary_key("id");
187
171
188
172
189
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
173
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
190
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:198dNG9DGQzop+s5IHy7sw
174
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IkZZ0EdwQ0tk1p9W9g9R8A
191
175
192
__PACKAGE__->add_columns(
176
__PACKAGE__->add_columns(
193
    '+public' => { is_boolean => 1 }
177
    '+public' => { is_boolean => 1 }
(-)a/Koha/Schema/Result/SearchField.pm (-12 / +4 lines)
Lines 49-57 the human readable name of the field, for display Link Here
49
49
50
  data_type: 'enum'
50
  data_type: 'enum'
51
  extra: {list => ["","string","date","number","boolean","sum","isbn","stdno","year","callnumber","geo_point"]}
51
  extra: {list => ["","string","date","number","boolean","sum","isbn","stdno","year","callnumber","geo_point"]}
52
  is_nullable: 0
52
  is_nullable: 1
53
54
what type of data this holds, relevant when storing it in the search engine
55
53
56
=head2 weight
54
=head2 weight
57
55
Lines 64-71 what type of data this holds, relevant when storing it in the search engine Link Here
64
  data_type: 'tinyint'
62
  data_type: 'tinyint'
65
  is_nullable: 1
63
  is_nullable: 1
66
64
67
the order place of the field in facet list if faceted
68
69
=head2 staff_client
65
=head2 staff_client
70
66
71
  data_type: 'tinyint'
67
  data_type: 'tinyint'
Lines 83-98 the order place of the field in facet list if faceted Link Here
83
  data_type: 'tinyint'
79
  data_type: 'tinyint'
84
  is_nullable: 1
80
  is_nullable: 1
85
81
86
if marked this field is not editable or removable
87
88
=head2 authorised_value_category
82
=head2 authorised_value_category
89
83
90
  data_type: 'varchar'
84
  data_type: 'varchar'
91
  is_nullable: 1
85
  is_nullable: 1
92
  size: 32
86
  size: 32
93
87
94
link to authorised value category
95
96
=cut
88
=cut
97
89
98
__PACKAGE__->add_columns(
90
__PACKAGE__->add_columns(
Lines 120-126 __PACKAGE__->add_columns( Link Here
120
        "geo_point",
112
        "geo_point",
121
      ],
113
      ],
122
    },
114
    },
123
    is_nullable => 0,
115
    is_nullable => 1,
124
  },
116
  },
125
  "weight",
117
  "weight",
126
  { data_type => "decimal", is_nullable => 1, size => [5, 2] },
118
  { data_type => "decimal", is_nullable => 1, size => [5, 2] },
Lines 180-187 __PACKAGE__->has_many( Link Here
180
);
172
);
181
173
182
174
183
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-07 09:45:57
175
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
184
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/WPJEu04y32zDMr+vnK5og
176
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GOVmhjLLLjKwhFQAK9UkQQ
185
177
186
__PACKAGE__->add_columns(
178
__PACKAGE__->add_columns(
187
    '+mandatory' => { is_boolean => 1 },
179
    '+mandatory' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/SearchHistory.pm (-18 / +2 lines)
Lines 29-66 __PACKAGE__->table("search_history"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
search history id
33
34
=head2 userid
32
=head2 userid
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_nullable: 0
35
  is_nullable: 0
38
36
39
the patron who performed the search (borrowers.borrowernumber)
40
41
=head2 sessionid
37
=head2 sessionid
42
38
43
  data_type: 'varchar'
39
  data_type: 'varchar'
44
  is_nullable: 0
40
  is_nullable: 0
45
  size: 32
41
  size: 32
46
42
47
a system generated session id
48
49
=head2 query_desc
43
=head2 query_desc
50
44
51
  data_type: 'varchar'
45
  data_type: 'varchar'
52
  is_nullable: 0
46
  is_nullable: 0
53
  size: 255
47
  size: 255
54
48
55
the search that was performed
56
57
=head2 query_cgi
49
=head2 query_cgi
58
50
59
  data_type: 'mediumtext'
51
  data_type: 'mediumtext'
60
  is_nullable: 0
52
  is_nullable: 0
61
53
62
the string to append to the search url to rerun the search
63
64
=head2 type
54
=head2 type
65
55
66
  data_type: 'varchar'
56
  data_type: 'varchar'
Lines 68-82 the string to append to the search url to rerun the search Link Here
68
  is_nullable: 0
58
  is_nullable: 0
69
  size: 16
59
  size: 16
70
60
71
search type, must be 'biblio' or 'authority'
72
73
=head2 total
61
=head2 total
74
62
75
  data_type: 'integer'
63
  data_type: 'integer'
76
  is_nullable: 0
64
  is_nullable: 0
77
65
78
the total of results found
79
80
=head2 time
66
=head2 time
81
67
82
  data_type: 'timestamp'
68
  data_type: 'timestamp'
Lines 84-91 the total of results found Link Here
84
  default_value: current_timestamp
70
  default_value: current_timestamp
85
  is_nullable: 0
71
  is_nullable: 0
86
72
87
the date and time the search was run
88
89
=cut
73
=cut
90
74
91
__PACKAGE__->add_columns(
75
__PACKAGE__->add_columns(
Lines 130-137 __PACKAGE__->add_columns( Link Here
130
__PACKAGE__->set_primary_key("id");
114
__PACKAGE__->set_primary_key("id");
131
115
132
116
133
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
117
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
134
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3NBo7G2g9DhTUj1FT3I3Mw
118
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jqZExSWA4ZY1BNQEflCizg
135
119
136
120
137
# You can replace this text with custom content, and it will be preserved on regeneration
121
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/SearchMarcToField.pm (-21 / +21 lines)
Lines 23-43 __PACKAGE__->table("search_marc_to_field"); Link Here
23
23
24
=head1 ACCESSORS
24
=head1 ACCESSORS
25
25
26
=head2 search
27
28
  data_type: 'tinyint'
29
  default_value: 1
30
  is_nullable: 0
31
32
=head2 filter
33
34
  data_type: 'varchar'
35
  default_value: (empty string)
36
  is_nullable: 0
37
  size: 100
38
39
specify a filter to be applied to field
40
41
=head2 search_marc_map_id
26
=head2 search_marc_map_id
42
27
43
  data_type: 'integer'
28
  data_type: 'integer'
Lines 74-86 true if this field can be used to generate suggestions for browse Link Here
74
59
75
Sort defaults to 1 (Yes) and creates sort fields in the index, 0 (no) will prevent this
60
Sort defaults to 1 (Yes) and creates sort fields in the index, 0 (no) will prevent this
76
61
62
=head2 search
63
64
  data_type: 'tinyint'
65
  default_value: 1
66
  is_nullable: 0
67
68
=head2 filter
69
70
  data_type: 'varchar'
71
  default_value: (empty string)
72
  is_nullable: 0
73
  size: 100
74
75
specify a filter to be applied to field
76
77
=cut
77
=cut
78
78
79
__PACKAGE__->add_columns(
79
__PACKAGE__->add_columns(
80
  "search",
81
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
82
  "filter",
83
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
84
  "search_marc_map_id",
80
  "search_marc_map_id",
85
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
81
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
86
  "search_field_id",
82
  "search_field_id",
Lines 91-96 __PACKAGE__->add_columns( Link Here
91
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
87
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
92
  "sort",
88
  "sort",
93
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
89
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
90
  "search",
91
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
92
  "filter",
93
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
94
);
94
);
95
95
96
=head1 PRIMARY KEY
96
=head1 PRIMARY KEY
Lines 142-149 __PACKAGE__->belongs_to( Link Here
142
);
142
);
143
143
144
144
145
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-24 18:41:10
145
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
146
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rJQhUx0rIc6RVz4HJ5vy/g
146
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gZsYD80m/cTCXRpZ6JRT3w
147
147
148
__PACKAGE__->add_columns(
148
__PACKAGE__->add_columns(
149
    '+facet' => { is_boolean => 1 },
149
    '+facet' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Serial.pm (-32 / +2 lines)
Lines 29-52 __PACKAGE__->table("serial"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique key for the issue
33
34
=head2 biblionumber
32
=head2 biblionumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key for the biblio.biblionumber that this issue is attached to
41
42
=head2 subscriptionid
38
=head2 subscriptionid
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
foreign key to the subscription.subscriptionid that this issue is part of
49
50
=head2 serialseq
44
=head2 serialseq
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
Lines 54-147 foreign key to the subscription.subscriptionid that this issue is part of Link Here
54
  is_nullable: 0
48
  is_nullable: 0
55
  size: 100
49
  size: 100
56
50
57
issue information (volume, number, etc)
58
59
=head2 serialseq_x
51
=head2 serialseq_x
60
52
61
  data_type: 'varchar'
53
  data_type: 'varchar'
62
  is_nullable: 1
54
  is_nullable: 1
63
  size: 100
55
  size: 100
64
56
65
first part of issue information
66
67
=head2 serialseq_y
57
=head2 serialseq_y
68
58
69
  data_type: 'varchar'
59
  data_type: 'varchar'
70
  is_nullable: 1
60
  is_nullable: 1
71
  size: 100
61
  size: 100
72
62
73
second part of issue information
74
75
=head2 serialseq_z
63
=head2 serialseq_z
76
64
77
  data_type: 'varchar'
65
  data_type: 'varchar'
78
  is_nullable: 1
66
  is_nullable: 1
79
  size: 100
67
  size: 100
80
68
81
third part of issue information
82
83
=head2 status
69
=head2 status
84
70
85
  data_type: 'tinyint'
71
  data_type: 'tinyint'
86
  default_value: 0
72
  default_value: 0
87
  is_nullable: 0
73
  is_nullable: 0
88
74
89
status code for this issue (see manual for full descriptions)
90
91
=head2 planneddate
75
=head2 planneddate
92
76
93
  data_type: 'date'
77
  data_type: 'date'
94
  datetime_undef_if_invalid: 1
78
  datetime_undef_if_invalid: 1
95
  is_nullable: 1
79
  is_nullable: 1
96
80
97
date expected
98
99
=head2 notes
81
=head2 notes
100
82
101
  data_type: 'mediumtext'
83
  data_type: 'mediumtext'
102
  is_nullable: 1
84
  is_nullable: 1
103
85
104
notes
105
106
=head2 publisheddate
86
=head2 publisheddate
107
87
108
  data_type: 'date'
88
  data_type: 'date'
109
  datetime_undef_if_invalid: 1
89
  datetime_undef_if_invalid: 1
110
  is_nullable: 1
90
  is_nullable: 1
111
91
112
date published
113
114
=head2 publisheddatetext
92
=head2 publisheddatetext
115
93
116
  data_type: 'varchar'
94
  data_type: 'varchar'
117
  is_nullable: 1
95
  is_nullable: 1
118
  size: 100
96
  size: 100
119
97
120
date published (descriptive)
121
122
=head2 claimdate
98
=head2 claimdate
123
99
124
  data_type: 'date'
100
  data_type: 'date'
125
  datetime_undef_if_invalid: 1
101
  datetime_undef_if_invalid: 1
126
  is_nullable: 1
102
  is_nullable: 1
127
103
128
date claimed
129
130
=head2 claims_count
104
=head2 claims_count
131
105
132
  data_type: 'integer'
106
  data_type: 'integer'
133
  default_value: 0
107
  default_value: 0
134
  is_nullable: 1
108
  is_nullable: 1
135
109
136
number of claims made related to this issue
137
138
=head2 routingnotes
110
=head2 routingnotes
139
111
140
  data_type: 'mediumtext'
112
  data_type: 'mediumtext'
141
  is_nullable: 1
113
  is_nullable: 1
142
114
143
notes from the routing list
144
145
=cut
115
=cut
146
116
147
__PACKAGE__->add_columns(
117
__PACKAGE__->add_columns(
Lines 237-244 __PACKAGE__->belongs_to( Link Here
237
);
207
);
238
208
239
209
240
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
210
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
241
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SD7llCvCO+/67cXetzRKPQ
211
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eldD42j7YhM4Au1KgEjvbA
242
212
243
213
244
# You can replace this text with custom code or comments, and it will be preserved on regeneration
214
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/SpecialHoliday.pm (-19 / +10 lines)
Lines 29-77 __PACKAGE__->table("special_holidays"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned by Koha
33
34
=head2 branchcode
32
=head2 branchcode
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
35
  default_value: (empty string)
37
  is_foreign_key: 1
36
  is_foreign_key: 1
38
  is_nullable: 0
37
  is_nullable: 0
39
  size: 10
38
  size: 10
40
39
41
foreign key from the branches table, defines which branch this closing is for
42
43
=head2 day
40
=head2 day
44
41
45
  data_type: 'smallint'
42
  data_type: 'smallint'
46
  default_value: 0
43
  default_value: 0
47
  is_nullable: 0
44
  is_nullable: 0
48
45
49
day of the month this closing is on
50
51
=head2 month
46
=head2 month
52
47
53
  data_type: 'smallint'
48
  data_type: 'smallint'
54
  default_value: 0
49
  default_value: 0
55
  is_nullable: 0
50
  is_nullable: 0
56
51
57
month this closing is in
58
59
=head2 year
52
=head2 year
60
53
61
  data_type: 'smallint'
54
  data_type: 'smallint'
62
  default_value: 0
55
  default_value: 0
63
  is_nullable: 0
56
  is_nullable: 0
64
57
65
year this closing is in
66
67
=head2 isexception
58
=head2 isexception
68
59
69
  data_type: 'smallint'
60
  data_type: 'smallint'
70
  default_value: 1
61
  default_value: 1
71
  is_nullable: 0
62
  is_nullable: 0
72
63
73
is this a holiday exception to a repeatable holiday (1 for yes, 0 for no)
74
75
=head2 title
64
=head2 title
76
65
77
  data_type: 'varchar'
66
  data_type: 'varchar'
Lines 79-100 is this a holiday exception to a repeatable holiday (1 for yes, 0 for no) Link Here
79
  is_nullable: 0
68
  is_nullable: 0
80
  size: 50
69
  size: 50
81
70
82
title for this closing
83
84
=head2 description
71
=head2 description
85
72
86
  data_type: 'mediumtext'
73
  data_type: 'mediumtext'
87
  is_nullable: 0
74
  is_nullable: 0
88
75
89
description of this closing
90
91
=cut
76
=cut
92
77
93
__PACKAGE__->add_columns(
78
__PACKAGE__->add_columns(
94
  "id",
79
  "id",
95
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
80
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
96
  "branchcode",
81
  "branchcode",
97
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
82
  {
83
    data_type => "varchar",
84
    default_value => "",
85
    is_foreign_key => 1,
86
    is_nullable => 0,
87
    size => 10,
88
  },
98
  "day",
89
  "day",
99
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
90
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
100
  "month",
91
  "month",
Lines 139-146 __PACKAGE__->belongs_to( Link Here
139
);
130
);
140
131
141
132
142
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
133
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
143
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H3PUa5HiJKKfdndKXbmJ6A
134
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mUW+wn5TMo4MFprutaJkMw
144
135
145
136
146
# You can replace this text with custom content, and it will be preserved on regeneration
137
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Statistic.pm (-23 / +3 lines)
Lines 29-105 __PACKAGE__->table("statistics"); Link Here
29
  datetime_undef_if_invalid: 1
29
  datetime_undef_if_invalid: 1
30
  is_nullable: 1
30
  is_nullable: 1
31
31
32
date and time of the transaction
33
34
=head2 branch
32
=head2 branch
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 1
35
  is_nullable: 1
38
  size: 10
36
  size: 10
39
37
40
foreign key, branch where the transaction occurred
41
42
=head2 value
38
=head2 value
43
39
44
  data_type: 'double precision'
40
  data_type: 'double precision'
45
  is_nullable: 1
41
  is_nullable: 1
46
  size: [16,4]
42
  size: [16,4]
47
43
48
monetary value associated with the transaction
49
50
=head2 type
44
=head2 type
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 1
47
  is_nullable: 1
54
  size: 16
48
  size: 16
55
49
56
transaction type (localuse, issue, return, renew, writeoff, payment)
57
58
=head2 other
50
=head2 other
59
51
60
  data_type: 'longtext'
52
  data_type: 'longtext'
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
used by SIP
64
65
=head2 itemnumber
55
=head2 itemnumber
66
56
67
  data_type: 'integer'
57
  data_type: 'integer'
68
  is_nullable: 1
58
  is_nullable: 1
69
59
70
foreign key from the items table, links transaction to a specific item
71
72
=head2 itemtype
60
=head2 itemtype
73
61
74
  data_type: 'varchar'
62
  data_type: 'varchar'
75
  is_nullable: 1
63
  is_nullable: 1
76
  size: 10
64
  size: 10
77
65
78
foreign key from the itemtypes table, links transaction to a specific item type
79
80
=head2 location
66
=head2 location
81
67
82
  data_type: 'varchar'
68
  data_type: 'varchar'
83
  is_nullable: 1
69
  is_nullable: 1
84
  size: 80
70
  size: 80
85
71
86
authorized value for the shelving location for this item (MARC21 952$c)
87
88
=head2 borrowernumber
72
=head2 borrowernumber
89
73
90
  data_type: 'integer'
74
  data_type: 'integer'
91
  is_nullable: 1
75
  is_nullable: 1
92
76
93
foreign key from the borrowers table, links transaction to a specific borrower
94
95
=head2 ccode
77
=head2 ccode
96
78
97
  data_type: 'varchar'
79
  data_type: 'varchar'
98
  is_nullable: 1
80
  is_nullable: 1
99
  size: 80
81
  size: 80
100
82
101
foreign key from the items table, links transaction to a specific collection code
102
103
=head2 categorycode
83
=head2 categorycode
104
84
105
  data_type: 'varchar'
85
  data_type: 'varchar'
Lines 114-120 foreign key from the borrowers table, links transaction to a specific borrower c Link Here
114
  is_nullable: 1
94
  is_nullable: 1
115
  size: 30
95
  size: 30
116
96
117
the context this action was taken in
97
interface
118
98
119
=cut
99
=cut
120
100
Lines 150-157 __PACKAGE__->add_columns( Link Here
150
);
130
);
151
131
152
132
153
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-10 17:08:44
133
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
154
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3mznfs//6bH21hFpyZl7lw
134
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7OXGo0/QU+xErueiWMytTQ
155
135
156
136
157
# You can replace this text with custom content, and it will be preserved on regeneration
137
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Stockrotationitem.pm (-10 / +2 lines)
Lines 29-60 __PACKAGE__->table("stockrotationitems"); Link Here
29
  is_foreign_key: 1
29
  is_foreign_key: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
Itemnumber to link to a stage & rota
33
34
=head2 stage_id
32
=head2 stage_id
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
stage ID to link the item to
41
42
=head2 indemand
38
=head2 indemand
43
39
44
  data_type: 'tinyint'
40
  data_type: 'tinyint'
45
  default_value: 0
41
  default_value: 0
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
Should this item be skipped for rotation?
49
50
=head2 fresh
44
=head2 fresh
51
45
52
  data_type: 'tinyint'
46
  data_type: 'tinyint'
53
  default_value: 0
47
  default_value: 0
54
  is_nullable: 0
48
  is_nullable: 0
55
49
56
Flag showing item is only just added to rota
57
58
=cut
50
=cut
59
51
60
__PACKAGE__->add_columns(
52
__PACKAGE__->add_columns(
Lines 113-120 __PACKAGE__->belongs_to( Link Here
113
);
105
);
114
106
115
107
116
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
108
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
117
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k/nuwkR8IxEq2D/L6PxmxA
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9O3NjeuF/pp58DQw+3RA0w
118
110
119
__PACKAGE__->add_columns(
111
__PACKAGE__->add_columns(
120
  '+indemand' => { is_boolean => 1 },
112
  '+indemand' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Stockrotationrota.pm (-10 / +2 lines)
Lines 29-44 __PACKAGE__->table("stockrotationrotas"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
Stockrotation rota ID
33
34
=head2 title
32
=head2 title
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 0
35
  is_nullable: 0
38
  size: 100
36
  size: 100
39
37
40
Title for this rota
41
42
=head2 description
38
=head2 description
43
39
44
  data_type: 'text'
40
  data_type: 'text'
Lines 52-67 Description for this rota Link Here
52
  default_value: 0
48
  default_value: 0
53
  is_nullable: 0
49
  is_nullable: 0
54
50
55
Should items on this rota keep cycling?
56
57
=head2 active
51
=head2 active
58
52
59
  data_type: 'tinyint'
53
  data_type: 'tinyint'
60
  default_value: 0
54
  default_value: 0
61
  is_nullable: 0
55
  is_nullable: 0
62
56
63
Is this rota currently active?
64
65
=cut
57
=cut
66
58
67
__PACKAGE__->add_columns(
59
__PACKAGE__->add_columns(
Lines 121-128 __PACKAGE__->has_many( Link Here
121
);
113
);
122
114
123
115
124
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-20 11:37:15
116
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
125
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9jp+fNV7DMuz5i+eMrt/Cw
117
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6t8fRNEQtvSq1FVM5GgXAQ
126
118
127
__PACKAGE__->add_columns(
119
__PACKAGE__->add_columns(
128
  '+cyclical' => { is_boolean => 1 },
120
  '+cyclical' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Stockrotationstage.pm (-12 / +2 lines)
Lines 29-51 __PACKAGE__->table("stockrotationstages"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
Unique stage ID
33
34
=head2 position
32
=head2 position
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_nullable: 0
35
  is_nullable: 0
38
36
39
The position of this stage within its rota
40
41
=head2 rota_id
37
=head2 rota_id
42
38
43
  data_type: 'integer'
39
  data_type: 'integer'
44
  is_foreign_key: 1
40
  is_foreign_key: 1
45
  is_nullable: 0
41
  is_nullable: 0
46
42
47
The rota this stage belongs to
48
49
=head2 branchcode_id
43
=head2 branchcode_id
50
44
51
  data_type: 'varchar'
45
  data_type: 'varchar'
Lines 53-68 The rota this stage belongs to Link Here
53
  is_nullable: 0
47
  is_nullable: 0
54
  size: 10
48
  size: 10
55
49
56
Branch this stage relates to
57
58
=head2 duration
50
=head2 duration
59
51
60
  data_type: 'integer'
52
  data_type: 'integer'
61
  default_value: 4
53
  default_value: 4
62
  is_nullable: 0
54
  is_nullable: 0
63
55
64
The number of days items shoud occupy this stage
65
66
=cut
56
=cut
67
57
68
__PACKAGE__->add_columns(
58
__PACKAGE__->add_columns(
Lines 138-145 __PACKAGE__->has_many( Link Here
138
);
128
);
139
129
140
130
141
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
131
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
142
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qNvTMdYD3BCwd0McGICpFg
132
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:db70JLpsN49QYvqCJQTgRA
143
133
144
# We use DBIx::Class::Ordered to handle stages manipulation.
134
# We use DBIx::Class::Ordered to handle stages manipulation.
145
__PACKAGE__->load_components(qw( Ordered ));
135
__PACKAGE__->load_components(qw( Ordered ));
(-)a/Koha/Schema/Result/Subscription.pm (-52 / +24 lines)
Lines 29-44 __PACKAGE__->table("subscription"); Link Here
29
  is_foreign_key: 1
29
  is_foreign_key: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
foreign key for biblio.biblionumber that this subscription is attached to
33
34
=head2 subscriptionid
32
=head2 subscriptionid
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_auto_increment: 1
35
  is_auto_increment: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
unique key for this subscription
41
42
=head2 librarian
38
=head2 librarian
43
39
44
  data_type: 'varchar'
40
  data_type: 'varchar'
Lines 46-65 unique key for this subscription Link Here
46
  is_nullable: 1
42
  is_nullable: 1
47
  size: 100
43
  size: 100
48
44
49
the librarian's username from borrowers.userid
50
51
=head2 startdate
45
=head2 startdate
52
46
53
  data_type: 'date'
47
  data_type: 'date'
54
  datetime_undef_if_invalid: 1
48
  datetime_undef_if_invalid: 1
55
  is_nullable: 1
49
  is_nullable: 1
56
50
57
start date for this subscription
58
59
=head2 aqbooksellerid
51
=head2 aqbooksellerid
60
52
61
  data_type: 'integer'
53
  data_type: 'integer'
62
  default_value: 0
54
  is_foreign_key: 1
63
  is_nullable: 1
55
  is_nullable: 1
64
56
65
foreign key for aqbooksellers.id to link to the vendor
57
foreign key for aqbooksellers.id to link to the vendor
Lines 82-113 foreign key for aqbooksellers.id to link to the vendor Link Here
82
  default_value: 0
74
  default_value: 0
83
  is_nullable: 1
75
  is_nullable: 1
84
76
85
subscription length in weeks (will not be filled in if monthlength or numberlength is set)
86
87
=head2 monthlength
77
=head2 monthlength
88
78
89
  data_type: 'integer'
79
  data_type: 'integer'
90
  default_value: 0
80
  default_value: 0
91
  is_nullable: 1
81
  is_nullable: 1
92
82
93
subscription length in weeks (will not be filled in if weeklength or numberlength is set)
94
95
=head2 numberlength
83
=head2 numberlength
96
84
97
  data_type: 'integer'
85
  data_type: 'integer'
98
  default_value: 0
86
  default_value: 0
99
  is_nullable: 1
87
  is_nullable: 1
100
88
101
subscription length in weeks (will not be filled in if monthlength or weeklength is set)
102
103
=head2 periodicity
89
=head2 periodicity
104
90
105
  data_type: 'integer'
91
  data_type: 'integer'
106
  is_foreign_key: 1
92
  is_foreign_key: 1
107
  is_nullable: 1
93
  is_nullable: 1
108
94
109
frequency type links to subscription_frequencies.id
110
111
=head2 countissuesperunit
95
=head2 countissuesperunit
112
96
113
  data_type: 'integer'
97
  data_type: 'integer'
Lines 119-126 frequency type links to subscription_frequencies.id Link Here
119
  data_type: 'longtext'
103
  data_type: 'longtext'
120
  is_nullable: 1
104
  is_nullable: 1
121
105
122
notes
123
124
=head2 status
106
=head2 status
125
107
126
  data_type: 'varchar'
108
  data_type: 'varchar'
Lines 128-135 notes Link Here
128
  is_nullable: 0
110
  is_nullable: 0
129
  size: 100
111
  size: 100
130
112
131
status of this subscription
132
133
=head2 lastvalue1
113
=head2 lastvalue1
134
114
135
  data_type: 'integer'
115
  data_type: 'integer'
Lines 169-191 status of this subscription Link Here
169
  datetime_undef_if_invalid: 1
149
  datetime_undef_if_invalid: 1
170
  is_nullable: 1
150
  is_nullable: 1
171
151
172
first issue received date
173
174
=head2 manualhistory
152
=head2 manualhistory
175
153
176
  data_type: 'tinyint'
154
  data_type: 'tinyint'
177
  default_value: 0
155
  default_value: 0
178
  is_nullable: 0
156
  is_nullable: 0
179
157
180
yes or no to managing the history manually
181
182
=head2 irregularity
158
=head2 irregularity
183
159
184
  data_type: 'mediumtext'
160
  data_type: 'mediumtext'
185
  is_nullable: 1
161
  is_nullable: 1
186
162
187
any irregularities in the subscription
188
189
=head2 skip_serialseq
163
=head2 skip_serialseq
190
164
191
  data_type: 'tinyint'
165
  data_type: 'tinyint'
Lines 204-219 any irregularities in the subscription Link Here
204
  is_foreign_key: 1
178
  is_foreign_key: 1
205
  is_nullable: 1
179
  is_nullable: 1
206
180
207
the numbering pattern used links to subscription_numberpatterns.id
208
209
=head2 locale
181
=head2 locale
210
182
211
  data_type: 'varchar'
183
  data_type: 'varchar'
212
  is_nullable: 1
184
  is_nullable: 1
213
  size: 80
185
  size: 80
214
186
215
for foreign language subscriptions to display months, seasons, etc correctly
216
217
=head2 distributedto
187
=head2 distributedto
218
188
219
  data_type: 'mediumtext'
189
  data_type: 'mediumtext'
Lines 229-236 for foreign language subscriptions to display months, seasons, etc correctly Link Here
229
  data_type: 'mediumtext'
199
  data_type: 'mediumtext'
230
  is_nullable: 1
200
  is_nullable: 1
231
201
232
default call number
233
234
=head2 location
202
=head2 location
235
203
236
  data_type: 'varchar'
204
  data_type: 'varchar'
Lines 238-245 default call number Link Here
238
  is_nullable: 1
206
  is_nullable: 1
239
  size: 80
207
  size: 80
240
208
241
default shelving location (items.location)
242
243
=head2 branchcode
209
=head2 branchcode
244
210
245
  data_type: 'varchar'
211
  data_type: 'varchar'
Lines 247-254 default shelving location (items.location) Link Here
247
  is_nullable: 0
213
  is_nullable: 0
248
  size: 10
214
  size: 10
249
215
250
default branches (items.homebranch)
251
252
=head2 lastbranch
216
=head2 lastbranch
253
217
254
  data_type: 'varchar'
218
  data_type: 'varchar'
Lines 261-268 default branches (items.homebranch) Link Here
261
  default_value: 0
225
  default_value: 0
262
  is_nullable: 0
226
  is_nullable: 0
263
227
264
does receiving this serial create an item record
265
266
=head2 staffdisplaycount
228
=head2 staffdisplaycount
267
229
268
  data_type: 'integer'
230
  data_type: 'integer'
Lines 283-314 how many issues to show to the public Link Here
283
  default_value: 0
245
  default_value: 0
284
  is_nullable: 0
246
  is_nullable: 0
285
247
286
grace period in days
287
288
=head2 enddate
248
=head2 enddate
289
249
290
  data_type: 'date'
250
  data_type: 'date'
291
  datetime_undef_if_invalid: 1
251
  datetime_undef_if_invalid: 1
292
  is_nullable: 1
252
  is_nullable: 1
293
253
294
subscription end date
295
296
=head2 closed
254
=head2 closed
297
255
298
  data_type: 'tinyint'
256
  data_type: 'tinyint'
299
  default_value: 0
257
  default_value: 0
300
  is_nullable: 0
258
  is_nullable: 0
301
259
302
yes / no if the subscription is closed
303
304
=head2 reneweddate
260
=head2 reneweddate
305
261
306
  data_type: 'date'
262
  data_type: 'date'
307
  datetime_undef_if_invalid: 1
263
  datetime_undef_if_invalid: 1
308
  is_nullable: 1
264
  is_nullable: 1
309
265
310
date of last renewal for the subscription
311
312
=head2 itemtype
266
=head2 itemtype
313
267
314
  data_type: 'varchar'
268
  data_type: 'varchar'
Lines 332-339 date of last renewal for the subscription Link Here
332
  is_nullable: 1
286
  is_nullable: 1
333
  size: 80
287
  size: 80
334
288
335
collection code to assign to serial items
336
337
=head2 published_on_template
289
=head2 published_on_template
338
290
339
  data_type: 'text'
291
  data_type: 'text'
Lines 353-359 __PACKAGE__->add_columns( Link Here
353
  "startdate",
305
  "startdate",
354
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
306
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
355
  "aqbooksellerid",
307
  "aqbooksellerid",
356
  { data_type => "integer", default_value => 0, is_nullable => 1 },
308
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
357
  "cost",
309
  "cost",
358
  { data_type => "integer", default_value => 0, is_nullable => 1 },
310
  { data_type => "integer", default_value => 0, is_nullable => 1 },
359
  "aqbudgetid",
311
  "aqbudgetid",
Lines 450-455 __PACKAGE__->set_primary_key("subscriptionid"); Link Here
450
402
451
=head1 RELATIONS
403
=head1 RELATIONS
452
404
405
=head2 aqbooksellerid
406
407
Type: belongs_to
408
409
Related object: L<Koha::Schema::Result::Aqbookseller>
410
411
=cut
412
413
__PACKAGE__->belongs_to(
414
  "aqbooksellerid",
415
  "Koha::Schema::Result::Aqbookseller",
416
  { id => "aqbooksellerid" },
417
  {
418
    is_deferrable => 1,
419
    join_type     => "LEFT",
420
    on_delete     => "SET NULL",
421
    on_update     => "CASCADE",
422
  },
423
);
424
453
=head2 aqorders
425
=head2 aqorders
454
426
455
Type: has_many
427
Type: has_many
Lines 566-573 __PACKAGE__->has_many( Link Here
566
);
538
);
567
539
568
540
569
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-14 11:46:15
541
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
570
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LICIiWzag365cUAq5OYD2A
542
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u8jqPSBzckOtP4gYrvuv4w
571
543
572
__PACKAGE__->has_many(
544
__PACKAGE__->has_many(
573
  "additional_field_values",
545
  "additional_field_values",
(-)a/Koha/Schema/Result/Subscriptionroutinglist.pm (-10 / +2 lines)
Lines 29-59 __PACKAGE__->table("subscriptionroutinglist"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned by Koha
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key from the borrowers table, defines with patron is on the routing list
41
42
=head2 ranking
38
=head2 ranking
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
where the patron stands in line to receive the serial
48
49
=head2 subscriptionid
43
=head2 subscriptionid
50
44
51
  data_type: 'integer'
45
  data_type: 'integer'
52
  is_foreign_key: 1
46
  is_foreign_key: 1
53
  is_nullable: 0
47
  is_nullable: 0
54
48
55
foreign key from the subscription table, defines which subscription this routing list is for
56
57
=cut
49
=cut
58
50
59
__PACKAGE__->add_columns(
51
__PACKAGE__->add_columns(
Lines 128-135 __PACKAGE__->belongs_to( Link Here
128
);
120
);
129
121
130
122
131
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
123
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
132
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:L/6xUg+37bAUntrGWWYlaw
124
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NXha7WbjPtCOf7RlyN39yQ
133
125
134
sub koha_object_class {
126
sub koha_object_class {
135
    'Koha::Subscription::Routinglist';
127
    'Koha::Subscription::Routinglist';
(-)a/Koha/Schema/Result/Suggestion.pm (-67 / +3 lines)
Lines 29-116 __PACKAGE__->table("suggestions"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned automatically by Koha
33
34
=head2 suggestedby
32
=head2 suggestedby
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
borrowernumber for the person making the suggestion, foreign key linking to the borrowers table
41
42
=head2 suggesteddate
38
=head2 suggesteddate
43
39
44
  data_type: 'date'
40
  data_type: 'date'
45
  datetime_undef_if_invalid: 1
41
  datetime_undef_if_invalid: 1
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
date the suggestion was submitted
49
50
=head2 managedby
44
=head2 managedby
51
45
52
  data_type: 'integer'
46
  data_type: 'integer'
53
  is_foreign_key: 1
47
  is_foreign_key: 1
54
  is_nullable: 1
48
  is_nullable: 1
55
49
56
borrowernumber for the librarian managing the suggestion, foreign key linking to the borrowers table
57
58
=head2 manageddate
50
=head2 manageddate
59
51
60
  data_type: 'date'
52
  data_type: 'date'
61
  datetime_undef_if_invalid: 1
53
  datetime_undef_if_invalid: 1
62
  is_nullable: 1
54
  is_nullable: 1
63
55
64
date the suggestion was updated
65
66
=head2 acceptedby
56
=head2 acceptedby
67
57
68
  data_type: 'integer'
58
  data_type: 'integer'
69
  is_foreign_key: 1
59
  is_foreign_key: 1
70
  is_nullable: 1
60
  is_nullable: 1
71
61
72
borrowernumber for the librarian who accepted the suggestion, foreign key linking to the borrowers table
73
74
=head2 accepteddate
62
=head2 accepteddate
75
63
76
  data_type: 'date'
64
  data_type: 'date'
77
  datetime_undef_if_invalid: 1
65
  datetime_undef_if_invalid: 1
78
  is_nullable: 1
66
  is_nullable: 1
79
67
80
date the suggestion was marked as accepted
81
82
=head2 rejectedby
68
=head2 rejectedby
83
69
84
  data_type: 'integer'
70
  data_type: 'integer'
85
  is_foreign_key: 1
71
  is_foreign_key: 1
86
  is_nullable: 1
72
  is_nullable: 1
87
73
88
borrowernumber for the librarian who rejected the suggestion, foreign key linking to the borrowers table
89
90
=head2 rejecteddate
74
=head2 rejecteddate
91
75
92
  data_type: 'date'
76
  data_type: 'date'
93
  datetime_undef_if_invalid: 1
77
  datetime_undef_if_invalid: 1
94
  is_nullable: 1
78
  is_nullable: 1
95
79
96
date the suggestion was marked as rejected
97
98
=head2 lastmodificationby
80
=head2 lastmodificationby
99
81
100
  data_type: 'integer'
82
  data_type: 'integer'
101
  is_foreign_key: 1
83
  is_foreign_key: 1
102
  is_nullable: 1
84
  is_nullable: 1
103
85
104
borrowernumber for the librarian who edit the suggestion for the last time
105
106
=head2 lastmodificationdate
86
=head2 lastmodificationdate
107
87
108
  data_type: 'date'
88
  data_type: 'date'
109
  datetime_undef_if_invalid: 1
89
  datetime_undef_if_invalid: 1
110
  is_nullable: 1
90
  is_nullable: 1
111
91
112
date of the last modification
113
114
=head2 STATUS
92
=head2 STATUS
115
93
116
  accessor: 'status'
94
  accessor: 'status'
Lines 119-147 date of the last modification Link Here
119
  is_nullable: 0
97
  is_nullable: 0
120
  size: 10
98
  size: 10
121
99
122
suggestion status (ASKED, CHECKED, ACCEPTED, REJECTED, ORDERED, AVAILABLE or a value from the SUGGEST_STATUS authorised value category)
123
124
=head2 archived
100
=head2 archived
125
101
126
  data_type: 'tinyint'
102
  data_type: 'tinyint'
127
  default_value: 0
103
  default_value: 0
128
  is_nullable: 0
104
  is_nullable: 0
129
105
130
is the suggestion archived?
131
132
=head2 note
106
=head2 note
133
107
134
  data_type: 'longtext'
108
  data_type: 'longtext'
135
  is_nullable: 1
109
  is_nullable: 1
136
110
137
note entered on the suggestion
138
139
=head2 staff_note
111
=head2 staff_note
140
112
141
  data_type: 'longtext'
113
  data_type: 'longtext'
142
  is_nullable: 1
114
  is_nullable: 1
143
115
144
non-public note entered on the suggestion
116
suggestions table non-public note
145
117
146
=head2 author
118
=head2 author
147
119
Lines 149-179 non-public note entered on the suggestion Link Here
149
  is_nullable: 1
121
  is_nullable: 1
150
  size: 80
122
  size: 80
151
123
152
author of the suggested item
153
154
=head2 title
124
=head2 title
155
125
156
  data_type: 'varchar'
126
  data_type: 'varchar'
157
  is_nullable: 1
127
  is_nullable: 1
158
  size: 255
128
  size: 255
159
129
160
title of the suggested item
161
162
=head2 copyrightdate
130
=head2 copyrightdate
163
131
164
  data_type: 'smallint'
132
  data_type: 'smallint'
165
  is_nullable: 1
133
  is_nullable: 1
166
134
167
copyright date of the suggested item
168
169
=head2 publishercode
135
=head2 publishercode
170
136
171
  data_type: 'varchar'
137
  data_type: 'varchar'
172
  is_nullable: 1
138
  is_nullable: 1
173
  size: 255
139
  size: 255
174
140
175
publisher of the suggested item
176
177
=head2 date
141
=head2 date
178
142
179
  data_type: 'timestamp'
143
  data_type: 'timestamp'
Lines 181-188 publisher of the suggested item Link Here
181
  default_value: current_timestamp
145
  default_value: current_timestamp
182
  is_nullable: 0
146
  is_nullable: 0
183
147
184
date and time the suggestion was updated
185
186
=head2 volumedesc
148
=head2 volumedesc
187
149
188
  data_type: 'varchar'
150
  data_type: 'varchar'
Lines 201-246 date and time the suggestion was updated Link Here
201
  is_nullable: 1
163
  is_nullable: 1
202
  size: 255
164
  size: 255
203
165
204
publication place of the suggested item
205
206
=head2 isbn
166
=head2 isbn
207
167
208
  data_type: 'varchar'
168
  data_type: 'varchar'
209
  is_nullable: 1
169
  is_nullable: 1
210
  size: 30
170
  size: 30
211
171
212
isbn of the suggested item
213
214
=head2 biblionumber
172
=head2 biblionumber
215
173
216
  data_type: 'integer'
174
  data_type: 'integer'
217
  is_foreign_key: 1
175
  is_foreign_key: 1
218
  is_nullable: 1
176
  is_nullable: 1
219
177
220
foreign key linking the suggestion to the biblio table after the suggestion has been ordered
221
222
=head2 reason
178
=head2 reason
223
179
224
  data_type: 'mediumtext'
180
  data_type: 'mediumtext'
225
  is_nullable: 1
181
  is_nullable: 1
226
182
227
reason for accepting or rejecting the suggestion
228
229
=head2 patronreason
183
=head2 patronreason
230
184
231
  data_type: 'mediumtext'
185
  data_type: 'mediumtext'
232
  is_nullable: 1
186
  is_nullable: 1
233
187
234
reason for making the suggestion
235
236
=head2 budgetid
188
=head2 budgetid
237
189
238
  data_type: 'integer'
190
  data_type: 'integer'
239
  is_foreign_key: 1
191
  is_foreign_key: 1
240
  is_nullable: 1
192
  is_nullable: 1
241
193
242
foreign key linking the suggested budget to the aqbudgets table
243
244
=head2 branchcode
194
=head2 branchcode
245
195
246
  data_type: 'varchar'
196
  data_type: 'varchar'
Lines 248-301 foreign key linking the suggested budget to the aqbudgets table Link Here
248
  is_nullable: 1
198
  is_nullable: 1
249
  size: 10
199
  size: 10
250
200
251
foreign key linking the suggested branch to the branches table
252
253
=head2 collectiontitle
201
=head2 collectiontitle
254
202
255
  data_type: 'mediumtext'
203
  data_type: 'mediumtext'
256
  is_nullable: 1
204
  is_nullable: 1
257
205
258
collection name for the suggested item
259
260
=head2 itemtype
206
=head2 itemtype
261
207
262
  data_type: 'varchar'
208
  data_type: 'varchar'
263
  is_nullable: 1
209
  is_nullable: 1
264
  size: 30
210
  size: 30
265
211
266
suggested item type
267
268
=head2 quantity
212
=head2 quantity
269
213
270
  data_type: 'smallint'
214
  data_type: 'smallint'
271
  is_nullable: 1
215
  is_nullable: 1
272
216
273
suggested quantity to be purchased
274
275
=head2 currency
217
=head2 currency
276
218
277
  data_type: 'varchar'
219
  data_type: 'varchar'
278
  is_nullable: 1
220
  is_nullable: 1
279
  size: 10
221
  size: 10
280
222
281
suggested currency for the suggested price
282
283
=head2 price
223
=head2 price
284
224
285
  data_type: 'decimal'
225
  data_type: 'decimal'
286
  is_nullable: 1
226
  is_nullable: 1
287
  size: [28,6]
227
  size: [28,6]
288
228
289
suggested price
290
291
=head2 total
229
=head2 total
292
230
293
  data_type: 'decimal'
231
  data_type: 'decimal'
294
  is_nullable: 1
232
  is_nullable: 1
295
  size: [28,6]
233
  size: [28,6]
296
234
297
suggested total cost (price*quantity updated for currency)
298
299
=cut
235
=cut
300
236
301
__PACKAGE__->add_columns(
237
__PACKAGE__->add_columns(
Lines 557-564 __PACKAGE__->belongs_to( Link Here
557
);
493
);
558
494
559
495
560
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-07 20:40:07
496
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
561
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NSX5a0b7SJyhLVT8Fx4jaQ
497
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FflVxqKqisBh3EdEhNy4ig
562
498
563
__PACKAGE__->belongs_to(
499
__PACKAGE__->belongs_to(
564
  "suggester",
500
  "suggester",
(-)a/Koha/Schema/Result/Systempreference.pm (-12 / +2 lines)
Lines 30-66 __PACKAGE__->table("systempreferences"); Link Here
30
  is_nullable: 0
30
  is_nullable: 0
31
  size: 50
31
  size: 50
32
32
33
system preference name
34
35
=head2 value
33
=head2 value
36
34
37
  data_type: 'mediumtext'
35
  data_type: 'mediumtext'
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
system preference values
41
42
=head2 options
38
=head2 options
43
39
44
  data_type: 'longtext'
40
  data_type: 'longtext'
45
  is_nullable: 1
41
  is_nullable: 1
46
42
47
options for multiple choice system preferences
48
49
=head2 explanation
43
=head2 explanation
50
44
51
  data_type: 'mediumtext'
45
  data_type: 'mediumtext'
52
  is_nullable: 1
46
  is_nullable: 1
53
47
54
descriptive text for the system preference
55
56
=head2 type
48
=head2 type
57
49
58
  data_type: 'varchar'
50
  data_type: 'varchar'
59
  is_nullable: 1
51
  is_nullable: 1
60
  size: 20
52
  size: 20
61
53
62
type of question this preference asks (multiple choice, plain text, yes or no, etc)
63
64
=cut
54
=cut
65
55
66
__PACKAGE__->add_columns(
56
__PACKAGE__->add_columns(
Lines 89-96 __PACKAGE__->add_columns( Link Here
89
__PACKAGE__->set_primary_key("variable");
79
__PACKAGE__->set_primary_key("variable");
90
80
91
81
92
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
82
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d9V4/gPRw1ucbd/TzEzNUQ
83
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T0o/BYj03YR9U8qKsWlDyw
94
84
95
sub koha_object_class {
85
sub koha_object_class {
96
    'Koha::Config::SysPref';
86
    'Koha::Config::SysPref';
(-)a/Koha/Schema/Result/TablesSetting.pm (-2 / +18 lines)
Lines 52-57 __PACKAGE__->table("tables_settings"); Link Here
52
  is_nullable: 1
52
  is_nullable: 1
53
  size: 255
53
  size: 255
54
54
55
=head2 default_save_state
56
57
  data_type: 'tinyint'
58
  default_value: 1
59
  is_nullable: 1
60
61
=head2 default_save_state_search
62
63
  data_type: 'tinyint'
64
  default_value: 0
65
  is_nullable: 1
66
55
=cut
67
=cut
56
68
57
__PACKAGE__->add_columns(
69
__PACKAGE__->add_columns(
Lines 65-70 __PACKAGE__->add_columns( Link Here
65
  { data_type => "smallint", is_nullable => 1 },
77
  { data_type => "smallint", is_nullable => 1 },
66
  "default_sort_order",
78
  "default_sort_order",
67
  { data_type => "varchar", is_nullable => 1, size => 255 },
79
  { data_type => "varchar", is_nullable => 1, size => 255 },
80
  "default_save_state",
81
  { data_type => "tinyint", default_value => 1, is_nullable => 1 },
82
  "default_save_state_search",
83
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
68
);
84
);
69
85
70
=head1 PRIMARY KEY
86
=head1 PRIMARY KEY
Lines 84-91 __PACKAGE__->add_columns( Link Here
84
__PACKAGE__->set_primary_key("module", "page", "tablename");
100
__PACKAGE__->set_primary_key("module", "page", "tablename");
85
101
86
102
87
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-12-16 11:41:48
103
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:42x+rSLgXvSZBVLx5mh2ng
104
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:slctZHXdtIp5B3U2sDtMXQ
89
105
90
106
91
# You can replace this text with custom code or comments, and it will be preserved on regeneration
107
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/TagAll.pm (-14 / +2 lines)
Lines 29-75 __PACKAGE__->table("tags_all"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique id and primary key
33
34
=head2 borrowernumber
32
=head2 borrowernumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 1
36
  is_nullable: 1
39
37
40
the patron who added the tag (borrowers.borrowernumber)
41
42
=head2 biblionumber
38
=head2 biblionumber
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 0
42
  is_nullable: 0
47
43
48
the bib record this tag was left on (biblio.biblionumber)
49
50
=head2 term
44
=head2 term
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 0
47
  is_nullable: 0
54
  size: 191
48
  size: 191
55
49
56
the tag
57
58
=head2 language
50
=head2 language
59
51
60
  data_type: 'integer'
52
  data_type: 'integer'
61
  is_nullable: 1
53
  is_nullable: 1
62
54
63
the language the tag was left in
64
65
=head2 date_created
55
=head2 date_created
66
56
67
  data_type: 'datetime'
57
  data_type: 'datetime'
68
  datetime_undef_if_invalid: 1
58
  datetime_undef_if_invalid: 1
69
  is_nullable: 0
59
  is_nullable: 0
70
60
71
the date the tag was added
72
73
=cut
61
=cut
74
62
75
__PACKAGE__->add_columns(
63
__PACKAGE__->add_columns(
Lines 141-148 __PACKAGE__->belongs_to( Link Here
141
);
129
);
142
130
143
131
144
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
132
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
145
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qQsYlIAUc1KP7M/RUaqd8g
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Dfy1CvR/RjphjerU+Unpug
146
134
147
sub koha_object_class {
135
sub koha_object_class {
148
    'Koha::Tag';
136
    'Koha::Tag';
(-)a/Koha/Schema/Result/TagsApproval.pm (-12 / +2 lines)
Lines 29-68 __PACKAGE__->table("tags_approval"); Link Here
29
  is_nullable: 0
29
  is_nullable: 0
30
  size: 191
30
  size: 191
31
31
32
the tag
33
34
=head2 approved
32
=head2 approved
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  default_value: 0
35
  default_value: 0
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
whether the tag is approved or not (1=yes, 0=pending, -1=rejected)
41
42
=head2 date_approved
38
=head2 date_approved
43
39
44
  data_type: 'datetime'
40
  data_type: 'datetime'
45
  datetime_undef_if_invalid: 1
41
  datetime_undef_if_invalid: 1
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
the date this tag was approved
49
50
=head2 approved_by
44
=head2 approved_by
51
45
52
  data_type: 'integer'
46
  data_type: 'integer'
53
  is_foreign_key: 1
47
  is_foreign_key: 1
54
  is_nullable: 1
48
  is_nullable: 1
55
49
56
the librarian who approved the tag (borrowers.borrowernumber)
57
58
=head2 weight_total
50
=head2 weight_total
59
51
60
  data_type: 'integer'
52
  data_type: 'integer'
61
  default_value: 1
53
  default_value: 1
62
  is_nullable: 0
54
  is_nullable: 0
63
55
64
the total number of times this tag was used
65
66
=cut
56
=cut
67
57
68
__PACKAGE__->add_columns(
58
__PACKAGE__->add_columns(
Lines 132-139 __PACKAGE__->has_many( Link Here
132
);
122
);
133
123
134
124
135
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
125
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
136
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PR7rfXKXExWpmkdxcXRrbQ
126
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n9nDVPRyUaoUEV0XGUe3/g
137
127
138
sub koha_object_class {
128
sub koha_object_class {
139
    'Koha::Tags::Approval';
129
    'Koha::Tags::Approval';
(-)a/Koha/Schema/Result/TagsIndex.pm (-8 / +2 lines)
Lines 30-53 __PACKAGE__->table("tags_index"); Link Here
30
  is_nullable: 0
30
  is_nullable: 0
31
  size: 191
31
  size: 191
32
32
33
the tag
34
35
=head2 biblionumber
33
=head2 biblionumber
36
34
37
  data_type: 'integer'
35
  data_type: 'integer'
38
  is_foreign_key: 1
36
  is_foreign_key: 1
39
  is_nullable: 0
37
  is_nullable: 0
40
38
41
the bib record this tag was used on (biblio.biblionumber)
42
43
=head2 weight
39
=head2 weight
44
40
45
  data_type: 'integer'
41
  data_type: 'integer'
46
  default_value: 1
42
  default_value: 1
47
  is_nullable: 0
43
  is_nullable: 0
48
44
49
the number of times this term was used on this bib record
50
51
=cut
45
=cut
52
46
53
__PACKAGE__->add_columns(
47
__PACKAGE__->add_columns(
Lines 106-113 __PACKAGE__->belongs_to( Link Here
106
);
100
);
107
101
108
102
109
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
103
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
110
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s+HP8nlAKZz2S7PI8MQBOA
104
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4dhL0ouHjE+4BsFOD1bosg
111
105
112
sub koha_object_class {
106
sub koha_object_class {
113
    'Koha::Tags::Index';
107
    'Koha::Tags::Index';
(-)a/Koha/Schema/Result/Ticket.pm (-3 / +3 lines)
Lines 86-92 current status of the ticket Link Here
86
  is_foreign_key: 1
86
  is_foreign_key: 1
87
  is_nullable: 1
87
  is_nullable: 1
88
88
89
id of the user who this ticket is assigned to
89
id of the user this ticket is assigned to
90
90
91
=head2 resolver_id
91
=head2 resolver_id
92
92
Lines 263-270 __PACKAGE__->has_many( Link Here
263
);
263
);
264
264
265
265
266
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-02 11:36:36
266
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
267
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8bWiSb7hXPFYRzRzrVG3kw
267
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mWbStmyimtwPc0ZOIuOj1Q
268
268
269
269
270
# You can replace this text with custom code or comments, and it will be preserved on regeneration
270
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/TicketUpdate.pm (-3 / +3 lines)
Lines 54-60 id of the user who logged the update Link Here
54
  is_foreign_key: 1
54
  is_foreign_key: 1
55
  is_nullable: 1
55
  is_nullable: 1
56
56
57
id of the user who this ticket was assigned to at this update
57
id of the user this ticket was assigned to with this update
58
58
59
=head2 public
59
=head2 public
60
60
Lines 184-191 __PACKAGE__->belongs_to( Link Here
184
);
184
);
185
185
186
186
187
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-02 11:36:36
187
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
188
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yfQ97AZ3ZYRI5uUndgLKMA
188
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CkjxdeHs3Z2O68O/epUBRQ
189
189
190
__PACKAGE__->add_columns( '+public' => { is_boolean => 1 }, );
190
__PACKAGE__->add_columns( '+public' => { is_boolean => 1 }, );
191
191
(-)a/Koha/Schema/Result/TmpHoldsqueue.pm (-4 / +2 lines)
Lines 115-122 __PACKAGE__->table("tmp_holdsqueue"); Link Here
115
  default_value: current_timestamp
115
  default_value: current_timestamp
116
  is_nullable: 0
116
  is_nullable: 0
117
117
118
date and time this entry as added/last updated
119
120
=cut
118
=cut
121
119
122
__PACKAGE__->add_columns(
120
__PACKAGE__->add_columns(
Lines 224-231 __PACKAGE__->belongs_to( Link Here
224
);
222
);
225
223
226
224
227
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-26 17:44:52
225
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
228
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5vbBn2tKY/nPx5aA4gaEtg
226
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/cs5/9K8dwWLLd2Cub8s6g
229
227
230
__PACKAGE__->add_columns(
228
__PACKAGE__->add_columns(
231
    '+item_level_request' => { is_boolean => 1 }
229
    '+item_level_request' => { is_boolean => 1 }
(-)a/Koha/Schema/Result/VendorEdiAccount.pm (-6 / +6 lines)
Lines 51-62 __PACKAGE__->table("vendor_edi_accounts"); Link Here
51
  data_type: 'mediumtext'
51
  data_type: 'mediumtext'
52
  is_nullable: 1
52
  is_nullable: 1
53
53
54
=head2 upload_port
54
=head2 download_port
55
55
56
  data_type: 'integer'
56
  data_type: 'integer'
57
  is_nullable: 1
57
  is_nullable: 1
58
58
59
=head2 download_port
59
=head2 upload_port
60
60
61
  data_type: 'integer'
61
  data_type: 'integer'
62
  is_nullable: 1
62
  is_nullable: 1
Lines 166-175 __PACKAGE__->add_columns( Link Here
166
  { data_type => "varchar", is_nullable => 1, size => 40 },
166
  { data_type => "varchar", is_nullable => 1, size => 40 },
167
  "password",
167
  "password",
168
  { data_type => "mediumtext", is_nullable => 1 },
168
  { data_type => "mediumtext", is_nullable => 1 },
169
  "upload_port",
170
  { data_type => "integer", is_nullable => 1 },
171
  "download_port",
169
  "download_port",
172
  { data_type => "integer", is_nullable => 1 },
170
  { data_type => "integer", is_nullable => 1 },
171
  "upload_port",
172
  { data_type => "integer", is_nullable => 1 },
173
  "last_activity",
173
  "last_activity",
174
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
174
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
175
  "vendor_id",
175
  "vendor_id",
Lines 272-279 __PACKAGE__->belongs_to( Link Here
272
);
272
);
273
273
274
274
275
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-19 16:25:44
275
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
276
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jenUF3Wx7J7F5270mLQMbw
276
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zAr9+z7ZyZQEDsJVo/nutg
277
277
278
278
279
# You can replace this text with custom code or comments, and it will be preserved on regeneration
279
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Virtualshelfcontent.pm (-10 / +2 lines)
Lines 30-37 __PACKAGE__->table("virtualshelfcontents"); Link Here
30
  is_foreign_key: 1
30
  is_foreign_key: 1
31
  is_nullable: 0
31
  is_nullable: 0
32
32
33
foreign key linking to the virtualshelves table, defines the list that this record has been added to
34
35
=head2 biblionumber
33
=head2 biblionumber
36
34
37
  data_type: 'integer'
35
  data_type: 'integer'
Lines 39-46 foreign key linking to the virtualshelves table, defines the list that this reco Link Here
39
  is_foreign_key: 1
37
  is_foreign_key: 1
40
  is_nullable: 0
38
  is_nullable: 0
41
39
42
foreign key linking to the biblio table, defines the bib record that has been added to the list
43
44
=head2 dateadded
40
=head2 dateadded
45
41
46
  data_type: 'timestamp'
42
  data_type: 'timestamp'
Lines 48-63 foreign key linking to the biblio table, defines the bib record that has been ad Link Here
48
  default_value: current_timestamp
44
  default_value: current_timestamp
49
  is_nullable: 0
45
  is_nullable: 0
50
46
51
date and time this bib record was added to the list
52
53
=head2 borrowernumber
47
=head2 borrowernumber
54
48
55
  data_type: 'integer'
49
  data_type: 'integer'
56
  is_foreign_key: 1
50
  is_foreign_key: 1
57
  is_nullable: 1
51
  is_nullable: 1
58
52
59
borrower number that created this list entry (only the first one is saved: no need for use in/as key)
60
61
=cut
53
=cut
62
54
63
__PACKAGE__->add_columns(
55
__PACKAGE__->add_columns(
Lines 139-146 __PACKAGE__->belongs_to( Link Here
139
);
131
);
140
132
141
133
142
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-20 15:47:49
134
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
143
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BRP+j1kip95rxOd8H5ootg
135
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BOxp/Fsxib4UiFPYaS3+Kg
144
136
145
#TODO See BZ 14544: Should be resolved by db revision
137
#TODO See BZ 14544: Should be resolved by db revision
146
__PACKAGE__->set_primary_key("shelfnumber","biblionumber");
138
__PACKAGE__->set_primary_key("shelfnumber","biblionumber");
(-)a/Koha/Schema/Result/Virtualshelfshare.pm (-12 / +2 lines)
Lines 29-68 __PACKAGE__->table("virtualshelfshares"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique key
33
34
=head2 shelfnumber
32
=head2 shelfnumber
35
33
36
  data_type: 'integer'
34
  data_type: 'integer'
37
  is_foreign_key: 1
35
  is_foreign_key: 1
38
  is_nullable: 0
36
  is_nullable: 0
39
37
40
foreign key for virtualshelves
41
42
=head2 borrowernumber
38
=head2 borrowernumber
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
borrower that accepted access to this list
49
50
=head2 invitekey
44
=head2 invitekey
51
45
52
  data_type: 'varchar'
46
  data_type: 'varchar'
53
  is_nullable: 1
47
  is_nullable: 1
54
  size: 10
48
  size: 10
55
49
56
temporary string used in accepting the invitation to access thist list; not-empty means that the invitation has not been accepted yet
57
58
=head2 sharedate
50
=head2 sharedate
59
51
60
  data_type: 'datetime'
52
  data_type: 'datetime'
61
  datetime_undef_if_invalid: 1
53
  datetime_undef_if_invalid: 1
62
  is_nullable: 1
54
  is_nullable: 1
63
55
64
date of invitation or acceptance of invitation
65
66
=cut
56
=cut
67
57
68
__PACKAGE__->add_columns(
58
__PACKAGE__->add_columns(
Lines 132-139 __PACKAGE__->belongs_to( Link Here
132
);
122
);
133
123
134
124
135
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
125
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
136
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Aovcx4icmIsaRskB9qUSlA
126
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YJepNKlhs6UJnjfQ0pFP0Q
137
127
138
128
139
# You can replace this text with custom content, and it will be preserved on regeneration
129
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Virtualshelve.pm (-18 / +2 lines)
Lines 29-52 __PACKAGE__->table("virtualshelves"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned by Koha
33
34
=head2 shelfname
32
=head2 shelfname
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
37
  is_nullable: 1
35
  is_nullable: 1
38
  size: 255
36
  size: 255
39
37
40
name of the list
41
42
=head2 owner
38
=head2 owner
43
39
44
  data_type: 'integer'
40
  data_type: 'integer'
45
  is_foreign_key: 1
41
  is_foreign_key: 1
46
  is_nullable: 1
42
  is_nullable: 1
47
43
48
foreign key linking to the borrowers table (using borrowernumber) for the creator of this list (changed from varchar(80) to int)
49
50
=head2 public
44
=head2 public
51
45
52
  data_type: 'tinyint'
46
  data_type: 'tinyint'
Lines 62-69 If the list is public Link Here
62
  is_nullable: 1
56
  is_nullable: 1
63
  size: 16
57
  size: 16
64
58
65
the field this list is sorted on
66
67
=head2 lastmodified
59
=head2 lastmodified
68
60
69
  data_type: 'timestamp'
61
  data_type: 'timestamp'
Lines 71-102 the field this list is sorted on Link Here
71
  default_value: current_timestamp
63
  default_value: current_timestamp
72
  is_nullable: 0
64
  is_nullable: 0
73
65
74
date and time the list was last modified
75
76
=head2 created_on
66
=head2 created_on
77
67
78
  data_type: 'datetime'
68
  data_type: 'datetime'
79
  datetime_undef_if_invalid: 1
69
  datetime_undef_if_invalid: 1
80
  is_nullable: 0
70
  is_nullable: 0
81
71
82
creation time
83
84
=head2 allow_change_from_owner
72
=head2 allow_change_from_owner
85
73
86
  data_type: 'tinyint'
74
  data_type: 'tinyint'
87
  default_value: 1
75
  default_value: 1
88
  is_nullable: 1
76
  is_nullable: 1
89
77
90
can owner change contents?
91
92
=head2 allow_change_from_others
78
=head2 allow_change_from_others
93
79
94
  data_type: 'tinyint'
80
  data_type: 'tinyint'
95
  default_value: 0
81
  default_value: 0
96
  is_nullable: 1
82
  is_nullable: 1
97
83
98
can others change contents?
99
100
=head2 allow_change_from_staff
84
=head2 allow_change_from_staff
101
85
102
  data_type: 'tinyint'
86
  data_type: 'tinyint'
Lines 219-226 __PACKAGE__->has_many( Link Here
219
);
203
);
220
204
221
205
222
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-17 19:59:33
206
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
223
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EKq7nDW2AeZ2NQce2BPMWA
207
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:joDodaAcubf3gU4DJlspHw
224
208
225
sub koha_object_class {
209
sub koha_object_class {
226
    'Koha::Virtualshelf';
210
    'Koha::Virtualshelf';
(-)a/Koha/Schema/Result/Z3950server.pm (-32 / +2 lines)
Lines 29-36 __PACKAGE__->table("z3950servers"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
unique identifier assigned by Koha
33
34
=head2 host
32
=head2 host
35
33
36
  data_type: 'varchar'
34
  data_type: 'varchar'
Lines 44-96 target's host name Link Here
44
  data_type: 'integer'
42
  data_type: 'integer'
45
  is_nullable: 1
43
  is_nullable: 1
46
44
47
port number used to connect to target
48
49
=head2 db
45
=head2 db
50
46
51
  data_type: 'varchar'
47
  data_type: 'varchar'
52
  is_nullable: 1
48
  is_nullable: 1
53
  size: 255
49
  size: 255
54
50
55
target's database name
56
57
=head2 userid
51
=head2 userid
58
52
59
  data_type: 'varchar'
53
  data_type: 'varchar'
60
  is_nullable: 1
54
  is_nullable: 1
61
  size: 255
55
  size: 255
62
56
63
username needed to log in to target
64
65
=head2 password
57
=head2 password
66
58
67
  data_type: 'varchar'
59
  data_type: 'varchar'
68
  is_nullable: 1
60
  is_nullable: 1
69
  size: 255
61
  size: 255
70
62
71
password needed to log in to target
72
73
=head2 servername
63
=head2 servername
74
64
75
  data_type: 'longtext'
65
  data_type: 'longtext'
76
  is_nullable: 0
66
  is_nullable: 0
77
67
78
name given to the target by the library
79
80
=head2 checked
68
=head2 checked
81
69
82
  data_type: 'smallint'
70
  data_type: 'smallint'
83
  is_nullable: 1
71
  is_nullable: 1
84
72
85
whether this target is checked by default  (1 for yes, 0 for no)
86
87
=head2 rank
73
=head2 rank
88
74
89
  data_type: 'integer'
75
  data_type: 'integer'
90
  is_nullable: 1
76
  is_nullable: 1
91
77
92
where this target appears in the list of targets
93
94
=head2 syntax
78
=head2 syntax
95
79
96
  data_type: 'varchar'
80
  data_type: 'varchar'
Lines 105-112 MARC format provided by this target Link Here
105
  default_value: 0
89
  default_value: 0
106
  is_nullable: 0
90
  is_nullable: 0
107
91
108
number of seconds before Koha stops trying to access this server
109
110
=head2 servertype
92
=head2 servertype
111
93
112
  data_type: 'enum'
94
  data_type: 'enum'
Lines 114-121 number of seconds before Koha stops trying to access this server Link Here
114
  extra: {list => ["zed","sru"]}
96
  extra: {list => ["zed","sru"]}
115
  is_nullable: 0
97
  is_nullable: 0
116
98
117
zed means z39.50 server
118
119
=head2 encoding
99
=head2 encoding
120
100
121
  data_type: 'mediumtext'
101
  data_type: 'mediumtext'
Lines 130-167 characters encoding provided by this target Link Here
130
  extra: {list => ["authority","biblio"]}
110
  extra: {list => ["authority","biblio"]}
131
  is_nullable: 0
111
  is_nullable: 0
132
112
133
server contains bibliographic or authority records
134
135
=head2 sru_options
113
=head2 sru_options
136
114
137
  data_type: 'varchar'
115
  data_type: 'varchar'
138
  is_nullable: 1
116
  is_nullable: 1
139
  size: 255
117
  size: 255
140
118
141
options like sru=get, sru_version=1.1; will be passed to the server via ZOOM
142
143
=head2 sru_fields
119
=head2 sru_fields
144
120
145
  data_type: 'longtext'
121
  data_type: 'longtext'
146
  is_nullable: 1
122
  is_nullable: 1
147
123
148
contains the mapping between the Z3950 search fields and the specific SRU server indexes
149
150
=head2 add_xslt
124
=head2 add_xslt
151
125
152
  data_type: 'longtext'
126
  data_type: 'longtext'
153
  is_nullable: 1
127
  is_nullable: 1
154
128
155
zero or more paths to XSLT files to be processed on the search results
156
157
=head2 attributes
129
=head2 attributes
158
130
159
  data_type: 'varchar'
131
  data_type: 'varchar'
160
  is_nullable: 1
132
  is_nullable: 1
161
  size: 255
133
  size: 255
162
134
163
additional attributes passed to PQF queries
164
165
=cut
135
=cut
166
136
167
__PACKAGE__->add_columns(
137
__PACKAGE__->add_columns(
Lines 226-233 __PACKAGE__->add_columns( Link Here
226
__PACKAGE__->set_primary_key("id");
196
__PACKAGE__->set_primary_key("id");
227
197
228
198
229
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-03 11:30:07
199
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-11-15 15:02:04
230
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1uIZOogM1tV2M7fbpPRDwg
200
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p1IJvVkLfwX0NXooSBw2kQ
231
201
232
sub koha_object_class {
202
sub koha_object_class {
233
    'Koha::Z3950Server';
203
    'Koha::Z3950Server';
(-)a/Koha/Template/Plugin/AuthorisedValues.pm (-2 / +4 lines)
Lines 22-36 use Template::Plugin; Link Here
22
use base qw( Template::Plugin );
22
use base qw( Template::Plugin );
23
23
24
use C4::Koha qw( GetAuthorisedValues );
24
use C4::Koha qw( GetAuthorisedValues );
25
use C4::Languages;
25
use Koha::AuthorisedValues;
26
use Koha::AuthorisedValues;
26
27
27
sub GetByCode {
28
sub GetByCode {
28
    my ( $self, $category, $code, $opac ) = @_;
29
    my ( $self, $category, $code, $opac ) = @_;
29
    my $av = Koha::AuthorisedValues->search({ category => $category, authorised_value => $code });
30
    my $av = Koha::AuthorisedValues->search({ category => $category, authorised_value => $code });
31
    my $lang = C4::Languages::getlanguage();
30
    return $av->count
32
    return $av->count
31
            ? $opac
33
            ? $opac
32
                ? $av->next->opac_description
34
                ? $av->next->opac_translated_description($lang)
33
                : $av->next->lib
35
                : $av->next->localization('lib', $lang)
34
            : $code;
36
            : $code;
35
}
37
}
36
38
(-)a/installer/data/mysql/atomicupdate/bug-38460.pl (+28 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => '38460',
6
    description => 'Add authorised_values_localizations table',
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        unless ( TableExists('authorised_values_localizations') ) {
12
            $dbh->do( "
13
                CREATE TABLE `authorised_values_localizations` (
14
                  `authorised_values_localizations_id` int(11) NOT NULL AUTO_INCREMENT,
15
                  `authorised_value_id` int(11) NOT NULL,
16
                  `property` varchar(100) NOT NULL,
17
                  `lang` varchar(25) NOT NULL,
18
                  `translation` mediumtext DEFAULT NULL,
19
                  PRIMARY KEY (`authorised_values_localizations_id`),
20
                  UNIQUE KEY `authorised_value_id_property_lang` (`authorised_value_id`, `property`, `lang`),
21
                  CONSTRAINT `authorised_values_localizations_authorised_value_id_fk`
22
                    FOREIGN KEY (`authorised_value_id`) REFERENCES `authorised_values` (`id`)
23
                    ON DELETE CASCADE ON UPDATE CASCADE
24
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
25
            " );
26
        }
27
    },
28
};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-1 / +3 lines)
Lines 180-189 Link Here
180
                                    <li>
180
                                    <li>
181
                                        <label for="lib">Description: </label>
181
                                        <label for="lib">Description: </label>
182
                                        <input type="text" name="lib" id="lib" value="[% av.lib | html %]" maxlength="200" />
182
                                        <input type="text" name="lib" id="lib" value="[% av.lib | html %]" maxlength="200" />
183
                                        [% INCLUDE 'localization-link.inc' source='AuthorisedValue' object_id=av.id property='lib' %]
183
                                    </li>
184
                                    </li>
184
                                    <li>
185
                                    <li>
185
                                        <label for="lib_opac">Description (OPAC): </label>
186
                                        <label for="lib_opac">Description (OPAC): </label>
186
                                        <input type="text" name="lib_opac" id="lib_opac" value="[% av.lib_opac | html %]" maxlength="200" />
187
                                        <input type="text" name="lib_opac" id="lib_opac" value="[% av.lib_opac | html %]" maxlength="200" />
188
                                        [% INCLUDE 'localization-link.inc' source='AuthorisedValue' object_id=av.id property='lib_opac' %]
187
                                    </li>
189
                                    </li>
188
                                    <li><label for="branches">Library limitations: </label>
190
                                    <li><label for="branches">Library limitations: </label>
189
                                        <select id="branches" name="branches" multiple size="10">
191
                                        <select id="branches" name="branches" multiple size="10">
Lines 403-408 Link Here
403
    [% Asset.js("js/admin-menu.js") | $raw %]
405
    [% Asset.js("js/admin-menu.js") | $raw %]
404
    [% INCLUDE 'datatables.inc' %]
406
    [% INCLUDE 'datatables.inc' %]
405
    [% INCLUDE 'columns_settings.inc' %]
407
    [% INCLUDE 'columns_settings.inc' %]
408
    [% INCLUDE 'greybox.inc' %]
406
    <script>
409
    <script>
407
        $(document).ready(function() {
410
        $(document).ready(function() {
408
411
409
- 

Return to bug 38460