123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\models\store;
- use app\models\user\User;
- use crmeb\services\UtilService;
- use crmeb\traits\ModelTrait;
- use crmeb\basic\BaseModel;
- class StoreSeparateAccountRecord extends BaseModel
- {
- /**
- * 数据表主键
- * @var string
- */
- protected $pk = 'id';
- /**
- * 模型名称
- * @var string
- */
- protected $name = 'store_separate_account_record';
- use ModelTrait;
- public function user()
- {
- return self::hasOne(User::class, 'uid', 'uid')->field('uid,nickname');
- }
- }
|