<gh_stars>0
import datetime
from unicodedata import category

from core.database import Base
from sqlalchemy import (Boolean, Column, Date, DateTime, ForeignKey, Integer,
                        String)
from sqlalchemy.orm import relationship


class Activity(Base):
    __tablename__ = "activities"

    id = Column(Integer, primary_key=True, index=True)
    created = Column(DateTime)
    category_id = Column(Integer)
    recipe_id = Column(Integer)
    owner_id = Column(Integer, ForeignKey('users.id'))

import datetime
from unicodedata import category

from core.database import Base
from sqlalchemy import (Boolean, Column, Date, DateTime, ForeignKey, Integer,
                        String)
from sqlalchemy.orm import relationship


class Activity(Base):
    __tablename__ = "activities"

    id = Column(Integer, primary_key=True, index=True)
    created = Column(DateTime)
    category_id = Column(Integer)
    recipe_id = Column(Integer)
    owner_id = Column(Integer, ForeignKey('users.id'))