MCPcopy Create free account
hub / github.com/apache/devlake / NoPKModel

Class NoPKModel

backend/python/pydevlake/pydevlake/model.py:130–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129
130class NoPKModel(RawDataOrigin):
131 created_at: Optional[datetime] = Field(
132 sa_column=Column(DateTime(), default=datetime.utcnow)
133 )
134 updated_at: Optional[datetime] = Field(
135 sa_column=Column(DateTime(), default=datetime.utcnow, onupdate=datetime.utcnow)
136 )
137
138 def set_updated_at(self):
139 if self.updated_at is None:
140 self.updated_at = datetime.utcnow()
141
142
143class ToolModel(ToolTable, NoPKModel):

Callers

nothing calls this directly

Calls 2

FieldFunction · 0.90
DateTimeStruct · 0.85

Tested by

no test coverage detected