feat: add smt module
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\smt\model;
|
||||
|
||||
class MiniProgram extends BaseBizModel
|
||||
{
|
||||
protected $name = 'mini_programs';
|
||||
|
||||
protected $pk = 'id';
|
||||
|
||||
public static function findActiveById(int $id): ?self
|
||||
{
|
||||
return self::where('id', $id)->whereNull('deleted_at')->find();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user