-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added DDL scripts for OSlash clone db
- Loading branch information
Showing
5 changed files
with
258 additions
and
170 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
-- DB DDL script for OSlash clone | ||
|
||
CREATE TABLE `user` | ||
( | ||
`id` bigint NOT NULL , | ||
`email` varchar(100) NOT NULL , | ||
`password` varchar(100) NOT NULL , | ||
`created_dttm` datetime NOT NULL , | ||
`updated_dttm` datetime NOT NULL , | ||
|
||
PRIMARY KEY (`id`) | ||
); | ||
|
||
|
||
CREATE TABLE `shortcut` | ||
( | ||
`id` bigint NOT NULL , | ||
`short_link` varchar(60) NOT NULL , | ||
`user_id` bigint NOT NULL , | ||
`description` varchar(250) NOT NULL , | ||
`created_dttm` datetime NOT NULL , | ||
`update_dttm` datetime NOT NULL , | ||
|
||
PRIMARY KEY (`id`), | ||
KEY `FK_2` (`user_id`), | ||
CONSTRAINT `FK_1` FOREIGN KEY `FK_2` (`user_id`) REFERENCES `user` (`id`) | ||
); | ||
|
||
|
||
CREATE TABLE `tags` | ||
( | ||
`id` bigint NOT NULL , | ||
`shortcut_id` bigint NOT NULL , | ||
`tag` varchar(45) NOT NULL , | ||
`created_dttm` datetime NOT NULL , | ||
`updated_dttm` datetime NOT NULL , | ||
|
||
PRIMARY KEY (`id`), | ||
KEY `FK_2` (`shortcut_id`), | ||
CONSTRAINT `FK_2` FOREIGN KEY `FK_2` (`shortcut_id`) REFERENCES `shortcut` (`id`) | ||
); |
Oops, something went wrong.