| 1 | <?php |
||
| 23 | class Table extends \Bluz\Db\Table |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Pending email verification |
||
| 27 | */ |
||
| 28 | const STATUS_PENDING = 'pending'; |
||
| 29 | /** |
||
| 30 | * Active user |
||
| 31 | */ |
||
| 32 | const STATUS_ACTIVE = 'active'; |
||
| 33 | /** |
||
| 34 | * Disabled by administrator |
||
| 35 | */ |
||
| 36 | const STATUS_DISABLED = 'disabled'; |
||
| 37 | /** |
||
| 38 | * Removed account |
||
| 39 | */ |
||
| 40 | const STATUS_DELETED = 'deleted'; |
||
| 41 | /** |
||
| 42 | * system user with ID=1 |
||
| 43 | */ |
||
| 44 | const SYSTEM_USER = 1; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Table |
||
| 48 | * |
||
| 49 | * @var string |
||
| 50 | */ |
||
| 51 | protected $name = 'users'; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Primary key(s) |
||
| 55 | * @var array |
||
| 56 | */ |
||
| 57 | protected $primary = array('id'); |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Init table relations |
||
| 61 | * @return void |
||
| 62 | */ |
||
| 63 | 1 | public function init() |
|
| 68 | } |
||
| 69 |