AlipayVoucherCode.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\db\ActiveRecord;
  9. use yii\behaviors\TimestampBehavior;
  10. /**
  11. * This is the model class for table "{{%alipay_voucher_code}}".
  12. *
  13. * @property int $id
  14. * @property int $store_id
  15. * @property int $mini_id 小程序
  16. * @property int $activity_ordervoucher_id 商家券活动id
  17. * @property int $voucher_code 券码
  18. * @property int $status 券码
  19. * @property string $order_no 订单编号
  20. * @property string $clerk_saas_id
  21. * @property string $total_price
  22. * @property string $sub_price
  23. */
  24. class AlipayVoucherCode extends ActiveRecord
  25. {
  26. public static function tableName()
  27. {
  28. return '{{%alipay_voucher_code}}';
  29. }
  30. public function rules()
  31. {
  32. return [
  33. [['id', 'store_id', 'mini_id', 'activity_ordervoucher_id'], 'integer'],
  34. [['create_at', 'update_at', 'is_delete', 'is_upload', 'clerk_saas_id', 'total_price', 'sub_price'], 'safe']
  35. ];
  36. }
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => 'ID',
  41. 'mini_id' => 'store_id',
  42. 'store_id' => 'store_id',
  43. 'activity_ordervoucher_id' => '商家券活动id',
  44. 'voucher_code' => '券码',
  45. 'status' => '状态',
  46. 'order_no' => '订单编号',
  47. 'clerk_saas_id' => 'clerk_saas_id',
  48. 'total_price' => 'total_price',
  49. 'sub_price' => 'sub_price',
  50. ];
  51. }
  52. }