| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace addons\LuckyGroup\common\models;
- use common\models\base\BaseActiveRecord;
- use Yii;
- /**
- * This is the model class for table "{{%addons_lucky_group_banners}}".
- *
- * @property int $id
- * @property int $mall_id
- * @property int $sort 序号
- * @property string $title 图片标题
- * @property string $pic_link 图片跳转链接
- * @property string $pic_path 图片保存路径
- * @property string $bgcolor 背景色
- * @property int $is_show 是否展示,1:是,0:不是
- * @property int $status 状态[-1:删除;0:禁用;1启用]
- * @property int $created_at
- * @property int $updated_at
- */
- class LuckyGroupBanners extends BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_lucky_group_banners}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id'], 'required'],
- [['mall_id', 'sort', 'is_show', 'status', 'created_at', 'updated_at'], 'integer'],
- [['title', 'pic_link', 'pic_path'], 'string', 'max' => 255],
- [['bgcolor'], 'string', 'max' => 100],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'sort' => '序号',
- 'title' => '图片标题',
- 'pic_link' => '图片跳转链接',
- 'pic_path' => '图片保存路径',
- 'bgcolor' => '背景色',
- 'is_show' => '是否展示,1:是,0:不是',
- 'status' => '状态[-1:删除;0:禁用;1启用]',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- ];
- }
- }
|