Skip to content

[TASK] User Model Refactoring & Database Scheme #2

@Cloumy074

Description

@Cloumy074

Task Title

Redesign the UsersSchema to match the properties

Task Type

Refactoring

Related Story

No response

Description

The UsersSchema.kt has to be updated to have:

  • Username: A unique identifier for the user.
  • Password: An Argon2 hashed password for authentication.
  • A list of Client Tokens: Each token is associated with a client that doesn't expire unless the user choose to invalidate it.
  • A list of Session Tokens: Each token is associated with a client session and expires everytime the WebSocket connection is closed.

Acceptance Criteria

  • The User Model MUST be corresponding to the properties, which includes:
    • Redesigning the Users table.
    • Creating a ClientTokens table.
    • Creating a SessionTokens table.
  • Unit Tests MUST be completed

Priority

High

Technical Notes

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions