← All tables
mdl_external_tokens
EXCLUDEAuthentication / secrets / security state · 14 columnsProposed target
Use IdP as source of identity; do not copy passwords, tokens or secrets
Migration rule
Security-sensitive credentials must not be migrated to app data store
Verification required
Verify IdP subject mapping, SSO claims, MFA policy, account-linking and revocation
Tracking
Sign in to update status, owner and notes.
| Column | Type | Null | Default | Target mapping | Risk |
|---|---|---|---|---|---|
| id | bigint | Not null | Preserve as legacy source ID; generate target PK unless target accepts stable legacy key. | High: verify semantics/relationship/security | |
| token | varchar(128) | Not null | '' | EXCLUDE from app migration; credential/secret handling requires security review. | High: verify semantics/relationship/security |
| privatetoken | varchar(64) | Nullable | EXCLUDE from app migration; credential/secret handling requires security review. | High: verify semantics/relationship/security | |
| tokentype | smallint | Not null | EXCLUDE from app migration; credential/secret handling requires security review. | High: verify semantics/relationship/security | |
| userid | bigint | Not null | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security | |
| externalserviceid | bigint | Not null | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security | |
| sid | varchar(128) | Nullable | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security | |
| contextid | bigint | Not null | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security | |
| creatorid | bigint | Not null | '1' | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security |
| iprestriction | varchar(255) | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference | |
| validuntil | bigint | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference | |
| timecreated | bigint | Not null | Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics. | Schema-only inference | |
| lastaccess | bigint | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference | |
| name | varchar(255) | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |