Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
this.db = new Db();
this.schema = new Schema(this.db, {
user: Model.extend({
things: hasMany({ polymorphic: true })
}),
post: Model.extend({
user: belongsTo({ inverse: 'things' })
})
});
}
import { Model, belongsTo } from 'ember-cli-mirage';
export default Model.extend({
task: belongsTo(),
user: belongsTo()
});
import { Model, hasMany, belongsTo } from 'ember-cli-mirage';
export default Model.extend({
task_groups: hasMany('task-group'),
job_summary: belongsTo('job-summary'),
});
import { Model, belongsTo } from 'ember-cli-mirage';
export default Model.extend({
preview: belongsTo(),
user: belongsTo()
});
import { Model, hasMany, belongsTo } from 'ember-cli-mirage';
export default Model.extend({
branches: hasMany(),
builds: hasMany('build'),
envVars: hasMany(),
settings: hasMany(),
caches: hasMany(),
defaultBranch: belongsTo('branch'),
currentBuild: belongsTo('build'),
});
import { Model, belongsTo } from 'ember-cli-mirage';
export default Model.extend({
commit: belongsTo(),
build: belongsTo(),
repository: belongsTo('repository'),
stage: belongsTo()
});
import { Model, belongsTo, hasMany } from 'ember-cli-mirage';
export default Model.extend({
githubAppInstallations: hasMany('github-app-installation'),
organizations: hasMany('organization'),
projectUsers: hasMany('project-user'),
sluggedRoute: belongsTo('slugged-route'),
stripeConnectSubscriptions: hasMany('stripe-connect-subscription'),
stripePlatformCard: belongsTo('stripe-platform-card'),
stripePlatformCustomer: belongsTo('stripe-platform-customer'),
userCategories: hasMany('user-category'),
userRoles: hasMany('user-role'),
userSkills: hasMany('user-skill')
});
import { Model, belongsTo } from 'ember-cli-mirage';
export default Model.extend({
build: belongsTo('build', { inverseOf: 'commit' }),
committer: belongsTo('git-user'),
author: belongsTo('git-user'),
job: belongsTo('job')
});
import { Model, belongsTo, hasMany } from 'ember-cli-mirage';
export default Model.extend({
jobs: hasMany('job'),
build: belongsTo('build'),
});