/[SQLSession]/trunk/lib/SQLSession/Model/Role.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/SQLSession/Model/Role.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 105 by dpavlin, Sun Jan 21 12:41:35 2007 UTC revision 106 by dpavlin, Thu Mar 15 12:43:55 2007 UTC
# Line 10  use SQLSession::Record schema { Line 10  use SQLSession::Record schema {
10    
11          column user_id =>          column user_id =>
12                  refers_to SQLSession::Model::User by 'id',                  refers_to SQLSession::Model::User by 'id',
13                  is mandatory,                  is not_null,
14                  is indexed;                  is indexed;
15    
16          column role =>          column role =>
17                  type is 'text',                  type is 'text',
18                  valid are qw/student edit admin/,                  valid are qw/student edit admin/,
19                  default is 'student',                  default is 'student',
20                  is mandatory,                  is not_null,
21                  is indexed;                  is indexed;
22    
23  };  };

Legend:
Removed from v.105  
changed lines
  Added in v.106

  ViewVC Help
Powered by ViewVC 1.1.26