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