user module

This commit is contained in:
2026-01-13 19:59:06 +03:30
parent 6522acff5f
commit d630cb844a
62 changed files with 1137 additions and 3040 deletions
@@ -8,7 +8,7 @@ export enum RefreshTokenType {
}
@Entity({ tableName: 'refreshtokens' })
@Index({ properties: ['ownerId', 'restId', 'type'] })
@Index({ properties: ['ownerId', '', 'type'] })
@Index({ properties: ['hashedToken'] })
@Index({ properties: ['expiresAt'] })
export class RefreshToken extends BaseEntity {
@@ -19,11 +19,11 @@ export class RefreshToken extends BaseEntity {
ownerId!: string;
@Property()
restId!: string;
!: string;
@Enum(() => RefreshTokenType)
@Enum(() => RefreshTokenType)
type!: RefreshTokenType;
@Property({ type: 'timestamptz' })
expiresAt!: Date;
@Property({ type: 'timestamptz' })
expiresAt!: Date;
}