]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BugSeverity.pm
remove bug_severity
[debbugs.git] / Debbugs / DB / Result / BugSeverity.pm
1 use utf8;
2 package Debbugs::DB::Result::BugSeverity;
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::BugSeverity - Bug <-> tag mapping
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<bug_severity>
31
32 =cut
33
34 __PACKAGE__->table("bug_severity");
35
36 =head1 ACCESSORS
37
38 =head2 bug
39
40   data_type: 'integer'
41   is_foreign_key: 1
42   is_nullable: 0
43
44 Bug id (matches bug)
45
46 =head2 severity_id
47
48   data_type: 'integer'
49   is_foreign_key: 1
50   is_nullable: 0
51
52 Severity id (matches severity)
53
54 =cut
55
56 __PACKAGE__->add_columns(
57   "bug",
58   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
59   "severity_id",
60   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
61 );
62
63 =head1 PRIMARY KEY
64
65 =over 4
66
67 =item * L</bug>
68
69 =back
70
71 =cut
72
73 __PACKAGE__->set_primary_key("bug");
74
75 =head1 RELATIONS
76
77 =head2 bug
78
79 Type: belongs_to
80
81 Related object: L<Debbugs::DB::Result::Bug>
82
83 =cut
84
85 __PACKAGE__->belongs_to(
86   "bug",
87   "Debbugs::DB::Result::Bug",
88   { id => "bug" },
89   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90 );
91
92 =head2 severity
93
94 Type: belongs_to
95
96 Related object: L<Debbugs::DB::Result::Severity>
97
98 =cut
99
100 __PACKAGE__->belongs_to(
101   "severity",
102   "Debbugs::DB::Result::Severity",
103   { id => "severity_id" },
104   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
105 );
106
107
108 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LOIST37qyS/Mh96uRH7ZcQ
110
111
112 # You can replace this text with custom code or comments, and it will be preserved on regeneration
113 1;