mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-07 19:40:49 +08:00
feat(notice): 通知三表与 SystemAdmin email 字段 Scheme 及迁移
This commit is contained in:
35
app/admin/scheme/SystemNoticeSubscribe.php
Normal file
35
app/admin/scheme/SystemNoticeSubscribe.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\scheme;
|
||||
|
||||
use app\common\scheme\BaseScheme;
|
||||
use app\common\scheme\attribute\Table;
|
||||
use app\common\scheme\attribute\Field;
|
||||
use app\common\scheme\attribute\Component;
|
||||
use app\common\scheme\attribute\Index;
|
||||
|
||||
#[Table(name: 'ul_system_notice_subscribe', comment: '系统通知订阅表')]
|
||||
#[Index(columns: ['admin_id', 'scene', 'channel'], name: 'uniq_admin_scene_channel', type: 'UNIQUE')]
|
||||
class SystemNoticeSubscribe extends BaseScheme
|
||||
{
|
||||
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
|
||||
public $id;
|
||||
|
||||
#[Field(type: 'int', length: 11, default: '0', comment: '管理员ID', unsigned: true)]
|
||||
public $admin_id;
|
||||
|
||||
#[Field(type: 'varchar', length: 50, precision: 50, comment: '通知场景')]
|
||||
public $scene;
|
||||
|
||||
#[Field(type: 'varchar', length: 20, precision: 20, comment: '投递渠道')]
|
||||
public $channel;
|
||||
|
||||
#[Field(type: 'tinyint', length: 1, default: '1', comment: '订阅状态:0=退订,1=订阅')]
|
||||
public $status;
|
||||
|
||||
#[Field(type: 'int', length: 11, default: '0', comment: '创建时间', unsigned: true)]
|
||||
public $create_time;
|
||||
|
||||
#[Field(type: 'int', length: 11, default: '0', unsigned: true)]
|
||||
public $update_time;
|
||||
}
|
||||
Reference in New Issue
Block a user