You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
714 B
29 lines
714 B
<?php |
|
|
|
namespace App\Models; |
|
|
|
use Dcat\Admin\Traits\HasDateTimeFormatter; |
|
|
|
use Illuminate\Database\Eloquent\Model; |
|
|
|
class UsersMember extends Model |
|
{ |
|
use HasDateTimeFormatter; |
|
protected $table = 'users_member'; |
|
public $timestamps = false; |
|
|
|
const IS_TEST_YES = 2; //是否为测试号 2是 |
|
const IS_TEST_NO = 1; // 否 |
|
|
|
const STATUS_YES = 1; //状态 1正常 2禁用 |
|
const STATUS_NO = 2; |
|
|
|
/** |
|
* @desc 与回访记录表关联 |
|
* @author 何鸠鸠 |
|
*/ |
|
public function followRecordHasOne(): \Illuminate\Database\Eloquent\Relations\HasOne |
|
{ |
|
return $this->hasOne(UserFollowRecord::class, 'unique_number', 'unique_number')->where(['is_abandon' => '1']); |
|
} |
|
}
|
|
|