← All tables

mdl_event

INVESTIGATEUnclassified Moodle core/plugin table · 24 columns

Proposed target

Owner decision: migrate, transform, archive or exclude

Migration rule

No safe target inferred from schema name alone

Verification required

Inspect columns, row counts, code references, reports and retention requirements

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
namelongtextNot nullMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
descriptionlongtextNot nullTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
formatsmallintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
categoryidbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
courseidbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
groupidbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
useridbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
repeatidbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
componentvarchar(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
modulenamevarchar(20)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
instancebigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.Schema-only inference
typesmallintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
eventtypevarchar(20)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timestartbigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
timedurationbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timesortbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
visiblesmallintNot null'1'Map through explicit enum/boolean translation; retain source value and test edge cases.Schema-only inference
uuidvarchar(255)Not null''Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
sequencebigintNot null'1'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timemodifiedbigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
subscriptionidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
prioritybigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
locationlongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference