syntax = "proto3";

package auth;

option go_package = "github.com/echofi-ai/schema/v2/types/auth";

import "google/protobuf/timestamp.proto";

// Session message represents a user session (Auth.js compatible)
message Session {
  // Session ID
  string id = 1;
  
  // Session token
  string session_token = 2;
  
  // User ID
  string user_id = 3;
  
  // Session expiration timestamp
  google.protobuf.Timestamp expires = 4;

  // Creation timestamp
  optional google.protobuf.Timestamp created_at = 5;

  // Last update timestamp
  optional google.protobuf.Timestamp updated_at = 6;
}
