Add domain for users, posts, comments
This commit is contained in:
21
src/main/java/com/cubetiqs/demo/domain/UserEntity.java
Normal file
21
src/main/java/com/cubetiqs/demo/domain/UserEntity.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.cubetiqs.demo.domain;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "users")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class UserEntity extends BaseEntity<Long> {
|
||||
@Column(name = "email", length = 100, unique = true, nullable = false)
|
||||
private String email;
|
||||
|
||||
@Column(length = 100)
|
||||
private String password;
|
||||
}
|
||||
Reference in New Issue
Block a user