1 package Traditions::Schema::Result::Manuscript;
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::Manuscript
18 __PACKAGE__->table("manuscripts");
52 __PACKAGE__->add_columns(
54 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
56 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
58 { data_type => "text", is_nullable => 0 },
60 { data_type => "text", is_nullable => 0 },
62 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
64 __PACKAGE__->set_primary_key("manuscriptid");
72 Related object: L<Traditions::Schema::Result::Reading>
76 __PACKAGE__->belongs_to(
78 "Traditions::Schema::Result::Reading",
79 { readingid => "first_word" },
83 on_delete => "CASCADE",
84 on_update => "CASCADE",
92 Related object: L<Traditions::Schema::Result::Text>
96 __PACKAGE__->belongs_to(
98 "Traditions::Schema::Result::Text",
100 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
107 Related object: L<Traditions::Schema::Result::Reading>
111 __PACKAGE__->has_many(
113 "Traditions::Schema::Result::Reading",
114 { "foreign.manuscript" => "self.manuscriptid" },
115 { cascade_copy => 0, cascade_delete => 0 },
119 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-10-19 17:34:43
120 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:71XIOYGQBGADyQrj4WE49Q
123 # You can replace this text with custom content, and it will be preserved on regeneration