Schema-RackTables
view release on metacpan or search on metacpan
lib/Schema/RackTables/0_17_5/Result/PortInterfaceCompat.pm view on Meta::CPAN
=cut
__PACKAGE__->add_columns(
"iif_id",
{
data_type => "integer",
extra => { unsigned => 1 },
is_foreign_key => 1,
is_nullable => 0,
},
"oif_id",
{ data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
);
=head1 UNIQUE CONSTRAINTS
=head2 C<pair>
=over 4
=item * L</iif_id>
=item * L</oif_id>
=back
=cut
__PACKAGE__->add_unique_constraint("pair", ["iif_id", "oif_id"]);
=head1 RELATIONS
=head2 iif
Type: belongs_to
Related object: L<Schema::RackTables::0_17_5::Result::PortInnerInterface>
=cut
__PACKAGE__->belongs_to(
"iif",
"Schema::RackTables::0_17_5::Result::PortInnerInterface",
{ id => "iif_id" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);
=head2 ports
Type: has_many
Related object: L<Schema::RackTables::0_17_5::Result::Port>
=cut
__PACKAGE__->has_many(
"ports",
"Schema::RackTables::0_17_5::Result::Port",
{ "foreign.iif_id" => "self.iif_id", "foreign.type" => "self.oif_id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:04:07
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UuFD/t0dL5/mTsE1YNI0iA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
( run in 0.489 second using v1.01-cache-2.11-cpan-140bd7fdf52 )