1 |
dpavlin |
1 |
use strict; |
2 |
|
|
use warnings; |
3 |
|
|
|
4 |
|
|
package Transports::Model::User::Schema; |
5 |
|
|
use Jifty::DBI::Schema; |
6 |
|
|
|
7 |
|
|
# Your column definitions go here. See L<Jifty::DBI::Schema> for |
8 |
|
|
# documentation about how to write column definitions. |
9 |
|
|
|
10 |
|
|
column name => |
11 |
|
|
type is 'text', |
12 |
|
|
label is 'Name', |
13 |
|
|
is mandatory, |
14 |
|
|
is distinct; |
15 |
|
|
|
16 |
|
|
column email => |
17 |
|
|
type is 'text', |
18 |
|
|
label is 'Email address', |
19 |
|
|
is mandatory, |
20 |
|
|
is distinct; |
21 |
|
|
|
22 |
|
|
column password =>, |
23 |
|
|
type is 'text', |
24 |
|
|
label is 'Password', |
25 |
dpavlin |
3 |
is mandatory, |
26 |
dpavlin |
1 |
render_as 'password'; |
27 |
|
|
|
28 |
|
|
package Transports::Model::User; |
29 |
|
|
use base qw/Transports::Record/; |
30 |
|
|
|
31 |
|
|
# Your model-specific methods go here. |
32 |
|
|
|
33 |
dpavlin |
5 |
sub password { |
34 |
|
|
return undef; |
35 |
|
|
} |
36 |
|
|
|
37 |
dpavlin |
1 |
1; |
38 |
|
|
|