feat: use device_name in refresh_tokens table

This commit is contained in:
Radical 2025-05-01 20:19:18 +02:00
parent c009d578a7
commit a89d705239
3 changed files with 10 additions and 7 deletions

View file

@ -56,7 +56,8 @@ async fn main() -> Result<(), Error> {
CREATE TABLE IF NOT EXISTS refresh_tokens (
token varchar(64) PRIMARY KEY UNIQUE NOT NULL,
uuid uuid NOT NULL REFERENCES users(uuid),
created int8 NOT NULL
created int8 NOT NULL,
device_name varchar(16) NOT NULL
);
CREATE TABLE IF NOT EXISTS access_tokens (
token varchar(32) PRIMARY KEY UNIQUE NOT NULL,