Add domain repo ID and token type indexes to AllocationToken table (#1560)

These are useful for the purposes of filtering by one-time/multi-use tokens, and
for determining which one-time tokens have been used (and if so, for which
domain).
This commit is contained in:
Ben McIlwain 2022-03-17 13:58:45 -04:00 committed by GitHub
parent 60c156c061
commit 6c20d39a2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 1474 additions and 1388 deletions

View file

@ -76,6 +76,8 @@ import org.joda.time.DateTime;
@javax.persistence.Index(
columnList = "domainName",
name = "allocation_token_domain_name_idx"),
@javax.persistence.Index(columnList = "tokenType"),
@javax.persistence.Index(columnList = "redemption_domain_repo_id")
})
public class AllocationToken extends BackupGroupRoot implements Buildable, DatastoreAndSqlEntity {