Commit | Line | Data |
c6d74d3e |
1 | package # hide from PAUSE |
2 | DBICTest::Schema::FourKeys; |
a02675cd |
3 | |
660cf1be |
4 | use base qw/DBICTest::BaseResult/; |
a02675cd |
5 | |
11357d09 |
6 | __PACKAGE__->table('fourkeys'); |
7 | __PACKAGE__->add_columns( |
0009fa49 |
8 | 'foo' => { data_type => 'integer' }, |
9 | 'bar' => { data_type => 'integer' }, |
10 | 'hello' => { data_type => 'integer' }, |
11 | 'goodbye' => { data_type => 'integer' }, |
ff1234ad |
12 | 'sensors' => { data_type => 'character', size => 10 }, |
0e773352 |
13 | 'read_count' => { data_type => 'int', is_nullable => 1 }, |
0009fa49 |
14 | ); |
11357d09 |
15 | __PACKAGE__->set_primary_key(qw/foo bar hello goodbye/); |
a02675cd |
16 | |
11357d09 |
17 | __PACKAGE__->has_many( |
256e87b0 |
18 | 'fourkeys_to_twokeys', 'DBICTest::Schema::FourKeys_to_TwoKeys', { |
3bd6e3e0 |
19 | 'foreign.f_foo' => 'self.foo', |
20 | 'foreign.f_bar' => 'self.bar', |
21 | 'foreign.f_hello' => 'self.hello', |
22 | 'foreign.f_goodbye' => 'self.goodbye', |
23 | }); |
24 | |
11357d09 |
25 | __PACKAGE__->many_to_many( |
3bd6e3e0 |
26 | 'twokeys', 'fourkeys_to_twokeys', 'twokeys', |
27 | ); |
28 | |
a02675cd |
29 | 1; |