Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 86ca5c9f77
Fetching contributors…

Cannot retrieve contributors at this time

212 lines (142 sloc) 3.404 kB
use utf8;
package Schema::Result::Entity;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Schema::Result::Entity
=cut
use strict;
use warnings;
use base 'DBIx::Class::Core';
=head1 TABLE: C<entity>
=cut
__PACKAGE__->table("entity");
=head1 ACCESSORS
=head2 et_id
data_type: 'integer'
is_auto_increment: 1
is_nullable: 0
=head2 em_id
data_type: 'integer'
is_foreign_key: 1
is_nullable: 0
=head2 name
data_type: 'text'
is_nullable: 1
=head2 type
data_type: 'text'
is_nullable: 1
=head2 grain
data_type: 'text'
is_nullable: 1
=head2 retention
data_type: 'text'
is_nullable: 1
=head2 format
data_type: 'char'
is_nullable: 1
size: 30
=head2 latency
data_type: 'char'
is_nullable: 1
size: 100
=head2 frequency
data_type: 'char'
is_nullable: 1
size: 100
=head2 scope
data_type: 'text'
is_nullable: 1
=head2 parameters
data_type: 'text'
is_nullable: 1
=head2 comment
data_type: 'text'
is_nullable: 1
=head2 description
data_type: 'text'
is_nullable: 1
=cut
__PACKAGE__->add_columns(
"et_id",
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
"em_id",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"ds_no",
{ data_type => "integer", is_nullable => 1 },
"bus_name",
{ data_type => "text", is_nullable => 1 },
"ds_name",
{ data_type => "text", is_nullable => 1 },
"type",
{ data_type => "text", is_nullable => 1 },
"grain",
{ data_type => "text", is_nullable => 1 },
"retention",
{ data_type => "text", is_nullable => 1 },
"format",
{ data_type => "char", is_nullable => 1, size => 30 },
"latency",
{ data_type => "char", is_nullable => 1, size => 100 },
"frequency",
{ data_type => "char", is_nullable => 1, size => 100 },
"scope",
{ data_type => "text", is_nullable => 1 },
"parameters",
{ data_type => "text", is_nullable => 1 },
"comment",
{ data_type => "text", is_nullable => 1 },
"description",
{ data_type => "text", is_nullable => 1 },
);
=head1 PRIMARY KEY
=over 4
=item * L</et_id>
=back
=cut
__PACKAGE__->set_primary_key("et_id");
=head1 RELATIONS
=head2 e2e_lefts
Type: has_many
Related object: L<Schema::Result::E2e>
=cut
__PACKAGE__->has_many(
"e2e_lefts",
"Schema::Result::E2e",
{ "foreign.left_id" => "self.et_id" },
{ cascade_copy => 0, cascade_delete => 1 },
);
=head2 e2e_rights
Type: has_many
Related object: L<Schema::Result::E2e>
=cut
__PACKAGE__->has_many(
"e2e_rights",
"Schema::Result::E2e",
{ "foreign.right_id" => "self.et_id" },
{ cascade_copy => 0, cascade_delete => 1 },
);
=head2 em
Type: belongs_to
Related object: L<Schema::Result::EntityMaster>
=cut
__PACKAGE__->belongs_to(
"em",
"Schema::Result::EntityMaster",
{ em_id => "em_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
=head2 items
Type: has_many
Related object: L<Schema::Result::Item>
=cut
__PACKAGE__->has_many(
"items",
"Schema::Result::Item",
{ "foreign.et_id" => "self.et_id" },
{ cascade_copy => 0, cascade_delete => 1 },
);
# Created by DBIx::Class::Schema::Loader v0.07024 @ 2012-07-07 20:41:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vYQUSN3YMvOLg6tT0Ouw6Q
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
Jump to Line
Something went wrong with that request. Please try again.