'integer', 'user_id' => 'integer', 'class_id' => 'integer', 'is_asterisk' => 'integer', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime' ]; /** * 关联笔记详细表(一对一关系) * * @return \Hyperf\Database\Model\Relations\HasOne */ public function detail() { return $this->hasOne(ArticleDetail::class, 'article_id', 'id'); } /** * 关联笔记附件信息表(一对多关系) * * @return \Hyperf\Database\Model\Relations\HasMany */ public function annexs() { return $this->hasMany(ArticleAnnex::class, 'article_id', 'id'); } }