// +---------------------------------------------------------------------- declare(strict_types=1); namespace addon\appmall\model; use ywxapp\model\BaseModel; /** * 开发者提现单(中心站) * 表:appmall_addon_withdrawals * @mixin \think\Model */ class Withdrawal extends BaseModel { protected function getOptions(): array { return [ 'strict' => true, 'name' => 'appmall_addon_withdrawals', 'autoWriteTimestamp' => 'int', 'createTime' => 'create_at', 'updateTime' => 'update_at', ]; } /** * 关联开发者 * @return \think\model\relation\BelongsTo */ public function developer() { return $this->belongsTo(Developer::class, 'developer_id', 'id'); } }