Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / Koha / Schema / Result / Userflag.pm
blob7ece4a6d7dd4a1ea089d4cf7de5cc1dc631a072e
1 use utf8;
2 package Koha::Schema::Result::Userflag;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Userflag
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<userflags>
20 =cut
22 __PACKAGE__->table("userflags");
24 =head1 ACCESSORS
26 =head2 bit
28 data_type: 'integer'
29 default_value: 0
30 is_nullable: 0
32 =head2 flag
34 data_type: 'varchar'
35 is_nullable: 1
36 size: 30
38 =head2 flagdesc
40 data_type: 'varchar'
41 is_nullable: 1
42 size: 255
44 =head2 defaulton
46 data_type: 'integer'
47 is_nullable: 1
49 =cut
51 __PACKAGE__->add_columns(
52 "bit",
53 { data_type => "integer", default_value => 0, is_nullable => 0 },
54 "flag",
55 { data_type => "varchar", is_nullable => 1, size => 30 },
56 "flagdesc",
57 { data_type => "varchar", is_nullable => 1, size => 255 },
58 "defaulton",
59 { data_type => "integer", is_nullable => 1 },
62 =head1 PRIMARY KEY
64 =over 4
66 =item * L</bit>
68 =back
70 =cut
72 __PACKAGE__->set_primary_key("bit");
74 =head1 RELATIONS
76 =head2 permissions
78 Type: has_many
80 Related object: L<Koha::Schema::Result::Permission>
82 =cut
84 __PACKAGE__->has_many(
85 "permissions",
86 "Koha::Schema::Result::Permission",
87 { "foreign.module_bit" => "self.bit" },
88 { cascade_copy => 0, cascade_delete => 0 },
92 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A4wiP/AM/pdmYrJmuiYIYg
96 # You can replace this text with custom content, and it will be preserved on regeneration