2 package Koha::Schema::Result::ErmUserRole;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ErmUserRole
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<erm_user_roles>
22 __PACKAGE__->table("erm_user_roles");
68 __PACKAGE__->add_columns(
70 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
72 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
74 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
76 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
78 { data_type => "varchar", is_nullable => 0, size => 80 },
85 =item * L</user_role_id>
91 __PACKAGE__->set_primary_key("user_role_id");
99 Related object: L<Koha::Schema::Result::ErmAgreement>
103 __PACKAGE__->belongs_to(
105 "Koha::Schema::Result::ErmAgreement",
106 { agreement_id => "agreement_id" },
110 on_delete => "CASCADE",
111 on_update => "CASCADE",
119 Related object: L<Koha::Schema::Result::ErmLicense>
123 __PACKAGE__->belongs_to(
125 "Koha::Schema::Result::ErmLicense",
126 { license_id => "license_id" },
130 on_delete => "CASCADE",
131 on_update => "CASCADE",
139 Related object: L<Koha::Schema::Result::Borrower>
143 __PACKAGE__->belongs_to(
145 "Koha::Schema::Result::Borrower",
146 { borrowernumber => "user_id" },
147 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
151 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-16 12:23:11
152 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HbkogqUuTLQCaUY1VrT6Hw
154 sub koha_object_class {
155 'Koha::ERM::UserRole';
157 sub koha_objects_class {
158 'Koha::ERM::UserRoles';