| 1 | package DBIO::Test::Schema::Bookmark; | ||
| 2 | # ABSTRACT: Test result class for the bookmark table | ||
| 3 | |||
| 4 | 256 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 256 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 256 | our $VERSION = '0.900007'; | |
| 8 | |||
| 9 | 256 | ▶ | use base qw/DBIO::Test::BaseResult/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 256 | __PACKAGE__->table('bookmark'); | |
| 12 | 256 | __PACKAGE__->add_columns( | |
| 13 | 'id' => { | ||
| 14 | data_type => 'integer', | ||
| 15 | is_auto_increment => 1 | ||
| 16 | }, | ||
| 17 | 'link' => { | ||
| 18 | data_type => 'integer', | ||
| 19 | is_nullable => 1, | ||
| 20 | }, | ||
| 21 | ); | ||
| 22 | |||
| 23 | 256 | __PACKAGE__->set_primary_key('id'); | |
| 24 | |||
| 25 | 256 | require DBIO::Test::Schema::Link; # so we can get a columnlist | |
| 26 | __PACKAGE__->belongs_to( | ||
| 27 | link => 'DBIO::Test::Schema::Link', 'link', { | ||
| 28 | on_delete => 'SET NULL', | ||
| 29 | join_type => 'LEFT', | ||
| 30 | 256 | proxy => { map { join('_', 'link', $_) => $_ } DBIO::Test::Schema::Link->columns }, | |
| 31 | }); | ||
| 32 | |||
| 33 | 256 | 1; | |
| 34 | |||
| 35 | __END__ | ||