Commit | Line | Data |
---|---|---|
82958127 | 1 | package TreeTest::Schema::Node; |
2 | use strict; | |
3 | use warnings; | |
4 | ||
5 | use Carp qw( croak ); | |
6 | ||
7 | use base qw( DBIx::Class ); | |
8 | ||
9 | __PACKAGE__->load_components(qw( | |
10 | PK::Auto | |
11 | Core | |
12 | )); | |
13 | ||
14 | __PACKAGE__->table('nodes'); | |
15 | ||
16 | __PACKAGE__->add_columns(qw( | |
17 | node_id | |
18 | name | |
19 | parent_id | |
20 | position | |
21 | lft | |
22 | rgt | |
23 | )); | |
24 | ||
25 | __PACKAGE__->set_primary_key( 'node_id' ); | |
26 | ||
27 | 1; |