use strict;
__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
__PACKAGE__->table("user");
__PACKAGE__->add_columns(
"user_id",
{ data_type => "INTEGER", is_nullable => 0, size => 8 },
"user_name",
{ data_type => "VARCHAR", is_nullable => 0, size => 32 },
"fav_cat",
{ data_type => "VARCHAR", is_nullable => 0, size => 32 },
"fav_book",
{ data_type => "VARCHAR", is_nullable => 0, size => 32 },
"occupation",
{ data_type => "VARCHAR", is_nullable => 0, size => 32 },
"country_iso",
{ data_type => "character", default_value => undef, is_nullable => 1, size => 2, },
);
__PACKAGE__->set_primary_key("user_id");
#__PACKAGE__->has_many(
# "books",
# "BookDB::Schema::DB::Book",
# { "foreign.author_id" => "self.id" },
#);
__PACKAGE__->belongs_to(
'country',
'BookDB::Schema::DB::Country',
{ iso => 'country_iso' },
);
1;