From 34131c93f2ec451f477975e8996c277f6bc8fb86 Mon Sep 17 00:00:00 2001 From: yenicelik Date: Tue, 17 Jan 2023 20:15:46 +0100 Subject: [PATCH] not sure why login was modified --- entities/src/login.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entities/src/login.rs b/entities/src/login.rs index 82a78e42..1be72895 100644 --- a/entities/src/login.rs +++ b/entities/src/login.rs @@ -1,5 +1,6 @@ //! `SeaORM` Entity. Generated by sea-orm-codegen 0.10.6 +use crate::serialization; use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; @@ -9,7 +10,8 @@ pub struct Model { #[sea_orm(primary_key)] pub id: u64, #[sea_orm(unique)] - pub bearer_token: Vec, + #[serde(serialize_with = "serialization::uuid_as_ulid")] + pub bearer_token: Uuid, pub user_id: u64, pub expires_at: DateTimeUtc, }