1.0.1 • Published 7 years ago
the-resource-history v1.0.1
the-resource-history
History resource for the-db
Installation
$ npm install the-resource-history --save
Usage
'use strict'
const theDb = require('the-db')
const { TheHistoryResource } = require('the-resource-history')
async function tryExample () {
let db = theDb({
dialect: 'memory'
})
db.load(class extends TheHistoryResource {
}, 'TheHistoryResource01')
let { TheHistoryResource01 } = db.resources
let entity01 = await TheHistoryResource01.create({ name: 'entity01' })
/* ... */
}
tryExample().catch((err) => console.error(err))
Policies
TheHistoryResource Policy
Property | Description | Type | Required | Unique |
---|
ThePasswordHistoryResource Policy
Property | Description | Type | Required | Unique |
---|---|---|---|---|
userId | Id of the target user | "cly:string" | ||
passwordDigest | Digest of user password | "cly:string" | ||
at | Date recorded at | "" |
API Guide
License
This software is released under the MIT License.