| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\models;
- use app\jobs\SyncMdGoodsJob;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- use Yii;
- class Lg extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%lg}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
- ]
- ]
- ];
- }
- const IS_DELETE_YES = 1;//已删除
- const IS_DELETE_NO = 0;//未删除
- const AUDIT_YES = 1;// 审核通过
- const AUDIT_NO = 2;// 审核拒绝
- const AUDIT_WAIT = 0;// 等待审核
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['audit_time', 'store_id', 'is_delete', 'user_id', 'status', 'updated_at'], 'integer'],
- [['name', 'mobile', 'refuse_desc','bank_phone','cert_card','park_codes','acc_no','bank_code','id_card_front','id_card_back','alipay_acc','bank_pic'], 'string'],
- [['id_card_start'], 'number'],
- [['name', 'mobile', 'refuse_desc','bank_phone','cert_card','park_codes','acc_no','bank_code','id_card_front','id_card_back','alipay_acc','bank_pic','id_card_end'], 'string', 'max' => 255],
- [['created_at'], 'safe']
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'user_id' => '用户id',
- 'name' => 'Name',
- 'mobile' => 'Mobile',
- 'is_delete' => 'Is Delete',
- 'created_at' => '添加时间',
- 'status' => '审核状态(-1未通过,0待审核,1通过)',
- 'refuse_desc' => '拒接原因',
- ];
- }
- }
|