Schema-RackTables
view release on metacpan or search on metacpan
lib/Schema/RackTables/0_17_4/Result/Port.pm view on Meta::CPAN
extra => { unsigned => 1 },
is_foreign_key => 1,
is_nullable => 0,
},
"name",
{ data_type => "char", is_nullable => 0, size => 255 },
"type",
{ data_type => "integer", extra => { unsigned => 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<per_object>
=over 4
=item * L</object_id>
=item * L</name>
=item * L</type>
=back
=cut
__PACKAGE__->add_unique_constraint("per_object", ["object_id", "name", "type"]);
=head1 RELATIONS
=head2 link_porta
Type: might_have
Related object: L<Schema::RackTables::0_17_4::Result::Link>
=cut
__PACKAGE__->might_have(
"link_porta",
"Schema::RackTables::0_17_4::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_4::Result::Link>
=cut
__PACKAGE__->might_have(
"link_portb",
"Schema::RackTables::0_17_4::Result::Link",
{ "foreign.portb" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 object
Type: belongs_to
Related object: L<Schema::RackTables::0_17_4::Result::RackObject>
=cut
__PACKAGE__->belongs_to(
"object",
"Schema::RackTables::0_17_4::Result::RackObject",
{ id => "object_id" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);
# Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:04:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dodFMaCwC4US4FlHHmhocA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
( run in 1.115 second using v1.01-cache-2.11-cpan-140bd7fdf52 )