← All tables

mdl_logstore_standard_log

ARCHIVEMoodle standard event log · 21 columns

Proposed target

Compressed object storage archive (partitioned by date/table; JSONL or Parquet)

Migration rule

Do not load millions of log rows into primary application DB by default

Verification required

Confirm statutory retention, data minimization, security access and whether analytics requires queryable archive.

Tracking

Sign in to update status, owner and notes.

ColumnTypeNullDefaultTarget mappingRisk
idbigintNot nullPreserve as legacy source ID; generate target PK unless target accepts stable legacy key.High: verify semantics/relationship/security
eventnamevarchar(255)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
componentvarchar(100)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
actionvarchar(100)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
targetvarchar(100)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
objecttablevarchar(50)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
objectidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
crudvarchar(1)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
eduleveltinyint(1)Not nullMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
contextidbigintNot nullResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
contextlevelbigintNot nullTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
contextinstanceidbigintNot nullResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
useridbigintNot nullResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
courseidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
relateduseridbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
anonymoustinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
otherlongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timecreatedbigintNot nullConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
originvarchar(10)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
ipvarchar(45)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
realuseridbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security