Skip to content

Commit

Permalink
Updates to in-progess data models
Browse files Browse the repository at this point in the history
  • Loading branch information
summerhenson committed Feb 25, 2025
1 parent 41cdb20 commit a34451d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion sasdata/fair_database/data/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,20 @@ class DataSet(Data):
# metadata
raw_metadata = models.JSONField()
class Quantity():
# data value
value = models.JSONField()
# variance of the data
variance = models.JSONField()
# units
units = models.CharField(max_length=200)
hash = IntegerField() # this might change
class MetaData:
"""Database model for scattering metadata"""
Expand All @@ -84,8 +98,10 @@ class OperationTree(Data):
# operation
# previous operation
parent_operation = models.ForeignKey("self", blank=True, null=True)
'''

'''
class Session(Data):
"""Database model for a project save state."""
Expand Down

0 comments on commit a34451d

Please sign in to comment.