22
22
from typing import Optional
23
23
import uuid
24
24
25
- from google .genai import types
26
25
from sqlalchemy import Boolean
27
26
from sqlalchemy import delete
28
27
from sqlalchemy import Dialect
@@ -132,9 +131,11 @@ class StorageSession(Base):
132
131
MutableDict .as_mutable (DynamicJSON ), default = {}
133
132
)
134
133
135
- create_time : Mapped [DateTime ] = mapped_column (DateTime (), default = func .now ())
136
- update_time : Mapped [DateTime ] = mapped_column (
137
- DateTime (), default = func .now (), onupdate = func .now ()
134
+ create_time : Mapped [datetime ] = mapped_column (
135
+ PreciseTimestamp , default = func .now ()
136
+ )
137
+ update_time : Mapped [datetime ] = mapped_column (
138
+ PreciseTimestamp , default = func .now (), onupdate = func .now ()
138
139
)
139
140
140
141
storage_events : Mapped [list [StorageEvent ]] = relationship (
@@ -313,8 +314,8 @@ class StorageAppState(Base):
313
314
state : Mapped [MutableDict [str , Any ]] = mapped_column (
314
315
MutableDict .as_mutable (DynamicJSON ), default = {}
315
316
)
316
- update_time : Mapped [DateTime ] = mapped_column (
317
- DateTime () , default = func .now (), onupdate = func .now ()
317
+ update_time : Mapped [datetime ] = mapped_column (
318
+ PreciseTimestamp , default = func .now (), onupdate = func .now ()
318
319
)
319
320
320
321
@@ -332,8 +333,8 @@ class StorageUserState(Base):
332
333
state : Mapped [MutableDict [str , Any ]] = mapped_column (
333
334
MutableDict .as_mutable (DynamicJSON ), default = {}
334
335
)
335
- update_time : Mapped [DateTime ] = mapped_column (
336
- DateTime () , default = func .now (), onupdate = func .now ()
336
+ update_time : Mapped [datetime ] = mapped_column (
337
+ PreciseTimestamp , default = func .now (), onupdate = func .now ()
337
338
)
338
339
339
340
0 commit comments