← All tables

mdl_mpc_payment_logs

ARCHIVELogs / analytics / technical history · 18 columns

Proposed target

Archive compressed; selectively transform required reporting aggregates

Migration rule

Usually not required for core LMS runtime

Verification required

Identify compliance/audit and analytics use cases before exclusion

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
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
productidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
batchidbigintNullable'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
quantitybigintNullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
amountbigintNullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
typevarchar(50)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
mode_of_learningvarchar(15)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
currencydetailsvarchar(10)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
taxdetailsvarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
original_pricedecimal(10,2)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
discounted_pricedecimal(10,2)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
purchasedonbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
txnidvarchar(100)NullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
paymentgatewayvarchar(50)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
statusvarchar(20)NullableMap through explicit enum/boolean translation; retain source value and test edge cases.High: verify semantics/relationship/security
timecreatedbigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference