Bug 14279: Remove CGI::scrolling_list from issues_avg_stats.pl
[koha.git] / Koha / Schema / Result / UserPermission.pm
blob948c2e18a031cabea8258f3fcbe7c422d113bd2b
1 use utf8;
2 package Koha::Schema::Result::UserPermission;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::UserPermission
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<user_permissions>
20 =cut
22 __PACKAGE__->table("user_permissions");
24 =head1 ACCESSORS
26 =head2 borrowernumber
28 data_type: 'integer'
29 default_value: 0
30 is_foreign_key: 1
31 is_nullable: 0
33 =head2 module_bit
35 data_type: 'integer'
36 default_value: 0
37 is_foreign_key: 1
38 is_nullable: 0
40 =head2 code
42 data_type: 'varchar'
43 is_foreign_key: 1
44 is_nullable: 1
45 size: 64
47 =cut
49 __PACKAGE__->add_columns(
50 "borrowernumber",
52 data_type => "integer",
53 default_value => 0,
54 is_foreign_key => 1,
55 is_nullable => 0,
57 "module_bit",
59 data_type => "integer",
60 default_value => 0,
61 is_foreign_key => 1,
62 is_nullable => 0,
64 "code",
65 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 64 },
68 =head1 RELATIONS
70 =head2 borrowernumber
72 Type: belongs_to
74 Related object: L<Koha::Schema::Result::Borrower>
76 =cut
78 __PACKAGE__->belongs_to(
79 "borrowernumber",
80 "Koha::Schema::Result::Borrower",
81 { borrowernumber => "borrowernumber" },
82 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
85 =head2 permission
87 Type: belongs_to
89 Related object: L<Koha::Schema::Result::Permission>
91 =cut
93 __PACKAGE__->belongs_to(
94 "permission",
95 "Koha::Schema::Result::Permission",
96 { code => "code", module_bit => "module_bit" },
98 is_deferrable => 1,
99 join_type => "LEFT",
100 on_delete => "CASCADE",
101 on_update => "CASCADE",
106 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
107 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9dMAYxSmVQ1cVKxmnMiMkg
110 # You can replace this text with custom content, and it will be preserved on regeneration