title: In SqlAlchemy, should I use classical mapping or the other way?
body: <p>Right now I'm doing this:</p>
  
  <pre><code>class MyTest(Base):
      __tablename__ = 'mytest'
      id = Column(Integer, primary_key = True)
      name = Column(String(255), nullable=False)
      created_at = Column(DateTime)
  Base.metadata.create_all(engine)
  </code></pre>
  
  <p>But in the tutorial, another way is this:</p>
  
  <pre><code>user = Table('user', metadata,
      Column('user_id', Integer, primary_key = True),
      Column('user_name', String(16), nullable = False),
      Column('email_address', String(60)),
      Column('password', String(20), nullable = False)
  )
  </code></pre>
  
  <p>Which method should I be using? By the way, I will be using sqlalchemy-migrate, (I don't know if that will change the answer)</p>