]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Tag.pm
update result classes for new relationships
[debbugs.git] / Debbugs / DB / Result / Tag.pm
1 use utf8;
2 package Debbugs::DB::Result::Tag;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Debbugs::DB::Result::Tag - Bug tags
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 COMPONENTS LOADED
19
20 =over 4
21
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23
24 =back
25
26 =cut
27
28 __PACKAGE__->load_components("InflateColumn::DateTime");
29
30 =head1 TABLE: C<tag>
31
32 =cut
33
34 __PACKAGE__->table("tag");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'tag_id_seq'
44
45 Tag id
46
47 =head2 tag
48
49   data_type: 'text'
50   is_nullable: 0
51
52 Tag name
53
54 =head2 obsolete
55
56   data_type: 'boolean'
57   default_value: false
58   is_nullable: 1
59
60 Whether a tag is obsolete (should not be set on new bugs)
61
62 =cut
63
64 __PACKAGE__->add_columns(
65   "id",
66   {
67     data_type         => "integer",
68     is_auto_increment => 1,
69     is_nullable       => 0,
70     sequence          => "tag_id_seq",
71   },
72   "tag",
73   { data_type => "text", is_nullable => 0 },
74   "obsolete",
75   { data_type => "boolean", default_value => \"false", is_nullable => 1 },
76 );
77
78 =head1 PRIMARY KEY
79
80 =over 4
81
82 =item * L</id>
83
84 =back
85
86 =cut
87
88 __PACKAGE__->set_primary_key("id");
89
90 =head1 UNIQUE CONSTRAINTS
91
92 =head2 C<tag_tag_key>
93
94 =over 4
95
96 =item * L</tag>
97
98 =back
99
100 =cut
101
102 __PACKAGE__->add_unique_constraint("tag_tag_key", ["tag"]);
103
104 =head1 RELATIONS
105
106 =head2 bug_tags
107
108 Type: has_many
109
110 Related object: L<Debbugs::DB::Result::BugTag>
111
112 =cut
113
114 __PACKAGE__->has_many(
115   "bug_tags",
116   "Debbugs::DB::Result::BugTag",
117   { "foreign.tag" => "self.id" },
118   { cascade_copy => 0, cascade_delete => 0 },
119 );
120
121
122 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-01 15:46:42
123 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O+iuATuRz+/8rETu8oYO9Q
124
125
126 # You can replace this text with custom code or comments, and it will be preserved on regeneration
127 1;