ensembl-hive  2.7.0
DependentXref.pm
Go to the documentation of this file.
1 =head1 LICENSE
2 
3 See the NOTICE file distributed with this work for additional information
4 regarding copyright ownership.
5 
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
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
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.
17 
18 =cut
19 
20 package Xref::Schema::Result::DependentXref;
21 
22 
23 =head1 NAME
24 
26 
27 =cut
28 
29 use strict;
30 use warnings;
31 use utf8;
32 
33 use base 'DBIx::Class::Core';
34 
35 =head1 TABLE: C<dependent_xref>
36 
37 =cut
38 
39 __PACKAGE__->table("dependent_xref");
40 
41 =head1 ACCESSORS
42 
43 =head2 object_xref_id
44 
45  data_type: 'integer'
46  extra: {unsigned => 1}
47  is_nullable: 1
48 
49 =head2 master_xref_id
50 
51  data_type: 'integer'
52  extra: {unsigned => 1}
53  is_nullable: 0
54 
55 =head2 dependent_xref_id
56 
57  data_type: 'integer'
58  extra: {unsigned => 1}
59  is_nullable: 0
60 
61 =head2 linkage_annotation
62 
63  data_type: 'varchar'
64  is_nullable: 1
65  size: 255
66 
67 =head2 linkage_source_id
68 
69  data_type: 'integer'
70  extra: {unsigned => 1}
71  is_nullable: 0
72 
73 =cut
74 
75 __PACKAGE__->add_columns(
76  'dependency_id',
77  { data_type => 'integer', extra => { unsigned => 1 }, is_nullable => 0, is_auto_increment => 1 },
78  "object_xref_id",
79  { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 },
80  "master_xref_id",
81  { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
82  "dependent_xref_id",
83  { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
84  "linkage_annotation",
85  { data_type => "varchar", is_nullable => 1, size => 255 },
86  "linkage_source_id",
87  { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
88 );
89 
90 __PACKAGE__->set_primary_key('dependency_id');
91 
92 
93 __PACKAGE__->has_one('object_xref', 'Xref::Schema::Result::ObjectXref', 'object_xref_id');
94 __PACKAGE__->has_one('dependent_xref', 'Xref::Schema::Result::Xref', { 'foreign.xref_id' => 'self.dependent_xref_id'} );
95 __PACKAGE__->has_one('master_xref', 'Xref::Schema::Result::Xref', { 'foreign.xref_id' => 'self.master_xref_id'} );
96 __PACKAGE__->has_one('source', 'Xref::Schema::Result::Source', { 'foreign.source_id' => 'self.linkage_source_id' } );
97 
98 1;
Xref::Schema::Result::DependentXref
Definition: DependentXref.pm:5