| 1 | package Bio::Chado::Schema::Result::Cv::Cvtermsynonymscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Cv/Cvtermsynonym/; |
| 2 | BEGIN { |
| 3 | $Bio::Chado::Schema::Result::Cv::Cvtermsynonym::AUTHORITYscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Cv/Cvtermsynonym/$AUTHORITY. = 'cpan:RBUELS'; |
| 4 | } |
| 5 | { |
| 6 | $Bio::Chado::Schema::Result::Cv::Cvtermsynonym::VERSIONscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Cv/Cvtermsynonym/$VERSION. = '0.20000'; |
| 7 | } |
| 8 | |
| 9 | # Created by DBIx::Class::Schema::Loader |
| 10 | # DO NOT MODIFY THE FIRST PART OF THIS FILE |
| 11 | |
| 12 | use strictscip-perl cpan Bio-Chado-Schema 0.20000 strict/; |
| 13 | use warningsscip-perl cpan Bio-Chado-Schema 0.20000 warnings/; |
| 14 | |
| 15 | use basescip-perl cpan Bio-Chado-Schema 0.20000 base/ 'DBIx::Class::Core'; |
| 16 | |
| 17 | |
| 18 | =head1 NAME |
| 19 | |
| 20 | Bio::Chado::Schema::Result::Cv::Cvtermsynonym |
| 21 | |
| 22 | =head1 DESCRIPTION |
| 23 | |
| 24 | A cvterm actually represents a |
| 25 | distinct class or concept. A concept can be refered to by different |
| 26 | phrases or names. In addition to the primary name (cvterm.name) there |
| 27 | can be a number of alternative aliases or synonyms. For example, "T |
| 28 | cell" as a synonym for "T lymphocyte". |
| 29 | |
| 30 | =cut |
| 31 | |
| 32 | __PACKAGE__->tablescip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/table().("cvtermsynonym"); |
| 33 | |
| 34 | =head1 ACCESSORS |
| 35 | |
| 36 | =head2 cvtermsynonym_id |
| 37 | |
| 38 | data_type: 'integer' |
| 39 | is_auto_increment: 1 |
| 40 | is_nullable: 0 |
| 41 | sequence: 'cvtermsynonym_cvtermsynonym_id_seq' |
| 42 | |
| 43 | =head2 cvterm_id |
| 44 | |
| 45 | data_type: 'integer' |
| 46 | is_foreign_key: 1 |
| 47 | is_nullable: 0 |
| 48 | |
| 49 | =head2 synonym |
| 50 | |
| 51 | data_type: 'varchar' |
| 52 | is_nullable: 0 |
| 53 | size: 1024 |
| 54 | |
| 55 | =head2 type_id |
| 56 | |
| 57 | data_type: 'integer' |
| 58 | is_foreign_key: 1 |
| 59 | is_nullable: 1 |
| 60 | |
| 61 | A synonym can be exact, |
| 62 | narrower, or broader than. |
| 63 | |
| 64 | =cut |
| 65 | |
| 66 | __PACKAGE__->add_columnsscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_columns().( |
| 67 | "cvtermsynonym_id", |
| 68 | { |
| 69 | data_type => "integer", |
| 70 | is_auto_increment => 1, |
| 71 | is_nullable => 0, |
| 72 | sequence => "cvtermsynonym_cvtermsynonym_id_seq", |
| 73 | }, |
| 74 | "cvterm_id", |
| 75 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 76 | "synonym", |
| 77 | { data_type => "varchar", is_nullable => 0, size => 1024 }, |
| 78 | "type_id", |
| 79 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 80 | ); |
| 81 | __PACKAGE__->set_primary_keyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/set_primary_key().("cvtermsynonym_id"); |
| 82 | __PACKAGE__->add_unique_constraintscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_unique_constraint().("cvtermsynonym_c1", ["cvterm_id", "synonym"]); |
| 83 | |
| 84 | =head1 RELATIONS |
| 85 | |
| 86 | =head2 type |
| 87 | |
| 88 | Type: belongs_to |
| 89 | |
| 90 | Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm> |
| 91 | |
| 92 | =cut |
| 93 | |
| 94 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 95 | "type", |
| 96 | "Bio::Chado::Schema::Result::Cv::Cvterm", |
| 97 | { cvterm_id => "type_id" }, |
| 98 | { |
| 99 | cascade_copy => 0, |
| 100 | cascade_delete => 0, |
| 101 | is_deferrable => 1, |
| 102 | join_type => "LEFT", |
| 103 | on_delete => "CASCADE", |
| 104 | on_update => "CASCADE", |
| 105 | }, |
| 106 | ); |
| 107 | |
| 108 | =head2 cvterm |
| 109 | |
| 110 | Type: belongs_to |
| 111 | |
| 112 | Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm> |
| 113 | |
| 114 | =cut |
| 115 | |
| 116 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 117 | "cvterm", |
| 118 | "Bio::Chado::Schema::Result::Cv::Cvterm", |
| 119 | { cvterm_id => "cvterm_id" }, |
| 120 | { |
| 121 | cascade_copy => 0, |
| 122 | cascade_delete => 0, |
| 123 | is_deferrable => 1, |
| 124 | on_delete => "CASCADE", |
| 125 | on_update => "CASCADE", |
| 126 | }, |
| 127 | ); |
| 128 | |
| 129 | |
| 130 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:58 |
| 131 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EBWaHSWHseA98nFNK/dThg |
| 132 | |
| 133 | |
| 134 | # You can replace this text with custom content, and it will be preserved on regeneration |
| 135 | 1; |