https://github.com/ninest/dpsms
Distributed physical storage management system
https://github.com/ninest/dpsms
Last synced: 6 days ago
JSON representation
Distributed physical storage management system
- Host: GitHub
- URL: https://github.com/ninest/dpsms
- Owner: ninest
- Created: 2023-07-22T14:19:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-07T23:18:35.000Z (over 2 years ago)
- Last Synced: 2025-02-25T02:17:46.824Z (over 1 year ago)
- Language: TypeScript
- Size: 2.16 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DPSMS

















## Development
### Database
```mermaid
erDiagram
User ||--o{ HostUser : "1"
User ||--o{ TenantUser : "1"
User ||--o{ MoverUser : "1"
User ||--|{ Trust : "0..*"
User ||--|{ Trust : "0..*"
HostUser ||--o| HostListing : "0..*"
TenantUser ||--o| TenantRequest : "0..*"
TenantUser ||--o{ Tenancy : "0..*"
TenantRequest ||--o| TenantRequestListing : "0..*"
TenantRequestListing ||--|| HostListing : "0..*"
Tenancy |o--|| HostListing : "0..*"
```
### Commands
- `yarn prisma:generate`: Generate Prisma client
### Docker
Create a DB for dev with
```bash
# Destroy the dev DB
yarn run db:down
# Create the dev DB
yarn run db:up
# Push the schema
yarn run db:push
# Generate the schema
yarn run prisma:generate
```
Add
```env
DATABASE_URL=postgres://user:password@localhost:2429/dpsms_db
```
To your `.env`.