// +---------------------------------------------------------------------- declare (strict_types = 1); namespace addon\articles\model; use ywxapp\model\BaseModel; /** * 文章收藏模型(唯一键 uid+aid 防重复收藏) */ class ArticleFavorite extends BaseModel { protected $name = 'articles_favorite'; protected $autoWriteTimestamp = false; protected $type = [ 'uid' => 'integer', 'aid' => 'integer', ]; public static function ensureSchema(): void { \addon\articles\library\ArticleSchema::ensure(); } }