Lines 41-47
__PACKAGE__->table("user_permissions");
Link Here
|
41 |
|
41 |
|
42 |
data_type: 'varchar' |
42 |
data_type: 'varchar' |
43 |
is_foreign_key: 1 |
43 |
is_foreign_key: 1 |
44 |
is_nullable: 1 |
44 |
is_nullable: 0 |
45 |
size: 64 |
45 |
size: 64 |
46 |
|
46 |
|
47 |
=cut |
47 |
=cut |
Lines 62-70
__PACKAGE__->add_columns(
Link Here
|
62 |
is_nullable => 0, |
62 |
is_nullable => 0, |
63 |
}, |
63 |
}, |
64 |
"code", |
64 |
"code", |
65 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 64 }, |
65 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 64 }, |
66 |
); |
66 |
); |
67 |
|
67 |
|
|
|
68 |
=head1 PRIMARY KEY |
69 |
|
70 |
=over 4 |
71 |
|
72 |
=item * L</borrowernumber> |
73 |
|
74 |
=item * L</module_bit> |
75 |
|
76 |
=item * L</code> |
77 |
|
78 |
=back |
79 |
|
80 |
=cut |
81 |
|
82 |
__PACKAGE__->set_primary_key("borrowernumber", "module_bit", "code"); |
83 |
|
68 |
=head1 RELATIONS |
84 |
=head1 RELATIONS |
69 |
|
85 |
|
70 |
=head2 borrowernumber |
86 |
=head2 borrowernumber |
Lines 94-110
__PACKAGE__->belongs_to(
Link Here
|
94 |
"permission", |
110 |
"permission", |
95 |
"Koha::Schema::Result::Permission", |
111 |
"Koha::Schema::Result::Permission", |
96 |
{ code => "code", module_bit => "module_bit" }, |
112 |
{ code => "code", module_bit => "module_bit" }, |
97 |
{ |
113 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
98 |
is_deferrable => 1, |
|
|
99 |
join_type => "LEFT", |
100 |
on_delete => "CASCADE", |
101 |
on_update => "CASCADE", |
102 |
}, |
103 |
); |
114 |
); |
104 |
|
115 |
|
105 |
|
116 |
|
106 |
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 |
117 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-09-27 12:42:45 |
107 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9dMAYxSmVQ1cVKxmnMiMkg |
118 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zRwFHwJjFH30DSHuLBjwvQ |
108 |
|
119 |
|
109 |
|
120 |
|
110 |
# You can replace this text with custom content, and it will be preserved on regeneration |
121 |
# You can replace this text with custom content, and it will be preserved on regeneration |
111 |
- |
|
|