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

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

=head1 NAME

CLMApp::Schema::Result::DistributorCompany

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

=cut

__PACKAGE__->table("DistributorCompany");

=head1 ACCESSORS

=head2 distributorcompanyid

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0

=head2 name

  data_type: 'varchar'
  is_nullable: 1
  size: 50

=head2 distributoramphireid

  data_type: 'varchar'
  is_nullable: 1
  size: 50

=head2 distributorcode

  data_type: 'varchar'
  is_nullable: 1
  size: 50

=head2 dcnbr

  data_type: 'varchar'
  is_nullable: 1
  size: 50

=head2 active

  data_type: 'integer'
  default_value: 1
  is_nullable: 1

=head2 bpdcode

  data_type: 'varchar'
  is_nullable: 1
  size: 50

=head2 arrowstreamid

  data_type: 'integer'
  default_value: 0
  is_nullable: 1

=head2 edicode

  data_type: 'varchar'
  is_nullable: 1
  size: 255

=head2 asdistributorname

  data_type: 'varchar'
  is_nullable: 1
  size: 256

=cut

__PACKAGE__->add_columns(
  "distributorcompanyid",
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
  "name",
  { data_type => "varchar", is_nullable => 1, size => 50 },
  "distributoramphireid",
  { data_type => "varchar", is_nullable => 1, size => 50 },
  "distributorcode",
  { data_type => "varchar", is_nullable => 1, size => 50 },
  "active",
  { data_type => "integer", is_nullable => 1 },  
  "dcnbr",
  { data_type => "varchar", is_nullable => 1, size => 50 },
  "bpdcode",
  { data_type => "varchar", is_nullable => 1, size => 50 },
  "arrowstreamid",
  { data_type => "integer", default_value => 0, is_nullable => 1 },
  "edicode",
  { data_type => "varchar", is_nullable => 1, size => 255 },
  "asdistributorname",
  { data_type => "varchar", is_nullable => 1, size => 256 },
);

=head1 PRIMARY KEY

=over 4

=item * L</distributorcompanyid>

=back

=cut

__PACKAGE__->set_primary_key("distributorcompanyid");

__PACKAGE__->has_many(
  "customers",
  "CLMApp::Schema::Result::Customer",
  { "foreign.distributorcompany" => "self.distributorcompanyid" },
  { cascade_copy => 0, cascade_delete => 0 },
);

__PACKAGE__->has_many(
  "warehouses",
  "CLMApp::Schema::Result::DistributorWarehouse",
  { "foreign.distributorcompanyid" => "self.distributorcompanyid" },
  { cascade_copy => 0, cascade_delete => 0 },
);

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


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