<commit_before>'use strict';

module.exports.create = function (conf, deps, app) {
  // TODO there should be an adapter
  //var PromiseA = deps.Promise;
  //var Kv = deps.memstore;
  //var Sqlstore = deps.sqlstores.config;
  var wrap = require('dbwrap');
  var dir = [
    // TODO consider zones separately from domains
    // i.e. jake.smithfamily.com could be owned by jake alone
    { tablename: 'domains'
    , idname: 'id' // crypto random
    , indices: ['createdAt', 'updatedAt', 'deletedAt', 'revokedAt', 'zone', 'name', 'type', 'value', 'device']
    , hasMany: ['accounts', 'groups']
    }
  , { tablename: 'accounts_domains'
    , idname: 'id'
    , indices: ['createdAt', 'updatedAt', 'deletedAt', 'revokedAt', 'accountId']
    , hasMany: ['accounts', 'domains']
    }
  , { tablename: 'domains_groups'<commit_msg>dbwrap -> masterquest<commit_after>'use strict';

module.exports.create = function (conf, deps, app) {
  // TODO there should be an adapter
  //var PromiseA = deps.Promise;
  //var Kv = deps.memstore;
  //var Sqlstore = deps.sqlstores.config;
  var wrap = require('masterquest-sqlite3');
  var dir = [
    // TODO consider zones separately from domains
    // i.e. jake.smithfamily.com could be owned by jake alone
    { tablename: 'domains'
    , idname: 'id' // crypto random
    , indices: ['createdAt', 'updatedAt', 'deletedAt', 'revokedAt', 'zone', 'name', 'type', 'value', 'device']
    , hasMany: ['accounts', 'groups']
    }
  , { tablename: 'accounts_domains'
    , idname: 'id'
    , indices: ['createdAt', 'updatedAt', 'deletedAt', 'revokedAt', 'accountId']
    , hasMany: ['accounts', 'domains']
    }
  , { tablename: 'domains_groups'
{'fraction_non_alphanumeric': 0.16915720263000597, 'fraction_numerical': 0.0005977286312014345, 'mean_word_length': 3.487935656836461, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5466642', 'n_tokens_mistral': 573, 'n_tokens_neox': 568, 'n_words': 150}