1 package # hide from PAUSE
2 DBICTest::Schema::BooksInLibrary;
7 use base qw/DBICTest::BaseResult/;
9 __PACKAGE__->table('books');
10 __PACKAGE__->add_columns(
12 data_type => 'integer',
13 is_auto_increment => 1,
16 data_type => 'varchar',
20 data_type => 'integer',
23 data_type => 'varchar',
27 data_type => 'integer',
31 __PACKAGE__->set_primary_key('id');
33 __PACKAGE__->add_unique_constraint (['title']);
35 __PACKAGE__->resultset_attributes({where => { source => "Library" } });
37 __PACKAGE__->belongs_to ( owner => 'DBICTest::Schema::Owners', 'owner' );