Laravel MTG DB Design

I’m pretty new to laravel and DB design in general, and I’m creating a card database for Magic the Gathering. I’m having trouble figuring out how to create the tables as they relate to legality in a given format. There are about 15 formats and each format can have 1 of 4 values.

For example:

$ {card name} is [legal, not legal, banned, restricted] in $ {format}

At some point I’ll probably want to be able to query all cards in a given format that have some value and so on…

I’m guessing formats, card_singles and legalities will all need a table, but I can’t work out how to relate them so they make sense.