2 package Koha
::Schema
::Result
::PseudonymizedTransaction
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::PseudonymizedTransaction
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<pseudonymized_transactions>
22 __PACKAGE__
->table("pseudonymized_transactions");
32 =head2 hashed_borrowernumber
56 data_type: 'mediumtext'
67 data_type: 'mediumtext'
73 default_value: (empty string)
81 default_value: (empty string)
89 datetime_undef_if_invalid: 1
112 data_type: 'datetime'
113 datetime_undef_if_invalid: 1
116 =head2 transaction_branchcode
123 =head2 transaction_type
152 =head2 itemcallnumber
166 __PACKAGE__
->add_columns(
168 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
169 "hashed_borrowernumber",
170 { data_type
=> "varchar", is_nullable
=> 0, size
=> 60 },
172 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
174 { data_type
=> "longtext", is_nullable
=> 1 },
176 { data_type
=> "longtext", is_nullable
=> 1 },
178 { data_type
=> "mediumtext", is_nullable
=> 1 },
180 { data_type
=> "varchar", is_nullable
=> 1, size
=> 25 },
182 { data_type
=> "mediumtext", is_nullable
=> 1 },
185 data_type
=> "varchar",
193 data_type
=> "varchar",
200 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
202 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
204 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
206 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
209 data_type
=> "datetime",
210 datetime_undef_if_invalid
=> 1,
213 "transaction_branchcode",
214 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 1, size
=> 10 },
216 { data_type
=> "varchar", is_nullable
=> 1, size
=> 16 },
218 { data_type
=> "integer", is_nullable
=> 1 },
220 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
222 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
224 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
226 { data_type
=> "varchar", is_nullable
=> 1, size
=> 255 },
228 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
241 __PACKAGE__
->set_primary_key("id");
249 Related object: L<Koha::Schema::Result::Branch>
253 __PACKAGE__
->belongs_to(
255 "Koha::Schema::Result::Branch",
256 { branchcode
=> "branchcode" },
257 { is_deferrable
=> 1, on_delete
=> "RESTRICT", on_update
=> "RESTRICT" },
264 Related object: L<Koha::Schema::Result::Category>
268 __PACKAGE__
->belongs_to(
270 "Koha::Schema::Result::Category",
271 { categorycode
=> "categorycode" },
272 { is_deferrable
=> 1, on_delete
=> "RESTRICT", on_update
=> "RESTRICT" },
275 =head2 pseudonymized_borrower_attributes
279 Related object: L<Koha::Schema::Result::PseudonymizedBorrowerAttribute>
283 __PACKAGE__
->has_many(
284 "pseudonymized_borrower_attributes",
285 "Koha::Schema::Result::PseudonymizedBorrowerAttribute",
286 { "foreign.transaction_id" => "self.id" },
287 { cascade_copy
=> 0, cascade_delete
=> 0 },
290 =head2 transaction_branchcode
294 Related object: L<Koha::Schema::Result::Branch>
298 __PACKAGE__
->belongs_to(
299 "transaction_branchcode",
300 "Koha::Schema::Result::Branch",
301 { branchcode
=> "transaction_branchcode" },
305 on_delete
=> "RESTRICT",
306 on_update
=> "RESTRICT",
311 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-01-11 17:12:17
312 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bzHjcKCHYf+bixeA1dhKIQ
315 # You can replace this text with custom code or comments, and it will be preserved on regeneration