Skip to content

Commit

Permalink
schema.structure: sqlalchemy schema for the structures table
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Sep 18, 2024
1 parent 1ce86a7 commit c60ac7e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions omnipath_metabo/schema/_structure.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from sqlalchemy import create_engine, Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class Structure(Base):
__tablename__ = 'structures'
id = Column(Integer, primary_key=True)
mol_name = Column(String)
mol_structure = Column('mol_structure', String)

0 comments on commit c60ac7e

Please sign in to comment.