Skip to content

Commit

Permalink
completed definition of properties table
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Nov 1, 2024
1 parent 13b7db5 commit 6612b69
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions omnipath_metabo/schema/_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ class Resource(Base):
foreign_keys='Identifier.resource_id'
)

"""class MolecularWeight(Base):
__tablename__ - 'molecular weights'
class MolecularWeight(Base):
__tablename__ = 'properties'
id = Column(Integer, primary_key=True)
identifier_id = Column(Integer, ForeignKey('identifiers.id'), nullable = False)
resource_id = Column(Integer, ForeignKey('resources.id'), nullable = False)
mw = Column(Numeric)
#charge_state = Column()
#
"""
monoiso_mass = Column(Numeric)
charge = Column(Numeric)
formula = Column(String)

class Hmdb():
scheme = Structure
name = 'HMDB'
Expand Down

0 comments on commit 6612b69

Please sign in to comment.