refactor application configuration and update user model with new fields
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user