ModelSchema class

Schema definition for a Prisma model.

Constructors

ModelSchema({required String name, required String tableName, required Map<String, FieldInfo> fields, Map<String, RelationInfo> relations = const {}})
const

Properties

columnNames List<String>
Get all column names for SELECT.
no setter
fields Map<String, FieldInfo>
Field definitions mapped by field name.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The model name (e.g., 'User', 'Post').
final
primaryKeys List<FieldInfo>
Get the primary key field(s).
no setter
relations Map<String, RelationInfo>
Relation definitions mapped by relation field name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scalarFields List<FieldInfo>
Get all scalar (non-relation) fields.
no setter
tableName String
The database table name (e.g., 'users', 'posts').
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited