Created
July 14, 2021 07:59
-
-
Save oradwell/3ec96aebb712a77b65757869a05e7f6c to your computer and use it in GitHub Desktop.
Revisions
-
oradwell created this gist
Jul 14, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ CREATE TABLE user ( id INT(10) UNSIGNED PRIMARY KEY, name VARCHAR(128) NOT NULL, email VARCHAR(128) NOT NULL, country_code CHAR(2) DEFAULT NULL, country_name VARCHAR(60) DEFAULT NULL ); CREATE TABLE country ( id INT(10) UNSIGNED PRIMARY KEY, code CHAR(2) NOT NULL, name VARCHAR(60) NOT NULL ); CREATE TABLE login ( id INT(10) UNSIGNED PRIMARY KEY, email VARCHAR(128) NOT NULL, country_name VARCHAR(60) DEFAULT NULL ); INSERT INTO user VALUES (3, 'Jonh', '[email protected]', 'CC', NULL); INSERT INTO login VALUES (1, '[email protected]', NULL); INSERT INTO country VALUES (1, 'CC', 'Comic Comune');