Initial commit.

This commit is contained in:
2025-06-21 17:51:07 +01:00
commit 6fd3a23aa7
296 changed files with 29154 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
USE parts;
SELECT CONCAT('WARNING: Table ', TABLE_SCHEMA, '.', TABLE_NAME, ' already exists.') AS msg_warning
FROM INFORMATION_SCHEMA.TABLES
WHERE
TABLE_SCHEMA = 'parts'
AND TABLE_NAME = 'DOG_Command_Button_Link'
;
CREATE TABLE IF NOT EXISTS parts.DOG_Command_Button_Link (
id_link INT NOT NULL AUTO_INCREMENT PRIMARY KEY
, id_command INT NOT NULL
, CONSTRAINT FK_DOG_Command_Button_Link_id_command
FOREIGN KEY (id_command)
REFERENCES parts.DOG_Command(id_command)
, id_button_shape INT NOT NULL
, CONSTRAINT FK_DOG_Command_Button_Link_id_button_shape
FOREIGN KEY (id_button_shape)
REFERENCES parts.DOG_Button_Shape(id_button_shape)
, id_button_colour INT NOT NULL
, CONSTRAINT FK_DOG_Command_Button_Link_id_button_colour
FOREIGN KEY (id_button_colour)
REFERENCES parts.DOG_Colour(id_colour)
, id_button_icon INT
, CONSTRAINT FK_DOG_Command_Button_Link_id_button_icon
FOREIGN KEY (id_button_icon)
REFERENCES parts.DOG_Button_Icon(id_button_icon)
, id_location INT NOT NULL
, CONSTRAINT FK_DOG_Command_Button_Link_id_location
FOREIGN KEY (id_location)
REFERENCES parts.DOG_Location(id_location)
, active BIT NOT NULL DEFAULT 1
, created_on DATETIME
, id_user_created_by INT
, CONSTRAINT FK_DOG_Command_Button_Link_id_user_created_by
FOREIGN KEY (id_user_created_by)
REFERENCES parts.DOG_User(id_user)
, id_change_set INT
, CONSTRAINT FK_DOG_Command_Button_Link_id_change_set
FOREIGN KEY (id_change_set)
REFERENCES parts.DOG_Dog_Change_Set(id_change_set)
);