| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- use Yii;
- /**
- * This is the model class for table "{{%video_goods_author}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int $user_id 用户id
- * @property int $is_delete 是否删除
- * @property int $is_show 是否禁用
- * @property int $status 状态
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- * @property int $card_type 证件类型
- * @property string $card_front 身份证正面
- * @property string $card_before 身份证反面
- * @property string $name 姓名
- * @property string $mobile 手机号
- * @property string $desc 申请理由
- */
- class VideoGoodsAuthor extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%video_goods_author}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
- ]
- ]
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'user_id', 'is_delete', 'status', 'is_show', 'created_at', 'updated_at', 'card_type'], 'integer'],
- [['card_front', 'card_before', 'name', 'mobile', 'desc'], 'string']
- ];
- }
- }
|