Type()#

relationalai.Model
Model.Type(name: str) -> Type

Creates a new Type in the model.

Parameters#

NameTypeDescription
namestrThe name of the type. Must begin with a Unicode letter or an underscore followed by one or more Unicode letters, underscores, or numbers.

Returns#

A Type object.

Example#

import relationalai as rai

# Create a model named "people" with a Person type.
model = rai.Model("people")
Person = model.Type("Person")

See Also#