A
Size: a a a
D
A
D
D
YS
YS
IK
Failed to parse Haskell type `Int64`; expected integer from database, but received: PersistNull. Potential solution: Check that your database schema matches your Persistent model definitions.```
IK
postCreateBr :: Handler ()
postCreateBr = do
x <- requireCheckJsonBody
branchId <- runDB $ insert $ Branch ( branchName x ) ( branchCategory x ) Nothing Nothing
liftIO $ print ( branchId :: Key Branch )
IK
Branch
name String
category String
address Address Maybe
qualifications [Int] Maybe
deriving Show Read Generic
IK
id | name | qualifications | category | address
----+--------------------------------+----------------+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------
2 | Faculty of Physics & Astronomy | {} | Higher education degrees | {"line2":null,"postalcode":"4MN WE5","country":"United Kingdom","cityortown":"London","house_name":null,"line1":"Main street","house_number":1}
1 | Faculty of Mathematics | {} | Language proficiency assessments | {"line2":null,"postalcode":"4MN WE5","country":"Japan","cityortown":"London","house_name":null,"line1":"Main street","house_number":1}
IK
IK