From c6de2481e6e20acb3c704d0ca85975b846b1d92d Mon Sep 17 00:00:00 2001 From: henry Date: Sat, 13 Dec 2025 17:49:12 +0100 Subject: [PATCH] ADD: added schema.sql --- README.md | 2 -- backend/db/schema.sql | 9 +++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 backend/db/schema.sql diff --git a/README.md b/README.md index 486fcd5..8fb1e2c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ Studia is an open-source web app for efficient learning with index cards (flashc - Import/export decks (JSON/CSV) - Progress tracking and basic statistics - Keyboard-first study experience and mobile-friendly UI -- Offline support (cached decks) and theming ## Contributing @@ -18,4 +17,3 @@ Contributions welcome. Please: - Add tests for new behavior and follow code style ## License -A \ No newline at end of file diff --git a/backend/db/schema.sql b/backend/db/schema.sql new file mode 100644 index 0000000..4a80598 --- /dev/null +++ b/backend/db/schema.sql @@ -0,0 +1,9 @@ + +CREATE TABLE users ( + id UUID PRIMARY KEY, + email VARCHAR(255) UNIQUE NOT NULL, + name VARCHAR(255) NOT NULL, + password_hash VARCHAR(255) NOT NULL, + created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP + updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP +); \ No newline at end of file