use utf8;
package CLMApp::Schema::Result::BackOfficeSystemChainConcept;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

=head1 NAME

CLMApp::Schema::Result::BackOfficeSystemChainConcept

=cut

use strict;
use warnings;

use base 'DBIx::Class::Core';

=head1 COMPONENTS LOADED

=over 4

=item * L<DBIx::Class::InflateColumn::DateTime>

=back

=cut

__PACKAGE__->load_components("InflateColumn::DateTime");

=head1 TABLE: C<BackOfficeSystemChainConcept>

=cut

__PACKAGE__->table("BackOfficeSystemChainConcept");

=head1 ACCESSORS

=head2 systemid

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

=head2 chainconceptid

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

=cut

__PACKAGE__->add_columns(
  "systemid",
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
  "chainconceptid",
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
);

=head1 RELATIONS

=head2 back_office_system

Type: might_have

Related object: L<CLMApp::Schema::Result::BackOfficeSystem>

=cut



__PACKAGE__->might_have(
  "back_office_system",
  "CLMApp::Schema::Result::BackOfficeSystem",
  { "foreign.systemid" => "self.systemid" },
  { cascade_copy => 0, cascade_delete => 0 },
);

=head2 chain_concept

Type: might_have

Related object: L<CLMApp::Schema::Result::ChainConcept>

=cut

__PACKAGE__->might_have(
  "chain_concept",
  "CLMApp::Schema::Result::ChainConcept",
  { "foreign.chainconceptid" => "self.chainconceptid" },
  { cascade_copy => 0, cascade_delete => 0 },
);

=head2 chainconceptid

Type: belongs_to

Related object: L<CLMApp::Schema::Result::ChainConcept>

=cut

__PACKAGE__->belongs_to(
  "chainconcept",
  "CLMApp::Schema::Result::ChainConcept",
  { chainconceptid => "chainconceptid" },
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);

=head2 systemid

Type: belongs_to

Related object: L<CLMApp::Schema::Result::BackOfficeSystem>

=cut

__PACKAGE__->belongs_to(
  "systemid",
  "CLMApp::Schema::Result::BackOfficeSystem",
  { systemid => "systemid" },
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);


# Created by DBIx::Class::Schema::Loader v0.07039 @ 2017-06-01 23:26:10
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nwbKtQzrtyiScMmxeR8Bng


# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
