mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
feat(smAccount): Tracking content creator social media accounts
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
Reference in New Issue
Block a user