feat: 微客宝H5客户端 - 基础架构+核心页面
This commit is contained in:
@@ -4,30 +4,35 @@ namespace App\Models\Crm;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Traits\BelongsToStore;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Laravel\Sanctum\HasApiTokens;
|
||||
|
||||
class Customer extends Model
|
||||
class Customer extends Authenticatable
|
||||
{
|
||||
use BelongsToStore, SoftDeletes;
|
||||
use BelongsToStore, SoftDeletes, HasApiTokens;
|
||||
|
||||
protected $fillable = [
|
||||
'store_id', 'lead_id', 'name', 'phone', 'id_card', 'wechat',
|
||||
'birthday', 'expected_date', 'actual_date', 'baby_count',
|
||||
'tags', 'status', 'owner_id', 'remark',
|
||||
'store_id', 'lead_id', 'name', 'phone', 'password', 'open_id',
|
||||
'id_card', 'wechat', 'birthday', 'expected_date', 'actual_date',
|
||||
'baby_count', 'tags', 'status', 'owner_id', 'remark', 'last_login_at',
|
||||
];
|
||||
|
||||
protected $hidden = ['password'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'birthday' => 'date',
|
||||
'birthday' => 'date',
|
||||
'expected_date' => 'date',
|
||||
'actual_date' => 'date',
|
||||
'baby_count' => 'integer',
|
||||
'tags' => 'array',
|
||||
'status' => 'integer',
|
||||
'actual_date' => 'date',
|
||||
'baby_count' => 'integer',
|
||||
'tags' => 'array',
|
||||
'status' => 'integer',
|
||||
'last_login_at' => 'datetime',
|
||||
'password' => 'hashed',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user