]> iEval git - gruntmaster-data.git/blame_incremental - lib/Gruntmaster/Data/Result/User.pm
Make redis-to-postgres also copy the tests column of problems
[gruntmaster-data.git] / lib / Gruntmaster / Data / Result / User.pm
... / ...
CommitLineData
1use utf8;
2package Gruntmaster::Data::Result::User;
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::User
10
11=cut
12
13use strict;
14use warnings;
15
16use base 'DBIx::Class::Core';
17
18=head1 TABLE: C<users>
19
20=cut
21
22__PACKAGE__->table("users");
23
24=head1 ACCESSORS
25
26=head2 id
27
28 data_type: 'text'
29 is_nullable: 0
30
31=head2 name
32
33 data_type: 'text'
34 is_nullable: 1
35
36=head2 email
37
38 data_type: 'text'
39 is_nullable: 1
40
41=head2 town
42
43 data_type: 'text'
44 is_nullable: 1
45
46=head2 university
47
48 data_type: 'text'
49 is_nullable: 1
50
51=head2 level
52
53 data_type: 'text'
54 is_nullable: 1
55
56=head2 lastjob
57
58 data_type: 'bigint'
59 is_nullable: 1
60
61=cut
62
63__PACKAGE__->add_columns(
64 "id",
65 { data_type => "text", is_nullable => 0 },
66 "name",
67 { data_type => "text", is_nullable => 1 },
68 "email",
69 { data_type => "text", is_nullable => 1 },
70 "town",
71 { data_type => "text", is_nullable => 1 },
72 "university",
73 { data_type => "text", is_nullable => 1 },
74 "level",
75 { data_type => "text", is_nullable => 1 },
76 "lastjob",
77 { data_type => "bigint", is_nullable => 1 },
78);
79
80=head1 PRIMARY KEY
81
82=over 4
83
84=item * L</id>
85
86=back
87
88=cut
89
90__PACKAGE__->set_primary_key("id");
91
92=head1 RELATIONS
93
94=head2 contests
95
96Type: has_many
97
98Related object: L<Gruntmaster::Data::Result::Contest>
99
100=cut
101
102__PACKAGE__->has_many(
103 "contests",
104 "Gruntmaster::Data::Result::Contest",
105 { "foreign.owner" => "self.id" },
106 { cascade_copy => 0, cascade_delete => 0 },
107);
108
109=head2 jobs
110
111Type: has_many
112
113Related object: L<Gruntmaster::Data::Result::Job>
114
115=cut
116
117__PACKAGE__->has_many(
118 "jobs",
119 "Gruntmaster::Data::Result::Job",
120 { "foreign.owner" => "self.id" },
121 { cascade_copy => 0, cascade_delete => 0 },
122);
123
124=head2 opens
125
126Type: has_many
127
128Related object: L<Gruntmaster::Data::Result::Open>
129
130=cut
131
132__PACKAGE__->has_many(
133 "opens",
134 "Gruntmaster::Data::Result::Open",
135 { "foreign.owner" => "self.id" },
136 { cascade_copy => 0, cascade_delete => 0 },
137);
138
139=head2 problems
140
141Type: has_many
142
143Related object: L<Gruntmaster::Data::Result::Problem>
144
145=cut
146
147__PACKAGE__->has_many(
148 "problems",
149 "Gruntmaster::Data::Result::Problem",
150 { "foreign.owner" => "self.id" },
151 { cascade_copy => 0, cascade_delete => 0 },
152);
153
154
155# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-06 12:41:16
156# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CHRtUlZf3hs+lg6Nqi2LPA
157
158
159# You can replace this text with custom code or comments, and it will be preserved on regeneration
1601;
This page took 0.023664 seconds and 4 git commands to generate.