You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
560 B

<?php
namespace app\model;
use think\Model;
class Message extends Model
{
protected $table = 'messages';
protected $pk = 'id';
protected $autoWriteTimestamp = true;
protected $createTime = 'created_at';
protected $updateTime = false;
// 允许写入的字段
protected $schema = [
'id' => 'int',
'card_no' => 'string',
'sender_type' => 'string',
'staff_id' => 'int',
'content' => 'text',
'is_read' => 'int',
'created_at' => 'datetime',
];
}