| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%video_shop_sharer}}".
- *
- * @property integer $id
- * @property integer $action_id
- * @property string $openid
- * @property string $nickname
- * @property integer $bind_time
- * @property integer $sharer_type
- * @property string $unionid
- * @property integer $user_id
- * @property string $username
- * @property string $invite_image
- * @property integer $store_id
- * @property integer $share_level
- * @property integer $is_share
- * @property integer $is_bind
- * @property integer $is_use
- * @property integer $is_delete
- * @property string $created_at
- * @property string $updated_at
- */
- class VideoShopSharer extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%video_shop_sharer}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'action_id', 'sharer_type', 'store_id', 'is_share', 'is_delete', 'bind_time', 'is_bind', 'user_id', 'share_level', 'is_use'], 'integer'],
- [['openid', 'nickname', 'unionid', 'username', 'invite_image'], 'string'],
- [['created_at', 'updated_at'], 'safe']
- ];
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- "id" => "",
- "action_id" => "小店id",
- "openid" => "",
- "nickname" => "分享员昵称",
- "bind_time" => "绑定时间",
- "sharer_type" => "分享员类型 0普通 1店铺",
- "unionid" => "",
- "username" => "邀请的用户微信号",
- "store_id" => "店铺id",
- "is_share" => "是否为邀请",
- "is_delete" => "",
- "created_at" => "",
- "updated_at" => "",
- 'invite_image' => '邀请码',
- 'is_bind' => '',
- 'user_id' => '商城用户id',
- 'share_level' => '分销商等级',
- 'is_use' => '是否激活'
- ];
- }
- }
|