| 1 | package Bio::Chado::Schema::Result::Stock::StockDbxrefpropscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Stock/StockDbxrefprop/; |
| 2 | BEGIN { |
| 3 | $Bio::Chado::Schema::Result::Stock::StockDbxrefprop::AUTHORITYscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Stock/StockDbxrefprop/$AUTHORITY. = 'cpan:RBUELS'; |
| 4 | } |
| 5 | { |
| 6 | $Bio::Chado::Schema::Result::Stock::StockDbxrefprop::VERSIONscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Stock/StockDbxrefprop/$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::Stock::StockDbxrefprop |
| 21 | |
| 22 | =head1 DESCRIPTION |
| 23 | |
| 24 | A stock_dbxref can have any number of |
| 25 | slot-value property tags attached to it. This is useful for storing properties related to dbxref annotations of stocks, such as evidence codes, and references, and metadata, such as create/modify dates. This is an alternative to |
| 26 | hardcoding a list of columns in the relational schema, and is |
| 27 | completely extensible. There is a unique constraint, stock_dbxrefprop_c1, for |
| 28 | the combination of stock_dbxref_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank. |
| 29 | |
| 30 | =cut |
| 31 | |
| 32 | __PACKAGE__->tablescip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/table().("stock_dbxrefprop"); |
| 33 | |
| 34 | =head1 ACCESSORS |
| 35 | |
| 36 | =head2 stock_dbxrefprop_id |
| 37 | |
| 38 | data_type: 'integer' |
| 39 | is_auto_increment: 1 |
| 40 | is_nullable: 0 |
| 41 | sequence: 'stock_dbxrefprop_stock_dbxrefprop_id_seq' |
| 42 | |
| 43 | =head2 stock_dbxref_id |
| 44 | |
| 45 | data_type: 'integer' |
| 46 | is_foreign_key: 1 |
| 47 | is_nullable: 0 |
| 48 | |
| 49 | =head2 type_id |
| 50 | |
| 51 | data_type: 'integer' |
| 52 | is_foreign_key: 1 |
| 53 | is_nullable: 0 |
| 54 | |
| 55 | =head2 value |
| 56 | |
| 57 | data_type: 'text' |
| 58 | is_nullable: 1 |
| 59 | |
| 60 | =head2 rank |
| 61 | |
| 62 | data_type: 'integer' |
| 63 | default_value: 0 |
| 64 | is_nullable: 0 |
| 65 | |
| 66 | =cut |
| 67 | |
| 68 | __PACKAGE__->add_columnsscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_columns().( |
| 69 | "stock_dbxrefprop_id", |
| 70 | { |
| 71 | data_type => "integer", |
| 72 | is_auto_increment => 1, |
| 73 | is_nullable => 0, |
| 74 | sequence => "stock_dbxrefprop_stock_dbxrefprop_id_seq", |
| 75 | }, |
| 76 | "stock_dbxref_id", |
| 77 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 78 | "type_id", |
| 79 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 80 | "value", |
| 81 | { data_type => "text", is_nullable => 1 }, |
| 82 | "rank", |
| 83 | { data_type => "integer", default_value => 0, is_nullable => 0 }, |
| 84 | ); |
| 85 | __PACKAGE__->set_primary_keyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/set_primary_key().("stock_dbxrefprop_id"); |
| 86 | __PACKAGE__->add_unique_constraintscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_unique_constraint().("stock_dbxrefprop_c1", ["stock_dbxref_id", "type_id", "rank"]); |
| 87 | |
| 88 | =head1 RELATIONS |
| 89 | |
| 90 | =head2 stock_dbxref |
| 91 | |
| 92 | Type: belongs_to |
| 93 | |
| 94 | Related object: L<Bio::Chado::Schema::Result::Stock::StockDbxref> |
| 95 | |
| 96 | =cut |
| 97 | |
| 98 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 99 | "stock_dbxref", |
| 100 | "Bio::Chado::Schema::Result::Stock::StockDbxref", |
| 101 | { stock_dbxref_id => "stock_dbxref_id" }, |
| 102 | { |
| 103 | cascade_copy => 0, |
| 104 | cascade_delete => 0, |
| 105 | is_deferrable => 1, |
| 106 | on_delete => "CASCADE", |
| 107 | on_update => "CASCADE", |
| 108 | }, |
| 109 | ); |
| 110 | |
| 111 | =head2 type |
| 112 | |
| 113 | Type: belongs_to |
| 114 | |
| 115 | Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm> |
| 116 | |
| 117 | =cut |
| 118 | |
| 119 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 120 | "type", |
| 121 | "Bio::Chado::Schema::Result::Cv::Cvterm", |
| 122 | { cvterm_id => "type_id" }, |
| 123 | { |
| 124 | cascade_copy => 0, |
| 125 | cascade_delete => 0, |
| 126 | is_deferrable => 1, |
| 127 | on_delete => "CASCADE", |
| 128 | on_update => "CASCADE", |
| 129 | }, |
| 130 | ); |
| 131 | |
| 132 | |
| 133 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:59 |
| 134 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fWNuOG73Ns+Z3Ypu/ULzCA |
| 135 | |
| 136 | |
| 137 | # You can replace this text with custom content, and it will be preserved on regeneration |
| 138 | 1; |