I'm not sure where you are located, but generally flat roofs are not allowed anymore by most codes. Usually a slope of at least 1/4-inch per foot is required.
You certainly do not want to put shingles on a flat roof. That just doesn't work. You need a slope of at least 2:12 and I would recommend at least 3:12 for shingles. A shingled system is not a bonded waterproofing system. It is a dampproof system that depends on water shedding capability.
As for designing a roof structure of wood for "flat roofs", you must design for a high volume, low frequency storm event. You must account for potential ponding, and consider that long term creep of the wood might cause additional ponding between drains. When ponding occurs on roofs, progressive deflection occurs. If drainage is poor, the deflection increases and more ponding occurs, leading to a higher potential for catastrophic collapse. This is not a theoretical or academic exercise...I've seen the failures occur.