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::DependentSource;
32 use base
'DBIx::Class::Core';
34 =head1 TABLE: C<dependent_source>
38 __PACKAGE__->table(
"dependent_source");
42 =head2 master_source_id
45 extra: {
unsigned => 1}
52 description: Name of the source that must be imported before
this source can be processed
57 __PACKAGE__->add_columns(
58 "dependent_relation_id",
59 { data_type =>
"integer", extra => {
unsigned => 1, auto_increment => 1}, is_nullable => 0},
61 { data_type =>
"integer", extra => {
unsigned => 1 }, is_nullable => 0 },
63 { data_type =>
"varchar", is_nullable => 0, size => 255 },
70 =item * L</master_source_id>
72 =item * L</dependent_name>
78 __PACKAGE__->set_primary_key(
'dependent_relation_id');
79 # __PACKAGE__->add_unique_constraint("master_source_id", ["dependent_name"]);
81 __PACKAGE__->belongs_to(
'master_source',
'Xref::Schema::Result::Source', {
'foreign.source_id' =>
'self.master_source_id' } );