Type()#
relationalai.Model
#Model.Type(name: str) -> Type
Creates a new Type in the model.
Parameters#
Name | Type | Description |
---|---|---|
name | str | The 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")