no message
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\lottery;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class LotteryDraw extends BaseModel
|
||||
{
|
||||
protected $name = 'lottery_draw';
|
||||
|
||||
// JSON字段自动转数组
|
||||
protected $json = ['numbers', 'zodiac', 'elements', 'color'];
|
||||
|
||||
protected $jsonAssoc = true;
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(LotteryCategory::class, 'category_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user