1.0.1 • Published 7 years ago

the-resource-history v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

the-resource-history

Build Status npm Version JS Standard

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

PropertyDescriptionTypeRequiredUnique

ThePasswordHistoryResource Policy

PropertyDescriptionTypeRequiredUnique
userIdId of the target user"cly:string"
passwordDigestDigest of user password"cly:string"
atDate recorded at""

API Guide

License

This software is released under the MIT License.

Links