@@ -58,6 +58,7 @@ create table blog_post(
5858 blog_id integer not null references blog(id) on delete cascade ,
5959 title varchar (255 ) not null ,
6060 body varchar (10000 ),
61+ tags TEXT [],
6162 status blog_post_status not null ,
6263 created_at timestamp not null
6364);
@@ -79,5 +80,15 @@ values
7980 ((select id from account where email ilike ' a%' ), ' A: Blog 3' , ' a desc3' , now()),
8081 ((select id from account where email ilike ' b%' ), ' B: Blog 3' , ' b desc1' , now());
8182
83+ insert into blog_post (blog_id, title, body, tags, status, created_at)
84+ values
85+ ((SELECT id FROM blog WHERE name = ' A: Blog 1' ), ' Post 1 in A Blog 1' , ' Content for post 1 in A Blog 1' , ' {"tech", "update"}' , ' RELEASED' , NOW()),
86+ ((SELECT id FROM blog WHERE name = ' A: Blog 1' ), ' Post 2 in A Blog 1' , ' Content for post 2 in A Blog 1' , ' {"announcement", "tech"}' , ' PENDING' , NOW()),
87+ ((SELECT id FROM blog WHERE name = ' A: Blog 2' ), ' Post 1 in A Blog 2' , ' Content for post 1 in A Blog 2' , ' {"personal"}' , ' RELEASED' , NOW()),
88+ ((SELECT id FROM blog WHERE name = ' A: Blog 2' ), ' Post 2 in A Blog 2' , ' Content for post 2 in A Blog 2' , ' {"update"}' , ' RELEASED' , NOW()),
89+ ((SELECT id FROM blog WHERE name = ' A: Blog 3' ), ' Post 1 in A Blog 3' , ' Content for post 1 in A Blog 3' , ' {"travel", "adventure"}' , ' PENDING' , NOW()),
90+ ((SELECT id FROM blog WHERE name = ' B: Blog 3' ), ' Post 1 in B Blog 3' , ' Content for post 1 in B Blog 3' , ' {"tech", "review"}' , ' RELEASED' , NOW()),
91+ ((SELECT id FROM blog WHERE name = ' B: Blog 3' ), ' Post 2 in B Blog 3' , ' Content for post 2 in B Blog 3' , ' {"coding", "tutorial"}' , ' PENDING' , NOW());
92+
8293
8394comment on schema public is ' @graphql({"inflect_names": true})' ;
0 commit comments