| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%alipay_voucher_code}}".
- *
- * @property int $id
- * @property int $mini_id
- * @property int $store_id
- * @property int $coupon_id 优惠券id
- * @property int $alipay_activity_id 支付宝商家券活动id
- * @property int $publish_start_time
- * @property int $publish_end_time
- * @property int $status
- * @property int $is_delete 是否删除
- * @property int $created_at 添加时间
- * @property int $updated_at 更新时间
- */
- class ActivityOrdervoucher extends ActiveRecord
- {
- public static function tableName()
- {
- return '{{%alipay_activity_ordervoucher}}';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => null
- ]
- ];
- }
- public function rules()
- {
- return [
- [['id', 'coupon_id', 'store_id', 'mini_id'], 'integer'],
- [['create_at', 'update_at', 'is_delete', 'alipay_activity_id'], 'safe']
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mini_id' => 'store_id',
- 'store_id' => 'store_id',
- 'coupon_id' => 'coupon_id',
- 'alipay_activity_id' => '支付宝商家券活动id',
- 'is_delete' => '删除',
- 'create_at' => '创建时间',
- 'update_at' => '更新时间',
- ];
- }
- }
|