package myHive::Model::Site;
use Moose;
use myHive::Model::Landowner;
use myHive::Model::Area;

use namespace::autoclean;

extends 'Catalyst::Model';

=head1 NAME

myHive::Model::Site - Catalyst Model

=head1 DESCRIPTION

Catalyst Model.

=head1 AUTHOR

root

=head1 LICENSE

This library is free software. You can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

has 'account' 		=> ( is => 'rw',	default => 0 	);
has 'id'           => ( is => 'rw', isa => 'Int',  default => 0    );
has 'name'		=> ( is => 'rw', isa => 'Str'			);
has 'maf_ref'		=> ( is => 'rw', isa => 'Str'			);
has 'latlng'		=> ( is => 'rw', isa => 'Str',	required => 0 , default => ''	);
has 'address_1'		=> ( is => 'rw', isa => 'Str',	required => 0	);
has 'address_2' 	=> ( is => 'rw', isa => 'Str',  required => 0	);
has 'description'	=> ( is => 'rw', isa => 'Str',	required => 0 	);
has 'landid'		=> ( is => 'rw', isa => 'Int',	required => 0,);
		
has 'landowner' => ( is => 'rw', isa => 'myHive::Model::Landowner' );
has 'area'	=> ( is => 'rw', isa => 'myHive::Model::Area' );
has 'broodtype'	=> ( is => 'rw', isa => 'ArrayRef[myHive::Model::BroodType]', default => sub { []; } );

		 

__PACKAGE__->meta->make_immutable;

1;
