All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ontrack.sql.V6__437_project_favourites.sql Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
-- 32. Project favourites (#437)

CREATE TABLE PROJECT_FAVOURITES (
  ID        SERIAL  NOT NULL,
  ACCOUNTID INTEGER NOT NULL,
  PROJECTID INTEGER NOT NULL,
  CONSTRAINT PROJECT_FAVOURITES_PK PRIMARY KEY (ID),
  CONSTRAINT PROJECT_FAVOURITES_UQ UNIQUE (ACCOUNTID, PROJECTID),
  CONSTRAINT PROJECT_FAVOURITES_FK_ACCOUNT FOREIGN KEY (ACCOUNTID) REFERENCES ACCOUNTS (ID) ON DELETE CASCADE,
  CONSTRAINT PROJECT_FAVOURITES_FK_PROJECT FOREIGN KEY (PROJECTID) REFERENCES PROJECTS (ID) ON DELETE CASCADE
);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy