Starting to recreate models.
This commit is contained in:
parent
e420110fb3
commit
388472742e
11 changed files with 132 additions and 4 deletions
|
|
@ -23,4 +23,4 @@ class Version(Base):
|
|||
timestamp = Column(DateTime, default=func.now())
|
||||
|
||||
actor = Column(String, nullable=True)
|
||||
metadata = Column(JSON, nullable=True)
|
||||
meta = Column('metadata', JSON, nullable=True)
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ class CRUDService(Generic[T]):
|
|||
change_type=change_type,
|
||||
data=data,
|
||||
actor=str(actor) if actor else None,
|
||||
metadata=metadata
|
||||
meta=metadata
|
||||
)
|
||||
self.session.add(version)
|
||||
self.session.commit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue