« blib/lib/DBIO/Test/Schema/ResultDDL/Result/CD.pm
↑ Summary
blib/lib/DBIO/Test/Schema/SelfRefAlias.pm »
| 1 | package DBIO::Test::Schema::SelfRef; | ||
| 2 | # ABSTRACT: Test result class for the self_ref table | ||
| 3 | |||
| 4 | 256 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 256 | our $VERSION = '0.900007'; | |
| 7 | |||
| 8 | 256 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 256 | ▶ | use base qw/DBIO::Test::BaseResult/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 256 | __PACKAGE__->table('self_ref'); | |
| 13 | 256 | __PACKAGE__->add_columns( | |
| 14 | 'id' => { | ||
| 15 | data_type => 'integer', | ||
| 16 | is_auto_increment => 1, | ||
| 17 | }, | ||
| 18 | 'name' => { | ||
| 19 | data_type => 'varchar', | ||
| 20 | size => 100, | ||
| 21 | }, | ||
| 22 | ); | ||
| 23 | 256 | __PACKAGE__->set_primary_key('id'); | |
| 24 | |||
| 25 | 256 | __PACKAGE__->has_many( aliases => 'DBIO::Test::Schema::SelfRefAlias' => 'self_ref' ); | |
| 26 | |||
| 27 | 256 | 1; | |
| 28 | |||
| 29 | __END__ | ||