Created model triad and database table structure