You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using mermaid to document the ERD of a service database. One of the columns has an Enum value, what's the best way to do this?
Current approach.
erDiagram
user ||--|{ loan: has
user {
int id PK
string phone_number
string name
string last_name
int age
datetime created_at
datetime updated_at
}
loan {
int id PK
int lender_id FK "user.id"
string borrower_phone_number
float loan_amount
float interest_rate
BillingPeriod billing_period
datetime created_at
datetime updated_at
}
BillingPeriod {
string DAILY
string WEEKLY
string MONTHLY
string YEARLY
}
The text was updated successfully, but these errors were encountered:
I'm using
mermaid
to document the ERD of a service database. One of the columns has an Enum value, what's the best way to do this?Current approach.
The text was updated successfully, but these errors were encountered: