2 package Debbugs::DB::Result::BugStatusCache;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BugStatusCache - Bug Status Cache
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
32 =head1 TABLE: C<bug_status_cache>
36 __PACKAGE__->table("bug_status_cache");
46 Bug number (matches bug)
54 Suite id (matches suite)
62 Architecture id (matches arch)
67 extra: {custom_type_name => "bug_status_type",list => ["pending","forwarded","pending-fixed","fixed","absent","done"]}
74 data_type: 'timestamp with time zone'
75 default_value: current_timestamp
77 original: {default_value => \"now()"}
79 Time that this status was last modified
83 data_type: 'timestamp with time zone'
84 default_value: current_timestamp
86 original: {default_value => \"now()"}
88 Time that this status was last calculated
92 __PACKAGE__->add_columns(
94 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
96 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
98 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
103 custom_type_name => "bug_status_type",
117 data_type => "timestamp with time zone",
118 default_value => \"current_timestamp",
120 original => { default_value => \"now()" },
124 data_type => "timestamp with time zone",
125 default_value => \"current_timestamp",
127 original => { default_value => \"now()" },
131 =head1 UNIQUE CONSTRAINTS
133 =head2 C<bug_status_cache_bug_suite_arch_idx>
147 __PACKAGE__->add_unique_constraint(
148 "bug_status_cache_bug_suite_arch_idx",
149 ["bug", "suite", "arch"],
158 Related object: L<Debbugs::DB::Result::Arch>
162 __PACKAGE__->belongs_to(
164 "Debbugs::DB::Result::Arch",
169 on_delete => "CASCADE",
170 on_update => "CASCADE",
178 Related object: L<Debbugs::DB::Result::Bug>
182 __PACKAGE__->belongs_to(
184 "Debbugs::DB::Result::Bug",
186 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
193 Related object: L<Debbugs::DB::Result::Suite>
197 __PACKAGE__->belongs_to(
199 "Debbugs::DB::Result::Suite",
204 on_delete => "CASCADE",
205 on_update => "CASCADE",
210 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
211 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dgaCogdpUWo99BQhdH68Mg
214 # You can replace this text with custom code or comments, and it will be preserved on regeneration