Add genformat & gensource to db.sql, rerun dbicdump
[gruntmaster-data.git] / lib / Gruntmaster / Data / Result / User.pm
1 use utf8;
2 package 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
9 Gruntmaster::Data::Result::User
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use 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 phone
42
43 data_type: 'text'
44 is_nullable: 1
45
46 =head2 town
47
48 data_type: 'text'
49 is_nullable: 1
50
51 =head2 university
52
53 data_type: 'text'
54 is_nullable: 1
55
56 =head2 level
57
58 data_type: 'text'
59 is_nullable: 1
60
61 =head2 lastjob
62
63 data_type: 'bigint'
64 is_nullable: 1
65
66 =cut
67
68 __PACKAGE__->add_columns(
69 "id",
70 { data_type => "text", is_nullable => 0 },
71 "name",
72 { data_type => "text", is_nullable => 1 },
73 "email",
74 { data_type => "text", is_nullable => 1 },
75 "phone",
76 { data_type => "text", is_nullable => 1 },
77 "town",
78 { data_type => "text", is_nullable => 1 },
79 "university",
80 { data_type => "text", is_nullable => 1 },
81 "level",
82 { data_type => "text", is_nullable => 1 },
83 "lastjob",
84 { data_type => "bigint", is_nullable => 1 },
85 );
86
87 =head1 PRIMARY KEY
88
89 =over 4
90
91 =item * L</id>
92
93 =back
94
95 =cut
96
97 __PACKAGE__->set_primary_key("id");
98
99 =head1 RELATIONS
100
101 =head2 contests
102
103 Type: has_many
104
105 Related object: L<Gruntmaster::Data::Result::Contest>
106
107 =cut
108
109 __PACKAGE__->has_many(
110 "contests",
111 "Gruntmaster::Data::Result::Contest",
112 { "foreign.owner" => "self.id" },
113 { cascade_copy => 0, cascade_delete => 0 },
114 );
115
116 =head2 jobs
117
118 Type: has_many
119
120 Related object: L<Gruntmaster::Data::Result::Job>
121
122 =cut
123
124 __PACKAGE__->has_many(
125 "jobs",
126 "Gruntmaster::Data::Result::Job",
127 { "foreign.owner" => "self.id" },
128 { cascade_copy => 0, cascade_delete => 0 },
129 );
130
131 =head2 opens
132
133 Type: has_many
134
135 Related object: L<Gruntmaster::Data::Result::Open>
136
137 =cut
138
139 __PACKAGE__->has_many(
140 "opens",
141 "Gruntmaster::Data::Result::Open",
142 { "foreign.owner" => "self.id" },
143 { cascade_copy => 0, cascade_delete => 0 },
144 );
145
146 =head2 problems
147
148 Type: has_many
149
150 Related object: L<Gruntmaster::Data::Result::Problem>
151
152 =cut
153
154 __PACKAGE__->has_many(
155 "problems",
156 "Gruntmaster::Data::Result::Problem",
157 { "foreign.owner" => "self.id" },
158 { cascade_copy => 0, cascade_delete => 0 },
159 );
160
161
162 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-26 15:24:46
163 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HjxrnH2QdWGaAnArZpyYMA
164
165
166 # You can replace this text with custom code or comments, and it will be preserved on regeneration
167 1;
This page took 0.025285 seconds and 4 git commands to generate.