|
|
|
@@ -17,6 +17,9 @@ use Illuminate\Notifications\Notifiable; |
|
|
|
use Illuminate\Support\Facades\DB; |
|
|
|
use Laravel\Sanctum\HasApiTokens; |
|
|
|
|
|
|
|
/** |
|
|
|
* @mixin \Eloquent |
|
|
|
*/ |
|
|
|
class User extends Authenticatable implements IModelFeature |
|
|
|
{ |
|
|
|
use HasApiTokens, HasFactory, Notifiable, HasUuids, SoftDeletes; |
|
|
|
@@ -26,6 +29,7 @@ class User extends Authenticatable implements IModelFeature |
|
|
|
const COL_NAME_NAME = 'name'; |
|
|
|
const COL_NAME_PASSWORD = 'password'; |
|
|
|
const COL_NAME_ROLE = 'role'; |
|
|
|
const COL_NAME_CUSTOMER_ID = 'customer_id'; |
|
|
|
const COL_NAME_CUSTOMER_CODE = 'customer_code'; |
|
|
|
const COL_NAME_SHOP_ID = 'shop_id'; |
|
|
|
|
|
|
|
@@ -39,6 +43,13 @@ class User extends Authenticatable implements IModelFeature |
|
|
|
protected $table = "tbl3_mst_users"; |
|
|
|
|
|
|
|
protected $hidden = [ |
|
|
|
ColumnName::CREATED_AT, |
|
|
|
ColumnName::CREATED_BY, |
|
|
|
ColumnName::UPDATED_AT, |
|
|
|
ColumnName::UPDATED_BY, |
|
|
|
ColumnName::DELETED_AT, |
|
|
|
self::COL_NAME_CUSTOMER_ID, |
|
|
|
self::COL_NAME_CUSTOMER_CODE, |
|
|
|
self::COL_NAME_PASSWORD, |
|
|
|
]; |
|
|
|
|
|
|
|
|