use utf8;
package Model::DB::Result::Thing;
use base 'DBIx::Class::Core';
use strict;
use warnings;
__PACKAGE__->table("things");
# etc. etc. some fields are defined here
__PACKAGE__->add_columns(
"id",
{
data_type => "integer",
is_auto_increment => 1,
is_nullable => 0,
},
"name",
{ data_type => "text", is_nullable => 1 },
####
use utf8;
package Model::DB::Result::OtherThing;
use base 'DBIx::Class::Core';
use strict;
use warnings;
__PACKAGE__->table("otherthings");
# etc. etc. some fields are defined here
__PACKAGE__->add_columns(
"id",
{
data_type => "integer",
is_auto_increment => 1,
is_nullable => 0,
},
"othername",
{ data_type => "text", is_nullable => 1 },
####
[debug] Loaded components:
.---------------------------------------------------------------------------------------------------------+----------.
| Class | Type |
+---------------------------------------------------------------------------------------------------------+----------+
| Console::Controller::OtherThing | instance |
| [snip] | |
| Console::Model::DB::Thing | class |
| Console::Model::DB::OtherThing | class |