148 lines
2.2 KiB
Perl
148 lines
2.2 KiB
Perl
use utf8;
|
|
package Koha::Schema::Result::Illrequestattribute;
|
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
=head1 NAME
|
|
|
|
Koha::Schema::Result::Illrequestattribute
|
|
|
|
=cut
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
=head1 TABLE: C<illrequestattributes>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->table("illrequestattributes");
|
|
|
|
=head1 ACCESSORS
|
|
|
|
=head2 illrequest_id
|
|
|
|
data_type: 'bigint'
|
|
extra: {unsigned => 1}
|
|
is_foreign_key: 1
|
|
is_nullable: 0
|
|
|
|
ILL request number
|
|
|
|
=head2 backend
|
|
|
|
data_type: 'varchar'
|
|
is_nullable: 0
|
|
size: 80
|
|
|
|
API ILL backend name
|
|
|
|
=head2 type
|
|
|
|
data_type: 'varchar'
|
|
is_nullable: 0
|
|
size: 200
|
|
|
|
API ILL property name
|
|
|
|
=head2 value
|
|
|
|
data_type: 'mediumtext'
|
|
is_nullable: 0
|
|
|
|
API ILL property value
|
|
|
|
=head2 readonly
|
|
|
|
data_type: 'tinyint'
|
|
default_value: 1
|
|
is_nullable: 0
|
|
|
|
Is this attribute read only
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->add_columns(
|
|
"illrequest_id",
|
|
{
|
|
data_type => "bigint",
|
|
extra => { unsigned => 1 },
|
|
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",
|
|
{ data_type => "mediumtext", is_nullable => 0 },
|
|
"readonly",
|
|
{ data_type => "tinyint", default_value => 1, is_nullable => 0 },
|
|
);
|
|
|
|
=head1 PRIMARY KEY
|
|
|
|
=over 4
|
|
|
|
=item * L</illrequest_id>
|
|
|
|
=item * L</backend>
|
|
|
|
=item * L</type>
|
|
|
|
=back
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->set_primary_key("illrequest_id", "backend", "type");
|
|
|
|
=head1 RELATIONS
|
|
|
|
=head2 illrequest
|
|
|
|
Type: belongs_to
|
|
|
|
Related object: L<Koha::Schema::Result::Illrequest>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->belongs_to(
|
|
"illrequest",
|
|
"Koha::Schema::Result::Illrequest",
|
|
{ illrequest_id => "illrequest_id" },
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
|
|
);
|
|
|
|
|
|
# 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 }
|
|
);
|
|
|
|
=head2 koha_object_class
|
|
|
|
Missing POD for koha_object_class.
|
|
|
|
=cut
|
|
|
|
sub koha_object_class {
|
|
'Koha::ILL::Request::Attribute';
|
|
}
|
|
|
|
=head2 koha_objects_class
|
|
|
|
Missing POD for koha_objects_class.
|
|
|
|
=cut
|
|
|
|
sub koha_objects_class {
|
|
'Koha::ILL::Request::Attributes';
|
|
}
|
|
|
|
1;
|