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 =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 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, }, "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 =item * L =back =cut __PACKAGE__->set_primary_key("illrequest_id", "type"); =head1 RELATIONS =head2 illrequest Type: belongs_to Related object: L =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 @ 2021-01-21 13:39:29 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qNhL5kiGVR8WroCHQY5DyQ __PACKAGE__->add_columns( '+readonly' => { is_boolean => 1 } ); 1;