3 See the NOTICE file distributed with
this work
for additional information
4 regarding copyright ownership.
6 Licensed under the Apache License, Version 2.0 (the
"License");
7 you may not use
this file except in compliance with the License.
8 You may obtain a copy of the License at
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an
"AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License
for the specific language governing permissions and
16 limitations under the License.
20 package Xref::Schema::Result::AltAllele;
25 Xref::Schema::Result::AltAllele
33 use base
'DBIx::Class::Core';
35 =head1 TABLE: C<alt_allele>
39 __PACKAGE__->table(
"alt_allele");
46 extra: {
unsigned => 1}
53 extra: {
unsigned => 1}
60 extra: {
unsigned => 1}
65 __PACKAGE__->add_columns(
68 data_type =>
"integer",
69 extra => {
unsigned => 1 },
70 is_auto_increment => 1,
74 { data_type =>
"integer", extra => {
unsigned => 1 }, is_nullable => 0 },
77 data_type =>
"integer",
79 extra => {
unsigned => 1 },
84 =head1 UNIQUE CONSTRAINTS
90 =item * L</alt_allele_id>
98 __PACKAGE__->add_unique_constraint(
"allele_idx", [
"alt_allele_id",
"gene_id"]);
110 # __PACKAGE__->add_unique_constraint("gene_idx", ["gene_id"]);
112 __PACKAGE__->has_one(
'gene',
'Xref::Schema::Result::GeneStableId', {
'foreign.internal_id' =>
'self.gene_id'});