11 lines
No EOL
330 B
Python
11 lines
No EOL
330 B
Python
from sqlalchemy import Column, String, BIGINT
|
|
from sqlalchemy.ext.declarative import declarative_base
|
|
|
|
Base = declarative_base()
|
|
|
|
# post
|
|
class articles(Base):
|
|
__tablename__ = 'articles'
|
|
|
|
id = Column(BIGINT, nullable=False, primary_key=True, unique=True)
|
|
igid = Column(String, nullable=False, unique=True) |