Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 6, 2024
1 parent f669336 commit 2b1a204
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions blockchain_integration/PiSure/database/README.md
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.

0 comments on commit 2b1a204

Please sign in to comment.