UNPKG

blow-data

Version:
22 lines (18 loc) 497 B
'use strict'; import {IHasManyRelation, IBelongsToRelation} from '../../src/interfaces'; import {PersistedModel} from '../../src/PersistedModel'; export interface Book extends PersistedModel { title: string; price: number; available: boolean; edition: Edition; authorId: string; author: IBelongsToRelation<Author> } export interface Author extends PersistedModel { name: string; books: IHasManyRelation<Book>; } export interface Edition extends PersistedModel { no: number; }