Massive rewrite of bind handling, and overall simplification of ::Storage::DBI
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / TwoKeyTreeLike.pm
CommitLineData
637ca936 1package # hide from PAUSE
2 DBICTest::Schema::TwoKeyTreeLike;
3
660cf1be 4use base qw/DBICTest::BaseResult/;
637ca936 5
6__PACKAGE__->table('twokeytreelike');
7__PACKAGE__->add_columns(
8 'id1' => { data_type => 'integer' },
9 'id2' => { data_type => 'integer' },
10 'parent1' => { data_type => 'integer' },
11 'parent2' => { data_type => 'integer' },
12 'name' => { data_type => 'varchar',
13 size => 100,
14 },
15);
16__PACKAGE__->set_primary_key(qw/id1 id2/);
7b90bb13 17__PACKAGE__->add_unique_constraint('tktlnameunique' => ['name']);
175e2616 18__PACKAGE__->belongs_to('parent', 'DBICTest::Schema::TwoKeyTreeLike',
637ca936 19 { 'foreign.id1' => 'self.parent1', 'foreign.id2' => 'self.parent2'});
20
211;