13 lines
365 B
Python
13 lines
365 B
Python
# utils/db/events.py
|
|
|
|
from sqlalchemy import Column, Integer, String, Text, Boolean
|
|
from utils.db import Base
|
|
|
|
class Event(Base):
|
|
__tablename__ = 'events'
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
hash = Column(String, unique=True, nullable=False)
|
|
data = Column(Text, nullable=False)
|
|
delivered = Column(Boolean, default=False)
|