WechatIntracityService.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;
  4. /**
  5. * This is the model class for table "{{%wechat_intracity_service}}".
  6. *
  7. * @property integer $id
  8. * @property integer $store_id
  9. * @property string $wx_store_id
  10. * @property string $out_store_id
  11. * @property string $store_name
  12. * @property integer $order_pattern
  13. * @property string $service_trans_prefer
  14. * @property string $address_info
  15. * @property string $balance
  16. * @property integer $created_at
  17. * @property integer $updated_at
  18. * @property integer $is_delete
  19. * @property integer $md_id
  20. */
  21. class WechatIntracityService extends \yii\db\ActiveRecord
  22. {
  23. /**
  24. * @inheritdoc
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%wechat_intracity_service}}';
  29. }
  30. /**
  31. * @inheritdoc
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['created_at', 'updated_at', 'is_delete', 'store_id', 'order_pattern', 'id', 'md_id'], 'integer'],
  37. [['wx_store_id', 'out_store_id', 'store_name', 'service_trans_prefer', 'address_info', 'balance'], 'string'],
  38. ];
  39. }
  40. public function behaviors()
  41. {
  42. return [
  43. [
  44. 'class' => TimestampBehavior::class,
  45. ]
  46. ];
  47. }
  48. /**
  49. * @inheritdoc
  50. */
  51. public function attributeLabels()
  52. {
  53. return [
  54. 'id' => 'ID',
  55. 'store_id' => 'StoreID',
  56. 'wx_store_id' => '微信门店编号',
  57. 'out_store_id' => '自定义门店编号',
  58. 'store_name' => '门店名称',
  59. 'order_pattern' => '运力偏好 1:价格优先,2:运力优先, 默认价格优先',
  60. 'service_trans_prefer' => '优先使用的运力ID DADA 达达 SFTC 顺丰同城',
  61. 'address_info' => '地址信息',
  62. 'balance' => '余额',
  63. 'created_at' => '创建时间',
  64. 'updated_at' => '更新时间',
  65. 'is_delete' => 'Is Delete',
  66. ];
  67. }
  68. }