CREATE TABLE srt.photocell ( bufferFk INT NOT NULL, `position` INT NOT NULL COMMENT 'Posición relativa al celluveyor de dentro a fuera, siendo 1 la más cercana a este', isActive BOOL NULL, CONSTRAINT photocell_PK PRIMARY KEY (bufferFk,`position`), CONSTRAINT photocell_FK FOREIGN KEY (bufferFk) REFERENCES srt.buffer(id) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;