syntax = "proto3";

package payment;

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

// Payment message represents a payment connected to a user
message Payment {
    // Payment ID
    int32 id = 1;

    // User ID sent
    string user_id = 2;

    // amount
    string amount = 3;

    // Payment address (Ethereum address format)
    string wallet_address = 4;

    string receive_address = 5;

    // e.g., "ethereum", "polygon", etc.
    string chain = 6;

    // info tx, proof tx
    string txHash = 7;

    // address contract usdt, usdc
    string token_address = 8;

    // Creation timestamp (Unix seconds)
    int64 created_at = 9;

    string status = 10;
}
