Debian Codegraph @

lib/Bio/Chado/Schema/Result/Pub/Pubauthor.pm

raw symbols SCIP
1 package Bio::Chado::Schema::Result::Pub::Pubauthorscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Pub/Pubauthor/;
2 BEGIN {
3 $Bio::Chado::Schema::Result::Pub::Pubauthor::AUTHORITYscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Pub/Pubauthor/$AUTHORITY. = 'cpan:RBUELS';
4 }
5 {
6 $Bio::Chado::Schema::Result::Pub::Pubauthor::VERSIONscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Pub/Pubauthor/$VERSION. = '0.20000';
7 }
8
9 # Created by DBIx::Class::Schema::Loader
10 # DO NOT MODIFY THE FIRST PART OF THIS FILE
11
12 use strictscip-perl cpan Bio-Chado-Schema 0.20000 strict/;
13 use warningsscip-perl cpan Bio-Chado-Schema 0.20000 warnings/;
14
15 use basescip-perl cpan Bio-Chado-Schema 0.20000 base/ 'DBIx::Class::Core';
16
17
18 =head1 NAME
19
20 Bio::Chado::Schema::Result::Pub::Pubauthor
21
22 =head1 DESCRIPTION
23
24 An author for a publication. Note the denormalisation (hence lack of _ in table name) - this is deliberate as it is in general too hard to assign IDs to authors.
25
26 =cut
27
28 __PACKAGE__->tablescip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/table().("pubauthor");
29
30 =head1 ACCESSORS
31
32 =head2 pubauthor_id
33
34 data_type: 'integer'
35 is_auto_increment: 1
36 is_nullable: 0
37 sequence: 'pubauthor_pubauthor_id_seq'
38
39 =head2 pub_id
40
41 data_type: 'integer'
42 is_foreign_key: 1
43 is_nullable: 0
44
45 =head2 rank
46
47 data_type: 'integer'
48 is_nullable: 0
49
50 Order of author in author list for this pub - order is important.
51
52 =head2 editor
53
54 data_type: 'boolean'
55 default_value: false
56 is_nullable: 1
57
58 Indicates whether the author is an editor for linked publication. Note: this is a boolean field but does not follow the normal chado convention for naming booleans.
59
60 =head2 surname
61
62 data_type: 'varchar'
63 is_nullable: 0
64 size: 100
65
66 =head2 givennames
67
68 data_type: 'varchar'
69 is_nullable: 1
70 size: 100
71
72 First name, initials
73
74 =head2 suffix
75
76 data_type: 'varchar'
77 is_nullable: 1
78 size: 100
79
80 Jr., Sr., etc
81
82 =cut
83
84 __PACKAGE__->add_columnsscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_columns().(
85 "pubauthor_id",
86 {
87 data_type => "integer",
88 is_auto_increment => 1,
89 is_nullable => 0,
90 sequence => "pubauthor_pubauthor_id_seq",
91 },
92 "pub_id",
93 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
94 "rank",
95 { data_type => "integer", is_nullable => 0 },
96 "editor",
97 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
98 "surname",
99 { data_type => "varchar", is_nullable => 0, size => 100 },
100 "givennames",
101 { data_type => "varchar", is_nullable => 1, size => 100 },
102 "suffix",
103 { data_type => "varchar", is_nullable => 1, size => 100 },
104 );
105 __PACKAGE__->set_primary_keyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/set_primary_key().("pubauthor_id");
106 __PACKAGE__->add_unique_constraintscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_unique_constraint().("pubauthor_c1", ["pub_id", "rank"]);
107
108 =head1 RELATIONS
109
110 =head2 pub
111
112 Type: belongs_to
113
114 Related object: L<Bio::Chado::Schema::Result::Pub::Pub>
115
116 =cut
117
118 __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().(
119 "pub",
120 "Bio::Chado::Schema::Result::Pub::Pub",
121 { pub_id => "pub_id" },
122 {
123 cascade_copy => 0,
124 cascade_delete => 0,
125 is_deferrable => 1,
126 on_delete => "CASCADE",
127 on_update => "CASCADE",
128 },
129 );
130
131
132 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:59
133 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VjWjIT569rVLbnuwk7M7XA
134
135
136 # You can replace this text with custom content, and it will be preserved on regeneration
137 1;