@@ -23,7 +23,8 @@ type Schema =
24 "userId" ::: 'Def :=> 'NotNull 'PGint8,
24 "userId" ::: 'Def :=> 'NotNull 'PGint8,
25 "firstName" ::: 'NoDef :=> 'NotNull 'PGtext,
25 "firstName" ::: 'NoDef :=> 'NotNull 'PGtext,
26+ "middleName" ::: 'NoDef :=> 'NotNull 'PGtext,
26− "secondName" ::: 'NoDef :=> 'NotNull 'PGtext
27+ "lastName" ::: 'NoDef :=> 'NotNull 'PGtext
28 "posts" ::: 'Table ( '[
29 "posts" ::: 'Table ( '[
29 "pk_posts" ::: 'PrimaryKey '["postRowId"],
30 "pk_posts" ::: 'PrimaryKey '["postRowId"],
@@ -93,7 +94,8 @@ createTables :: Definition '[] Schema
93createTables = createTable #users (
94createTables = createTable #users (
94 serial8 `as` #userId :*
95 serial8 `as` #userId :*
95 notNullable text `as` #firstName :*
96 notNullable text `as` #firstName :*
96− notNullable text `as` #secondName
97+ notNullable text `as` #middleName :*
98+ notNullable text `as` #lastName
98 primaryKey #userId `as` #pk_users
100 primaryKey #userId `as` #pk_users
99 ) >>> createTable #posts (
101 ) >>> createTable #posts (