1 2 3 4 5 6 7 8 9 10 11 12 13 14
| from sqlalchemy import CHAR, Column, DateTime, Enum, String, Text, text from sqlalchemy.dialects.mysql import INTEGER from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base() metadata = Base.metadata
class SaveUser(Base): __tablename__ = 'save_user'
id = Column(INTEGER(11), primary_key=True) userName = Column(String(32), unique=True) password = Column(String(16), index=True) createTime = Column(DateTime)
|