TryGhost/Ghost

View on GitHub
ghost/admin/mirage/models/post.js

Summary

Maintainability
A
0 mins
Test Coverage
import {Model, belongsTo, hasMany} from 'miragejs';

export default Model.extend({
    tags: hasMany(),
    authors: hasMany('user'),
    email: belongsTo(),
    newsletter: belongsTo(),
    postRevisions: hasMany()
});