Renamed DBIC::Positional as DBIC::Ordered.
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Employee.pm
CommitLineData
80021def 1package # hide from PAUSE
4e298a80 2 DBICTest::Schema::Employee;
80021def 3
4use base 'DBIx::Class';
5
a733c37f 6__PACKAGE__->load_components(qw( Ordered PK::Auto Core ));
80021def 7
4e298a80 8__PACKAGE__->table('employees');
80021def 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 },
169bb185 18 group_id => {
19 data_type => 'integer',
20 is_nullable => 1,
21 },
80021def 22 name => {
23 data_type => 'varchar',
24 size => 100,
25 is_nullable => 1,
26 },
27);
28
29__PACKAGE__->set_primary_key('employee_id');
30__PACKAGE__->position_column('position');
31
32__PACKAGE__->mk_classdata('field_name_for', {
33 employee_id => 'primary key',
34 position => 'list position',
169bb185 35 group_id => 'collection column',
80021def 36 name => 'employee name',
37});
38
391;