da7444ea9b4ce906536927cdc1afbedca9cfb309
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / Employee / Positioned.pm
1 package # hide from PAUSE 
2     DBICTest::Schema::Employee::Positioned;
3
4 use base 'DBIx::Class';
5
6 __PACKAGE__->load_components(qw( Positioned PK::Auto Core ));
7
8 __PACKAGE__->table('employees_positioned');
9
10 __PACKAGE__->add_columns(
11     employee_id => {
12         data_type => 'integer',
13         is_auto_increment => 1
14     },
15     position => {
16         data_type => 'integer',
17     },
18     name => {
19         data_type => 'varchar',
20         size      => 100,
21         is_nullable => 1,
22     },
23 );
24
25 __PACKAGE__->set_primary_key('employee_id');
26 __PACKAGE__->position_column('position');
27
28 __PACKAGE__->mk_classdata('field_name_for', {
29     employee_id => 'primary key',
30     position    => 'list position',
31     name        => 'employee name',
32 });
33
34 1;