# Path: config.py
# CERTITUDE_DATABASE = "sqlite:///data.db"


from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from config import CERTITUDE_DATABASE
from results_models import Result, IOCDetection
from queue_models import Task
from misc_models import User, GlobalConfig, XMLIOC, ConfigurationProfile, WindowsCredential
from yara_models import YaraRule, YaraDetection
from helpers import hashPassword, checksum, verifyPassword
import crypto
import getpass
import base64
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
'''




# CERTitude core
engine = create_engine(CERTITUDE_DATABASE, echo=False)

Result.metadata.create_all(engine)
Task.metadata.create_all(engine)
IOCDetection.metadata.create_all(engine)
User.metadata.create_all(engine)
GlobalConfig.metadata.create_all(engine)
XMLIOC.metadata.create_all(engine)
ConfigurationProfile.metadata.create_all(engine)
WindowsCredential.metadata.create_all(engine)
YaraRule.metadata.create_all(engine)
YaraDetection.metadata.create_all(engine)



# Path: config.py
# CERTITUDE_DATABASE = "sqlite:///data.db"


# Path: helpers/init.py
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from config import CERTITUDE_DATABASE
from results_models import Result, IOCDetection
from queue_models import Task
from misc_models import User, GlobalConfig, XMLIOC, ConfigurationProfile, WindowsCredential
from yara_models import YaraRule, YaraDetection
from helpers import hashPassword, checksum, verifyPassword
import crypto
import getpass
import base64

    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
'''




# CERTitude core
engine = create_engine(CERTITUDE_DATABASE, echo=False)

Result.metadata.create_all(engine)
Task.metadata.create_all(engine)
IOCDetection.metadata.create_all(engine)
User.metadata.create_all(engine)
GlobalConfig.metadata.create_all(engine)
XMLIOC.metadata.create_all(engine)
ConfigurationProfile.metadata.create_all(engine)
WindowsCredential.metadata.create_all(engine)
YaraRule.metadata.create_all(engine)
YaraDetection.metadata.create_all(engine)



engine = create_engine(CERTITUDE_DATABASE, echo=False)