]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BinAssociation.pm
update for correspondent in maintainer
[debbugs.git] / Debbugs / DB / Result / BinAssociation.pm
1 use utf8;
2 package Debbugs::DB::Result::BinAssociation;
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::BinAssociation - Binary <-> suite associations
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<bin_associations>
31
32 =cut
33
34 __PACKAGE__->table("bin_associations");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'bin_associations_id_seq'
44
45 Binary <-> suite association id
46
47 =head2 suite
48
49   data_type: 'integer'
50   is_foreign_key: 1
51   is_nullable: 0
52
53 Suite id (matches suite)
54
55 =head2 bin
56
57   data_type: 'integer'
58   is_foreign_key: 1
59   is_nullable: 0
60
61 Binary version id (matches bin_ver)
62
63 =head2 created
64
65   data_type: 'timestamp with time zone'
66   default_value: current_timestamp
67   is_nullable: 0
68   original: {default_value => \"now()"}
69
70 Time this binary package entered this suite
71
72 =head2 modified
73
74   data_type: 'timestamp with time zone'
75   default_value: current_timestamp
76   is_nullable: 0
77   original: {default_value => \"now()"}
78
79 Time this entry was modified
80
81 =cut
82
83 __PACKAGE__->add_columns(
84   "id",
85   {
86     data_type         => "integer",
87     is_auto_increment => 1,
88     is_nullable       => 0,
89     sequence          => "bin_associations_id_seq",
90   },
91   "suite",
92   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
93   "bin",
94   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
95   "created",
96   {
97     data_type     => "timestamp with time zone",
98     default_value => \"current_timestamp",
99     is_nullable   => 0,
100     original      => { default_value => \"now()" },
101   },
102   "modified",
103   {
104     data_type     => "timestamp with time zone",
105     default_value => \"current_timestamp",
106     is_nullable   => 0,
107     original      => { default_value => \"now()" },
108   },
109 );
110
111 =head1 PRIMARY KEY
112
113 =over 4
114
115 =item * L</id>
116
117 =back
118
119 =cut
120
121 __PACKAGE__->set_primary_key("id");
122
123 =head1 RELATIONS
124
125 =head2 bin
126
127 Type: belongs_to
128
129 Related object: L<Debbugs::DB::Result::BinVer>
130
131 =cut
132
133 __PACKAGE__->belongs_to(
134   "bin",
135   "Debbugs::DB::Result::BinVer",
136   { id => "bin" },
137   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
138 );
139
140 =head2 suite
141
142 Type: belongs_to
143
144 Related object: L<Debbugs::DB::Result::Suite>
145
146 =cut
147
148 __PACKAGE__->belongs_to(
149   "suite",
150   "Debbugs::DB::Result::Suite",
151   { id => "suite" },
152   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
153 );
154
155
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
158
159
160 # You can replace this text with custom code or comments, and it will be preserved on regeneration
161 1;