Commit | Line | Data |
8273e845 |
1 | package # hide from PAUSE |
78060df8 |
2 | DBICTest::Schema::TypedObject; |
3 | |
4a233f30 |
4 | use warnings; |
5 | use strict; |
6 | |
660cf1be |
7 | use base qw/DBICTest::BaseResult/; |
78060df8 |
8 | |
9 | __PACKAGE__->table('typed_object'); |
10 | __PACKAGE__->add_columns( |
11 | 'objectid' => { |
12 | data_type => 'integer', |
13 | is_auto_increment => 1, |
14 | }, |
15 | 'type' => { |
16 | data_type => 'varchar', |
17 | size => '100', |
18 | }, |
19 | 'value' => { |
20 | data_type => 'varchar', |
21 | size => 100, |
22 | }, |
23 | ); |
24 | __PACKAGE__->set_primary_key('objectid'); |
25 | |
26 | __PACKAGE__->has_many( collection_object => "DBICTest::Schema::CollectionObject", |
27 | { "foreign.object" => "self.objectid" } |
28 | ); |
29 | __PACKAGE__->many_to_many( collections => collection_object => "collection" ); |
30 | |
31 | 1; |