Test for copy() compatibility
[dbsrgits/DBIx-Class-Tree.git] / t / lib / TreeTest / Schema / Node.pm
1 package TreeTest::Schema::Node;
2 use strict;
3 use warnings;
4
5 use base qw( DBIx::Class );
6
7 __PACKAGE__->load_components(qw(
8     PK::Auto
9     Core
10 ));
11
12 __PACKAGE__->table('nodes');
13
14 __PACKAGE__->add_columns(
15     node_id => { is_auto_increment => 1 },
16   qw/
17     name
18     parent_id
19     position
20     lft
21     rgt
22   /
23 );
24
25 __PACKAGE__->set_primary_key( 'node_id' );
26
27 1;