import bcrypt import datetime from BreCal.stubs import generate_uuid1_int from BreCal.schemas.model import User def get_user_simple(): user_id = generate_uuid1_int() participant_id = generate_uuid1_int() # should be taken from the database first_name = "Max" last_name = "Mustermann" user_name = "maxm123" user_email = "max.mustermann@brecal.de" user_phone = "0173123456" # formatting? password_hash = bcrypt.hashpw("123456".encode('utf-8'), bcrypt.gensalt( 12 )).decode('utf8') api_key = bcrypt.hashpw("apikey123".encode('utf-8'), bcrypt.gensalt( 12 )).decode('utf8') created = datetime.datetime.now() modified = created+datetime.timedelta(seconds=10) notify_email = True notify_whatsapp = True notify_signal = True notify_popup = True user = User( user_id, participant_id, first_name, last_name, user_name, user_email, user_phone, password_hash, api_key, notify_email, notify_whatsapp, notify_signal, notify_popup, created, modified ) return user