text: from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  
  app = Flask(__name__)
  app.config[
      'SQLALCHEMY_DATABASE_URI'
  ] = 'postgresql://postgres:postgres@localhost:5432/example'
  app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
  db = SQLAlchemy(app)
  
  
  class Person(db.Model):
      __tablename__ = 'persons'
      id = db.Column(db.Integer(), primary_key=True)
      name = db.Column(db.String(), nullable=False, unique=True)
  
      def __repr__(self):
          return f'<Person ID: {self.id}, Name: {self.name}>'
  
  
  db.create_all()
  
  
  @app.route('/')
  def index():
      person = Person.query.first()
      return f'Hello {person.name}'
  
  
  if __name__ == '__main__':
      app.run()
  