注册登录,用户等级,社交,动态,新手任务
Change-Id: I1d3183526517fb3c0dab665e0e7547eefa5c9d76
diff --git a/src/main/java/com/example/myproject/entity/Collections.java b/src/main/java/com/example/myproject/entity/Collections.java
new file mode 100644
index 0000000..f7a8711
--- /dev/null
+++ b/src/main/java/com/example/myproject/entity/Collections.java
@@ -0,0 +1,44 @@
+package com.example.myproject.entity;
+
+import javax.persistence.*;
+
+@Entity
+@Table(name = "collections")
+public class Collections {
+
+ @Id
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ @Column(name = "collectionId")
+ private Long collectionId;
+
+ @Column(name = "user_id")
+ private Long userId;
+
+ @Column(name = "postNo")
+ private Long postNo;
+
+ // Getters and Setters
+ public Long getCollectionId() {
+ return collectionId;
+ }
+
+ public void setCollectionId(Long collectionId) {
+ this.collectionId = collectionId;
+ }
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ public Long getPostNo() {
+ return postNo;
+ }
+
+ public void setPostNo(Long postNo) {
+ this.postNo = postNo;
+ }
+}