5 package App::LazyShoppingList::Schema::Result::ShoppingList;
7 use parent qw( DBIx::Class::Core );
9 __PACKAGE__->table('shopping_lists');
11 __PACKAGE__->add_columns(
12 id => { data_type => 'integer',
13 is_auto_increment => 1,
15 name => { data_type => 'text' },
16 version => { data_type => 'integer' },
19 __PACKAGE__->set_primary_key('id');
21 __PACKAGE__->has_many(
22 items => 'App::LazyShoppingList::Schema::Result::ShoppingListItem' =>