From db2290ba14f472bd31a8faeee15bbbe337897d59 Mon Sep 17 00:00:00 2001 From: bmondream Date: Tue, 19 May 2026 00:02:31 +0200 Subject: [PATCH] chore: move backend to separate dir --- .gitignore | 3 +++ app.py => backend/app.py | 0 db.py => backend/db.py | 0 dto.py => backend/dto.py | 0 init-db.py => backend/init-db.py | 1 + run.sh => backend/run.sh | 0 6 files changed, 4 insertions(+) rename app.py => backend/app.py (100%) rename db.py => backend/db.py (100%) rename dto.py => backend/dto.py (100%) rename init-db.py => backend/init-db.py (97%) rename run.sh => backend/run.sh (100%) diff --git a/.gitignore b/.gitignore index af3a38a..a217e90 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,6 @@ wheels/ # Local application data log/ *.db + +# Gradle +local.properties diff --git a/app.py b/backend/app.py similarity index 100% rename from app.py rename to backend/app.py diff --git a/db.py b/backend/db.py similarity index 100% rename from db.py rename to backend/db.py diff --git a/dto.py b/backend/dto.py similarity index 100% rename from dto.py rename to backend/dto.py diff --git a/init-db.py b/backend/init-db.py similarity index 97% rename from init-db.py rename to backend/init-db.py index b591a44..1c5cadd 100644 --- a/init-db.py +++ b/backend/init-db.py @@ -16,6 +16,7 @@ cur.execute("CREATE TABLE devices(access_key, secret_key_hash, type, name)") # type : INCOMING, OUTGOING # local_phone_number : a SECONDARY device SIM's phone number # remote_phone_number : a phone number or shortcode of the other party +# TODO add column for sender's access key cur.execute("CREATE TABLE messages(content, ts_received, ts_sent, type, local_phone_number, remote_phone_number)") cur.execute("CREATE TABLE sim_events(sim_id, ts, note, cost, currency)") cur.execute("CREATE TABLE sim_cards(phone_number, device_access_key)") diff --git a/run.sh b/backend/run.sh similarity index 100% rename from run.sh rename to backend/run.sh