syntax = "proto3";

option go_package = "htwkalender/common/modules";

service FeedService {
  rpc GetFeed(GetFeedRequest) returns (GetFeedResponse) {}
}

message Feed {
  string id = 1;
  string modules = 2;
  string retrieved = 3;
  string created = 4;
  string updated = 5;
  bool deleted = 6;
  string type = 7;  // "prof" or "student"
  string user = 8;  // User ID relation
  string user_email = 9; // User Email for filtering
}

message GetFeedRequest {
  string id = 1;
}

message GetFeedResponse {
  Feed feed = 1;
}