Skip to content

Commit 8108a2f

Browse files
authored
Update README.md
1 parent fd7764c commit 8108a2f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,22 @@ The following endpoints are available in the API:
7878
The application uses a PostgreSQL database with the following schema:
7979

8080
```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+
id SERIAL PRIMARY KEY,
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+
);
8197
```
8298

8399
## Dependencies

0 commit comments

Comments
 (0)