]> iEval git - gruntmaster-data.git/blame_incremental - lib/Gruntmaster/Data/Result/Open.pm
Improve gruntmaster tools
[gruntmaster-data.git] / lib / Gruntmaster / Data / Result / Open.pm
... / ...
CommitLineData
1use utf8;
2package 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
9Gruntmaster::Data::Result::Open
10
11=cut
12
13use strict;
14use warnings;
15
16use 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
82Type: belongs_to
83
84Related 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
97Type: belongs_to
98
99Related 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
112Type: belongs_to
113
114Related 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
1311;
132
133__END__
134
135=head1 AUTHOR
136
137Marius Gavrilescu E<lt>marius@ieval.roE<gt>
138
139=head1 COPYRIGHT AND LICENSE
140
141Copyright (C) 2014 by Marius Gavrilescu
142
143This library is free software; you can redistribute it and/or modify
144it under the same terms as Perl itself, either Perl version 5.18.1 or,
145at your option, any later version of Perl 5 you may have available.
146
147
148=cut
This page took 0.023108 seconds and 4 git commands to generate.