| MojoMojo documentation | Contained in the MojoMojo distribution. |
MojoMojo::Schema::Result::RolePrivilege - store role privileges
Marcus Ramberg <mramberg@cpan.org>
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
| MojoMojo documentation | Contained in the MojoMojo distribution. |
package MojoMojo::Schema::Result::RolePrivilege; use strict; use warnings; use parent qw/MojoMojo::Schema::Base::Result/; __PACKAGE__->load_components( "Core" ); __PACKAGE__->table("role_privilege"); __PACKAGE__->add_columns( "page", { data_type => "INTEGER", is_nullable => 0, size => undef }, "role", { data_type => "INTEGER", is_nullable => 0, size => undef }, "privilege", { data_type => "VARCHAR", is_nullable => 0, size => 20 }, ); __PACKAGE__->set_primary_key( "page", "role", "privilege" ); __PACKAGE__->belongs_to( "page", "MojoMojo::Schema::Result::Page", { id => "page" } ); __PACKAGE__->belongs_to( "role", "MojoMojo::Schema::Result::Role", { id => "role" } );
1;