Data model

"authorizations"."AUTHORIZATION_REQUEST" {
  shape: sql_table
    link: "../internals/models/#components.payment_gateway.subcomponents.authorizations.models.authorization_request.AuthorizationRequest"

"id": UUID {constraint: primary_key}
  "authorization_metadata": JSONB 
  "external_id": VARCHAR(255) 
  "provider": VARCHAR(255) 
  "status": VARCHAR(255) 
}
"authorizations"."EXPENSE_CATEGORY" {
  shape: sql_table
    link: "../internals/models/#components.payment_gateway.subcomponents.authorizations.models.expense_category.ExpenseCategory"

"id": UUID {constraint: primary_key}
  "code": VARCHAR(64) 
  "description": TEXT 
  "name": VARCHAR(255) 
  "reference": TEXT 
  "terminated_at": DATETIME 
}
"authorizations"."EXPENSE_TRACKER" {
  shape: sql_table
    link: "../internals/models/#components.payment_gateway.subcomponents.authorizations.models.expense_tracker.ExpenseTracker"

"id": UUID {constraint: primary_key}
  "credits_limit": INTEGER 
  "expensed_credits": INTEGER 
  "line_of_credit_id": UUID 
}
"authorizations"."LINE_OF_CREDIT" {
  shape: sql_table
    link: "../internals/models/#components.payment_gateway.subcomponents.authorizations.models.line_of_credit.LineOfCredit"

"id": UUID {constraint: primary_key}
  "expense_category_id": UUID 
  "owner_ref": UUID 
  "owner_type": VARCHAR(64) 
  "terminated_at": DATETIME 
}
"authorizations"."LINE_OF_CREDIT"."id" -> "authorizations"."EXPENSE_TRACKER"."line_of_credit_id": {
  source-arrowhead.shape: cf-one-required
  target-arrowhead.shape: cf-one-required
}
"authorizations"."EXPENSE_CATEGORY"."id" -> "authorizations"."LINE_OF_CREDIT"."expense_category_id": {
  source-arrowhead.shape: cf-one-required
  target-arrowhead.shape: cf-many
}
Hold "Alt" / "Option" to enable pan & zoom