Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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
UserImpl | |
|
Instances
type UserImplId = Key UserImpl Source #
UserPerm | |
|
Instances
type UserPermId = Key UserPerm Source #
AuthToken | |
|
Instances
type AuthTokenId = Key AuthToken Source #
data UserRestore Source #
UserRestore | |
|
Instances
type UserRestoreId = Key UserRestore Source #
data UserSingleUseCode Source #
Instances
data AuthUserGroup Source #
Instances
type AuthUserGroupId = Key AuthUserGroup Source #
data AuthUserGroupUsers Source #
Instances
data AuthUserGroupPerms Source #
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.
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