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
158 =head2 itemcallnumber
172 __PACKAGE__
->add_columns(
174 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
175 "hashed_borrowernumber",
176 { data_type
=> "varchar", is_nullable
=> 0, size
=> 60 },
178 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
180 { data_type
=> "longtext", is_nullable
=> 1 },
182 { data_type
=> "longtext", is_nullable
=> 1 },
184 { data_type
=> "mediumtext", is_nullable
=> 1 },
186 { data_type
=> "varchar", is_nullable
=> 1, size
=> 25 },
188 { data_type
=> "mediumtext", is_nullable
=> 1 },
191 data_type
=> "varchar",
199 data_type
=> "varchar",
206 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
208 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
210 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
212 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
215 data_type
=> "datetime",
216 datetime_undef_if_invalid
=> 1,
219 "transaction_branchcode",
220 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 1, size
=> 10 },
222 { data_type
=> "varchar", is_nullable
=> 1, size
=> 16 },
224 { data_type
=> "integer", is_nullable
=> 1 },
226 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
228 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
230 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
232 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
234 { data_type
=> "varchar", is_nullable
=> 1, size
=> 255 },
236 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
249 __PACKAGE__
->set_primary_key("id");
257 Related object: L<Koha::Schema::Result::Branch>
261 __PACKAGE__
->belongs_to(
263 "Koha::Schema::Result::Branch",
264 { branchcode
=> "branchcode" },
265 { is_deferrable
=> 1, on_delete
=> "RESTRICT", on_update
=> "RESTRICT" },
272 Related object: L<Koha::Schema::Result::Category>
276 __PACKAGE__
->belongs_to(
278 "Koha::Schema::Result::Category",
279 { categorycode
=> "categorycode" },
280 { is_deferrable
=> 1, on_delete
=> "RESTRICT", on_update
=> "RESTRICT" },
283 =head2 pseudonymized_borrower_attributes
287 Related object: L<Koha::Schema::Result::PseudonymizedBorrowerAttribute>
291 __PACKAGE__
->has_many(
292 "pseudonymized_borrower_attributes",
293 "Koha::Schema::Result::PseudonymizedBorrowerAttribute",
294 { "foreign.transaction_id" => "self.id" },
295 { cascade_copy
=> 0, cascade_delete
=> 0 },
298 =head2 transaction_branchcode
302 Related object: L<Koha::Schema::Result::Branch>
306 __PACKAGE__
->belongs_to(
307 "transaction_branchcode",
308 "Koha::Schema::Result::Branch",
309 { branchcode
=> "transaction_branchcode" },
313 on_delete
=> "RESTRICT",
314 on_update
=> "RESTRICT",
319 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-17 16:28:03
320 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jgUZi4W5vJo33KdKI7+jyQ
322 __PACKAGE__
->add_columns(
323 '+has_cardnumber' => { is_boolean
=> 1 },