package ProjectTaskToDo::Schema::Result::ProjectLink;

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

use strict;
use warnings;

use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';

__PACKAGE__->load_components("InflateColumn::DateTime", "PK::Auto");

=head1 NAME

ProjectTaskToDo::Schema::Result::ProjectLink

=cut

__PACKAGE__->table("project_link");

=head1 ACCESSORS

=head2 id

  data_type: 'bigint'
  extra: {unsigned => 1}
  is_auto_increment: 1
  is_nullable: 0

=head2 link_type_id

  data_type: 'smallint'
  extra: {unsigned => 1}
  is_nullable: 1

=head2 project_id

  data_type: 'bigint'
  extra: {unsigned => 1}
  is_nullable: 0

=head2 link_url

  data_type: 'varchar'
  is_nullable: 1
  size: 1024

=head2 link_text

  data_type: 'varchar'
  is_nullable: 1
  size: 255

=head2 creator_id

  data_type: 'bigint'
  extra: {unsigned => 1}
  is_nullable: 0

=head2 last_modified

  data_type: 'timestamp'
  default_value: current_timestamp
  is_nullable: 0

=head2 description

  data_type: 'text'
  is_nullable: 1

=cut

__PACKAGE__->add_columns(
  "id",
  {
    data_type => "bigint",
    extra => { unsigned => 1 },
    is_auto_increment => 1,
    is_nullable => 0,
  },
  "link_type_id",
  { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 1 },
  "project_id",
  { data_type => "bigint", extra => { unsigned => 1 }, is_nullable => 0 },
  "link_url",
  { data_type => "varchar", is_nullable => 1, size => 1024 },
  "link_text",
  { data_type => "varchar", is_nullable => 1, size => 255 },
  "creator_id",
  { data_type => "bigint", extra => { unsigned => 1 }, is_nullable => 0 },
  "last_modified",
  {
    data_type     => "timestamp",
    default_value => \"current_timestamp",
    is_nullable   => 0,
  },
  "description",
  { data_type => "text", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id");


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2013-09-12 15:17:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:McgDtDnX+3kEgyGjZMdXnw


__PACKAGE__->belongs_to('creator' => 'ProjectTaskToDo::Schema::Result::Person', 'id');
__PACKAGE__->belongs_to('project' => 'ProjectTaskToDo::Schema::Result::Project', 'project_id');
__PACKAGE__->belongs_to('type' => 'ProjectTaskToDo::Schema::Result::ProjectLinkType', 'link_type_id');


__PACKAGE__->meta->make_immutable;
1;


=head1 COPYRIGHT

Copyright (C) 2008 - 2015 William B. Hauck, http://wbhauck.com

=head1 LICENSE

This file is part of ProjectTaskToDo.

ProjectTaskToDo is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

ProjectTaskToDo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with ProjectTaskToDo.  If not, see <http://www.gnu.org/licenses/>.

=cut
