| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace common\models\addons;
- use common\models\base\BaseActiveRecord;
- use Yii;
- /**
- * This is the model class for table "qimall_ai_tool".
- *
- * @property int $id 主键
- * @property string $title 中文名
- * @property string|null $url 跳转链接
- * @property string|null $cover cover
- * @property int $is_docking 是否对接:1:是;0:否
- * @property int|null $status 状态[-1:删除;0:禁用;1启用;]
- * @property int|null $created_at 创建时间
- * @property int|null $updated_at 修改时间
- */
- class AiTool extends BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%ai_tool}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['is_docking', 'status', 'created_at', 'updated_at'], 'integer'],
- [['title'], 'string', 'max' => 20],
- [['url'], 'string', 'max' => 500],
- [['cover'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '主键',
- 'title' => '中文名',
- 'url' => '跳转链接',
- 'cover' => 'cover',
- 'is_docking' => '是否对接:1:是;0:否',
- 'status' => '状态[-1:删除;0:禁用;1启用;]',
- 'created_at' => '创建时间',
- 'updated_at' => '修改时间',
- ];
- }
- }
|