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; |
| 11 | |
| 12 | @Entity |
| 13 | @Table(name = "UserMigration") |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 14 | public class Profile {//迁移信息 |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 15 | @Id |
| 16 | @Column(name = "migration_id", length = 64, nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 17 | public String profileurl; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 18 | |
| 19 | @Column(name = "user_id", length = 36, nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 20 | public String userid; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 21 | |
| 22 | @ManyToOne(optional = false) |
| 23 | @JoinColumn(name = "user_id", referencedColumnName = "user_id", foreignKey = @ForeignKey(name = "fk_um_user"), insertable = false, updatable = false) |
| 24 | public User user; |
| 25 | |
| 26 | @Column(name = "approved", nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 27 | public boolean exampass; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 28 | |
| 29 | @Column(name = "pending_magic", nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 30 | public String magictogive; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 31 | |
| 32 | @Column(name = "pending_uploaded", nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 33 | public String uploadtogive; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 34 | |
| 35 | @Transient |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 36 | public String downloadtogive; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 37 | |
| 38 | @Column(name = "granted_magic", nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 39 | public String magicgived; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 40 | |
| 41 | @Column(name = "granted_uploaded", nullable = false) |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 42 | public String uploadgived; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 43 | |
| 44 | @Transient |
root | 4b6a76b | 2025-05-09 04:57:59 +0000 | [diff] [blame] | 45 | public String downloadgived; |
root | cd43656 | 2025-05-08 14:09:19 +0000 | [diff] [blame] | 46 | } |