Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / DerivedFromSource.pm
blobce2c3e299b2d478b95d294187e75616a8a92b817
1 package SGN::Schema::DerivedFromSource;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6 use strict;
7 use warnings;
9 use base 'DBIx::Class::Core';
12 =head1 NAME
14 SGN::Schema::DerivedFromSource
16 =cut
18 __PACKAGE__->table("derived_from_source");
20 =head1 ACCESSORS
22 =head2 derived_from_source_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'derived_from_source_derived_from_source_id_seq'
29 =head2 source_name
31 accessor: undef
32 data_type: 'text'
33 is_nullable: 1
35 =head2 source_schema
37 data_type: 'text'
38 is_nullable: 1
40 =head2 source_table
42 data_type: 'text'
43 is_nullable: 1
45 =head2 source_col
47 data_type: 'text'
48 is_nullable: 1
50 =cut
52 __PACKAGE__->add_columns(
53 "derived_from_source_id",
55 data_type => "integer",
56 is_auto_increment => 1,
57 is_nullable => 0,
58 sequence => "derived_from_source_derived_from_source_id_seq",
60 "source_name",
61 { accessor => undef, data_type => "text", is_nullable => 1 },
62 "source_schema",
63 { data_type => "text", is_nullable => 1 },
64 "source_table",
65 { data_type => "text", is_nullable => 1 },
66 "source_col",
67 { data_type => "text", is_nullable => 1 },
69 __PACKAGE__->set_primary_key("derived_from_source_id");
70 __PACKAGE__->add_unique_constraint(
71 "derived_from_source_source_schema_key",
72 ["source_schema", "source_table", "source_col"],
75 =head1 RELATIONS
77 =head2 markers_derived_from
79 Type: has_many
81 Related object: L<SGN::Schema::MarkerDerivedFrom>
83 =cut
85 __PACKAGE__->has_many(
86 "markers_derived_from",
87 "SGN::Schema::MarkerDerivedFrom",
89 "foreign.derived_from_source_id" => "self.derived_from_source_id",
91 { cascade_copy => 0, cascade_delete => 0 },
95 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
96 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ruLxFFQtkZYBM0p4UbMSJw
99 # You can replace this text with custom content, and it will be preserved on regeneration