QiShangTongCate.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace addons\QiShangTong\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_qi_shang_tong_cate".
  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 string $cate_name 类目名称
  13. * @property int $level 类目级别
  14. * @property int $parent_id 上级ID
  15. * @property int $cate_id 类目ID
  16. * @property int $third_cate_id 第三方类目ID
  17. * @property string $icon 图标
  18. * @property string $select_icon 选中图标
  19. */
  20. class QiShangTongCate extends \common\models\base\BaseActiveRecord
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return 'qimall_addons_qi_shang_tong_cate';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['mall_id', 'created_at', 'updated_at', 'status', 'level', 'parent_id', 'cate_id', 'third_cate_id'], 'integer'],
  36. [['cate_name'], 'string', 'max' => 50],
  37. [['icon', 'select_icon'], 'string', 'max' => 255],
  38. ];
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'mall_id' => 'Mall ID',
  48. 'created_at' => 'Created At',
  49. 'updated_at' => 'Updated At',
  50. 'status' => 'Status',
  51. 'cate_name' => 'Cate Name',
  52. 'level' => 'Level',
  53. 'parent_id' => 'Parent ID',
  54. 'cate_id' => 'Cate ID',
  55. 'third_cate_id' => 'Third Cate ID',
  56. 'icon' => 'Icon',
  57. 'select_icon' => 'Select Icon',
  58. ];
  59. }
  60. }