1 package Traditions::Schema::Result::Reading;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Traditions::Schema::Result::Reading
18 __PACKAGE__->table("readings");
64 __PACKAGE__->add_columns(
66 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
68 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
70 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
72 { data_type => "text", is_nullable => 0 },
74 { data_type => "text", is_nullable => 1 },
76 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
78 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
80 __PACKAGE__->set_primary_key("readingid");
81 __PACKAGE__->add_unique_constraint("next_reading_unique", ["next_reading"]);
82 __PACKAGE__->add_unique_constraint("prior_reading_unique", ["prior_reading"]);
90 Related object: L<Traditions::Schema::Result::Manuscript>
94 __PACKAGE__->has_many(
96 "Traditions::Schema::Result::Manuscript",
97 { "foreign.first_word" => "self.readingid" },
98 { cascade_copy => 0, cascade_delete => 0 },
105 Related object: L<Traditions::Schema::Result::Collation>
109 __PACKAGE__->belongs_to(
111 "Traditions::Schema::Result::Collation",
112 { collationid => "collation" },
116 on_delete => "CASCADE",
117 on_update => "CASCADE",
125 Related object: L<Traditions::Schema::Result::Manuscript>
129 __PACKAGE__->belongs_to(
131 "Traditions::Schema::Result::Manuscript",
132 { manuscriptid => "manuscript" },
133 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
140 Related object: L<Traditions::Schema::Result::Reading>
144 __PACKAGE__->belongs_to(
146 "Traditions::Schema::Result::Reading",
147 { readingid => "next_reading" },
151 on_delete => "CASCADE",
152 on_update => "CASCADE",
156 =head2 reading_next_reading
160 Related object: L<Traditions::Schema::Result::Reading>
164 __PACKAGE__->might_have(
165 "reading_next_reading",
166 "Traditions::Schema::Result::Reading",
167 { "foreign.next_reading" => "self.readingid" },
168 { cascade_copy => 0, cascade_delete => 0 },
175 Related object: L<Traditions::Schema::Result::Reading>
179 __PACKAGE__->belongs_to(
181 "Traditions::Schema::Result::Reading",
182 { readingid => "prior_reading" },
186 on_delete => "CASCADE",
187 on_update => "CASCADE",
191 =head2 reading_prior_reading
195 Related object: L<Traditions::Schema::Result::Reading>
199 __PACKAGE__->might_have(
200 "reading_prior_reading",
201 "Traditions::Schema::Result::Reading",
202 { "foreign.prior_reading" => "self.readingid" },
203 { cascade_copy => 0, cascade_delete => 0 },
207 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-10-19 17:34:43
208 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ze+1/h74nB4r9fc6AGIIkQ
211 # You can replace this text with custom content, and it will be preserved on regeneration