-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathplan.json
More file actions
116 lines (116 loc) · 4.03 KB
/
plan.json
File metadata and controls
116 lines (116 loc) · 4.03 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"version": "1.0.0",
"pgschema_version": "1.8.0",
"created_at": "1970-01-01T00:00:00Z",
"source_fingerprint": {
"hash": "84e9a9b7c080fc6d686f528f11d070d030b1ab82e66a2ad98050868d66d2f98a"
},
"groups": [
{
"steps": [
{
"sql": "COMMENT ON TABLE categories IS 'Hierarchical category system for posts';",
"type": "table.comment",
"operation": "alter",
"path": "public.categories"
},
{
"sql": "COMMENT ON COLUMN categories.id IS 'Category unique identifier';",
"type": "table.column.comment",
"operation": "alter",
"path": "public.categories.id"
},
{
"sql": "COMMENT ON COLUMN categories.name IS 'Category display name';",
"type": "table.column.comment",
"operation": "alter",
"path": "public.categories.name"
},
{
"sql": "COMMENT ON COLUMN categories.description IS 'Optional category description';",
"type": "table.column.comment",
"operation": "alter",
"path": "public.categories.description"
},
{
"sql": "COMMENT ON COLUMN categories.parent_id IS 'Parent category for hierarchical structure';",
"type": "table.column.comment",
"operation": "alter",
"path": "public.categories.parent_id"
},
{
"sql": "COMMENT ON COLUMN categories.created_at IS 'Category creation timestamp';",
"type": "table.column.comment",
"operation": "alter",
"path": "public.categories.created_at"
},
{
"sql": "COMMENT ON INDEX idx_categories_parent IS 'Index for hierarchical category queries';",
"type": "table.index.comment",
"operation": "alter",
"path": "public.categories.idx_categories_parent"
},
{
"sql": "ALTER TABLE posts ADD COLUMN views integer DEFAULT 0;",
"type": "table.column",
"operation": "create",
"path": "public.posts.views"
},
{
"sql": "COMMENT ON COLUMN posts.views IS 'Number of post views';",
"type": "table.column.comment",
"operation": "create",
"path": "public.posts.views"
},
{
"sql": "COMMENT ON TABLE posts IS 'Blog posts and articles';",
"type": "table.comment",
"operation": "alter",
"path": "public.posts"
},
{
"sql": "COMMENT ON COLUMN posts.id IS 'Unique post identifier';",
"type": "table.column.comment",
"operation": "alter",
"path": "public.posts.id"
},
{
"sql": "COMMENT ON COLUMN posts.title IS 'Post title, max 200 characters';",
"type": "table.column.comment",
"operation": "alter",
"path": "public.posts.title"
},
{
"sql": "COMMENT ON COLUMN posts.content IS 'Post body in markdown format';",
"type": "table.column.comment",
"operation": "alter",
"path": "public.posts.content"
},
{
"sql": "COMMENT ON COLUMN posts.author_id IS 'Foreign key to users table';",
"type": "table.column.comment",
"operation": "alter",
"path": "public.posts.author_id"
},
{
"sql": "COMMENT ON COLUMN posts.published_at IS 'Publication timestamp, NULL for drafts';",
"type": "table.column.comment",
"operation": "alter",
"path": "public.posts.published_at"
},
{
"sql": "COMMENT ON INDEX idx_posts_author IS 'Index for finding posts by author';",
"type": "table.index.comment",
"operation": "alter",
"path": "public.posts.idx_posts_author"
},
{
"sql": "COMMENT ON INDEX idx_posts_published IS 'Partial index for published posts only';",
"type": "table.index.comment",
"operation": "alter",
"path": "public.posts.idx_posts_published"
}
]
}
]
}