Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Facility.pm
blob17e67b26ac24d5315f8d355a49ad82495885ada6
1 package SGN::Schema::Facility;
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::Facility
16 =cut
18 __PACKAGE__->table("facility");
20 =head1 ACCESSORS
22 =head2 facility_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'facility_facility_id_seq'
29 =head2 submit_user_id
31 data_type: 'integer'
32 is_nullable: 1
34 =head2 facility_moniker
36 data_type: 'varchar'
37 is_nullable: 1
38 size: 20
40 =head2 facility_shortname
42 data_type: 'varchar'
43 is_nullable: 1
44 size: 12
46 =head2 facility_name
48 data_type: 'varchar'
49 is_nullable: 1
50 size: 80
52 =head2 facility_contact
54 data_type: 'varchar'
55 is_nullable: 1
56 size: 80
58 =head2 facility_address
60 data_type: 'text'
61 is_nullable: 1
63 =head2 funding_agency
65 data_type: 'varchar'
66 is_nullable: 1
67 size: 80
69 =head2 funding_comment
71 data_type: 'text'
72 is_nullable: 1
74 =head2 sequencing_primers
76 data_type: 'varchar'
77 is_nullable: 1
78 size: 80
80 =head2 machine
82 data_type: 'varchar'
83 is_nullable: 1
84 size: 40
86 =head2 chemistry
88 data_type: 'varchar'
89 is_nullable: 1
90 size: 40
92 =head2 attribution_display
94 data_type: 'text'
95 is_nullable: 1
97 =head2 sp_person_id
99 data_type: 'integer'
100 is_nullable: 1
102 =cut
104 __PACKAGE__->add_columns(
105 "facility_id",
107 data_type => "integer",
108 is_auto_increment => 1,
109 is_nullable => 0,
110 sequence => "facility_facility_id_seq",
112 "submit_user_id",
113 { data_type => "integer", is_nullable => 1 },
114 "facility_moniker",
115 { data_type => "varchar", is_nullable => 1, size => 20 },
116 "facility_shortname",
117 { data_type => "varchar", is_nullable => 1, size => 12 },
118 "facility_name",
119 { data_type => "varchar", is_nullable => 1, size => 80 },
120 "facility_contact",
121 { data_type => "varchar", is_nullable => 1, size => 80 },
122 "facility_address",
123 { data_type => "text", is_nullable => 1 },
124 "funding_agency",
125 { data_type => "varchar", is_nullable => 1, size => 80 },
126 "funding_comment",
127 { data_type => "text", is_nullable => 1 },
128 "sequencing_primers",
129 { data_type => "varchar", is_nullable => 1, size => 80 },
130 "machine",
131 { data_type => "varchar", is_nullable => 1, size => 40 },
132 "chemistry",
133 { data_type => "varchar", is_nullable => 1, size => 40 },
134 "attribution_display",
135 { data_type => "text", is_nullable => 1 },
136 "sp_person_id",
137 { data_type => "integer", is_nullable => 1 },
139 __PACKAGE__->set_primary_key("facility_id");
141 =head1 RELATIONS
143 =head2 seqreads
145 Type: has_many
147 Related object: L<SGN::Schema::Seqread>
149 =cut
151 __PACKAGE__->has_many(
152 "seqreads",
153 "SGN::Schema::Seqread",
154 { "foreign.facility_id" => "self.facility_id" },
155 { cascade_copy => 0, cascade_delete => 0 },
159 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
160 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XLirPpQidO8sVoh61D2sjg
163 # You can replace this text with custom content, and it will be preserved on regeneration