2 package Koha::Schema::Result::RestrictionType;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::RestrictionType
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<restriction_types>
22 __PACKAGE__->table("restriction_types");
51 __PACKAGE__->add_columns(
53 { data_type => "varchar", is_nullable => 0, size => 50 },
55 { data_type => "text", is_nullable => 0 },
57 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
59 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
72 __PACKAGE__->set_primary_key("code");
76 =head2 borrower_debarments
80 Related object: L<Koha::Schema::Result::BorrowerDebarment>
84 __PACKAGE__->has_many(
85 "borrower_debarments",
86 "Koha::Schema::Result::BorrowerDebarment",
87 { "foreign.type" => "self.code" },
88 { cascade_copy => 0, cascade_delete => 0 },
92 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-19 17:53:05
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CC8yZ6IqZPnySpMC5Mn/ig
95 __PACKAGE__->add_columns(
96 '+is_system' => { is_boolean => 1 },
97 '+is_default' => { is_boolean => 1 }
100 sub koha_object_class {
101 'Koha::Patron::Restriction::Type';
103 sub koha_objects_class {
104 'Koha::Patron::Restriction::Types';