mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 03:41:57 +00:00
initial commit
This commit is contained in:
23
src/Model.hs
Normal file
23
src/Model.hs
Normal file
@@ -0,0 +1,23 @@
|
||||
{-# LANGUAGE DataKinds #-}
|
||||
{-# LANGUAGE FlexibleInstances #-}
|
||||
{-# LANGUAGE GADTs #-}
|
||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||
{-# LANGUAGE MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE QuasiQuotes #-}
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
{-# LANGUAGE TypeFamilies #-}
|
||||
module Model where
|
||||
|
||||
import Database.Persist.TH
|
||||
|
||||
share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistLowerCase|
|
||||
-- AuthorizedKey
|
||||
-- createdAt UTCTime
|
||||
-- updatedAt UTCTime
|
||||
-- name Text
|
||||
-- pubKey CompressedKey
|
||||
-- root Bool
|
||||
-- UniquePubKey pubKey
|
||||
-- deriving Eq
|
||||
-- deriving Show
|
||||
|]
|
||||
Reference in New Issue
Block a user