old_contents: """
  Common Model Parts
  """
  
  import sqlalchemy
  
  # metadata object for this module
  metadata = sqlalchemy.MetaData()
new_contents: """
  Common Model Parts
  """
  from sqlalchemy.ext.declarative import declarative_base
  from sqlalchemy.dialects import postgresql
  
  # Use declaritive base syntax
  Base = declarative_base()
  
  # metadata object for this module
  metadata = Base.metadata
subject: Change to use sqlalchemy.ext.declarative