Overview
What is a Data Model?
The data model is a declarative data management solution provided by Cloud Development. Built on top of the Cloud Development database, it offers developers a more efficient and secure approach to data operations.
Simply put, the data model is like a customized "smart butler" for your data:
- 📋 Defining Data Structures: Define data fields, types, and relationships through a visual interface
- 🛡️ Automatic Data Verification: Ensure data accuracy and consistency
- 🔗 Handling Relationships: Automatically manage complex relationships between data
- 🚀 Includes Multi-end SDKs: Define once, use across multiple platforms (Mini Program, Web, Cloud Function)
- 🎛️ Built-in Management Page: Provides an out-of-the-box data management backend
- 🤖 AI Intelligent Analysis: Leverage artificial intelligence to uncover data value
💡 Core Concept: Allow developers to focus on business logic rather than the complexity of underlying data operations.
Use AI to develop, integrate and manage databases
Core Features Overview
| Feature | Description | Value |
|---|---|---|
| 🔍 Intelligent Data Validation | Automatically checks data types and formats to prevent erroneous data from being stored | Improves data quality and reduces bugs |
| 🔗 Relationship Management | Automatically handles one-to-one, one-to-many, and many-to-many relationships | Simplifies complex queries and enhances development efficiency |
| ⚡ Includes Multi-end SDKs | Define once to automatically generate SDKs for Mini Program/Web/Cloud Function | Unifies development experience and reduces repetitive work |
| 🎛️ Visual Management | Built-in CMS management interface supporting operations by non-technical personnel | Reduces operational costs and enhances collaboration efficiency |
| 🏗️ Low-code Application Generation | One-click generation of customizable admin console applications | Accelerates delivery and shortens development cycles |
| 🤖 AI Data Analysis | Intelligently analyzes data trends and patterns | Enables data-driven decisions and uncovers business value |
| 🚀 Advanced Query Capabilities | Supports complex conditional queries, aggregation analysis, etc. | Meets diverse business requirements |

Relationship Between Data Models and Databases
Data modeling represents the modeling of databases, defining the structure, fields, constraints, and relationships of data models. It provides a unified approach to describe and manipulate data, simplifying data operations and queries. The capability of data models corresponds to Object-Relational Mapping (ORM), commonly used in development.
The data model and database have an association relationship. A data model corresponds to a collection (in a non-structured database) or a table (in a structured database) in the database.
Using data models does not mean being restricted to using data models only. While using data models, if you need more complex operations or operations that data models cannot handle well, you can also use the database's native methods to directly read and write data.
Compared to the ORM in traditional development frameworks, the cloud development data model integrates additional capabilities such as data management interfaces, user and permission systems, content management, and further data model-based application generation and data analysis. For more advantages, see "Why Use Data Models".
How to Get Started with Data Models
🚀 Quick Start
- Access the console: Go to the Tencent Cloud Development Platform
- Select Database: Switch to Tencent Cloud Development Platform/Database/Document-based
- Create Model: Click New Model, select the creation method
📋 Creation Methods
| Method | Applicable Scenarios | Description |
|---|---|---|
| 🆕 Add Model | New project development | Create a new data model from scratch |
| 📦 Import Legacy CMS | Project migration | Import models from existing Cloud Development CMS to enjoy feature upgrades in the new version |

✅ Creation Completed
After creating a new model, you can immediately utilize the powerful capabilities provided by the data model!
💡 Note: It is recommended to read the Quick Start tutorial first to get started quickly with practical examples.
Why Choose Data Models?
Data models bring developers comprehensive development experience enhancements:
- 🚀 Improve development efficiency: Automatically generate SDKs to reduce repetitive code writing
- 💰 Reduce maintenance costs: Unified data management reduces Ops workload
- 🛡️ Enhanced Data Security: Built-in access control and data validation mechanisms
- 📊 Enhanced Data Analytics: AI-powered analytics to uncover data value
- 🎯 Simplify team collaboration: Visual management interface, easily usable by both technical and non-technical personnel.
🛡️ Intelligent Data Validation and Type Checks
Data models provide an automated data validation mechanism that performs strict type checks and format validation before data is stored, ensuring data accuracy and consistency to prevent quality issues at the source.