|
1
|
{"slug":"/references/auth/models/AuthMfaRecoveryCode","title":"AuthMfaRecoveryCode - Auth Module Data Models Reference","frontmatter":{"displayed_sidebar":"authModelReference","slug":"/references/auth/models/AuthMfaRecoveryCode","sidebar_label":"AuthMfaRecoveryCode"},"toc":[],"blocks":[{"kind":"markdown","html":"This documentation provides a reference to the AuthMfaRecoveryCode data model. It belongs to the Auth Module."},{"kind":"sourceCodeLink","link":"https://github.com/medusajs/medusa/blob/020565398e436a2bc65777a3b1ad347b4735d6df/packages/modules/auth/src/models/auth-mfa-recovery-code.ts#L4"},{"kind":"typeList","sectionTitle":"AuthMfaRecoveryCode","types":[{"name":"id","type":"PrimaryKeyModifier<IdProperty>","description":"The ID of the auth multifactor authentication recovery code.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"auth_identity","type":"BelongsTo<[AuthIdentity](/references/auth/models/AuthIdentity)>","description":"The associated `AuthIdentity`.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier<IdProperty>","description":"The ID of the auth identity.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_identities","type":"HasMany<[ProviderIdentity](/references/auth/models/ProviderIdentity)>","description":"The associated `ProviderIdentity` records.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier<IdProperty>","description":"The ID of the provider identity.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"entity_id","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The entity ID of the provider identity","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"provider","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The ID of the provider that created this identity.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"auth_identity","type":"BelongsTo<[AuthIdentity](/references/auth/models/AuthIdentity)>","description":"The associated `AuthIdentity`.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"password_reset_tokens","type":"HasMany<[AuthPasswordResetToken](/references/auth/models/AuthPasswordResetToken)>","description":"The associated password reset tokens.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"user_metadata","type":"JSONProperty<NoInfer<Record<string, unknown>>>","description":"The user metadata of the provider identity.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_metadata","type":"JSONProperty<NoInfer<Record<string, unknown>>>","description":"The provider metadata of the provider identity.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"mfa_factors","type":"HasMany<[AuthMfaFactor](/references/auth/models/AuthMfaFactor)>","description":"The associated `AuthMfaFactor` records.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier<IdProperty>","description":"The ID of the auth multifactor authentication factor.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"auth_identity","type":"BelongsTo<[AuthIdentity](/references/auth/models/AuthIdentity)>","description":"The associated `AuthIdentity`.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"provider","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The provider of the auth multifactor authentication","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"status","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The status of the auth multifactor authentication","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_metadata","type":"JSONProperty<NoInfer<Record<string, unknown>>>","description":"The provider metadata of the auth multifactor authentication","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"JSONProperty<NoInfer<Record<string, unknown>>>","description":"Holds custom data in key-value pairs.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"mfa_recovery_codes","type":"HasMany<[AuthMfaRecoveryCode](/references/auth/models/AuthMfaRecoveryCode)>","description":"The associated `AuthMfaRecoveryCode` records.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier<IdProperty>","description":"The ID of the auth multifactor authentication recovery code.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"auth_identity","type":"BelongsTo<[AuthIdentity](/references/auth/models/AuthIdentity)>","description":"The associated `AuthIdentity`.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"code_hash","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The code hash of the auth multifactor authentication recovery code","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"verifications","type":"HasMany<[AuthVerification](/references/auth/models/AuthVerification)>","description":"The associated verifications.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier<IdProperty>","description":"The ID of the auth verification.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"auth_identity","type":"BelongsTo<[AuthIdentity](/references/auth/models/AuthIdentity)>","description":"The associated auth identity.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"entity_id","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The entity ID of the auth verification","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"entity_type","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The entity type of the auth verification","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"code_provider","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The code provider of the auth verification","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"verified_at","type":"`DateTimeProperty`","description":"The date when the auth verification was verified","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"requested_at","type":"`DateTimeProperty`","description":"The date when the auth verification was requested","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_metadata","type":"JSONProperty<NoInfer<Record<string, unknown>>>","description":"The provider metadata of the auth verification","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"JSONProperty<NoInfer<Record<string, unknown>>>","description":"Holds custom data in key-value pairs.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"password_reset_tokens","type":"HasMany<[AuthPasswordResetToken](/references/auth/models/AuthPasswordResetToken)>","description":"The associated password reset tokens.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier<IdProperty>","description":"The ID of the auth password reset token.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"auth_identity","type":"BelongsTo<[AuthIdentity](/references/auth/models/AuthIdentity)>","description":"The associated auth identity.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"provider_identity","type":"BelongsTo<[ProviderIdentity](/references/auth/models/ProviderIdentity)>","description":"The associated provider identity.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"entity_id","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The entity ID of the auth password reset token","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"token_hash","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The token hash of the auth password reset token","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"expires_at","type":"`DateTimeProperty`","description":"The expiry date of the auth password reset token","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"app_metadata","type":"JSONProperty<NoInfer<Record<string, unknown>>>","description":"The app metadata of the auth identity","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"code_hash","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The code hash of the auth multifactor authentication recovery code","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record<string, unknown>>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"types","type":"[SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"weight","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`\"text\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`Record<string, any>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]}]}]} |