1 package # hide from PAUSE
2 DBICTest::Schema::BooksInLibrary;
7 use base qw/DBICTest::BaseResult/;
9 __PACKAGE__->table('books');
10 __PACKAGE__->add_columns(
12 # part of a test (auto-retrieval of PK regardless of autoinc status)
14 #is_auto_increment => 1,
16 data_type => 'integer',
19 data_type => 'varchar',
23 data_type => 'integer',
26 data_type => 'varchar',
30 data_type => 'integer',
34 __PACKAGE__->set_primary_key('id');
36 __PACKAGE__->add_unique_constraint (['title']);
38 __PACKAGE__->resultset_attributes({where => { source => "Library" } });
40 __PACKAGE__->belongs_to ( owner => 'DBICTest::Schema::Owners', 'owner' );