Bug 8798: DBIx::Class base classes for all Koha tables
[koha_ffzg] / Koha / Schema / Result / Userflag.pm
1 package Koha::Schema::Result::Userflag;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::Userflag
15
16 =cut
17
18 __PACKAGE__->table("userflags");
19
20 =head1 ACCESSORS
21
22 =head2 bit
23
24   data_type: 'integer'
25   default_value: 0
26   is_nullable: 0
27
28 =head2 flag
29
30   data_type: 'varchar'
31   is_nullable: 1
32   size: 30
33
34 =head2 flagdesc
35
36   data_type: 'varchar'
37   is_nullable: 1
38   size: 255
39
40 =head2 defaulton
41
42   data_type: 'integer'
43   is_nullable: 1
44
45 =cut
46
47 __PACKAGE__->add_columns(
48   "bit",
49   { data_type => "integer", default_value => 0, is_nullable => 0 },
50   "flag",
51   { data_type => "varchar", is_nullable => 1, size => 30 },
52   "flagdesc",
53   { data_type => "varchar", is_nullable => 1, size => 255 },
54   "defaulton",
55   { data_type => "integer", is_nullable => 1 },
56 );
57 __PACKAGE__->set_primary_key("bit");
58
59 =head1 RELATIONS
60
61 =head2 permissions
62
63 Type: has_many
64
65 Related object: L<Koha::Schema::Result::Permission>
66
67 =cut
68
69 __PACKAGE__->has_many(
70   "permissions",
71   "Koha::Schema::Result::Permission",
72   { "foreign.module_bit" => "self.bit" },
73   { cascade_copy => 0, cascade_delete => 0 },
74 );
75
76
77 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7eKK9jZ+GryvazfRyKOIBw
79
80
81 # You can replace this text with custom content, and it will be preserved on regeneration
82 1;