use utf8; package FBP::Schema::Result::Option; # Created by DBIx::Class::Schema::Loader # DO NOT MODIFY THE FIRST PART OF THIS FILE =head1 NAME FBP::Schema::Result::Option =cut use strict; use warnings; use Moose; use MooseX::NonMoose; use MooseX::MarkAsMethods autoclean => 1; extends 'DBIx::Class::Core'; =head1 COMPONENTS LOADED =over 4 =item * L =back =cut __PACKAGE__->load_components("InflateColumn::DateTime"); =head1 TABLE: C =cut __PACKAGE__->table("options"); =head1 ACCESSORS =head2 id data_type: 'integer' is_auto_increment: 1 is_nullable: 0 sequence: 'options_id_seq' =head2 question data_type: 'integer' is_foreign_key: 1 is_nullable: 0 =head2 label data_type: 'varchar' is_nullable: 0 size: 256 =cut __PACKAGE__->add_columns( "id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0, sequence => "options_id_seq", }, "question", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "label", { data_type => "varchar", is_nullable => 0, size => 256 }, ); =head1 PRIMARY KEY =over 4 =item * L =back =cut __PACKAGE__->set_primary_key("id"); =head1 RELATIONS =head2 question Type: belongs_to Related object: L =cut __PACKAGE__->belongs_to( "question", "FBP::Schema::Result::Question", { id => "question" }, { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" }, ); =head2 votes Type: has_many Related object: L =cut __PACKAGE__->has_many( "votes", "FBP::Schema::Result::Vote", { "foreign.option" => "self.id" }, { cascade_copy => 0, cascade_delete => 0 }, ); # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-04-16 20:57:55 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MHuHdh1TNt7StsGgKR+D3Q =head1 AUTHOR Dag-Erling Smørgrav =head1 LICENSE This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. =cut __PACKAGE__->meta->make_immutable; 1; # $FreeBSD$