1 package DBICTest::Schema::Artist;
3 use base 'DBIx::Class::Core';
5 __PACKAGE__->load_components('PK::Auto');
7 DBICTest::Schema::Artist->table('artist');
8 DBICTest::Schema::Artist->add_columns(
10 data_type => 'integer',
11 is_auto_increment => 1
14 data_type => 'varchar',
18 DBICTest::Schema::Artist->set_primary_key('artistid');
20 __PACKAGE__->mk_classdata('field_name_for', {
21 artistid => 'primary key',
22 name => 'artist name',