Skip to content

Commit 62cad6a

Browse files
committed
List and count methods on the UserRegistrationTokenRepository
1 parent 455e778 commit 62cad6a

File tree

4 files changed

+578
-5
lines changed

4 files changed

+578
-5
lines changed

crates/storage-pg/src/iden.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 New Vector Ltd.
1+
// Copyright 2024, 2025 New Vector Ltd.
22
// Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
33
//
44
// SPDX-License-Identifier: AGPL-3.0-only
@@ -139,3 +139,16 @@ pub enum UpstreamOAuthLinks {
139139
HumanAccountName,
140140
CreatedAt,
141141
}
142+
143+
#[derive(sea_query::Iden)]
144+
pub enum UserRegistrationTokens {
145+
Table,
146+
UserRegistrationTokenId,
147+
Token,
148+
UsageLimit,
149+
TimesUsed,
150+
CreatedAt,
151+
LastUsedAt,
152+
ExpiresAt,
153+
RevokedAt,
154+
}

0 commit comments

Comments
 (0)