<?php

namespace app\common\model;

use app\common\model\traits\TimestampInteger;
use support\think\Model;

/**
 * MallPintsOrder
 */
class MallPintsOrder extends Model
{
    use TimestampInteger;

    // 表名
    protected $name = 'mall_pints_order';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    public function playxUserAsset(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\common\model\MallUserAsset::class, 'playx_user_asset_id', 'id');
    }
}