80], [['client_id'], 'string', 'max' => 64], [['member_id'], 'string', 'max' => 100], [['grant_type'], 'string', 'max' => 30], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'refresh_token' => 'Refresh Token', 'merchant_id' => '商户id', 'client_id' => '授权ID', 'member_id' => '用户ID', 'expires' => '有效期', 'scope' => '授权权限', 'grant_type' => '组别', 'status' => '状态', 'created_at' => '创建时间', 'updated_at' => '修改时间', ]; } /** * @return \yii\db\ActiveQuery */ public function getClient() { return $this->hasOne(Client::class, ['client_id' => 'client_id']); } }