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