]>
Commit | Line | Data |
---|---|---|
1 | use utf8; | |
2 | package Gruntmaster::Data::Result::Open; | |
3 | ||
4 | # Created by DBIx::Class::Schema::Loader | |
5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | |
6 | ||
7 | =head1 NAME | |
8 | ||
9 | Gruntmaster::Data::Result::Open | |
10 | ||
11 | =cut | |
12 | ||
13 | use strict; | |
14 | use warnings; | |
15 | ||
16 | use base 'DBIx::Class::Core'; | |
17 | ||
18 | =head1 TABLE: C<opens> | |
19 | ||
20 | =cut | |
21 | ||
22 | __PACKAGE__->table("opens"); | |
23 | ||
24 | =head1 ACCESSORS | |
25 | ||
26 | =head2 contest | |
27 | ||
28 | data_type: 'text' | |
29 | is_foreign_key: 1 | |
30 | is_nullable: 0 | |
31 | ||
32 | =head2 problem | |
33 | ||
34 | data_type: 'text' | |
35 | is_foreign_key: 1 | |
36 | is_nullable: 0 | |
37 | ||
38 | =head2 owner | |
39 | ||
40 | data_type: 'text' | |
41 | is_foreign_key: 1 | |
42 | is_nullable: 0 | |
43 | ||
44 | =head2 time | |
45 | ||
46 | data_type: 'bigint' | |
47 | is_nullable: 0 | |
48 | ||
49 | =cut | |
50 | ||
51 | __PACKAGE__->add_columns( | |
52 | "contest", | |
53 | { data_type => "text", is_foreign_key => 1, is_nullable => 0 }, | |
54 | "problem", | |
55 | { data_type => "text", is_foreign_key => 1, is_nullable => 0 }, | |
56 | "owner", | |
57 | { data_type => "text", is_foreign_key => 1, is_nullable => 0 }, | |
58 | "time", | |
59 | { data_type => "bigint", is_nullable => 0 }, | |
60 | ); | |
61 | ||
62 | =head1 PRIMARY KEY | |
63 | ||
64 | =over 4 | |
65 | ||
66 | =item * L</contest> | |
67 | ||
68 | =item * L</problem> | |
69 | ||
70 | =item * L</owner> | |
71 | ||
72 | =back | |
73 | ||
74 | =cut | |
75 | ||
76 | __PACKAGE__->set_primary_key("contest", "problem", "owner"); | |
77 | ||
78 | =head1 RELATIONS | |
79 | ||
80 | =head2 contest | |
81 | ||
82 | Type: belongs_to | |
83 | ||
84 | Related object: L<Gruntmaster::Data::Result::Contest> | |
85 | ||
86 | =cut | |
87 | ||
88 | __PACKAGE__->belongs_to( | |
89 | "contest", | |
90 | "Gruntmaster::Data::Result::Contest", | |
91 | { id => "contest" }, | |
92 | { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, | |
93 | ); | |
94 | ||
95 | =head2 owner | |
96 | ||
97 | Type: belongs_to | |
98 | ||
99 | Related object: L<Gruntmaster::Data::Result::User> | |
100 | ||
101 | =cut | |
102 | ||
103 | __PACKAGE__->belongs_to( | |
104 | "owner", | |
105 | "Gruntmaster::Data::Result::User", | |
106 | { id => "owner" }, | |
107 | { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, | |
108 | ); | |
109 | ||
110 | =head2 problem | |
111 | ||
112 | Type: belongs_to | |
113 | ||
114 | Related object: L<Gruntmaster::Data::Result::Problem> | |
115 | ||
116 | =cut | |
117 | ||
118 | __PACKAGE__->belongs_to( | |
119 | "problem", | |
120 | "Gruntmaster::Data::Result::Problem", | |
121 | { id => "problem" }, | |
122 | { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, | |
123 | ); | |
124 | ||
125 | ||
126 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-24 09:25:07 | |
127 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MgoDt8QyQeSpjIJZEd5RXQ | |
128 | ||
129 | ||
130 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | |
131 | 1; | |
132 | ||
133 | __END__ | |
134 | ||
135 | =head1 AUTHOR | |
136 | ||
137 | Marius Gavrilescu E<lt>marius@ieval.roE<gt> | |
138 | ||
139 | =head1 COPYRIGHT AND LICENSE | |
140 | ||
141 | Copyright (C) 2014 by Marius Gavrilescu | |
142 | ||
143 | This library is free software; you can redistribute it and/or modify | |
144 | it under the same terms as Perl itself, either Perl version 5.18.1 or, | |
145 | at your option, any later version of Perl 5 you may have available. | |
146 | ||
147 | ||
148 | =cut |