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

(-)a/Koha/Schema/Result/BorrowerAttributeType.pm (-17 / +2 lines)
Lines 254-277 __PACKAGE__->belongs_to( Link Here
254
  },
254
  },
255
);
255
);
256
256
257
=head2 pseudonymized_borrower_attributes
258
257
259
Type: has_many
258
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-02-28 17:05:09
260
259
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qShnFJ7HAiv0BX6lzSQIYA
261
Related object: L<Koha::Schema::Result::PseudonymizedBorrowerAttribute>
262
263
=cut
264
265
__PACKAGE__->has_many(
266
  "pseudonymized_borrower_attributes",
267
  "Koha::Schema::Result::PseudonymizedBorrowerAttribute",
268
  { "foreign.code" => "self.code" },
269
  { cascade_copy => 0, cascade_delete => 0 },
270
);
271
272
273
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-02-20 15:56:54
274
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Os1rn9zKu7/rVLVjZM3Mbg
275
260
276
__PACKAGE__->add_columns(
261
__PACKAGE__->add_columns(
277
    '+keep_for_pseudonymization' => { is_boolean => 1 },
262
    '+keep_for_pseudonymization' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/PseudonymizedBorrowerAttribute.pm (-29 / +23 lines)
Lines 1-12 Link Here
1
use utf8;
1
use utf8;
2
package Koha::Schema::Result::PseudonymizedBorrowerAttribute;
2
package Koha::Schema::Result::PseudonymizedMetadataValue;
3
3
4
# Created by DBIx::Class::Schema::Loader
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
6
7
=head1 NAME
7
=head1 NAME
8
8
9
Koha::Schema::Result::PseudonymizedBorrowerAttribute
9
Koha::Schema::Result::PseudonymizedMetadataValue
10
10
11
=cut
11
=cut
12
12
Lines 15-25 use warnings; Link Here
15
15
16
use base 'DBIx::Class::Core';
16
use base 'DBIx::Class::Core';
17
17
18
=head1 TABLE: C<pseudonymized_borrower_attributes>
18
=head1 TABLE: C<pseudonymized_metadata_values>
19
19
20
=cut
20
=cut
21
21
22
__PACKAGE__->table("pseudonymized_borrower_attributes");
22
__PACKAGE__->table("pseudonymized_metadata_values");
23
23
24
=head1 ACCESSORS
24
=head1 ACCESSORS
25
25
Lines 37-58 Row id field Link Here
37
  is_foreign_key: 1
37
  is_foreign_key: 1
38
  is_nullable: 0
38
  is_nullable: 0
39
39
40
=head2 code
40
=head2 tablename
41
41
42
  data_type: 'varchar'
42
  data_type: 'varchar'
43
  is_foreign_key: 1
44
  is_nullable: 0
43
  is_nullable: 0
45
  size: 64
44
  size: 64
46
45
47
foreign key from the borrower_attribute_types table, defines which custom field this value was entered for
46
Name of the related table
48
47
49
=head2 attribute
48
=head2 key
49
50
  data_type: 'varchar'
51
  is_nullable: 0
52
  size: 64
53
54
key for the metadata
55
56
=head2 value
50
57
51
  data_type: 'varchar'
58
  data_type: 'varchar'
52
  is_nullable: 1
59
  is_nullable: 1
53
  size: 255
60
  size: 255
54
61
55
custom patron field value
62
value for the metadata
56
63
57
=cut
64
=cut
58
65
Lines 61-69 __PACKAGE__->add_columns( Link Here
61
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
68
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62
  "transaction_id",
69
  "transaction_id",
63
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
70
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
64
  "code",
71
  "tablename",
65
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 64 },
72
  { data_type => "varchar", is_nullable => 0, size => 64 },
66
  "attribute",
73
  "key",
74
  { data_type => "varchar", is_nullable => 0, size => 64 },
75
  "value",
67
  { data_type => "varchar", is_nullable => 1, size => 255 },
76
  { data_type => "varchar", is_nullable => 1, size => 255 },
68
);
77
);
69
78
Lines 81-101 __PACKAGE__->set_primary_key("id"); Link Here
81
90
82
=head1 RELATIONS
91
=head1 RELATIONS
83
92
84
=head2 code
85
86
Type: belongs_to
87
88
Related object: L<Koha::Schema::Result::BorrowerAttributeType>
89
90
=cut
91
92
__PACKAGE__->belongs_to(
93
  "code",
94
  "Koha::Schema::Result::BorrowerAttributeType",
95
  { code => "code" },
96
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
97
);
98
99
=head2 transaction
93
=head2 transaction
100
94
101
Type: belongs_to
95
Type: belongs_to
Lines 112-119 __PACKAGE__->belongs_to( Link Here
112
);
106
);
113
107
114
108
115
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56
109
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-03-03 12:24:20
116
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:09zbX6WErMxrZSBrc/nvdA
110
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wh+aP+kaftyf21XYsuMqSg
117
111
118
112
119
# You can replace this text with custom code or comments, and it will be preserved on regeneration
113
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/PseudonymizedTransaction.pm (-7 / +6 lines)
Lines 235-258 __PACKAGE__->set_primary_key("id"); Link Here
235
235
236
=head1 RELATIONS
236
=head1 RELATIONS
237
237
238
=head2 pseudonymized_borrower_attributes
238
=head2 pseudonymized_metadata_values
239
239
240
Type: has_many
240
Type: has_many
241
241
242
Related object: L<Koha::Schema::Result::PseudonymizedBorrowerAttribute>
242
Related object: L<Koha::Schema::Result::PseudonymizedMetadataValue>
243
243
244
=cut
244
=cut
245
245
246
__PACKAGE__->has_many(
246
__PACKAGE__->has_many(
247
  "pseudonymized_borrower_attributes",
247
  "pseudonymized_metadata_values",
248
  "Koha::Schema::Result::PseudonymizedBorrowerAttribute",
248
  "Koha::Schema::Result::PseudonymizedMetadataValue",
249
  { "foreign.transaction_id" => "self.id" },
249
  { "foreign.transaction_id" => "self.id" },
250
  { cascade_copy => 0, cascade_delete => 0 },
250
  { cascade_copy => 0, cascade_delete => 0 },
251
);
251
);
252
252
253
253
254
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-19 14:20:11
254
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-03-03 10:52:29
255
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GVTIlyIi8Vquhf662tDmsQ
255
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A+MN0v0RIN5SCpYOQ991oQ
256
256
257
__PACKAGE__->add_columns(
257
__PACKAGE__->add_columns(
258
    '+has_cardnumber' => { is_boolean => 1 },
258
    '+has_cardnumber' => { is_boolean => 1 },
259
- 

Return to bug 37901