feat(smAccount): Tracking content creator social media accounts

This commit is contained in:
Chris Troutner
2025-07-01 15:47:44 -07:00
parent 1b58bda5a7
commit 9b46bbd7bb
2 changed files with 17 additions and 0 deletions
+2
View File
@@ -8,6 +8,7 @@ import Entries from './models/entry.js'
import Order from './models/order.js' import Order from './models/order.js'
import Offer from './models/offer.js' import Offer from './models/offer.js'
import Usage from './models/usage.js' import Usage from './models/usage.js'
import SmAccount from './models/smAccount.js'
class LocalDB { class LocalDB {
constructor () { constructor () {
@@ -17,6 +18,7 @@ class LocalDB {
this.Order = Order this.Order = Order
this.Offer = Offer this.Offer = Offer
this.Usage = Usage this.Usage = Usage
this.SmAccount = SmAccount
} }
} }
+15
View File
@@ -0,0 +1,15 @@
/*
Social Media Account Model.
This model is used to track content creators using the DEX
Nostr social media channel.
*/
import mongoose from 'mongoose'
const SmAccount = new mongoose.Schema({
npub: { type: String, required: true },
bch: { type: String, required: true, default: '' }
})
export default mongoose.model('smAccount', SmAccount)