Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / EstDbxref.pm
blobac2d30ae67d7b2494a1959d5c61d774eb1836b04
1 package SGN::Schema::EstDbxref;
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::EstDbxref
16 =cut
18 __PACKAGE__->table("est_dbxref");
20 =head1 ACCESSORS
22 =head2 est_dbxref_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'est_dbxref_est_dbxref_id_seq'
29 =head2 est_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 0
35 =head2 dbxref_id
37 data_type: 'integer'
38 is_nullable: 0
40 =cut
42 __PACKAGE__->add_columns(
43 "est_dbxref_id",
45 data_type => "integer",
46 is_auto_increment => 1,
47 is_nullable => 0,
48 sequence => "est_dbxref_est_dbxref_id_seq",
50 "est_id",
51 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
52 "dbxref_id",
53 { data_type => "integer", is_nullable => 0 },
55 __PACKAGE__->set_primary_key("est_dbxref_id");
56 __PACKAGE__->add_unique_constraint("est_dbxref_est_id_key", ["est_id", "dbxref_id"]);
58 =head1 RELATIONS
60 =head2 est
62 Type: belongs_to
64 Related object: L<SGN::Schema::Est>
66 =cut
68 __PACKAGE__->belongs_to(
69 "est",
70 "SGN::Schema::Est",
71 { est_id => "est_id" },
72 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
76 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
77 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yyhJ86bEnQ+gyZW2jwkD6A
80 # You can replace this text with custom content, and it will be preserved on regeneration