| 1 | package MojoMojo::Schema::Result::RolePrivilege; | ||
| 2 | |||
| 3 | 40 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 40 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 40 | ▶ | use parent qw/MojoMojo::Schema::Base::Result/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 40 | __PACKAGE__->load_components( "Core" ); | |
| 9 | 40 | __PACKAGE__->table("role_privilege"); | |
| 10 | 40 | __PACKAGE__->add_columns( | |
| 11 | "page", { data_type => "INTEGER", is_nullable => 0, size => undef }, | ||
| 12 | "role", { data_type => "INTEGER", is_nullable => 0, size => undef }, | ||
| 13 | "privilege", { data_type => "VARCHAR", is_nullable => 0, size => 20 }, | ||
| 14 | ); | ||
| 15 | 40 | __PACKAGE__->set_primary_key( "page", "role", "privilege" ); | |
| 16 | 40 | __PACKAGE__->belongs_to( "page", "MojoMojo::Schema::Result::Page", { id => "page" } ); | |
| 17 | 40 | __PACKAGE__->belongs_to( "role", "MojoMojo::Schema::Result::Role", { id => "role" } ); | |
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | MojoMojo::Schema::Result::RolePrivilege - store role privileges | ||
| 22 | |||
| 23 | =head1 AUTHOR | ||
| 24 | |||
| 25 | Marcus Ramberg <mramberg@cpan.org> | ||
| 26 | |||
| 27 | =head1 LICENSE | ||
| 28 | |||
| 29 | This library is free software. You can redistribute it and/or modify | ||
| 30 | it under the same terms as Perl itself. | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | |||
| 35 | 40 | 1; | |