Improve user_list performance
[gruntmaster-data.git] / lib / Gruntmaster / Data / Result / ContestStatus.pm
CommitLineData
adb42d4d
MG
1use utf8;
2package Gruntmaster::Data::Result::ContestStatus;
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::ContestStatus
10
11=cut
12
13use strict;
14use warnings;
15
16use base 'DBIx::Class::Core';
17
18=head1 TABLE: C<contest_status>
19
20=cut
21
22__PACKAGE__->table("contest_status");
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 owner
33
34 data_type: 'text'
35 is_foreign_key: 1
36 is_nullable: 0
37
38=head2 score
39
40 data_type: 'integer'
41 is_nullable: 0
42
43=head2 rank
44
45 data_type: 'integer'
46 is_nullable: 0
47
48=cut
49
50__PACKAGE__->add_columns(
51 "contest",
52 { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
53 "owner",
54 { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
55 "score",
56 { data_type => "integer", is_nullable => 0 },
57 "rank",
58 { data_type => "integer", is_nullable => 0 },
59);
60
61=head1 PRIMARY KEY
62
63=over 4
64
65=item * L</owner>
66
67=item * L</contest>
68
69=back
70
71=cut
72
73__PACKAGE__->set_primary_key("owner", "contest");
74
75=head1 RELATIONS
76
77=head2 contest
78
79Type: belongs_to
80
81Related object: L<Gruntmaster::Data::Result::Contest>
82
83=cut
84
85__PACKAGE__->belongs_to(
86 "contest",
87 "Gruntmaster::Data::Result::Contest",
88 { id => "contest" },
89 { is_deferrable => 0, on_delete => "CASCADE", on_update => "NO ACTION" },
90);
91
92=head2 owner
93
94Type: belongs_to
95
96Related object: L<Gruntmaster::Data::Result::User>
97
98=cut
99
100__PACKAGE__->belongs_to(
101 "owner",
102 "Gruntmaster::Data::Result::User",
103 { id => "owner" },
104 { is_deferrable => 0, on_delete => "CASCADE", on_update => "NO ACTION" },
105);
106
107
108# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-12-11 23:51:27
109# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vfOfZeATPRODifpgHO4L0A
110
c9311d50 111sub rawowner { shift->get_column('owner') }
adb42d4d 112
adb42d4d 1131;
This page took 0.01543 seconds and 4 git commands to generate.