Parent Directory
|
Revision Log
This commit was manufactured by cvs2svn to create branch 'rel-2-4-patches'.
1 ################################################################################ 2 # WeBWorK Online Homework Delivery System 3 # Copyright © 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/ 4 # $CVSHeader: webwork2/lib/WeBWorK/DB/Record/UserProblem.pm,v 1.10 2006/10/02 15:04:27 sh002i Exp $ 5 # 6 # This program is free software; you can redistribute it and/or modify it under 7 # the terms of either: (a) the GNU General Public License as published by the 8 # Free Software Foundation; either version 2, or (at your option) any later 9 # version, or (b) the "Artistic License" which comes with this package. 10 # 11 # This program is distributed in the hope that it will be useful, but WITHOUT 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 # FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the 14 # Artistic License for more details. 15 ################################################################################ 16 17 package WeBWorK::DB::Record::UserProblem; 18 use base WeBWorK::DB::Record; 19 20 =head1 NAME 21 22 WeBWorK::DB::Record::UserProblem - represent a record from the problem_user 23 table. 24 25 =cut 26 27 use strict; 28 use warnings; 29 30 BEGIN { 31 __PACKAGE__->_fields( 32 user_id => { type=>"TINYBLOB NOT NULL", key=>1 }, 33 set_id => { type=>"TINYBLOB NOT NULL", key=>1 }, 34 problem_id => { type=>"INT NOT NULL", key=>1 }, 35 source_file => { type=>"TEXT" }, 36 # FIXME i think value should be able to hold decimal values... 37 value => { type=>"INT" }, 38 max_attempts => { type=>"INT" }, 39 problem_seed => { type=>"INT" }, 40 status => { type=>"FLOAT" }, 41 attempted => { type=>"INT" }, 42 last_answer => { type=>"TEXT" }, 43 num_correct => { type=>"INT" }, 44 num_incorrect => { type=>"INT" }, 45 ); 46 } 47 48 1;
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |