blob: ba151cc37319a11b517c06fb4de27a0688a81d34 [file] [log] [blame]
rootff0769a2025-05-18 17:24:41 +00001package entity;
rootcd436562025-05-08 14:09:19 +00002
root927f1532025-05-09 05:33:32 +00003import javax.persistence.Column;
4import javax.persistence.Entity;
5import javax.persistence.ForeignKey;
6import javax.persistence.Id;
7import javax.persistence.JoinColumn;
8import javax.persistence.ManyToOne;
9import javax.persistence.Table;
10import javax.persistence.Transient;
TRM-coding8b42ebf2025-06-06 21:49:04 +080011import com.querydsl.core.annotations.QueryEntity;
root927f1532025-05-09 05:33:32 +000012
TRM-coding8b42ebf2025-06-06 21:49:04 +080013@QueryEntity
root927f1532025-05-09 05:33:32 +000014@Entity
15@Table(name = "UserMigration")
root824a0ed2025-05-18 17:24:41 +000016public class Profile {// 迁移信息
root927f1532025-05-09 05:33:32 +000017 @Id
18 @Column(name = "migration_id", length = 64, nullable = false)
root4b6a76b2025-05-09 04:57:59 +000019 public String profileurl;
root927f1532025-05-09 05:33:32 +000020
21 @Column(name = "user_id", length = 36, nullable = false)
root4b6a76b2025-05-09 04:57:59 +000022 public String userid;
root927f1532025-05-09 05:33:32 +000023
24 @ManyToOne(optional = false)
25 @JoinColumn(name = "user_id", referencedColumnName = "user_id", foreignKey = @ForeignKey(name = "fk_um_user"), insertable = false, updatable = false)
26 public User user;
27
28 @Column(name = "approved", nullable = false)
root4b6a76b2025-05-09 04:57:59 +000029 public boolean exampass;
root927f1532025-05-09 05:33:32 +000030
31 @Column(name = "pending_magic", nullable = false)
root4b6a76b2025-05-09 04:57:59 +000032 public String magictogive;
root927f1532025-05-09 05:33:32 +000033
34 @Column(name = "pending_uploaded", nullable = false)
root4b6a76b2025-05-09 04:57:59 +000035 public String uploadtogive;
root927f1532025-05-09 05:33:32 +000036
37 @Transient
root4b6a76b2025-05-09 04:57:59 +000038 public String downloadtogive;
root927f1532025-05-09 05:33:32 +000039
40 @Column(name = "granted_magic", nullable = false)
root4b6a76b2025-05-09 04:57:59 +000041 public String magicgived;
root927f1532025-05-09 05:33:32 +000042
43 @Column(name = "granted_uploaded", nullable = false)
root4b6a76b2025-05-09 04:57:59 +000044 public String uploadgived;
root927f1532025-05-09 05:33:32 +000045
46 @Transient
root4b6a76b2025-05-09 04:57:59 +000047 public String downloadgived;
root824a0ed2025-05-18 17:24:41 +000048
49 @Column(name = "application_url", nullable = false)
50 public String applicationurl;
rootcd436562025-05-08 14:09:19 +000051}