this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

:memo: add database diagram

+55
+55
README.md
··· 12 12 export SECRET_KEY="wibble" 13 13 export DATABASE_URL="postgresql://user:password@localhost:5432/database" 14 14 ``` 15 + 16 + ## Database 17 + 18 + ```mermaid 19 + erDiagram 20 + USER_ACCOUNT { 21 + uuid id PK 22 + user_role_enum user_role 23 + text full_name 24 + text password_hash 25 + text phone 26 + text email 27 + boolean is_active 28 + timestamp created_at 29 + timestamp updated_at 30 + } 31 + 32 + ACCESS_AREA { 33 + uuid id PK 34 + text label 35 + } 36 + 37 + ACCESS_CARD { 38 + uuid id PK 39 + text label 40 + timestamp created_at 41 + timestamp updated_at 42 + } 43 + 44 + ACCESS_CARD_OWNERSHIP { 45 + uuid id PK 46 + uuid card_id FK 47 + uuid user_id FK 48 + } 49 + 50 + CARD_USAGE { 51 + uuid id PK 52 + uuid card_id FK 53 + uuid user_id FK 54 + uuid access_area_id FK 55 + timestamp usage_timestamp 56 + } 57 + 58 + ITEM { 59 + uuid id PK 60 + text label 61 + } 62 + 63 + USER_ACCOUNT ||--o{ ACCESS_CARD_OWNERSHIP : "owns" 64 + ACCESS_CARD ||--o{ ACCESS_CARD_OWNERSHIP : "assigned to" 65 + 66 + USER_ACCOUNT ||--o{ CARD_USAGE : "triggers" 67 + ACCESS_CARD ||--o{ CARD_USAGE : "used for" 68 + ACCESS_AREA ||--o{ CARD_USAGE : "location of" 69 + ```