It's shorter, it's easier to extend its behaviour, and it's easier to integrate with other parts of our application, like translations.
83 lines
2.2 KiB
YAML
83 lines
2.2 KiB
YAML
User:
|
|
fields:
|
|
id: integer
|
|
username: string
|
|
public_debates: [Debate]
|
|
public_proposals: [Proposal]
|
|
public_comments: [Comment]
|
|
Debate:
|
|
fields:
|
|
id: integer
|
|
title: string
|
|
description: string
|
|
public_created_at: string
|
|
cached_votes_total: integer
|
|
cached_votes_up: integer
|
|
cached_votes_down: integer
|
|
comments_count: integer
|
|
hot_score: integer
|
|
confidence_score: integer
|
|
comments: [Comment]
|
|
public_author: User
|
|
votes_for: [Vote]
|
|
tags: [Tag]
|
|
Proposal:
|
|
fields:
|
|
id: integer
|
|
title: string
|
|
description: string
|
|
cached_votes_up: integer
|
|
comments_count: integer
|
|
hot_score: integer
|
|
confidence_score: integer
|
|
public_created_at: string
|
|
summary: string
|
|
video_url: string
|
|
geozone_id: integer
|
|
retired_at: string
|
|
retired_reason: string
|
|
retired_explanation: string
|
|
geozone: Geozone
|
|
comments: [Comment]
|
|
proposal_notifications: [ProposalNotification]
|
|
public_author: User
|
|
votes_for: [Vote]
|
|
tags: [Tag]
|
|
Comment:
|
|
fields:
|
|
id: integer
|
|
commentable_id: integer
|
|
commentable_type: string
|
|
body: string
|
|
public_created_at: string
|
|
cached_votes_total: integer
|
|
cached_votes_up: integer
|
|
cached_votes_down: integer
|
|
ancestry: string
|
|
confidence_score: integer
|
|
public_author: User
|
|
votes_for: [Vote]
|
|
Geozone:
|
|
fields:
|
|
id: integer
|
|
name: string
|
|
ProposalNotification:
|
|
fields:
|
|
title: string
|
|
body: string
|
|
proposal_id: integer
|
|
public_created_at: string
|
|
proposal: Proposal
|
|
Tag:
|
|
fields:
|
|
id: integer
|
|
name: string
|
|
taggings_count: integer
|
|
kind: string
|
|
Vote:
|
|
fields:
|
|
votable_id: integer
|
|
votable_type: string
|
|
public_created_at: string
|
|
vote_flag: boolean
|