Schema-RackTables
view release on metacpan or search on metacpan
lib/Schema/RackTables/0_17_5/Result/Port.pm view on Meta::CPAN
is_foreign_key => 1,
is_nullable => 0,
},
"l2address",
{ data_type => "char", is_nullable => 1, size => 64 },
"reservation_comment",
{ data_type => "char", is_nullable => 1, size => 255 },
"label",
{ data_type => "char", is_nullable => 1, size => 255 },
);
=head1 PRIMARY KEY
=over 4
=item * L</id>
=back
=cut
__PACKAGE__->set_primary_key("id");
=head1 UNIQUE CONSTRAINTS
=head2 C<object_iif_oif_name>
=over 4
=item * L</object_id>
=item * L</iif_id>
=item * L</type>
=item * L</name>
=back
=cut
__PACKAGE__->add_unique_constraint(
"object_iif_oif_name",
["object_id", "iif_id", "type", "name"],
);
=head1 RELATIONS
=head2 link_porta
Type: might_have
Related object: L<Schema::RackTables::0_17_5::Result::Link>
=cut
__PACKAGE__->might_have(
"link_porta",
"Schema::RackTables::0_17_5::Result::Link",
{ "foreign.porta" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 link_portb
Type: might_have
Related object: L<Schema::RackTables::0_17_5::Result::Link>
=cut
__PACKAGE__->might_have(
"link_portb",
"Schema::RackTables::0_17_5::Result::Link",
{ "foreign.portb" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 object
Type: belongs_to
Related object: L<Schema::RackTables::0_17_5::Result::RackObject>
=cut
__PACKAGE__->belongs_to(
"object",
"Schema::RackTables::0_17_5::Result::RackObject",
{ id => "object_id" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);
=head2 port_interface_compat
Type: belongs_to
Related object: L<Schema::RackTables::0_17_5::Result::PortInterfaceCompat>
=cut
__PACKAGE__->belongs_to(
"port_interface_compat",
"Schema::RackTables::0_17_5::Result::PortInterfaceCompat",
{ iif_id => "iif_id", oif_id => "type" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);
# Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:04:07
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oNLS3rItBokSaS+fTXGYZw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
( run in 1.669 second using v1.01-cache-2.11-cpan-140bd7fdf52 )