← All tables
mdl_mpc_bundle_payment_logs
ARCHIVELogs / analytics / technical history · 17 columnsProposed 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.
| 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 | |
| userid | bigint | Not null | '0' | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security |
| bundleid | bigint | Not null | '0' | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security |
| batchid | bigint | Nullable | '0' | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security |
| quantity | bigint | Not null | '1' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| amount | decimal(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_type | varchar(10) | Not null | 'paid' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| original_price | decimal(10,2) | Nullable | '0.00' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| discounted_price | decimal(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_learning | varchar(20) | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference | |
| taxdetails | longtext | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference | |
| course_ids | longtext | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference | |
| purchasedon | bigint | Not null | '0' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| txnid | varchar(100) | Nullable | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security | |
| paymentgateway | varchar(100) | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference | |
| status | varchar(20) | Not null | 'Pending' | Map through explicit enum/boolean translation; retain source value and test edge cases. | High: verify semantics/relationship/security |
| timecreated | bigint | Not null | '0' | Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics. | Schema-only inference |