Hi,

I am new to CakePHP and wasn't really understanding the database
structure naming conventions entirely, or maybe I am, I don't know.
I was mainly wondering if someone could rewrite this DB Structure to
the appropriate naming convention:


CREATE TABLE `Ambiance` (
   `ID` int(11) not null,
   `RestName` varchar(150) not null,
   `Casual_Fine_Dining` enum('Yes','No') not null default 'No',
   `Waterfront` enum('Yes','No') not null default 'No',
   `Rooftop` enum('Yes','No') not null default 'No',
   `Patio` enum('Yes','No') not null default 'No',
   `Beach` enum('Yes','No') not null default 'No',
   `Romantic` enum('Yes','No') not null default 'No',
   `Casual` enum('Yes','No') not null default 'No',
   `Eclectic` enum('Yes','No') not null default 'No',
   `By_Boat` enum('Yes','No') not null default 'No',
   `For_Kids` enum('Yes','No') not null default 'No',
   `Dog_Friendly` enum('Yes','No') not null default 'No',
   `Fine_Dining` enum('Yes','No') not null default 'No',
   `Outdoor_Dining` enum('Yes','No') not null default 'No',
   `Water_Front_Dining` enum('Yes','No') not null default 'No',
   PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


CREATE TABLE `Cuisine` (
   `ID` int(11) not null,
   `RestName` varchar(150) not null,
   `American` enum('Yes','No') not null default 'No',
   `Bakeries` enum('Yes','No') not null default 'No',
   `Banquet` enum('Yes','No') not null default 'No',
   `Bar_Tavern` enum('Yes','No') not null default 'No',
   `Barbecue` enum('Yes','No') not null default 'No',
   `Breakfast` enum('Yes','No') not null default 'No',
   `Brunch` enum('Yes','No') not null default 'No',
   `Buffet` enum('Yes','No') not null default 'No',
   `Cajun` enum('Yes','No') not null default 'No',
   `Caribbean` enum('Yes','No') not null default 'No',
   `Catering` enum('Yes','No') not null default 'No',
   `Chinese` enum('Yes','No') not null default 'No',
   `Coffeeshops` enum('Yes','No') not null default 'No',
   `Deli` enum('Yes','No') not null default 'No',
   `Delivery` enum('Yes','No') not null default 'No',
   `Dessert` enum('Yes','No') not null default 'No',
   `English` enum('Yes','No') not null default 'No',
   `Fondue` enum('Yes','No') not null default 'No',
   `French` enum('Yes','No') not null default 'No',
   `Greek` enum('Yes','No') not null default 'No',
   `Hawaiian` enum('Yes','No') not null default 'No',
   `Indian` enum('Yes','No') not null default 'No',
   `Italian` enum('Yes','No') not null default 'No',
   `Japanese` enum('Yes','No') not null default 'No',
   `Live_Entertainment` enum('Yes','No') not null default 'No',
   `Mediterranean` enum('Yes','No') not null default 'No',
   `Mexican` enum('Yes','No') not null default 'No',
   `Nightlife` enum('Yes','No') not null default 'No',
   `Organic` enum('Yes','No') not null default 'No',
   `Pizzeria` enum('Yes','No') not null default 'No',
   `Seafood` enum('Yes','No') not null default 'No',
   `Southern` enum('Yes','No') not null default 'No',
   `Southwest` enum('Yes','No') not null default 'No',
   `Sushi` enum('Yes','No') not null default 'No',
   `Tapas` enum('Yes','No') not null default 'No',
   `Thai` enum('Yes','No') not null default 'No',
   `Vegetarian` enum('Yes','No') not null default 'No',
   `Vietnamese` enum('Yes','No') not null default 'No',
   PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


CREATE TABLE `Location` (
   `ID` int(11) not null,
   `RestName` varchar(150) not null,
   `Bluffton` enum('Yes','No') not null default 'No',
   `Broughton` enum('Yes','No') not null default 'No',
   `Brunswick` enum('Yes','No') not null default 'No',
   `City_Market` enum('Yes','No') not null default 'No',
   `Claxton` enum('Yes','No') not null default 'No',
   `Downtown` enum('Yes','No') not null default 'No',
   `Garden_City` enum('Yes','No') not null default 'No',
   `Gateway` enum('Yes','No') not null default 'No',
   `Hilton_Head` enum('Yes','No') not null default 'No',
   `Historic_District` enum('Yes','No') not null default 'No',
   `Midtown` enum('Yes','No') not null default 'No',
   `Oglethorpe_Mall` enum('Yes','No') not null default 'No',
   `Pooler` enum('Yes','No') not null default 'No',
   `Richmond_Hill` enum('Yes','No') not null default 'No',
   `River_Street` enum('Yes','No') not null default 'No',
   `Sandfly` enum('Yes','No') not null default 'No',
   `Savannah_Airport` enum('Yes','No') not null default 'No',
   `Savannah_Mall` enum('Yes','No') not null default 'No',
   `Southside` enum('Yes','No') not null default 'No',
   `Statesboro` enum('Yes','No') not null default 'No',
   `Sylvania` enum('Yes','No') not null default 'No',
   `Thunderbolt` enum('Yes','No') not null default 'No',
   `Tybee_Island` enum('Yes','No') not null default 'No',
   `Victorian_District` enum('Yes','No') not null default 'No',
   `Whitemarsh_Island` enum('Yes','No') not null default 'No',
   `Wilmington_Island` enum('Yes','No') not null default 'No',
   PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


CREATE TABLE `Restaurant` (
   `ID` int(11) not null auto_increment,
   `RestName` varchar(150) not null,
   `Phone` varchar(20) not null,
   `Address` varchar(150) not null,
   `City` varchar(25) not null,
   `State` varchar(10) not null,
   `Zip` int(10) not null,
   `VIP_Special` varchar(250) not null,
   `URL` varchar(50) not null,
   `Preferred` int(20) default '0',
   `Image` varchar(255),
   `Couples_Special` varchar(255),
   `Group_Special` varchar(255),
   `GirlScout_Special` varchar(255),
   PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=198;

Associations:
A restaurant can have many locations and many ambiances and many
cuisines

I'm not exactly sure how this should be formatted for cake respective
naming.

Any help would be greatly appreciated and help me get rolling on this
great framework that I'd really like to start using.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to