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 => 1, size => 64 },
74 Related object: L<Koha::Schema::Result::Borrower>
78 __PACKAGE__->belongs_to(
80 "Koha::Schema::Result::Borrower",
81 { borrowernumber => "borrowernumber" },
82 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89 Related object: L<Koha::Schema::Result::Permission>
93 __PACKAGE__->belongs_to(
95 "Koha::Schema::Result::Permission",
96 { code => "code", module_bit => "module_bit" },
100 on_delete => "CASCADE",
101 on_update => "CASCADE",
106 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
107 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9dMAYxSmVQ1cVKxmnMiMkg
110 # You can replace this text with custom content, and it will be preserved on regeneration