Skip to content

Commit 4df27f9

Browse files
authored
Update README.md
1 parent aec146a commit 4df27f9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ CREATE TABLE users (
8181
);
8282
```
8383

84+
```sql
85+
CREATE TABLE metrics (
86+
id SERIAL PRIMARY KEY,
87+
user_id INT NOT NULL,
88+
metric_name VARCHAR(255) NOT NULL,
89+
metric_value FLOAT NOT NULL,
90+
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
91+
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
92+
FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE
93+
);
94+
```
95+
8496
### Column Explanation
8597
- `id`: Unique identifier for each user (auto-increment).
8698
- `name`: User's name (max 100 characters).

0 commit comments

Comments
 (0)