2 package Debbugs::DB::Result::BinAssociation;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BinAssociation - Binary <-> suite associations
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<bin_associations>
34 __PACKAGE__->table("bin_associations");
43 sequence: 'bin_associations_id_seq'
45 Binary <-> suite association id
53 Suite id (matches suite)
61 Binary version id (matches bin_ver)
65 data_type: 'timestamp with time zone'
66 default_value: current_timestamp
68 original: {default_value => \"now()"}
70 Time this binary package entered this suite
74 data_type: 'timestamp with time zone'
75 default_value: current_timestamp
77 original: {default_value => \"now()"}
79 Time this entry was modified
83 __PACKAGE__->add_columns(
86 data_type => "integer",
87 is_auto_increment => 1,
89 sequence => "bin_associations_id_seq",
92 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
94 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
97 data_type => "timestamp with time zone",
98 default_value => \"current_timestamp",
100 original => { default_value => \"now()" },
104 data_type => "timestamp with time zone",
105 default_value => \"current_timestamp",
107 original => { default_value => \"now()" },
121 __PACKAGE__->set_primary_key("id");
129 Related object: L<Debbugs::DB::Result::BinVer>
133 __PACKAGE__->belongs_to(
135 "Debbugs::DB::Result::BinVer",
137 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
144 Related object: L<Debbugs::DB::Result::Suite>
148 __PACKAGE__->belongs_to(
150 "Debbugs::DB::Result::Suite",
152 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
156 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:23:58
157 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zEtAfQAP6UdXRqAF3PaBGA
160 # You can replace this text with custom code or comments, and it will be preserved on regeneration