MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / constraints

Method constraints

tortoise/fields/data.py:510–514  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

508
509 @property
510 def constraints(self) -> dict:
511 data = {}
512 if self.auto_now_add or self.auto_now:
513 data["readOnly"] = True
514 return data
515
516 def describe(self, serializable: bool) -> dict:
517 desc = super().describe(serializable)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected