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

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

=head1 NAME

CLMApp::Schema::Result::AgilityBackOfficeCustomerLink

=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<BackOfficeSystemCustomer>

=cut

__PACKAGE__->table("BackOfficeSystemCustomer");

=head1 ACCESSORS

=head2 systemid

  data_type: 'integer'
  is_nullable: 1

=head2 customerid

  data_type: 'bigint'
  is_nullable: 0

=cut

__PACKAGE__->add_columns(
  "systemid",
  { data_type => "integer", is_nullable => 0 },
  "customerid",
  { data_type => "bigint", is_nullable => 0 },
);


__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(
  "customer_related",
  "CLMApp::Schema::Result::Customer",
  { "foreign.customerid" => "self.customerid" },
  { cascade_copy => 0, cascade_delete => 0 },
);

=head2 chainconceptid

Type: belongs_to

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

=cut

__PACKAGE__->belongs_to(
  "customer",
  "CLMApp::Schema::Result::Customer",
  { customerid => "customerid" },
  { 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(
  "system",
  "CLMApp::Schema::Result::BackOfficeSystem",
  { systemid => "systemid" },
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);

# Created by DBIx::Class::Schema::Loader v0.07039 @ 2017-05-06 14:53:22
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fCT+Xujpid9m/Uu6PE58Bg


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