It's essentially like you've invoiced your friends for the food bill. I would credit the credit card for the full transaction, debiting your portion to Expenses:Food or similar, and debiting the amounts owed by your friends to Assets:Accounts Receivable. When they cover their debt to you, then you will credit Accounts Receivable and debit whichever of your accounts they sent the money to. Doing this with a split transaction will make reconciliation nicer, because then your credit card statement will match the GnuCash entries, but whether you use a split transaction or not is your choice.
Here's what such a split transaction would look like when entered into your credit card ledger:
+-------------+--------------------+----------------------------+---------------+---------------+
| Date | Description/Memo | Account | Payment/Debit | Charge/Credit |
+-------------+--------------------+----------------------------+---------------+---------------+
| 18 Sep 2020 | Fancy Restaurant | | | |
+-------------+--------------------+----------------------------+---------------+---------------+
| Credit card charge | Liabilities:Credit Card | | 500.00 |
+--------------------+----------------------------+---------------+---------------+
| My owing | Expenses:Food | 200.00 | |
+--------------------+----------------------------+---------------+---------------+
| Alice's owing | Assets:Accounts Receivable | 100.00 | |
+--------------------+----------------------------+---------------+---------------+
| Bob's owing | Assets:Accounts Receivable | 100.00 | |
+--------------------+----------------------------+---------------+---------------+
| Charlie's owing | Assets:Accounts Receivable | 100.00 | |
+--------------------+----------------------------+---------------+---------------+
Accounts Receivable will then show one item for each split that is associated with it:
+-------------+--------------------+----------------------------+---------------+----------------+
| Date | Customer | Transfer | Invoice/Debit | Payment/Credit |
+-------------+--------------------+----------------------------+---------------+----------------+
| | Memo | |
+-------------+--------------------+----------------------------+---------------+----------------+
| 18 Sep 2020 | Fancy Restaurant | -- Split Transaction -- | 100.00 | |
+-------------+--------------------+----------------------------+---------------+----------------+
| | Alice's owing | | | |
+-------------+--------------------+----------------------------+---------------+----------------+
| 18 Sep 2020 | Fancy Restaurant | -- Split Transaction -- | 100.00 | |
+-------------+--------------------+----------------------------+---------------+----------------+
| | Bob's owing | | | |
+-------------+--------------------+----------------------------+---------------+----------------+
| 18 Sep 2020 | Fancy Restaurant | -- Split Transaction -- | 100.00 | |
+-------------+--------------------+----------------------------+---------------+----------------+
| | Charlie's owing | | | |
+-------------+--------------------+----------------------------+---------------+----------------+
If you were charging interest on your friends' debt, then I might class it as an asset, e.g. under Assets:Loans Receivable, since it will yield income. Alternatively, you can just use Accounts Receivable for this purpose, in the same manner that a business might charge statutory interest on an overdue bill for services.
Liabilities:Borrowed from Friends
. But if I loan something it is actually an asset (or a pre-payment). I think I asked that long time ago on the gc mailinglist and got told to put that intoAssets:Lent to Friends
andLiabilities:Borrowed from Friends
...