ADD: added schema.sql

This commit is contained in:
2025-12-13 17:49:12 +01:00
parent 6395b98f11
commit c6de2481e6
2 changed files with 9 additions and 2 deletions

View File

@@ -8,7 +8,6 @@ Studia is an open-source web app for efficient learning with index cards (flashc
- Import/export decks (JSON/CSV) - Import/export decks (JSON/CSV)
- Progress tracking and basic statistics - Progress tracking and basic statistics
- Keyboard-first study experience and mobile-friendly UI - Keyboard-first study experience and mobile-friendly UI
- Offline support (cached decks) and theming
## Contributing ## Contributing
@@ -18,4 +17,3 @@ Contributions welcome. Please:
- Add tests for new behavior and follow code style - Add tests for new behavior and follow code style
## License ## License
A

9
backend/db/schema.sql Normal file
View File

@@ -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
);