from flask import Flask
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)

from app import views
from app.views import company, service, provider, product, customer, alarm
from app.views import invoice, budget, item, doc, bank_account, picture
from app.views import order, log
from app import models


@app.before_first_request
def run_jobs():
    alarm.schedule_daily_alarms()
