contentmatcher/create_db.py

24 lines
447 B
Python
Raw Normal View History

2022-04-23 22:55:51 +02:00
#!/usr/bin/python3
from sqlalchemy import Column, Integer, Float, String, Text, TIMESTAMP,ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import func, create_engine,join
from config import CONFIG
Base = declarative_base()
class USER(Base):
class Item(Base):
class Interest(Base):
engine = create_engine(CONFIG['DB_CONNECTION'])
Base.metadata.create_all(engine)