« blib/lib/App/Netdisco/DB/Result/Enterprise.pm
↑ Summary
blib/lib/App/Netdisco/DB/Result/L3DomainMember.pm »
| 1 | use utf8; | ||
| 2 | package App::Netdisco::DB::Result::L3Domain; | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | use base 'App::Netdisco::DB::Result'; | ||
| 8 | __PACKAGE__->table("l3_domain"); | ||
| 9 | __PACKAGE__->add_columns( | ||
| 10 | "id", | ||
| 11 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
| 12 | "name", | ||
| 13 | { data_type => "text", is_nullable => 0 }, | ||
| 14 | "inferred_name", | ||
| 15 | { data_type => "text", is_nullable => 1 }, | ||
| 16 | ); | ||
| 17 | __PACKAGE__->set_primary_key("id"); | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | App::Netdisco::DB::Result::L3Domain | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | A set of VRF instances whose address space is shared. Domain 0, named by | ||
| 26 | the empty string, is the default table. | ||
| 27 | |||
| 28 | =head1 RELATIONSHIPS | ||
| 29 | |||
| 30 | =head2 members | ||
| 31 | |||
| 32 | Returns the C<l3_domain_member> rows placed in this domain. | ||
| 33 | |||
| 34 | =cut | ||
| 35 | |||
| 36 | __PACKAGE__->has_many( members => 'App::Netdisco::DB::Result::L3DomainMember', | ||
| 37 | { 'foreign.domain_id' => 'self.id' } ); | ||
| 38 | |||
| 39 | 1; |