Bug 33970: DBIC schema

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2023-10-25 11:36:18 -03:00
parent a0161771ce
commit feb499e87f
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 20 additions and 13 deletions

View File

@ -32,6 +32,14 @@ __PACKAGE__->table("illrequestattributes");
ILL request number
=head2 backend
data_type: 'varchar'
is_nullable: 0
size: 80
API ILL backend name
=head2 type
data_type: 'varchar'
@ -65,6 +73,8 @@ __PACKAGE__->add_columns(
is_foreign_key => 1,
is_nullable => 0,
},
"backend",
{ data_type => "varchar", is_nullable => 0, size => 80 },
"type",
{ data_type => "varchar", is_nullable => 0, size => 200 },
"value",
@ -79,13 +89,15 @@ __PACKAGE__->add_columns(
=item * L</illrequest_id>
=item * L</backend>
=item * L</type>
=back
=cut
__PACKAGE__->set_primary_key("illrequest_id", "type");
__PACKAGE__->set_primary_key("illrequest_id", "backend", "type");
=head1 RELATIONS
@ -105,8 +117,8 @@ __PACKAGE__->belongs_to(
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qNhL5kiGVR8WroCHQY5DyQ
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-25 14:33:42
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ACb1xoMuMjLHDIit/H29Vw
__PACKAGE__->add_columns(
'+readonly' => { is_boolean => 1 }

View File

@ -37,11 +37,10 @@ __PACKAGE__->table("patron_consent");
=head2 type
data_type: 'enum'
extra: {list => ["GDPR_PROCESSING"]}
data_type: 'tinytext'
is_nullable: 1
allows for future extension
consent type, could be custom type
=head2 given_on
@ -63,11 +62,7 @@ __PACKAGE__->add_columns(
"borrowernumber",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"type",
{
data_type => "enum",
extra => { list => ["GDPR_PROCESSING"] },
is_nullable => 1,
},
{ data_type => "tinytext", is_nullable => 1 },
"given_on",
{
data_type => "datetime",
@ -112,8 +107,8 @@ __PACKAGE__->belongs_to(
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rkn/K2jtHPFkGoG4QCmLsw
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-25 14:33:42
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LWTvNPA/R0VoWUzcRLnjDg
sub koha_object_class {
'Koha::Patron::Consent';