Debian Codegraph @

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

raw symbols SCIP
1 package Bio::Chado::Schema::Result::Pub::PubRelationshipscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Pub/PubRelationship/;
2 BEGIN {
3 $Bio::Chado::Schema::Result::Pub::PubRelationship::AUTHORITYscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Pub/PubRelationship/$AUTHORITY. = 'cpan:RBUELS';
4 }
5 {
6 $Bio::Chado::Schema::Result::Pub::PubRelationship::VERSIONscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Pub/PubRelationship/$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::PubRelationship
21
22 =head1 DESCRIPTION
23
24 Handle relationships between
25 publications, e.g. when one publication makes others obsolete, when one
26 publication contains errata with respect to other publication(s), or
27 when one publication also appears in another pub.
28
29 =cut
30
31 __PACKAGE__->tablescip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/table().("pub_relationship");
32
33 =head1 ACCESSORS
34
35 =head2 pub_relationship_id
36
37 data_type: 'integer'
38 is_auto_increment: 1
39 is_nullable: 0
40 sequence: 'pub_relationship_pub_relationship_id_seq'
41
42 =head2 subject_id
43
44 data_type: 'integer'
45 is_foreign_key: 1
46 is_nullable: 0
47
48 =head2 object_id
49
50 data_type: 'integer'
51 is_foreign_key: 1
52 is_nullable: 0
53
54 =head2 type_id
55
56 data_type: 'integer'
57 is_foreign_key: 1
58 is_nullable: 0
59
60 =cut
61
62 __PACKAGE__->add_columnsscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_columns().(
63 "pub_relationship_id",
64 {
65 data_type => "integer",
66 is_auto_increment => 1,
67 is_nullable => 0,
68 sequence => "pub_relationship_pub_relationship_id_seq",
69 },
70 "subject_id",
71 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
72 "object_id",
73 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
74 "type_id",
75 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
76 );
77 __PACKAGE__->set_primary_keyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/set_primary_key().("pub_relationship_id");
78 __PACKAGE__->add_unique_constraintscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_unique_constraint().("pub_relationship_c1", ["subject_id", "object_id", "type_id"]);
79
80 =head1 RELATIONS
81
82 =head2 type
83
84 Type: belongs_to
85
86 Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm>
87
88 =cut
89
90 __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().(
91 "type",
92 "Bio::Chado::Schema::Result::Cv::Cvterm",
93 { cvterm_id => "type_id" },
94 {
95 cascade_copy => 0,
96 cascade_delete => 0,
97 is_deferrable => 1,
98 on_delete => "CASCADE",
99 on_update => "CASCADE",
100 },
101 );
102
103 =head2 object
104
105 Type: belongs_to
106
107 Related object: L<Bio::Chado::Schema::Result::Pub::Pub>
108
109 =cut
110
111 __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().(
112 "object",
113 "Bio::Chado::Schema::Result::Pub::Pub",
114 { pub_id => "object_id" },
115 {
116 cascade_copy => 0,
117 cascade_delete => 0,
118 is_deferrable => 1,
119 on_delete => "CASCADE",
120 on_update => "CASCADE",
121 },
122 );
123
124 =head2 subject
125
126 Type: belongs_to
127
128 Related object: L<Bio::Chado::Schema::Result::Pub::Pub>
129
130 =cut
131
132 __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().(
133 "subject",
134 "Bio::Chado::Schema::Result::Pub::Pub",
135 { pub_id => "subject_id" },
136 {
137 cascade_copy => 0,
138 cascade_delete => 0,
139 is_deferrable => 1,
140 on_delete => "CASCADE",
141 on_update => "CASCADE",
142 },
143 );
144
145
146 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:59
147 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NxczDRevB78l/UhBS2e47Q
148
149
150 # You can replace this text with custom content, and it will be preserved on regeneration
151 1;