File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -373,8 +373,8 @@ class DataCollectionGroup(SQLModel, table=True): # type: ignore
373373
374374
375375class NotificationParameter (SQLModel , table = True ): # type: ignore
376- id : int = Field (primary_key = True , unique = True )
377- dcg_id : int = Field (foreign_key = "datacollectiongroup.id" , primary_key = True )
376+ id : Optional [ int ] = Field (default = None , primary_key = True )
377+ dcg_id : int = Field (foreign_key = "datacollectiongroup.id" )
378378 name : str
379379 min_value : float
380380 max_value : float
@@ -390,10 +390,8 @@ class NotificationParameter(SQLModel, table=True): # type: ignore
390390
391391
392392class NotificationValue (SQLModel , table = True ): # type: ignore
393- id : int = Field (primary_key = True , unique = True )
394- notification_parameter_id : int = Field (
395- foreign_key = "notificationparameter.id" , primary_key = True
396- )
393+ id : Optional [int ] = Field (default = None , primary_key = True )
394+ notification_parameter_id : int = Field (foreign_key = "notificationparameter.id" )
397395 index : int
398396 within_bounds : bool
399397 notification_parameter : Optional [NotificationParameter ] = Relationship (
You can’t perform that action at this time.
0 commit comments