← All tables

mdl_mpc_bundle_payment_logs

ARCHIVELogs / analytics / technical history · 17 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 null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
bundleidbigintNot null'0'Resolve 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
quantitybigintNot null'1'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
amountdecimal(10,2)Not null'0.00'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
bundle_typevarchar(10)Not null'paid'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
original_pricedecimal(10,2)Nullable'0.00'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
discounted_pricedecimal(10,2)Nullable'0.00'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
mode_of_learningvarchar(20)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
taxdetailslongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
course_idslongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
purchasedonbigintNot null'0'Map 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(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
statusvarchar(20)Not null'Pending'Map 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