Last active
July 19, 2021 10:27
-
-
Save Adurtxi/427db9f96ca6b744e54564550979f25c to your computer and use it in GitHub Desktop.
NodeJS, Express and MySQL -- db.sql
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 characters
| CREATE DATABASE nodejs_mysql; | |
| USE nodejs_mysql; | |
| CREATE TABLE documents ( | |
| id int(11) NOT NULL AUTO_INCREMENT, | |
| title varchar(50) NOT NULL, | |
| description text NULL, | |
| created_at datetime NOT NULL, | |
| updated_at datetime NOT NULL, | |
| CONSTRAINT pk_documents PRIMARY KEY (id) | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment