<commit_before># Redink
RethinkDB ORM

[![CircleCI](https://circleci.com/gh/endfire/redink.svg?style=svg)](https://circleci.com/gh/endfire/redink)
[![codecov](https://codecov.io/gh/endfire/redink/branch/master/graph/badge.svg)](https://codecov.io/gh/endfire/redink)

## Installation
```sh
$ npm install redink
```

## Define schemas
```js
import { schema, hasMany, hasOne, belongsTo } from 'redink';

export const user = schema('user', {
  attributes: {
    name: true,
    email: true,
    createdOn: true,
  },
  relationships: {
    blogs: hasMany('blog', 'author'),
    company: hasOne('company', 'employees'),
  },
});

export const blog = schema('blog', {
  attributes: {
    title: true,
    content: true,<commit_msg>Update README badges<commit_after># Redink
RethinkDB ORM

[![CircleCI](https://circleci.com/gh/directlyio/redink.svg?style=svg)](https://circleci.com/gh/directlyio/redink)
[![codecov](https://codecov.io/gh/directlyio/redink/branch/master/graph/badge.svg)](https://codecov.io/gh/directlyio/redink)

## Installation
```sh
$ npm install redink
```

## Define schemas
```js
import { schema, hasMany, hasOne, belongsTo } from 'redink';

export const user = schema('user', {
  attributes: {
    name: true,
    email: true,
    createdOn: true,
  },
  relationships: {
    blogs: hasMany('blog', 'author'),
    company: hasOne('company', 'employees'),
  },
});

export const blog = schema('blog', {
  attributes: {
    title: true,
    content: true,
{'fraction_non_alphanumeric': 0.18107556160653507, 'fraction_numerical': 0.0, 'mean_word_length': 4.345454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '5335642', 'n_tokens_mistral': 531, 'n_tokens_neox': 518, 'n_words': 97}