]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BinAssociation.pm
Add bin and source associations
[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
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 =head2 suite
46
47   data_type: 'integer'
48   is_foreign_key: 1
49   is_nullable: 0
50
51 =head2 bin
52
53   data_type: 'integer'
54   is_foreign_key: 1
55   is_nullable: 0
56
57 =head2 created
58
59   data_type: 'timestamp with time zone'
60   default_value: current_timestamp
61   is_nullable: 0
62   original: {default_value => \"now()"}
63
64 =head2 modified
65
66   data_type: 'timestamp with time zone'
67   default_value: current_timestamp
68   is_nullable: 0
69   original: {default_value => \"now()"}
70
71 =cut
72
73 __PACKAGE__->add_columns(
74   "id",
75   {
76     data_type         => "integer",
77     is_auto_increment => 1,
78     is_nullable       => 0,
79     sequence          => "bin_associations_id_seq",
80   },
81   "suite",
82   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
83   "bin",
84   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
85   "created",
86   {
87     data_type     => "timestamp with time zone",
88     default_value => \"current_timestamp",
89     is_nullable   => 0,
90     original      => { default_value => \"now()" },
91   },
92   "modified",
93   {
94     data_type     => "timestamp with time zone",
95     default_value => \"current_timestamp",
96     is_nullable   => 0,
97     original      => { default_value => \"now()" },
98   },
99 );
100
101 =head1 PRIMARY KEY
102
103 =over 4
104
105 =item * L</id>
106
107 =back
108
109 =cut
110
111 __PACKAGE__->set_primary_key("id");
112
113 =head1 RELATIONS
114
115 =head2 bin
116
117 Type: belongs_to
118
119 Related object: L<Debbugs::DB::Result::BinVer>
120
121 =cut
122
123 __PACKAGE__->belongs_to(
124   "bin",
125   "Debbugs::DB::Result::BinVer",
126   { id => "bin" },
127   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
128 );
129
130 =head2 suite
131
132 Type: belongs_to
133
134 Related object: L<Debbugs::DB::Result::Suite>
135
136 =cut
137
138 __PACKAGE__->belongs_to(
139   "suite",
140   "Debbugs::DB::Result::Suite",
141   { id => "suite" },
142   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
143 );
144
145
146 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-25 00:09:07
147 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/cCrHn40eoiD6aOPmXU8dw
148
149
150 # You can replace this text with custom code or comments, and it will be preserved on regeneration
151 1;