Skip to content

Commit

Permalink
#Add Messages data model
Browse files Browse the repository at this point in the history
  • Loading branch information
SariaAlam committed Oct 17, 2023
1 parent 206cc5d commit 1c84bdc
Show file tree
Hide file tree
Showing 2 changed files with 239 additions and 0 deletions.
220 changes: 220 additions & 0 deletions internal/model/messages.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions internal/model/messages.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
syntax = "proto3";

package model;
option go_package = ".;model";
import "google/protobuf/timestamp.proto";

message Messages{
string msg_id= 1;
string sender_id= 2;
string receiver_id = 3;
string content = 4 ;
google.protobuf.Timestamp sent_time = 5 ;
google.protobuf.Timestamp last_edit = 6;
bool status = 7 ;
string attachment = 8 ;
}



0 comments on commit 1c84bdc

Please sign in to comment.