2 package Debbugs::DB::Result::SrcAssociation;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::SrcAssociation - Source <-> suite associations
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<src_associations>
36 __PACKAGE__->table("src_associations");
45 sequence: 'src_associations_id_seq'
47 Source <-> suite association id
55 Suite id (matches suite)
63 Source version id (matches src_ver)
67 data_type: 'timestamp with time zone'
68 default_value: current_timestamp
70 original: {default_value => \"now()"}
72 Time this source package entered this suite
76 data_type: 'timestamp with time zone'
77 default_value: current_timestamp
79 original: {default_value => \"now()"}
81 Time this entry was modified
85 __PACKAGE__->add_columns(
88 data_type => "integer",
89 is_auto_increment => 1,
91 sequence => "src_associations_id_seq",
94 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
96 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
99 data_type => "timestamp with time zone",
100 default_value => \"current_timestamp",
102 original => { default_value => \"now()" },
106 data_type => "timestamp with time zone",
107 default_value => \"current_timestamp",
109 original => { default_value => \"now()" },
123 __PACKAGE__->set_primary_key("id");
125 =head1 UNIQUE CONSTRAINTS
127 =head2 C<src_associations_source_suite>
139 __PACKAGE__->add_unique_constraint("src_associations_source_suite", ["source", "suite"]);
147 Related object: L<Debbugs::DB::Result::SrcVer>
151 __PACKAGE__->belongs_to(
153 "Debbugs::DB::Result::SrcVer",
155 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
162 Related object: L<Debbugs::DB::Result::Suite>
166 __PACKAGE__->belongs_to(
168 "Debbugs::DB::Result::Suite",
170 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
174 # Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-11-24 08:52:49
175 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:B3gOeYD0JxOUtV92mBocZQ
178 # You can replace this text with custom code or comments, and it will be preserved on regeneration