Skip to main content

Migrating the Legacy cms to Model Field Mapping

  1. Theoretically speaking, if the basic data types corresponding to the fields in the legacy cms and the data model are the same, data migration can be performed and then used flexibly based on one's needs; in the following table, "Whether Compatible with Legacy Data" indicates whether this type of field in the data model can be directly mapped without additional conversion.

  2. The recommended mapping data model subtypes primarily refer to the types suggested during migration. If there is no burden of historical data, you can refer to the design as needed. For example, the enumeration type of cms can be directly replaced by the enumeration type in the data model; resource types such as files, images, and multimedia in http format can be directly mapped to the same type of data model resources.

cms fieldcms field subtypeBasic Data TypeRecommended Data Model TypeRecommended Data Model SubtypeLegacy Data CompatibilityCross-Environment Migration Support
Single-line string-stringTextSingle-line text✔️✔️
Multi-line string-stringMulti-line text✔️✔️
Number-numberNumber-✔️✔️
Boolean-booleanBoolean-✔️✔️
EnumString enumstringTextSingle-line text✔️✔️
Numeric enumnumberNumber-✔️✔️
DateUnix Timestamp msnumberDate TimeDate✔️✔️
Unix Timestamp snumberNumber-✔️✔️
Date Object---
Time stringstringTextSingle-line text✔️✔️
Date and TimeUnix Timestamp msnumberDate TimeDate Time✔️✔️
Unix Timestamp snumberNumber-✔️✔️
Date Object---
Time stringstringTextSingle-line text✔️✔️
File - Multiple not allowedfieldstringFile-✔️
httpstringTextSingle-line text✔️
File - Multiple allowedfieldstring[]ArrayFile✔️
httpstring[]ArrayText | Single-line text✔️
Image - Multiple not allowedfieldstringImage-✔️
httpstringTextSingle-line text✔️
Image - Multiple allowedfieldstring[]ArrayImage✔️
httpstring[]ArrayText | Single-line text✔️
Multimedia - Multiple not allowedfieldstringMultimedia-✔️
httpstringTextSingle-line text✔️
Multimedia - Multiple allowedfieldstring[]ArrayMultimedia✔️
httpstring[]ArrayText | Single-line text✔️
Email Address-stringEmail-✔️✔️
Phone Number-stringPhoneMobile Number/Landline✔️✔️
URL-stringURL-✔️✔️
Rich Text-stringRich Text-✔️✔️
Markdown-stringMarkdown-✔️✔️
AssociationNo Multiple AssociationsstringAssociation (New)One-to-One
Multiple AssociationsstringAssociation (New)One-to-Many
Array-string[]ArrayText | Single-line text✔️✔️
Json Object-stringObject-✔️✔️