mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-07 07:30:54 +08:00
24 lines
347 B
Java
24 lines
347 B
Java
package com.openisle.model;
|
|
|
|
import jakarta.persistence.*;
|
|
import lombok.Data;
|
|
|
|
import java.time.LocalDate;
|
|
|
|
/**
|
|
* Invite token entity tracking usage counts.
|
|
*/
|
|
@Data
|
|
@Entity
|
|
public class InviteToken {
|
|
@Id
|
|
private String token;
|
|
|
|
@ManyToOne
|
|
private User inviter;
|
|
|
|
private LocalDate createdDate;
|
|
|
|
private int usageCount;
|
|
}
|