Koha-clms/Koha/Schema/Result/IllbatchStatus.pm

142 lines
2.0 KiB
Perl

use utf8;
package Koha::Schema::Result::IllbatchStatus;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Koha::Schema::Result::IllbatchStatus
=cut
use strict;
use warnings;
use base 'DBIx::Class::Core';
=head1 TABLE: C<illbatch_statuses>
=cut
__PACKAGE__->table("illbatch_statuses");
=head1 ACCESSORS
=head2 id
data_type: 'integer'
is_auto_increment: 1
is_nullable: 0
Status ID
=head2 name
data_type: 'varchar'
is_nullable: 0
size: 100
Name of status
=head2 code
data_type: 'varchar'
is_nullable: 0
size: 20
Unique, immutable code for status
=head2 is_system
data_type: 'tinyint'
is_nullable: 1
Is this status required for system operation
=cut
__PACKAGE__->add_columns(
"id",
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
"name",
{ data_type => "varchar", is_nullable => 0, size => 100 },
"code",
{ data_type => "varchar", is_nullable => 0, size => 20 },
"is_system",
{ data_type => "tinyint", is_nullable => 1 },
);
=head1 PRIMARY KEY
=over 4
=item * L</id>
=back
=cut
__PACKAGE__->set_primary_key("id");
=head1 UNIQUE CONSTRAINTS
=head2 C<u_illbatchstatuses__code>
=over 4
=item * L</code>
=back
=cut
__PACKAGE__->add_unique_constraint("u_illbatchstatuses__code", ["code"]);
=head1 RELATIONS
=head2 illbatches
Type: has_many
Related object: L<Koha::Schema::Result::Illbatch>
=cut
__PACKAGE__->has_many(
"illbatches",
"Koha::Schema::Result::Illbatch",
{ "foreign.status_code" => "self.code" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-10 18:12:30
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sRgblQWtTH/cdtdMT3KP+w
__PACKAGE__->add_columns(
'+is_system' => { is_boolean => 1 },
);
=head2 koha_object_class
Missing POD for koha_object_class.
=cut
sub koha_object_class {
'Koha::ILL::Batch::Status';
}
=head2 koha_objects_class
Missing POD for koha_objects_class.
=cut
sub koha_objects_class {
'Koha::ILL::Batch::Statuses';
}
1;