| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace app\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "cyy_event_setting".
- *
- * @property int $id
- * @property int|null $store_id 商城ID
- * @property int|null $created_at
- * @property int|null $updated_at
- * @property int|null $is_delete 是否删除:0=否;1=是;
- * @property string|null $banner 轮播图
- */
- class EventSetting extends \yii\db\ActiveRecord
- {
- public static function tableName()
- {
- return 'cyy_event_setting';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- public function rules()
- {
- return [
- [['store_id', 'created_at', 'updated_at', 'is_delete'], 'integer'],
- [['banner'], 'string'],
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => '商城ID',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- 'is_delete' => '是否删除',
- 'banner' => '轮播图',
- ];
- }
- }
|