/
sample.yml
54 lines (54 loc) · 928 Bytes
/
sample.yml
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
shared_columns:
id: integer
created_at: datetime
updated_at: datetime
companies:
columns:
- name: string
- address: string
relations:
has_many:
- users
users:
comment: This is users table.
columns:
- crypted_password: string
- email: string
- password_salt: string
- auth_token: string
- company_id: integer
- deleted_at: datetime
index:
- email
relations:
belongs_to:
- companies
has_many:
- posts
- user_logs
roles:
columns:
- title: string
- user_id: intger
relations:
belongs_to:
- users
user_logs:
columns:
- recently_signed_in: datetime
- user_id: integer
relations:
belongs_to:
- users
posts:
columns:
- title: string
- body: text
- attachment_path: string
- deleted_at: datetime
- user_id: integer
index:
- user_id
relations:
belongs_to:
- users