QiDingDongBrand.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace addons\QiDingDong\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_qi_ding_dong_brand".
  6. *
  7. * @property int $id ID
  8. * @property int $mall_id 商城ID
  9. * @property int $created_at 创建时间
  10. * @property int $updated_at 更新时间
  11. * @property int $status 状态
  12. * @property int $brand_id 品牌ID
  13. * @property string $name 品牌名称
  14. * @property string $img_url 图标
  15. * @property string $describe 简介
  16. */
  17. class QiDingDongBrand extends \common\models\base\BaseActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return 'qimall_addons_qi_ding_dong_brand';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['mall_id', 'created_at', 'updated_at', 'status', 'brand_id'], 'integer'],
  33. [['name'], 'string', 'max' => 50],
  34. [['img_url'], 'string', 'max' => 255],
  35. [['describe'], 'string', 'max' => 1000],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'mall_id' => 'Mall ID',
  46. 'created_at' => 'Created At',
  47. 'updated_at' => 'Updated At',
  48. 'status' => 'Status',
  49. 'brand_id' => 'Brand ID',
  50. 'name' => 'Name',
  51. 'img_url' => 'Img Url',
  52. 'describe' => 'Describe',
  53. ];
  54. }
  55. }