mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-22 22:21:09 +08:00
fix: 后端代码格式化
This commit is contained in:
@@ -1,31 +1,33 @@
|
||||
package com.openisle.model;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import java.time.LocalDate;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/** Daily count of AI markdown formatting usage for a user. */
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@Table(name = "ai_format_usage",
|
||||
uniqueConstraints = @UniqueConstraint(columnNames = {"user_id", "use_date"}))
|
||||
@Table(
|
||||
name = "ai_format_usage",
|
||||
uniqueConstraints = @UniqueConstraint(columnNames = { "user_id", "use_date" })
|
||||
)
|
||||
public class AiFormatUsage {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "user_id")
|
||||
private User user;
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "use_date", nullable = false)
|
||||
private LocalDate useDate;
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "user_id")
|
||||
private User user;
|
||||
|
||||
@Column(nullable = false)
|
||||
private int count;
|
||||
@Column(name = "use_date", nullable = false)
|
||||
private LocalDate useDate;
|
||||
|
||||
@Column(nullable = false)
|
||||
private int count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user