Skip to content

Commit

Permalink
chore: schema.md (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy authored Jan 30, 2025
1 parent 944d267 commit 9d0546b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### **Schema: Users**
**Description**: Stores user credentials and metadata.
```json
```jsonc
{
"_id": "ObjectId",
"pubKey": "string", // Nostr public key
Expand All @@ -15,7 +15,7 @@

### **Schema: Domains**
**Description**: Defines domain settings, including pricing and TTL values.
```json
```jsonc
{
"_id": "ObjectId",
"domain": "string", // Domain name (e.g., "example.com")
Expand All @@ -31,7 +31,7 @@

### **Schema: Identifiers**
**Description**: Tracks identifiers assigned to users within a domain.
```json
```jsonc
{
"_id": "ObjectId",
"name": "string", // Identifier name (e.g., "alice")
Expand All @@ -48,7 +48,7 @@

### **Schema: Records**
**Description**: Stores resolution records (e.g., TXT, NOSTR, CNAME) for identifiers.
```json
```jsonc
{
"name": "Records",
"_id": "ObjectId",
Expand All @@ -66,7 +66,7 @@

### **Schema: ReservedIdentifiers**
**Description**: Tracks reserved identifiers that cannot be registered by users and their associated pricing.
```json
```jsonc
{
"name": "ReservedIdentifiers",
"_id": "ObjectId",
Expand All @@ -83,7 +83,7 @@

### **Schema: Logs**
**Description**: Tracks various system events, including record changes, user logins, purchases, and more.
```json
```jsonc
{
"name": "Logs",
"_id": "ObjectId",
Expand All @@ -95,4 +95,4 @@
"metadata": "object", // Additional metadata (e.g., changes made, IP address, amount, etc.)
"createdAt": "ISODate" // Log creation timestamp
}
```
```

0 comments on commit 9d0546b

Please sign in to comment.