2 package Koha::Schema::Result::Permission;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Permission
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<permissions>
22 __PACKAGE__->table("permissions");
36 default_value: (empty string)
48 __PACKAGE__->add_columns(
51 data_type => "integer",
57 { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 },
59 { data_type => "varchar", is_nullable => 1, size => 255 },
66 =item * L</module_bit>
74 __PACKAGE__->set_primary_key("module_bit", "code");
82 Related object: L<Koha::Schema::Result::Userflag>
86 __PACKAGE__->belongs_to(
88 "Koha::Schema::Result::Userflag",
89 { bit => "module_bit" },
90 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
93 =head2 user_permissions
97 Related object: L<Koha::Schema::Result::UserPermission>
101 __PACKAGE__->has_many(
103 "Koha::Schema::Result::UserPermission",
105 "foreign.code" => "self.code",
106 "foreign.module_bit" => "self.module_bit",
108 { cascade_copy => 0, cascade_delete => 0 },
112 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
113 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ut3lzlxoPPoIIwmhJViV1Q
116 # You can replace this text with custom content, and it will be preserved on regeneration