tests passing with new library, yay
[scpubgit/stemmatology.git] / lib / Text / Tradition / Schema / Result / Collation.pm
CommitLineData
b49c4318 1package Traditions::Schema::Result::Collation;
2
3# Created by DBIx::Class::Schema::Loader
4# DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6use strict;
7use warnings;
8
9use base 'DBIx::Class::Core';
10
11
12=head1 NAME
13
14Traditions::Schema::Result::Collation
15
16=cut
17
18__PACKAGE__->table("collations");
19
20=head1 ACCESSORS
21
22=head2 collationid
23
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27
28=head2 text
29
30 data_type: 'integer'
31 is_foreign_key: 1
32 is_nullable: 0
33
34=head2 tag
35
36 data_type: 'text'
37 is_nullable: 1
38
39=cut
40
41__PACKAGE__->add_columns(
42 "collationid",
43 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
44 "text",
45 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
46 "tag",
47 { data_type => "text", is_nullable => 1 },
48);
49__PACKAGE__->set_primary_key("collationid");
50
51=head1 RELATIONS
52
53=head2 readings
54
55Type: has_many
56
57Related object: L<Traditions::Schema::Result::Reading>
58
59=cut
60
61__PACKAGE__->has_many(
62 "readings",
63 "Traditions::Schema::Result::Reading",
64 { "foreign.collation" => "self.collationid" },
65 { cascade_copy => 0, cascade_delete => 0 },
66);
67
68=head2 text
69
70Type: belongs_to
71
72Related object: L<Traditions::Schema::Result::Text>
73
74=cut
75
76__PACKAGE__->belongs_to(
77 "text",
78 "Traditions::Schema::Result::Text",
79 { textid => "text" },
80 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
81);
82
83
84# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-10-19 17:34:43
85# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+l31v5NCx//HtluCu+1JeQ
86
87
88# You can replace this text with custom content, and it will be preserved on regeneration
891;