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::Source;
32 use base
'DBIx::Class::Core';
34 =head1 TABLE: C<source>
38 __PACKAGE__->table(
"source");
45 extra: {
unsigned => 1}
65 extra: {
unsigned => 1}
68 =head2 priority_description
71 default_value: (empty string)
77 __PACKAGE__->add_columns(
80 data_type =>
"integer",
81 extra => {
unsigned => 1 },
82 is_auto_increment => 1,
86 { data_type =>
"varchar", is_nullable => 0, size => 255 },
88 { data_type =>
"varchar", is_nullable => 1, size => 255 },
91 data_type =>
"integer",
93 extra => {
unsigned => 1 },
96 "priority_description",
97 { data_type =>
"varchar", is_nullable => 1, size => 40 },
104 =item * L</source_id>
110 __PACKAGE__->set_primary_key(
'source_id');
112 __PACKAGE__->has_many(
'xrefs',
'Xref::Schema::Result::Xref',
'source_id');
113 __PACKAGE__->might_have(
115 'Xref::Schema::Result::DependentSource',
116 {
'foreign.master_source_id' =>
'self.source_id' }
118 __PACKAGE__->might_have(
120 'Xref::Schema::Result::SourceUrl',
121 {
'foreign.source_id' =>
'self.source_id' }