]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Tag.pm
add initial work on sql for debbugs
[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
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 =head2 tag
46
47   data_type: 'text'
48   is_nullable: 0
49
50 =head2 obsolete
51
52   data_type: 'boolean'
53   default_value: false
54   is_nullable: 1
55
56 =cut
57
58 __PACKAGE__->add_columns(
59   "id",
60   {
61     data_type         => "integer",
62     is_auto_increment => 1,
63     is_nullable       => 0,
64     sequence          => "tag_id_seq",
65   },
66   "tag",
67   { data_type => "text", is_nullable => 0 },
68   "obsolete",
69   { data_type => "boolean", default_value => \"false", is_nullable => 1 },
70 );
71
72 =head1 PRIMARY KEY
73
74 =over 4
75
76 =item * L</id>
77
78 =back
79
80 =cut
81
82 __PACKAGE__->set_primary_key("id");
83
84 =head1 UNIQUE CONSTRAINTS
85
86 =head2 C<tag_tag_key>
87
88 =over 4
89
90 =item * L</tag>
91
92 =back
93
94 =cut
95
96 __PACKAGE__->add_unique_constraint("tag_tag_key", ["tag"]);
97
98 =head1 RELATIONS
99
100 =head2 bug_tags
101
102 Type: has_many
103
104 Related object: L<Debbugs::DB::Result::BugTag>
105
106 =cut
107
108 __PACKAGE__->has_many(
109   "bug_tags",
110   "Debbugs::DB::Result::BugTag",
111   { "foreign.tag_id" => "self.id" },
112   { cascade_copy => 0, cascade_delete => 0 },
113 );
114
115
116 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-07-17 21:09:18
117 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4ea1AINoa4KQxMnX4oZwmA
118
119
120 # You can replace this text with custom code or comments, and it will be preserved on regeneration
121 1;