Skip to content

Commit

Permalink
Create the user document
Browse files Browse the repository at this point in the history
  • Loading branch information
juncevich committed Dec 11, 2023
1 parent f1daa96 commit 49625fb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
@@ -0,0 +1,5 @@
package com.relay.chatservice.user;

public enum Status {
ONLINE, OFFLINE
}
16 changes: 16 additions & 0 deletions chat-service/src/main/java/com/relay/chatservice/user/User.java
@@ -0,0 +1,16 @@
package com.relay.chatservice.user;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Setter
@Document
public class User {
@Id
private String userName;
private String fullName;
private Status status;
}

0 comments on commit 49625fb

Please sign in to comment.