root | ff0769a | 2025-05-18 17:24:41 +0000 | [diff] [blame] | 1 | package entity; |
root | cd43656 | 2025-05-08 14:09:19 +0000 | [diff] [blame] | 2 | |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 3 | import javax.persistence.Column; |
| 4 | import javax.persistence.Entity; |
| 5 | import javax.persistence.ForeignKey; |
| 6 | import javax.persistence.Id; |
| 7 | import javax.persistence.JoinColumn; |
| 8 | import javax.persistence.ManyToOne; |
| 9 | import javax.persistence.Table; |
| 10 | import javax.persistence.Transient; |
TRM-coding | 8b42ebf | 2025-06-06 21:49:04 +0800 | [diff] [blame] | 11 | import com.querydsl.core.annotations.QueryEntity; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 12 | |
TRM-coding | 8b42ebf | 2025-06-06 21:49:04 +0800 | [diff] [blame] | 13 | @QueryEntity |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 14 | @Entity |
| 15 | @Table(name = "UserMigration") |
root | 824a0ed | 2025-05-18 17:24:41 +0000 | [diff] [blame] | 16 | public class Profile {// 迁移信息 |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 17 | @Id |
| 18 | @Column(name = "migration_id", length = 64, nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 19 | public String profileurl; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 20 | |
| 21 | @Column(name = "user_id", length = 36, nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 22 | public String userid; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 23 | |
| 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) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 29 | public boolean exampass; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 30 | |
| 31 | @Column(name = "pending_magic", nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 32 | public String magictogive; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 33 | |
| 34 | @Column(name = "pending_uploaded", nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 35 | public String uploadtogive; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 36 | |
| 37 | @Transient |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 38 | public String downloadtogive; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 39 | |
| 40 | @Column(name = "granted_magic", nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 41 | public String magicgived; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 42 | |
| 43 | @Column(name = "granted_uploaded", nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 44 | public String uploadgived; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 45 | |
| 46 | @Transient |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 47 | public String downloadgived; |
root | 824a0ed | 2025-05-18 17:24:41 +0000 | [diff] [blame] | 48 | |
| 49 | @Column(name = "application_url", nullable = false) |
| 50 | public String applicationurl; |
root | cd43656 | 2025-05-08 14:09:19 +0000 | [diff] [blame] | 51 | } |