from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine

from models.base import Base
from models.user import User
from models.store import Store
from models.product import Product

engine = create_engine('sqlite:///productcatalog.db')
Base.metadata.create_all(engine)

from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine

from models.base import Base
from models.user import User
from models.store import Store
from models.product import Product

engine = create_engine('postgresql://catalog:catalog123!@localhost:8000/catalog')
Base.metadata.create_all(engine)

Connect database engine to postgresql
feat: Connect database engine to postgresql

  from sqlalchemy import Column, ForeignKey, Integer, String
  from sqlalchemy.orm import relationship
  from sqlalchemy import create_engine
  
  from models.base import Base
  from models.user import User
  from models.store import Store
  from models.product import Product
  
- engine = create_engine('sqlite:///productcatalog.db')
+ engine = create_engine('postgresql://catalog:catalog123!@localhost:8000/catalog')
  Base.metadata.create_all(engine)
  
Connect database engine to postgresql
## Code Before:
from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine

from models.base import Base
from models.user import User
from models.store import Store
from models.product import Product

engine = create_engine('sqlite:///productcatalog.db')
Base.metadata.create_all(engine)

## Instruction:
Connect database engine to postgresql
## Code After:
from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine

from models.base import Base
from models.user import User
from models.store import Store
from models.product import Product

engine = create_engine('postgresql://catalog:catalog123!@localhost:8000/catalog')
Base.metadata.create_all(engine)
