AlexAegis/loreplotter

View on GitHub
src/app/model/schema/actor.schema.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { RxJsonSchema } from 'rxdb';
import { Actor } from '../data';

export const actorSchema: RxJsonSchema<Partial<Actor>> = {
    title: 'Actor',
    description: 'Actor Object, describes a series of events',
    version: 0,
    keyCompression: true,
    type: 'object',
    properties: {
        id: {
            type: 'string',
            primary: true
        },
        loreId: {
            type: 'string',
            ref: 'lore'
        },
        states: {
            type: 'string'
        }
    },
    required: ['id', 'loreId']
};