Update to add myself to contributors and to hide Modules from the PAUSE Indexer.
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / TreeLike.pm
CommitLineData
38a0b4ff 1package DBICTest::Schema::TreeLike;
2
3use base qw/DBIx::Class/;
4
5__PACKAGE__->load_components(qw/PK::Auto::SQLite Core/);
6
7__PACKAGE__->table('treelike');
8__PACKAGE__->add_columns(
9 'id' => { data_type => 'integer', is_auto_increment => 1 },
10 'parent' => { data_type => 'integer' },
11 'name' => { data_type => 'varchar' },
12);
13__PACKAGE__->set_primary_key(qw/id/);
14__PACKAGE__->belongs_to('parent', 'TreeLike',
15 { 'foreign.id' => 'self.parent' });
16
171;