| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- namespace addons\LsActivity\common\models;
- use Yii;
- /**
- * This is the model class for table "rf_addon_activity_notice".
- *
- * @property int $id 序号
- * @property string|null $title 标题
- * @property string|null $cover 封面
- * @property string|null $seo_content seo内容
- * @property string|null $description 描述
- * @property string|null $seo_key seo关键字
- * @property string|null $content 文章内容
- * @property int|null $view 浏览量
- * @property int|null $sort 优先级
- * @property int|null $check_max 报名人数限制
- * @property int|null $check 已报名人数
- * @property string|null $author 作者
- * @property int|null $status 状态
- * @property string|null $created_at 创建时间
- * @property string|null $updated_at 更新时间
- */
- class Activity extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'rf_addon_activity_notice';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['view', 'sort', 'check_max', 'check', 'status'], 'integer'],
- [['created_at', 'updated_at'], 'safe'],
- [['title'], 'string', 'max' => 30],
- [['cover'], 'string', 'max' => 100],
- [['seo_content'], 'string', 'max' => 1000],
- [['description', 'content', 'author'], 'string', 'max' => 255],
- [['seo_key'], 'string', 'max' => 50],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '序号',
- 'title' => '标题',
- 'cover' => '封面',
- 'seo_content' => 'seo内容',
- 'description' => '描述',
- 'seo_key' => 'seo关键字',
- 'content' => '文章内容',
- 'view' => '浏览量',
- 'sort' => '优先级',
- 'check_max' => '报名人数限制',
- 'check' => '已报名人数',
- 'author' => '作者',
- 'status' => '状态',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- ];
- }
- }
|