| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Sat, 02 Aug 2014 23:46:30 +0200 | |
| changeset 24 | b69b7aa98a1d |
| child 69 | 5794f095a709 |
| permissions | -rw-r--r-- |
|
24
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
1 |
# This program is free software: you can redistribute it and/or modify |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
2 |
# it under the terms of the GNU General Public License as published by |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
3 |
# the Free Software Foundation, either version 3 of the License, or |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
4 |
# (at your option) any later version. |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
5 |
# |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
6 |
# This program is distributed in the hope that it will be useful, |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
7 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
8 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
9 |
# GNU General Public License for more details. |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
10 |
# |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
11 |
# You should have received a copy of the GNU General Public License |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
12 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
13 |
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
14 |
package CrashTest::Storage::Sql::Schema::Result::CrashUser; |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
15 |
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
16 |
use CrashTest::Storage::Sql::Schema::Candy; |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
17 |
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
18 |
primary_column id => {
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
19 |
data_type => 'int', |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
20 |
is_auto_increment => 1, |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
21 |
}; |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
22 |
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
23 |
column user_id => {
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
24 |
data_type => 'varchar', |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
25 |
size => 40, |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
26 |
}; |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
27 |
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
28 |
column os => {
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
29 |
data_type => 'varchar', |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
30 |
size => 40, |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
31 |
is_nullable => 1, |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
32 |
}; |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
33 |
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
34 |
column cpu_arch => {
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
35 |
data_type => 'varchar', |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
36 |
size => 10, |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
37 |
is_nullable => 1, |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
38 |
}; |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
39 |
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
40 |
column cpu_count => {
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
41 |
data_type => 'int', |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
42 |
is_nullable => 1, |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
43 |
}; |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
44 |
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
45 |
column extra_info => {
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
46 |
data_type => 'text', |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
47 |
is_nullable => 1, |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
48 |
}; |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
49 |
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
50 |
#column crash_report_id => { data_type => 'int' };
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
51 |
#belongs_to crash_report => 'CrashTest::Storage::Sql::Schema::Result::CrashReport', 'crash_report_id'; |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
52 |
|
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
53 |
1; |