WechatVideoShopExpressCompany.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace addons\WechatVideoShop\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_wechat_video_shop_express_company".
  6. *
  7. * @property int $id
  8. * @property int $status 状态[1启用 0禁用 -1删除]
  9. * @property int $created_at 创建时间
  10. * @property int $updated_at 更新事件
  11. * @property int $company_id 本地快递公司ID
  12. * @property string $delivery_id 快递公司编码
  13. * @property string $delivery_name 快递公司名称
  14. */
  15. class WechatVideoShopExpressCompany extends \common\models\base\BaseActiveRecord
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function tableName()
  21. {
  22. return 'qimall_addons_wechat_video_shop_express_company';
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['status', 'created_at', 'updated_at', 'company_id'], 'integer'],
  31. [['delivery_id', 'delivery_name'], 'string', 'max' => 10],
  32. ];
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => 'ID',
  41. 'status' => 'Status',
  42. 'created_at' => 'Created At',
  43. 'updated_at' => 'Updated At',
  44. 'company_id' => 'Company ID',
  45. 'delivery_id' => 'Delivery ID',
  46. 'delivery_name' => 'Delivery Name',
  47. ];
  48. }
  49. }