line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AproJo::DB::Schema::Result::UserGroup; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
669
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
50
|
|
4
|
2
|
|
|
2
|
|
7
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
40
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
7
|
use base 'DBIx::Class::Core'; |
|
2
|
|
|
|
|
1
|
|
|
2
|
|
|
|
|
221
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->table('users_groups'); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
11
|
|
|
|
|
|
|
'user_id', {data_type => 'integer', is_nullable => 0, is_foreign_key => 1}, |
12
|
|
|
|
|
|
|
'group_id', |
13
|
|
|
|
|
|
|
{data_type => 'integer', is_nullable => 0, is_foreign_key => 1}, |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('user_id', 'group_id'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
19
|
|
|
|
|
|
|
'group_id', |
20
|
|
|
|
|
|
|
'AproJo::DB::Schema::Result::Group', |
21
|
|
|
|
|
|
|
{group_id => 'group_id'}, |
22
|
|
|
|
|
|
|
{is_deferrable => 1, on_delete => 'CASCADE', on_update => 'CASCADE'}, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
26
|
|
|
|
|
|
|
'user_id', |
27
|
|
|
|
|
|
|
'AproJo::DB::Schema::Result::User', |
28
|
|
|
|
|
|
|
{user_id => 'user_id'}, |
29
|
|
|
|
|
|
|
{is_deferrable => 1, on_delete => 'CASCADE', on_update => 'CASCADE'}, |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |