mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add uploader_id as a second primary key.
This commit is contained in:
parent
4b96f46025
commit
fab35145e9
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ public class Video {
|
|||
@Column(name = "thumbnail", length = 400)
|
||||
private String thumbnail;
|
||||
|
||||
@Id
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "uploader_id", nullable = false)
|
||||
private Channel channel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue