GraphQL-Plugin-Convert-DBIC

 view release on metacpan or  search on metacpan

t/lib-schema-employees/Schema/Result/Department.pm  view on Meta::CPAN


  data_type: 'char'
  is_nullable: 0
  size: 4

=head2 dept_name

  data_type: 'varchar'
  is_nullable: 0
  size: 40

=cut

__PACKAGE__->add_columns(
  "dept_no",
  { data_type => "char", is_nullable => 0, size => 4 },
  "dept_name",
  { data_type => "varchar", is_nullable => 0, size => 40 },
);

=head1 PRIMARY KEY

=over 4

=item * L</dept_no>

=back

=cut

__PACKAGE__->set_primary_key("dept_no");

=head1 UNIQUE CONSTRAINTS

=head2 C<dept_name>

=over 4

=item * L</dept_name>

=back

=cut

__PACKAGE__->add_unique_constraint("dept_name", ["dept_name"]);

=head1 RELATIONS

=head2 dept_emps

Type: has_many

Related object: L<Schema::Result::DeptEmp>

=cut

__PACKAGE__->has_many(
  "dept_emps",
  "Schema::Result::DeptEmp",
  { "foreign.dept_no" => "self.dept_no" },
  { cascade_copy => 0, cascade_delete => 0 },
);

=head2 dept_managers

Type: has_many

Related object: L<Schema::Result::DeptManager>

=cut

__PACKAGE__->has_many(
  "dept_managers",
  "Schema::Result::DeptManager",
  { "foreign.dept_no" => "self.dept_no" },
  { cascade_copy => 0, cascade_delete => 0 },
);


# Created by DBIx::Class::Schema::Loader v0.07049 @ 2019-02-20 11:39:40
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jiAokC5eFFbjLxGwJneVvQ


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



( run in 2.285 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )