| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use app\constants\OptionSetting;
- use app\modules\alliance\models\CurrencyForm;
- use app\plugins\scanCodePay\models\Order as ScanCodePayOrder;
- use app\plugins\scanCodePay\models\Order as ScanOrder;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- use Yii;
- use yii\helpers\Json;
- /**
- * This is the model class for table "{{%go_shop_coupon}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $is_order_no
- * @property float $amount
- * @property integer $is_bonus
- * @property integer $is_scan
- * @property integer $is_delete
- * @property integer $created_at
- * @property string $idempotent_type
- * @property string $phone
- * @property string $order_no
- */
- class GoShopCoupon extends \yii\db\ActiveRecord
- {
- public static function tableName()
- {
- return '{{%go_shop_coupon}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ]
- ]
- ];
- }
- public function rules()
- {
- return [
- [['store_id', 'is_order_no', 'is_delete', 'is_bonus', 'is_scan','id'], 'integer'],
- [['amount'], 'number'],
- [['phone','order_no','idempotent_type'], 'string'],
- [['created_at'], 'safe']
- ];
- }
- }
|