]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBICTest/Schema/Employee.pm
tests from multicreate
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBICTest / Schema / Employee.pm
1 package # hide from PAUSE
2 DBICTest::Schema::Employee;
3
4 use base 'DBIx::Class::Core';
5
6 __PACKAGE__->load_components(qw( Ordered ));
7
8 __PACKAGE__->table('employee');
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 group_id => {
19 data_type => 'integer',
20 is_nullable => 1,
21 },
22 group_id_2 => {
23 data_type => 'integer',
24 is_nullable => 1,
25 },
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
36 #__PACKAGE__->add_unique_constraint(position_group => [ qw/position group_id/ ]);
37
38 __PACKAGE__->mk_classdata('field_name_for', {
39 employee_id => 'primary key',
40 position => 'list position',
41 group_id => 'collection column',
42 name => 'employee name',
43 });
44
45 1;
This page took 0.033093 seconds and 4 git commands to generate.