|
|
@ -71,7 +71,6 @@ __PACKAGE__->table("pseudonymized_transactions"); |
|
|
|
|
|
|
|
data_type: 'varchar' |
|
|
|
default_value: (empty string) |
|
|
|
is_foreign_key: 1 |
|
|
|
is_nullable: 0 |
|
|
|
size: 10 |
|
|
|
|
|
|
@ -79,7 +78,6 @@ __PACKAGE__->table("pseudonymized_transactions"); |
|
|
|
|
|
|
|
data_type: 'varchar' |
|
|
|
default_value: (empty string) |
|
|
|
is_foreign_key: 1 |
|
|
|
is_nullable: 0 |
|
|
|
size: 10 |
|
|
|
|
|
|
@ -116,7 +114,6 @@ __PACKAGE__->table("pseudonymized_transactions"); |
|
|
|
=head2 transaction_branchcode |
|
|
|
|
|
|
|
data_type: 'varchar' |
|
|
|
is_foreign_key: 1 |
|
|
|
is_nullable: 1 |
|
|
|
size: 10 |
|
|
|
|
|
|
@ -187,21 +184,9 @@ __PACKAGE__->add_columns( |
|
|
|
"country", |
|
|
|
{ data_type => "mediumtext", is_nullable => 1 }, |
|
|
|
"branchcode", |
|
|
|
{ |
|
|
|
data_type => "varchar", |
|
|
|
default_value => "", |
|
|
|
is_foreign_key => 1, |
|
|
|
is_nullable => 0, |
|
|
|
size => 10, |
|
|
|
}, |
|
|
|
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, |
|
|
|
"categorycode", |
|
|
|
{ |
|
|
|
data_type => "varchar", |
|
|
|
default_value => "", |
|
|
|
is_foreign_key => 1, |
|
|
|
is_nullable => 0, |
|
|
|
size => 10, |
|
|
|
}, |
|
|
|
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, |
|
|
|
"dateenrolled", |
|
|
|
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
|
|
|
"sex", |
|
|
@ -217,7 +202,7 @@ __PACKAGE__->add_columns( |
|
|
|
is_nullable => 1, |
|
|
|
}, |
|
|
|
"transaction_branchcode", |
|
|
|
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
|
|
|
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
|
|
|
"transaction_type", |
|
|
|
{ data_type => "varchar", is_nullable => 1, size => 16 }, |
|
|
|
"itemnumber", |
|
|
@ -250,36 +235,6 @@ __PACKAGE__->set_primary_key("id"); |
|
|
|
|
|
|
|
=head1 RELATIONS |
|
|
|
|
|
|
|
=head2 branchcode |
|
|
|
|
|
|
|
Type: belongs_to |
|
|
|
|
|
|
|
Related object: L<Koha::Schema::Result::Branch> |
|
|
|
|
|
|
|
=cut |
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
|
|
|
"branchcode", |
|
|
|
"Koha::Schema::Result::Branch", |
|
|
|
{ branchcode => "branchcode" }, |
|
|
|
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, |
|
|
|
); |
|
|
|
|
|
|
|
=head2 categorycode |
|
|
|
|
|
|
|
Type: belongs_to |
|
|
|
|
|
|
|
Related object: L<Koha::Schema::Result::Category> |
|
|
|
|
|
|
|
=cut |
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
|
|
|
"categorycode", |
|
|
|
"Koha::Schema::Result::Category", |
|
|
|
{ categorycode => "categorycode" }, |
|
|
|
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, |
|
|
|
); |
|
|
|
|
|
|
|
=head2 pseudonymized_borrower_attributes |
|
|
|
|
|
|
|
Type: has_many |
|
|
@ -295,29 +250,9 @@ __PACKAGE__->has_many( |
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
|
|
|
); |
|
|
|
|
|
|
|
=head2 transaction_branchcode |
|
|
|
|
|
|
|
Type: belongs_to |
|
|
|
|
|
|
|
Related object: L<Koha::Schema::Result::Branch> |
|
|
|
|
|
|
|
=cut |
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
|
|
|
"transaction_branchcode", |
|
|
|
"Koha::Schema::Result::Branch", |
|
|
|
{ branchcode => "transaction_branchcode" }, |
|
|
|
{ |
|
|
|
is_deferrable => 1, |
|
|
|
join_type => "LEFT", |
|
|
|
on_delete => "RESTRICT", |
|
|
|
on_update => "RESTRICT", |
|
|
|
}, |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-17 16:28:03 |
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jgUZi4W5vJo33KdKI7+jyQ |
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-19 14:20:11 |
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GVTIlyIi8Vquhf662tDmsQ |
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
|
|
|
'+has_cardnumber' => { is_boolean => 1 }, |
|
|
|