We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd7764c commit 8108a2fCopy full SHA for 8108a2f
README.md
@@ -78,6 +78,22 @@ The following endpoints are available in the API:
78
The application uses a PostgreSQL database with the following schema:
79
80
```sql
81
+CREATE TABLE IF NOT EXISTS users (
82
+ id SERIAL PRIMARY KEY,
83
+ username VARCHAR(50) NOT NULL,
84
+ email VARCHAR(255) NOT NULL,
85
+ password VARCHAR(255) NOT NULL,
86
+ created_at TIMESTAMP NOT NULL DEFAULT NOW()
87
+);
88
+
89
+CREATE TABLE IF NOT EXISTS posts (
90
91
+ title VARCHAR(255) NOT NULL,
92
+ content TEXT NOT NULL,
93
+ author_id INT NOT NULL,
94
+ created_at TIMESTAMP NOT NULL DEFAULT NOW(),
95
+ updated_at TIMESTAMP
96
97
```
98
99
## Dependencies
0 commit comments