Skip to content

Commit f033042

Browse files
committed
docs: include database commands
1 parent f8df1ee commit f033042

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,32 @@ To stop the infrastructure, run the following command:
2828
npm run infra:stop
2929
```
3030

31+
## Database Management
32+
33+
### Running Migrations
34+
35+
To run the latest database migrations, use the following command:
36+
37+
```bash
38+
npm run db:migrate
39+
```
40+
41+
### Rolling Back Migrations
42+
43+
To rollback the last batch of migrations, use the following command:
44+
45+
```bash
46+
npm run db:rollback
47+
```
48+
49+
### Seeding the Database
50+
51+
To seed the database with initial data, use the following command:
52+
53+
```bash
54+
npm run db:seed
55+
```
56+
3157
## License
3258

3359
This project is licensed under the MIT License. See the [LICENSE](/LICENSE) file for details.

0 commit comments

Comments
 (0)