package
BookDB::Schema::DB::Format;
use
strict;
use
warnings;
__PACKAGE__->load_components(
"Core"
);
__PACKAGE__->table(
"format"
);
__PACKAGE__->add_columns(
"id"
,
{
data_type
=>
"INTEGER"
,
is_nullable
=> 0,
size
=>
undef
},
"name"
,
{
data_type
=>
"varchar"
,
is_nullable
=> 0,
size
=> 100 },
);
__PACKAGE__->set_primary_key(
"id"
);
__PACKAGE__->has_many(
"books"
,
"BookDB::Schema::DB::Book"
,
{
"foreign.format"
=>
"self.id"
},
);
1;