from flask_sqlalchemy import SQLAlchemy

class db_init(SQLAlchemy):
	def __init__(self, app):
		app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
		app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db/db.sql'
		
		super().__init__(app)
		
		self.create_all()
from flask_sqlalchemy import SQLAlchemy

class db_init(SQLAlchemy):
	def __init__(self, app):
		app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
		app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db/db.sql'
		
		super().__init__(app)
		
		self.create_all()