| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.Server.Auth.Token.Persistent.Schema
- data UserImpl = UserImpl {
- userImplLogin :: !Login
- userImplPassword :: !Password
- userImplEmail :: !Email
- type UserImplId = Key UserImpl
- data UserPerm = UserPerm {
- userPermUser :: !(Key UserImpl)
- userPermPermission :: !Permission
- type UserPermId = Key UserPerm
- data AuthToken = AuthToken {
- authTokenValue :: !SimpleToken
- authTokenUser :: !(Key UserImpl)
- authTokenExpire :: !UTCTime
- type AuthTokenId = Key AuthToken
- data UserRestore = UserRestore {}
- type UserRestoreId = Key UserRestore
- data UserSingleUseCode = UserSingleUseCode {}
- type UserSingleUseCodeId = Key UserSingleUseCode
- data AuthUserGroup = AuthUserGroup {
- authUserGroupName :: !Text
- authUserGroupParent :: !(Maybe (Key AuthUserGroup))
- type AuthUserGroupId = Key AuthUserGroup
- data AuthUserGroupUsers = AuthUserGroupUsers {}
- type AuthUserGroupUsersId = Key AuthUserGroupUsers
- data AuthUserGroupPerms = AuthUserGroupPerms {}
- type AuthUserGroupPermsId = Key AuthUserGroupPerms
- migrateAllAuth :: Migration
- class ConvertStorage a b | a -> b, b -> a where
Documentation
Constructors
| UserImpl | |
Fields
| |
Instances
| Show UserImpl Source # | |
| Generic UserImpl Source # | |
| PersistFieldSql UserImpl Source # | |
| PersistEntity UserImpl Source # | |
| PersistField UserImpl Source # | |
| (PersistQuery backend, (~) * (PersistEntityBackend UserImpl) (BaseBackend backend)) => DeleteCascade UserImpl backend Source # | |
| ToBackendKey SqlBackend UserImpl Source # | |
| ConvertStorage UserImplId UserImplId Source # | |
| ConvertStorage UserImpl UserImpl Source # | |
| Eq (Key UserImpl) Source # | |
| Ord (Key UserImpl) Source # | |
| Read (Key UserImpl) Source # | |
| Show (Key UserImpl) Source # | |
| ToJSON (Key UserImpl) Source # | |
| FromJSON (Key UserImpl) Source # | |
| ToHttpApiData (Key UserImpl) Source # | |
| FromHttpApiData (Key UserImpl) Source # | |
| PathPiece (Key UserImpl) Source # | |
| PersistFieldSql (Key UserImpl) Source # | |
| PersistField (Key UserImpl) Source # | |
| type Rep UserImpl Source # | |
| data Unique UserImpl Source # | |
| data EntityField UserImpl Source # | |
| data Key UserImpl Source # | |
| type PersistEntityBackend UserImpl Source # | |
type UserImplId = Key UserImpl Source #
Constructors
| UserPerm | |
Fields
| |
Instances
| Show UserPerm Source # | |
| Generic UserPerm Source # | |
| PersistFieldSql UserPerm Source # | |
| PersistEntity UserPerm Source # | |
| PersistField UserPerm Source # | |
| (PersistQuery backend, (~) * (PersistEntityBackend UserPerm) (BaseBackend backend)) => DeleteCascade UserPerm backend Source # | |
| ToBackendKey SqlBackend UserPerm Source # | |
| ConvertStorage UserPermId UserPermId Source # | |
| ConvertStorage UserPerm UserPerm Source # | |
| Eq (Key UserPerm) Source # | |
| Ord (Key UserPerm) Source # | |
| Read (Key UserPerm) Source # | |
| Show (Key UserPerm) Source # | |
| ToJSON (Key UserPerm) Source # | |
| FromJSON (Key UserPerm) Source # | |
| ToHttpApiData (Key UserPerm) Source # | |
| FromHttpApiData (Key UserPerm) Source # | |
| PathPiece (Key UserPerm) Source # | |
| PersistFieldSql (Key UserPerm) Source # | |
| PersistField (Key UserPerm) Source # | |
| type Rep UserPerm Source # | |
| data Unique UserPerm Source # | |
| data EntityField UserPerm Source # | |
| data Key UserPerm Source # | |
| type PersistEntityBackend UserPerm Source # | |
type UserPermId = Key UserPerm Source #
Constructors
| AuthToken | |
Fields
| |
Instances
| Show AuthToken Source # | |
| Generic AuthToken Source # | |
| PersistFieldSql AuthToken Source # | |
| PersistEntity AuthToken Source # | |
| PersistField AuthToken Source # | |
| (PersistQuery backend, (~) * (PersistEntityBackend AuthToken) (BaseBackend backend)) => DeleteCascade AuthToken backend Source # | |
| ToBackendKey SqlBackend AuthToken Source # | |
| ConvertStorage AuthTokenId AuthTokenId Source # | |
| ConvertStorage AuthToken AuthToken Source # | |
| Eq (Key AuthToken) Source # | |
| Ord (Key AuthToken) Source # | |
| Read (Key AuthToken) Source # | |
| Show (Key AuthToken) Source # | |
| ToJSON (Key AuthToken) Source # | |
| FromJSON (Key AuthToken) Source # | |
| ToHttpApiData (Key AuthToken) Source # | |
| FromHttpApiData (Key AuthToken) Source # | |
| PathPiece (Key AuthToken) Source # | |
| PersistFieldSql (Key AuthToken) Source # | |
| PersistField (Key AuthToken) Source # | |
| type Rep AuthToken Source # | |
| data Unique AuthToken Source # | |
| data EntityField AuthToken Source # | |
| data Key AuthToken Source # | |
| type PersistEntityBackend AuthToken Source # | |
type AuthTokenId = Key AuthToken Source #
data UserRestore Source #
Constructors
| UserRestore | |
Fields
| |
Instances
type UserRestoreId = Key UserRestore Source #
data UserSingleUseCode Source #
Constructors
| UserSingleUseCode | |
Fields | |
Instances
data AuthUserGroup Source #
Constructors
| AuthUserGroup | |
Fields
| |
Instances
type AuthUserGroupId = Key AuthUserGroup Source #
data AuthUserGroupUsers Source #
Constructors
| AuthUserGroupUsers | |
Fields | |
Instances
data AuthUserGroupPerms Source #
Constructors
| AuthUserGroupPerms | |
Fields | |
Instances
class ConvertStorage a b | a -> b, b -> a where Source #
Defines way to convert from persistent struct to model struct and vice versa.
Warning: default implementation is done via 'unsafeCoerce#', so make sure that
structure of a and b is completely identical.
Methods
Convert to internal representation
convertTo :: (ToBackendKey SqlBackend r, a ~ Key r, ConvertableKey b) => b -> a Source #
Convert to internal representation
convertFrom :: a -> b Source #
Convert from internal representation
convertFrom :: (ToBackendKey SqlBackend r, a ~ Key r, ConvertableKey b) => a -> b Source #
Convert from internal representation
Instances