| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace addons\QiDingDong\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_qi_ding_dong_brand".
- *
- * @property int $id ID
- * @property int $mall_id 商城ID
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- * @property int $status 状态
- * @property int $brand_id 品牌ID
- * @property string $name 品牌名称
- * @property string $img_url 图标
- * @property string $describe 简介
- */
- class QiDingDongBrand extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_qi_ding_dong_brand';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'created_at', 'updated_at', 'status', 'brand_id'], 'integer'],
- [['name'], 'string', 'max' => 50],
- [['img_url'], 'string', 'max' => 255],
- [['describe'], 'string', 'max' => 1000],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'status' => 'Status',
- 'brand_id' => 'Brand ID',
- 'name' => 'Name',
- 'img_url' => 'Img Url',
- 'describe' => 'Describe',
- ];
- }
- }
|