TimestampBehavior::class, 'createdAtAttribute' => 'issued_at', 'updatedAtAttribute' => false, ], ]; } public function getSession(): ActiveQuery { return $this->hasOne(OauthSession::class, ['account_id' => 'account_id', 'client_id' => 'client_id']); } public function getAccount(): ActiveQuery { return $this->hasOne(Account::class, ['id' => 'account_id']); } public function getClient(): ActiveQuery { return $this->hasOne(OauthClient::class, ['id' => 'client_id']); } }