]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Tag.pm
switch to compatibility level 12
[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 =item * L<DBIx::Class::TimeStamp>
25
26 =back
27
28 =cut
29
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
31
32 =head1 TABLE: C<tag>
33
34 =cut
35
36 __PACKAGE__->table("tag");
37
38 =head1 ACCESSORS
39
40 =head2 id
41
42   data_type: 'integer'
43   is_auto_increment: 1
44   is_nullable: 0
45   sequence: 'tag_id_seq'
46
47 Tag id
48
49 =head2 tag
50
51   data_type: 'text'
52   is_nullable: 0
53
54 Tag name
55
56 =head2 obsolete
57
58   data_type: 'boolean'
59   default_value: false
60   is_nullable: 1
61
62 Whether a tag is obsolete (should not be set on new bugs)
63
64 =cut
65
66 __PACKAGE__->add_columns(
67   "id",
68   {
69     data_type         => "integer",
70     is_auto_increment => 1,
71     is_nullable       => 0,
72     sequence          => "tag_id_seq",
73   },
74   "tag",
75   { data_type => "text", is_nullable => 0 },
76   "obsolete",
77   { data_type => "boolean", default_value => \"false", is_nullable => 1 },
78 );
79
80 =head1 PRIMARY KEY
81
82 =over 4
83
84 =item * L</id>
85
86 =back
87
88 =cut
89
90 __PACKAGE__->set_primary_key("id");
91
92 =head1 UNIQUE CONSTRAINTS
93
94 =head2 C<tag_tag_key>
95
96 =over 4
97
98 =item * L</tag>
99
100 =back
101
102 =cut
103
104 __PACKAGE__->add_unique_constraint("tag_tag_key", ["tag"]);
105
106 =head1 RELATIONS
107
108 =head2 bug_tags
109
110 Type: has_many
111
112 Related object: L<Debbugs::DB::Result::BugTag>
113
114 =cut
115
116 __PACKAGE__->has_many(
117   "bug_tags",
118   "Debbugs::DB::Result::BugTag",
119   { "foreign.tag" => "self.id" },
120   { cascade_copy => 0, cascade_delete => 0 },
121 );
122
123
124 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
125 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HH2aKSj4xl+co6qffSdrrQ
126
127
128 # You can replace this text with custom code or comments, and it will be preserved on regeneration
129 1;