39 lines
1.0 KiB
MySQL
39 lines
1.0 KiB
MySQL
|
--
|
||
|
-- Datenbank: `muellersql3`
|
||
|
--
|
||
|
|
||
|
-- --------------------------------------------------------
|
||
|
|
||
|
--
|
||
|
-- Tabellenstruktur für Tabelle `mic_dj_job_opening_worker`
|
||
|
--
|
||
|
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS `mic_dj_job_opening_worker` (
|
||
|
`opening_id` int(11) NOT NULL,
|
||
|
`worker_id` int(11) NOT NULL,
|
||
|
UNIQUE KEY `opening_id` (`opening_id`,`worker_id`),
|
||
|
KEY `mic_dj_job_opening_worker_favOpening` (`opening_id`),
|
||
|
KEY `mic_dj_job_opening_worker_favWorker` (`worker_id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||
|
|
||
|
|
||
|
--
|
||
|
-- Tabellenstruktur für Tabelle `mic_dj_account_cmpy` ändern
|
||
|
-- ProCompanyAccount
|
||
|
--
|
||
|
|
||
|
ALTER TABLE `mic_dj_account_cmpy` ADD `pro_user` INT NOT NULL ;
|
||
|
|
||
|
|
||
|
--
|
||
|
-- Constraints der exportierten Tabellen
|
||
|
--
|
||
|
|
||
|
--
|
||
|
-- Constraints der Tabelle `mic_dj_job_opening_worker`
|
||
|
--
|
||
|
ALTER TABLE `mic_dj_job_opening_worker`
|
||
|
ADD CONSTRAINT `mic_dj_job_opening_worker_favOpening` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`),
|
||
|
ADD CONSTRAINT `mic_dj_job_opening_worker_favWorker` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`);
|