| 1 | <?php |
||
| 10 | class User extends MvcModel |
||
| 11 | { |
||
| 12 | public static $roles = [ |
||
| 13 | 'member', |
||
| 14 | 'editor', |
||
| 15 | 'admin', |
||
| 16 | ]; |
||
| 17 | public $id = 0; |
||
| 18 | public $email = ''; |
||
| 19 | public $name = ''; |
||
| 20 | public $role = 'member'; |
||
| 21 | public $password_hash = ''; |
||
| 22 | |||
| 23 | public $created_at; |
||
| 24 | public $updated_at; |
||
| 25 | |||
| 26 | public function initialize() |
||
| 30 | } |
||
| 31 |