refactor application configuration and update user model with new fields

This commit is contained in:
zyh
2025-07-18 18:12:21 +08:00
parent 0a76239544
commit 445e448d55
10 changed files with 164 additions and 20 deletions

View File

@@ -3,6 +3,7 @@ package com.yundage.chat.entity;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.annotation.Column;
import java.time.LocalDateTime;
@@ -12,10 +13,17 @@ public class PasswordResetToken {
@Id(keyType = KeyType.Auto)
private Long id;
@Column("user_id")
private Long userId;
private String token;
@Column("expires_at")
private LocalDateTime expiresAt;
private Boolean used;
@Column("created_at")
private LocalDateTime createdAt;
public PasswordResetToken() {