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 |