-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# PiSure Database | ||
|
||
This repository contains the database configuration and models for PiSure, a decentralized insurance platform. | ||
|
||
## Database Configuration | ||
|
||
The database configuration is split into two directories: `postgres` and `mongodb`. The `postgres` directory contains the configuration for the PostgreSQL database, while the `mongodb` directory contains the configuration for the MongoDB database. | ||
|
||
## Migrations | ||
|
||
The `migrations` directory contains the database migrations using TypeORM. To run the migrations, use the following command: | ||
|
||
`npm run migrate` | ||
|
||
To revert the migrations, use the following command: | ||
|
||
`npm run revert` | ||
|
||
## Models | ||
|
||
The `models` directory contains the database models using TypeORM. The models are used to interact with the database. | ||
|
||
## Contributing | ||
|
||
Contributions are welcome! Please submit a pull request with your changes and a brief description of what you've added or fixed. |