Blame view

app/library/App/Model/User.php 604 Bytes
15479603   Alex Savenko   initialize
1
2
3
4
5
6
  <?php
  
  namespace App\Model;
  
  class User extends \App\Mvc\DateTrackingModel
  {
15479603   Alex Savenko   initialize
7
8
9
10
11
12
13
14
15
16
17
18
19
20
      public $role;
      public $firstName;
      public $lastName;
      public $username;
      public $password;
  
      public function getSource()
      {
          return 'user';
      }
  
      public function columnMap()
      {
          return parent::columnMap() + [
15479603   Alex Savenko   initialize
21
22
23
24
25
26
27
28
29
30
              'role' => 'role',
              'email' => 'email',
              'username' => 'username',
              'first_name' => 'firstName',
              'last_name' => 'lastName',
              'location' => 'location',
              'password' => 'password'
          ];
      }
  }