1
package BookDB::Schema::Result::Book2PK;
6
use base 'DBIx::Class';
8
__PACKAGE__->load_components("Core");
9
__PACKAGE__->table("book2pk");
10
__PACKAGE__->add_columns(
12
{ data_type => "INTEGER", is_nullable => 0, default_value => 1, size => undef },
14
{ data_type => "INTEGER", is_nullable => 0, size => undef },
16
{ data_type => "varchar", is_nullable => 0, size => 100 },
18
{ data_type => "varchar", is_nullable => 0, size => 100,
19
extra => { field_def => { type => 'TextArea', size => '64', temp => 'testing' } },
22
{ data_type => "varchar", is_nullable => 0, size => 100 },
24
{ data_type => "INTEGER", is_nullable => 0, size => undef },
26
{ data_type => "INTEGER", is_nullable => 0, size => undef },
28
__PACKAGE__->set_primary_key("libraryid", "id");
29
__PACKAGE__->add_unique_constraint( 'isbn' => ['libraryid', 'isbn'] );