Table : bankAccountRoles

Raw table description

Fields

id id

{
  "name": "id",
  "type": "primaryKey"
}

bankAccountId M  → bankAccounts

{
  "name": "bankAccountId",
  "type": "foreignKey",
  "table": "bankAccounts",
  "mandatory": "true"
}

contactId M  → contacts

{
  "name": "contactId",
  "type": "foreignKey",
  "table": "contacts",
  "mandatory": "true"
}

role M E

{
  "name": "role",
  "type": "enum",
  "enums": [
    "BANK_ACCOUNT_ROLE_CLIENT_ACCOUNT (Klientmedelskonto)",
    "BANK_ACCOUNT_ROLE_BROKER_ACCOUNT (Företagskonto)"
  ],
  "mandatory": "true"
}

isPrimaryBankAccount bit  (For now, only used to specify which account that should be used in documents.)

{
  "name": "isPrimaryBankAccount",
  "type": "bit",
  "note": "For now, only used to specify which account that should be used in documents."
}

updatedDate

{
  "name": "updatedDate",
  "type": "updated"
}