Feat(SQL, UI): Redesign database with much more detailed command response quality analysis and created successfully loading Dog Command Links page
This commit is contained in:
31
static/MySQL/deprecated/1272_tbl_DOG_Personal_Best.sql
Normal file
31
static/MySQL/deprecated/1272_tbl_DOG_Personal_Best.sql
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
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_Personal_Best'
|
||||
;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS parts.DOG_Personal_Best (
|
||||
id_personal_best INT NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
, id_dog_command_link INT NOT NULL
|
||||
, CONSTRAINT FK_DOG_Personal_Best_id_dog_command_link
|
||||
FOREIGN KEY (id_dog_command_link)
|
||||
REFERENCES parts.DOG_Dog_Command_Link(id_link)
|
||||
, is_achieved_using_button BIT NOT NULL DEFAULT 0
|
||||
, situation TEXT NOT NULL
|
||||
, duration_seconds INT
|
||||
, quantity INT
|
||||
, active BIT NOT NULL DEFAULT 1
|
||||
, created_on DATETIME
|
||||
, id_user_created_by INT
|
||||
, CONSTRAINT FK_DOG_Personal_Best_id_user_created_by
|
||||
FOREIGN KEY (id_user_created_by)
|
||||
REFERENCES parts.DOG_User(id_user)
|
||||
, id_change_set INT
|
||||
, CONSTRAINT FK_DOG_Personal_Best_id_change_set
|
||||
FOREIGN KEY (id_change_set)
|
||||
REFERENCES parts.DOG_Dog_Change_Set(id_change_set)
|
||||
);
|
||||
Reference in New Issue
Block a user