---
title: schema
framework: swiftdata
role: symbol
role_heading: Instance Property
path: swiftdata/modelcontainer/schema
---

# schema

The schema that maps your app’s model classes to the associated data in the app’s persistent storage.

## Declaration

```swift
final let schema: Schema
```

## Discussion

Discussion This property provides a reference to the schema you specified when calling one the container’s initializers.

## See Also

### Managing schema and configuration details

- [configurations](swiftdata/modelcontainer/configurations.md)
- [migrationPlan](swiftdata/modelcontainer/migrationplan.md)
