database schema

Database Name: edithai

Users Collection

Users (document structure)
{
  "_id",
  "walletAddress",
  "createdAt",
  "updatedAt",
  "totalPrompts",
  "totalSpent",
  "isBlocked"
}

Prompts Collection

Prompts (document structure)
{
  "_id",
  "userId",
  "promptText",
  "modelUsed",
  "inputTokens",
  "outputTokens",
  "computeUnits",
  "cost",
  "status",
  "createdAt"
}

UsageReceipts Collection

Settlements Collection

Was this helpful?