Commit | Line | Data |
b49c4318 |
1 | package Traditions::Schema::Result::Collation; |
2 | |
3 | # Created by DBIx::Class::Schema::Loader |
4 | # DO NOT MODIFY THE FIRST PART OF THIS FILE |
5 | |
6 | use strict; |
7 | use warnings; |
8 | |
9 | use base 'DBIx::Class::Core'; |
10 | |
11 | |
12 | =head1 NAME |
13 | |
14 | Traditions::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 | |
55 | Type: has_many |
56 | |
57 | Related 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 | |
70 | Type: belongs_to |
71 | |
72 | Related 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 |
89 | 1; |