text: from datetime import datetime
  
  from app import db
  
  
  class Order(db.Model):
      id = db.Column(db.Integer, primary_key=True)
      time = db.Column(db.DateTime, nullable=False, default=datetime.utcnow)
      user = db.Column(db.Integer, db.ForeignKey('user.id'), nullable=False)
  
      def __repr__(self):
          return f'<Order #{ self.id }>'
  