2 package Koha::Schema::Result::UserPermission;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::UserPermission
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<user_permissions>
22 __PACKAGE__->table("user_permissions");
49 __PACKAGE__->add_columns(
52 data_type => "integer",
59 data_type => "integer",
65 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 64 },
72 =item * L</borrowernumber>
74 =item * L</module_bit>
82 __PACKAGE__->set_primary_key("borrowernumber", "module_bit", "code");
90 Related object: L<Koha::Schema::Result::Borrower>
94 __PACKAGE__->belongs_to(
96 "Koha::Schema::Result::Borrower",
97 { borrowernumber => "borrowernumber" },
98 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
105 Related object: L<Koha::Schema::Result::Permission>
109 __PACKAGE__->belongs_to(
111 "Koha::Schema::Result::Permission",
112 { code => "code", module_bit => "module_bit" },
113 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
117 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-02-25 00:33:23
118 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sp3t39eo8WmHNKGljRXyEw
121 # You can replace this text with custom content, and it will be preserved on regeneration