Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: nawaf alansari
Added: Oct 9, 2021 11:32 PM
Modified: Oct 9, 2021 11:34 PM
Views: 267
Tags: sqlalchemy
  1. batches = sqlalchemy.Table(
  2.     'batches',
  3.     metadata,
  4.     sqlalchemy.Column('id', sqlalchemy.Integer, primary_key=True, autoincrement=True),
  5.     sqlalchemy.Column('reference', sqlalchemy.String(255)),
  6.     sqlalchemy.Column('sku', sqlalchemy.String(255)),
  7.     sqlalchemy.Column('available_quantity', sqlalchemy.Integer, nullable=False),
  8.     sqlalchemy.Column('eta', sqlalchemy.Date, nullable=True)
  9. )