lib/CrashTest/Storage/Sql/Schema/Result/CrashUser.pm
changeset 78 0ebef32c34af
parent 77 e408da1419cd
child 79 4ae8bb6f8a96
equal deleted inserted replaced
77:e408da1419cd 78:0ebef32c34af
     1 # This program is free software: you can redistribute it and/or modify
       
     2 # it under the terms of the GNU General Public License as published by
       
     3 # the Free Software Foundation, either version 3 of the License, or
       
     4 # (at your option) any later version.
       
     5 #
       
     6 # This program is distributed in the hope that it will be useful,
       
     7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
       
     8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
     9 # GNU General Public License for more details.
       
    10 #
       
    11 # You should have received a copy of the GNU General Public License
       
    12 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
       
    13 
       
    14 package CrashTest::Storage::Sql::Schema::Result::CrashUser;
       
    15 
       
    16 use CrashTest::Storage::Sql::Schema::Candy;
       
    17 
       
    18 primary_column id => {
       
    19     data_type => 'int',
       
    20     is_auto_increment => 1,
       
    21 };
       
    22 
       
    23 column user_id => {
       
    24     data_type => 'varchar',
       
    25     size => 40,
       
    26 };
       
    27 
       
    28 column os => {
       
    29     data_type => 'varchar',
       
    30     size => 40,
       
    31     is_nullable => 1,
       
    32 };
       
    33 
       
    34 column cpu_arch => {
       
    35     data_type => 'varchar',
       
    36     size => 10,
       
    37     is_nullable => 1,
       
    38 };
       
    39 
       
    40 column cpu_count => {
       
    41     data_type => 'int',
       
    42     is_nullable => 1,
       
    43 };
       
    44 
       
    45 column extra_info => {
       
    46     data_type => 'text',
       
    47     is_nullable => 1,
       
    48 };
       
    49 
       
    50 has_many crash_report => 'CrashTest::Storage::Sql::Schema::Result::CrashReport', 'crash_user_id';
       
    51 
       
    52 1;