Multicol tests done. Also tweaked the pods and took out my debugger breakpoints.
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Employee.pm
CommitLineData
80021def 1package # hide from PAUSE
4e298a80 2 DBICTest::Schema::Employee;
80021def 3
ff657a43 4use base 'DBIx::Class::Core';
80021def 5
ff657a43 6__PACKAGE__->load_components(qw( Ordered ));
80021def 7
38e48163 8__PACKAGE__->table('employee');
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 },
1d941d67 22 group_id_2 => {
23 data_type => 'integer',
24 is_nullable => 1,
25 },
80021def 26 name => {
27 data_type => 'varchar',
28 size => 100,
29 is_nullable => 1,
30 },
31);
32
33__PACKAGE__->set_primary_key('employee_id');
34__PACKAGE__->position_column('position');
35
dc66dea1 36#__PACKAGE__->add_unique_constraint(position_group => [ qw/position group_id/ ]);
92b0ca0f 37
80021def 38__PACKAGE__->mk_classdata('field_name_for', {
39 employee_id => 'primary key',
40 position => 'list position',
169bb185 41 group_id => 'collection column',
80021def 42 name => 'employee name',
43});
44
451;