-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule-guestbook.yml
71 lines (68 loc) · 1.61 KB
/
module-guestbook.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Gosidesign.Guestbook:
compilers:
- php-laravel
resources:
Controllers.MessageController:
type: controller
base: Gosidesign.Core.Controllers.Base
Models.Message:
type: model
table: messages
previous_table: message
connection: master
base: Gosidesign.Core.Models.Base
relations:
categories:
type: hasMany
other: Gosidesign.Guestbook.Models.MessageCategory
user:
type: hasOne
other: Gosidesign.Account.Models.User
parent:
type: belongsTo
other: Gosidesign.Guestbook.Models.Message
children:
type: hasMany
other: Gosidesign.Guestbook.Models.Message
columns:
id:
previous_name: name
primary: true
previous_primary: false
type: integer
indexes:
- unique
- index
parent_id:
previous_name: p_id
previous_index: false
type: integer
indexes: unique index
name:
type: string
email:
type: string
ip:
type: string
body:
type: text
created_at:
type: date
updated_at:
type: date
rules:
name:
- required
body:
- required
Models.MessageCategory:
type: model
base: Gosidesign.Core.Models.Base
columns:
name:
other: stuff
Migrations.CreateSomeFuckingShit:
type: migration
imports:
Gosidesign.Guestbook.Models.Message:
- columns