2 package Debbugs::DB::Result::Severity;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::Severity - Bug severity
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
28 __PACKAGE__->load_components("InflateColumn::DateTime");
30 =head1 TABLE: C<severity>
34 __PACKAGE__->table("severity");
43 sequence: 'severity_id_seq'
60 Severity ordering (more severe severities have higher numbers)
68 True if severity is a strong severity
76 Whether a severity level is obsolete (should not be set on new bugs)
80 __PACKAGE__->add_columns(
83 data_type => "integer",
84 is_auto_increment => 1,
86 sequence => "severity_id_seq",
89 { data_type => "text", is_nullable => 0 },
91 { data_type => "integer", default_value => 5, is_nullable => 0 },
93 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
95 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
108 __PACKAGE__->set_primary_key("id");
110 =head1 UNIQUE CONSTRAINTS
112 =head2 C<severity_severity_key>
122 __PACKAGE__->add_unique_constraint("severity_severity_key", ["severity"]);
130 Related object: L<Debbugs::DB::Result::Bug>
134 __PACKAGE__->has_many(
136 "Debbugs::DB::Result::Bug",
137 { "foreign.severity" => "self.id" },
138 { cascade_copy => 0, cascade_delete => 0 },
142 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 19:35:10
143 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SVJ20W+hu/tjDthRG38xtA
146 # You can replace this text with custom code or comments, and it will be preserved on regeneration