1 package # hide from PAUSE
2 DBICTest::Schema::Link;
4 use base qw/DBICTest::BaseResult/;
9 __PACKAGE__->table('link');
10 __PACKAGE__->add_columns(
12 data_type => 'integer',
13 is_auto_increment => 1
16 data_type => 'varchar',
21 data_type => 'varchar',
26 __PACKAGE__->set_primary_key('id');
28 __PACKAGE__->has_many ( bookmarks => 'DBICTest::Schema::Bookmark', 'link', { cascade_delete => 0 } );
30 use overload '""' => sub { shift->url }, fallback=> 1;