Commit | Line | Data |
11b78bd6 |
1 | package DBICTest::Schema::Artist; |
a02675cd |
2 | |
3 | use base 'DBIx::Class::Core'; |
4 | |
333cce60 |
5 | __PACKAGE__->load_components('PK::Auto'); |
6 | |
11b78bd6 |
7 | DBICTest::Schema::Artist->table('artist'); |
0009fa49 |
8 | DBICTest::Schema::Artist->add_columns( |
9 | 'artistid' => { |
10 | data_type => 'integer', |
11 | is_auto_increment => 1 |
12 | }, |
13 | 'name' => { |
14 | data_type => 'varchar', |
15 | is_nullable => 1, |
16 | }, |
17 | ); |
11b78bd6 |
18 | DBICTest::Schema::Artist->set_primary_key('artistid'); |
a02675cd |
19 | |
90e6de6c |
20 | __PACKAGE__->mk_classdata('field_name_for', { |
21 | artistid => 'primary key', |
22 | name => 'artist name', |
23 | }); |
24 | |
a02675cd |
25 | 1; |