-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdraft.yaml
More file actions
35 lines (31 loc) · 711 Bytes
/
Copy pathdraft.yaml
File metadata and controls
35 lines (31 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
models:
Category:
title: json
# Post:
# user_id: foreign
# category_id: foreign
# # user_id: unsignedBigInteger
# title: json
# content: json
# image: string:250 nullable
# published_at: nullable timestamp
# softDeletes
# # relationships:
# # belongsTo: User
CategoryPost:
category_id: foreign
post_id: foreign
#controllers:
# Post:
# index:
# query: all
# render: posts.index with:posts
#
# store:
# validate: title, content
# save: posts
# send: ReviewNotification to:posts.user with:posts
# dispatch: SyncMedia with:posts
# fire: NewPost with:posts
# flash: posts.title
# redirect: posts.index