Added TODO for AppSpec.Entity.

This commit is contained in:
Martin Sosic 2021-11-25 12:06:29 +01:00
parent 18c5165df8
commit 41f8c531e5

View File

@ -5,6 +5,12 @@ module Wasp.AppSpec.Entity (Entity (..), PSL (..)) where
import Data.Data (Data)
import Wasp.AppSpec.Core.Decl (IsDecl)
-- | TODO: Entity should be much more complex, it should not be just String, instead it should be
-- whole AST that describes the entity schema.
-- We should take a look at what entity looks like Wasp.Wasp.Entity and replicate that.
-- Most challenging part will be parsing PSL from string into PSL.Ast.Model and then
-- building Entity based on that. We actually have all that logic already, we just need to plug it in
-- in the right places and that should be it.
data Entity = Entity PSL
deriving (Show, Eq, Data)