[system] / trunk / webwork-modperl / lib / WeBWorK / DB / Record / User.pm Repository:
ViewVC logotype

View of /trunk/webwork-modperl/lib/WeBWorK/DB/Record/User.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3209 - (download) (as text) (annotate)
Tue Mar 29 21:23:34 2005 UTC (14 years, 10 months ago) by jj
File size: 1485 byte(s)
Adding sql types for database entries for use on creation.  Many of them
can probably be tweaked to take up less space (e.g., we don't need 4 bytes
to store the published information).

    1 ################################################################################
    2 # WeBWorK Online Homework Delivery System
    3 # Copyright  2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
    4 # $CVSHeader: webwork-modperl/lib/WeBWorK/DB/Record/User.pm,v 1.5 2003/12/09 01:12:32 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::User;
   18 use base WeBWorK::DB::Record;
   19 
   20 =head1 NAME
   21 
   22 WeBWorK::DB::Record::User - represent a record from the user table.
   23 
   24 =cut
   25 
   26 use strict;
   27 use warnings;
   28 
   29 sub KEYFIELDS {qw(
   30   user_id
   31 )}
   32 
   33 sub NONKEYFIELDS {qw(
   34   first_name
   35   last_name
   36   email_address
   37   student_id
   38   status
   39   section
   40   recitation
   41   comment
   42 )}
   43 
   44 sub FIELDS {qw(
   45   user_id
   46   first_name
   47   last_name
   48   email_address
   49   student_id
   50   status
   51   section
   52   recitation
   53   comment
   54 )}
   55 
   56 sub SQL_TYPES {qw(
   57   BLOB
   58   TEXT
   59   TEXT
   60   TEXT
   61   TEXT
   62   TEXT
   63   TEXT
   64   TEXT
   65   TEXT
   66 )}
   67 
   68 1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9