'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;
}