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::CoordinateXref;
32 use base
'DBIx::Class::Core';
34 =head1 TABLE: C<coordinate_xref>
38 __PACKAGE__->table(
"coordinate_xref");
45 extra: {
unsigned => 1}
52 extra: {
unsigned => 1}
58 extra: {
unsigned => 1}
110 __PACKAGE__->add_columns(
113 data_type =>
"integer",
114 extra => {
unsigned => 1 },
115 is_auto_increment => 1,
119 { data_type =>
"integer", extra => {
unsigned => 1 }, is_nullable => 0 },
121 { data_type =>
"integer", extra => {
unsigned => 1 }, is_nullable => 0 },
123 { data_type =>
"varchar", is_nullable => 0, size => 255 },
125 { data_type =>
"varchar", is_nullable => 0, size => 255 },
127 { data_type =>
"tinyint", is_nullable => 0 },
129 { data_type =>
"integer", is_nullable => 0 },
131 { data_type =>
"integer", is_nullable => 0 },
133 { data_type =>
"integer", is_nullable => 1 },
135 { data_type =>
"integer", is_nullable => 1 },
137 { data_type =>
"text", is_nullable => 0 },
139 { data_type =>
"text", is_nullable => 0 },
142 =head1 UNIQUE CONSTRAINTS
144 =head2 C<coord_xref_idx>
148 =item * L</coord_xref_id>
154 __PACKAGE__->set_primary_key(
'coord_xref_id');
156 __PACKAGE__->has_one(
'xref',
'Xref::Schema::Result::Xref', {
'foreign.xref_id' =>
'self.coord_xref_id' });
157 __PACKAGE__->has_one(
'source',
'Xref::Schema::Result::Source',
'source_id' );