-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from 2024-Iris/schema
schema.sql 업데이트
- Loading branch information
Showing
2 changed files
with
128 additions
and
56 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 |
---|---|---|
|
@@ -9,28 +9,28 @@ INSERT INTO `user` (github_id, email) | |
VALUES ('lvalentine6', '[email protected]'); | ||
|
||
-- Inserting organizations | ||
INSERT INTO `org` (name) | ||
VALUES ('organization1'); | ||
INSERT INTO `org` (name) | ||
VALUES ('organization2'); | ||
INSERT INTO `org` (name, gh_org_id) | ||
VALUES ('organization1', 1); | ||
INSERT INTO `org` (name, gh_org_id) | ||
VALUES ('organization2', 2); | ||
|
||
-- Inserting repositories | ||
INSERT INTO `repository` (org_id, name) | ||
VALUES (1, 'repo-a1'); | ||
INSERT INTO `repository` (org_id, name) | ||
VALUES (1, 'repo-a2'); | ||
INSERT INTO `repository` (org_id, name) | ||
VALUES (2, 'repob-1'); | ||
INSERT INTO `repository` (org_id, name, gh_repo_id) | ||
VALUES (1, 'repo-a1', 1); | ||
INSERT INTO `repository` (org_id, name, gh_repo_id) | ||
VALUES (1, 'repo-a2', 2); | ||
INSERT INTO `repository` (org_id, name, gh_repo_id) | ||
VALUES (2, 'repob-1', 3); | ||
|
||
-- Inserting issues | ||
INSERT INTO `issue` (repository_id, name) | ||
VALUES (1, 'issue-a1-1'); | ||
INSERT INTO `issue` (repository_id, name) | ||
VALUES (1, 'issue-a1-2'); | ||
INSERT INTO `issue` (repository_id, name) | ||
VALUES (2, 'issue-a2-1'); | ||
INSERT INTO `issue` (repository_id, name) | ||
VALUES (3, 'issue-b1-1'); | ||
INSERT INTO `issue` (repository_id, title, gh_issue_number) | ||
VALUES (1, 'issue-a1-1', 1234); | ||
INSERT INTO `issue` (repository_id, title, gh_issue_number) | ||
VALUES (1, 'issue-a1-2', 5678); | ||
INSERT INTO `issue` (repository_id, title, gh_issue_number) | ||
VALUES (2, 'issue-a2-1', 5679); | ||
INSERT INTO `issue` (repository_id, title, gh_issue_number) | ||
VALUES (3, 'issue-b1-1', 2000); | ||
|
||
-- Inserting labels | ||
INSERT INTO `label` (name) | ||
|
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