30 lines
603 B
PHP
30 lines
603 B
PHP
<?php
|
|
/**
|
|
* @Created by PhpStorm.
|
|
* @Author:Soar
|
|
* @Time:2023/7/12 14:02
|
|
*/
|
|
namespace app\common\model;
|
|
|
|
use think\Db;
|
|
use think\Model;
|
|
|
|
/**
|
|
* 参赛人员模块
|
|
*/
|
|
class MatchContestant extends Model
|
|
{
|
|
|
|
// 表名
|
|
protected $name = 'match_contestant';
|
|
// 开启自动写入时间戳字段
|
|
protected $autoWriteTimestamp = 'int';
|
|
// 定义时间戳字段名
|
|
protected $createTime = 'createtime';
|
|
protected $updateTime = 'updatetime';
|
|
|
|
public function players()
|
|
{
|
|
return $this->belongsTo('Players','player_id', 'id', [], 'LEFT')->setEagerlyType(1);
|
|
}
|
|
} |