Schema
schema
¶
Objects representing a database schema.
Checkbox
¶
CreatedBy
¶
CreatedTime
¶
Date
¶
DualPropertyRelation
¶
Defines a two-way relation configuration for a database property.
If a two-way relation property X relates to Y then the two-way relation property Y relates to X.
Email
¶
Files
¶
Formula
¶
LastEditedBy
¶
LastEditedTime
¶
MultiSelect
¶
Defines the multi-select configuration for a database property.
Number
¶
Defines the number configuration for a database property.
People
¶
PhoneNumber
¶
PropertyRelation
¶
Defines common configuration for a property relation.
database_id: UUID = None
class-attribute
instance-attribute
¶
PropertyType
¶
Base class for Notion property objects.
Relation
¶
Defines the relation configuration for a database property.
relation: SerializeAsAny[PropertyRelation]
instance-attribute
¶
RichText
¶
Defines the rich text configuration for a database property.
rich_text: Any = Field(default_factory=dict)
class-attribute
instance-attribute
¶
Rollup
¶
Defines the rollup configuration for a database property.
rollup: TypeData = TypeData()
class-attribute
instance-attribute
¶
TypeData
¶
function: AggFunc = AggFunc.COUNT
class-attribute
instance-attribute
¶
relation_property_id: str | None = None
class-attribute
instance-attribute
¶
relation_property_name: str | None = None
class-attribute
instance-attribute
¶
rollup_property_id: str | None = None
class-attribute
instance-attribute
¶
rollup_property_name: str | None = None
class-attribute
instance-attribute
¶
validate_enum_field(field: str)
classmethod
¶
build(relation, property, function)
classmethod
¶
Select
¶
Defines the select configuration for a database property.
SinglePropertyRelation
¶
Status
¶
Defines the status configuration for a database property.
Title
¶
Defines the title configuration for a database property.