in der folgenden Tabelle würde ich wollen, dass die property_id eindeutig sein, so dass es keine doppelten Werte hat. Wie lautet die Syntax dafür?Wie stelle ich sicher, dass der Wert in einer Tabellenentität in mysql nicht wiederholt wird?
CREATE TABLE IF NOT EXISTS `propFeatures` (
`id` bigint(20) NOT NULL auto_increment,
`bedroom` int(10) NOT NULL,
`bathroom` int(10) NOT NULL,
`balcony` int(10) NOT NULL,
`furnished` tinyint(1) NOT NULL,
`property_id` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;