← All tables

mdl_local_course_corporate_purchases

MIGRATECore learning content / activity / progress / assessment · 21 columns

Proposed target

Transform into target course, module, attempt, grade, completion, credential and content models

Migration rule

Preserve history and relationships; retain original IDs in legacy_id fields

Verification required

Plugin behavior, attempt state, grading rules, file references and completion logic require application-level verification

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
productidbigintNot nullResolve 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
corporateadmin_idbigintNot nullResolve 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
typevarchar(50)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
purchased_seatsbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
used_seatsbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
available_seatsbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
total_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
purchase_datebigintNot nullMap 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
subtotaldecimal(10,2)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
tax_amountdecimal(10,2)Nullable'0.00'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
final_amountdecimal(10,2)Nullable'0.00'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
statusvarchar(20)Not null'active'Map through explicit enum/boolean translation; retain source value and test edge cases.High: verify semantics/relationship/security
timecreatedbigintNot nullConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
timemodifiedbigintNot nullConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
transaction_idvarchar(100)NullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security