-
Notifications
You must be signed in to change notification settings - Fork 0
/
draft.yaml
62 lines (54 loc) · 1.1 KB
/
draft.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
models:
Author:
name: string:150
slug: string unique
info: nullable text
notes: nullable text
softDeletes
timestamps
Series:
title: string:400
slug: string:500 unique
description: nullable text
softDeletes
timestamps
Format:
name: string:20
timestamps: false
Genre:
name: string:30
slug: string:60
timestamps: false
Review:
user_id: id foreign
book_id: id foreign
rating: smallInteger
notes: nullable text
softDeletes
timestamps
Comment:
user_id: id foreign
book_id: id foreign
comment: text
softDeletes
timestamps
Journal:
user_id: id foreign
book_id: id foreign
status: string:20
note: text
softDeletes
timestamps
Book:
user_id: id foreign
title: string:400
slug: string:500 unique
description: nullable text
series_title: nullable string:400
published_at: nullable timestamp
softDeletes
timestamps
relationships:
hasMany: Comment, Review, Journal
belongsToMany: Author, Series, Format, Genre
seeders: Format, Genre