init wishlist files
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package _11.asktpk.artisanconnectbackend.entities;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "wishlist")
|
||||
@Getter
|
||||
@Setter
|
||||
public class Wishlist {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "client_id", nullable = false)
|
||||
private Client client;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "notice_id", nullable = false)
|
||||
private Notice notice;
|
||||
}
|
||||
Reference in New Issue
Block a user