diff --git a/snowexsql/tables/base.py b/snowexsql/tables/base.py index 3318c90..7e29dc4 100644 --- a/snowexsql/tables/base.py +++ b/snowexsql/tables/base.py @@ -6,7 +6,7 @@ """ from geoalchemy2 import Geometry -from sqlalchemy import Column, Float, Integer, Time +from sqlalchemy import Column, Float, Integer, Time, Date from sqlalchemy.orm import DeclarativeBase @@ -18,6 +18,7 @@ class Base(DeclarativeBase): __table_args__ = {"schema": "public"} # Primary Key id = Column(Integer, primary_key=True) + date_accessed = Column(Date) class SingleLocationData: diff --git a/snowexsql/tables/doi.py b/snowexsql/tables/doi.py index e97fc62..b643e6d 100644 --- a/snowexsql/tables/doi.py +++ b/snowexsql/tables/doi.py @@ -1,4 +1,4 @@ -from sqlalchemy import Column, String, Integer, ForeignKey, Date +from sqlalchemy import Column, String, Integer, ForeignKey from sqlalchemy.orm import relationship, declared_attr from .base import Base @@ -24,5 +24,3 @@ def doi_id(cls): @declared_attr def doi(cls): return relationship('DOI') - - date_accessed = Column(Date)