Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Metadata.pm
blob296105ef178ec4a9c75b196014b12c615ee4f738
1 package SGN::Schema::Metadata;
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::Metadata
16 =cut
18 __PACKAGE__->table("metadata");
20 =head1 ACCESSORS
22 =head2 metadata_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'metadata_metadata_id_seq'
29 =head2 create_date
31 data_type: 'timestamp with time zone'
32 default_value: current_timestamp
33 is_nullable: 1
34 original: {default_value => \"now()"}
36 =head2 create_person_id
38 data_type: 'integer'
39 is_nullable: 0
41 =head2 modified_date
43 data_type: 'timestamp with time zone'
44 is_nullable: 1
46 =head2 modified_person_id
48 data_type: 'integer'
49 is_nullable: 1
51 =head2 previous_metadata_id
53 data_type: 'integer'
54 is_nullable: 1
56 =head2 obsolete
58 data_type: 'integer'
59 default_value: 0
60 is_nullable: 1
62 =head2 obsolete_note
64 data_type: 'varchar'
65 is_nullable: 1
66 size: 250
68 =cut
70 __PACKAGE__->add_columns(
71 "metadata_id",
73 data_type => "bigint",
74 is_auto_increment => 1,
75 is_nullable => 0,
76 sequence => "metadata_metadata_id_seq",
78 "create_date",
80 data_type => "timestamp with time zone",
81 default_value => \"current_timestamp",
82 is_nullable => 1,
83 original => { default_value => \"now()" },
85 "create_person_id",
86 { data_type => "integer", is_nullable => 0 },
87 "modified_date",
88 { data_type => "timestamp with time zone", is_nullable => 1 },
89 "modified_person_id",
90 { data_type => "integer", is_nullable => 1 },
91 "previous_metadata_id",
92 { data_type => "integer", is_nullable => 1 },
93 "obsolete",
94 { data_type => "integer", default_value => 0, is_nullable => 1 },
95 "obsolete_note",
96 { data_type => "varchar", is_nullable => 1, size => 250 },
98 __PACKAGE__->set_primary_key("metadata_id");
100 =head1 RELATIONS
102 =head2 domains
104 Type: has_many
106 Related object: L<SGN::Schema::Domain>
108 =cut
110 __PACKAGE__->has_many(
111 "domains",
112 "SGN::Schema::Domain",
113 { "foreign.metadata_id" => "self.metadata_id" },
114 { cascade_copy => 0, cascade_delete => 0 },
117 =head2 domain_matches
119 Type: has_many
121 Related object: L<SGN::Schema::DomainMatch>
123 =cut
125 __PACKAGE__->has_many(
126 "domain_matches",
127 "SGN::Schema::DomainMatch",
128 { "foreign.metadata_id" => "self.metadata_id" },
129 { cascade_copy => 0, cascade_delete => 0 },
133 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
134 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BLIbTLwRw2MATmnZ/869rA
137 # You can replace this text with custom content, and it will be preserved on regeneration