| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%verify_card_log}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int $sale_id 核销卡售卖id
- * @property int $shop_id 核销自提点
- * @property int $verify_person 核销人员
- * @property int $use_time 核销时间
- * @property int $is_delete
- * @property int $give_time 转赠时间
- * @property int $user_id 转赠人id
- * @property int recv_id 接收人id
- * @property int type 核销类型:1=核销,2=兑换,3=转赠
- * @property int received_time 接收时间
- * @property string describe 描述
- */
- class VerifyCardLog extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%verify_card_log}}';
- }
- const IS_DELETE_YES = 1;//已删除
- const IS_DELETE_NO = 0;//未删除
- const WRITE_TYPE_WRITE_OFF = 1; //核销
- const WRITE_TYPE_EXCHANGE = 2; //兑换
- const WRITE_TYPE_GIVE = 3; //赠送
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'sale_id', 'shop_id', 'verify_person', 'use_time', 'is_delete', 'user_id', 'recv_id', 'type', 'received_time'], 'integer'],
- ['describe', 'string'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'sale_id' => '核销卡售卖id',
- 'shop_id' => '核销自提点',
- 'verify_person' => '核销人员',
- 'use_time' => '核销时间',
- 'is_delete' => '状态',
- 'give_time' => '转赠时间',
- 'user_id' => '转赠人id',
- 'recv_id' => '接收人id',
- 'type' => '核销类型:1=核销,2=兑换,3=转赠',
- 'received_time' => '领取时间',
- 'describe' => '描述',
- ];
- }
- /**
- * {@inheritdoc}
- * @return VerifyCardQuery the active query used by this AR class.
- */
- // public static function find()
- // {
- // return new VerifyCardQuery(get_called_class());
- // }
- }
|