-
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.
In this submission, the original redundant table `t_user_repository` was deleted, and the current table `t_user_star_repository` was added to reflect the collection relationship. And now two fields are added to the repository table, `https_url` for the link under the https protocol and `ssh_url` for the link under the ssh protocol. See #46 and #48.
- Loading branch information
1 parent
263fa3f
commit 2cecb31
Showing
6 changed files
with
189 additions
and
274 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
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
CREATE TABLE public.t_user_star_repository ( | ||
id bigint NOT NULL, | ||
user_id bigint NOT NULL, | ||
repository_id bigint NOT NULL, | ||
gmt_created timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, | ||
gmt_updated timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, | ||
gmt_deleted timestamp without time zone | ||
); | ||
|
||
COMMENT ON TABLE public.t_user_star_repository IS 'Table for storing relationships between users and starred repositories.'; | ||
|
||
COMMENT ON COLUMN public.t_user_star_repository.id IS 'Primary key of the user_star_repository table.'; | ||
COMMENT ON COLUMN public.t_user_star_repository.user_id IS 'ID of the user who starred the repository.'; | ||
COMMENT ON COLUMN public.t_user_star_repository.repository_id IS 'ID of the repository that has been starred.'; | ||
COMMENT ON COLUMN public.t_user_star_repository.gmt_created IS 'Timestamp when the relationship was created.'; | ||
COMMENT ON COLUMN public.t_user_star_repository.gmt_updated IS 'Timestamp when the relationship was last updated.'; | ||
COMMENT ON COLUMN public.t_user_star_repository.gmt_deleted IS 'Timestamp when the relationship was deleted. If set to NULL, it indicates that this relationship has not been deleted.'; |