This repository has been archived by the owner on Oct 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename tables in backend * table names Co-authored-by: Harry Liu <[email protected]>
- Loading branch information
1 parent
97ecd08
commit e506d99
Showing
6 changed files
with
74 additions
and
74 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
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 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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
package table | ||
|
||
// URL represents database table columns for 'url' table | ||
var URL = struct { | ||
TableName string | ||
ColumnAlias string | ||
ColumnOriginalURL string | ||
ColumnCreatedAt string | ||
ColumnExpireAt string | ||
ColumnUpdatedAt string | ||
// ShortLink represents database table columns for 'short_link' table | ||
var ShortLink = struct { | ||
TableName string | ||
ColumnAlias string | ||
ColumnLongLink string | ||
ColumnCreatedAt string | ||
ColumnExpireAt string | ||
ColumnUpdatedAt string | ||
}{ | ||
TableName: "short_link", | ||
ColumnAlias: "alias", | ||
ColumnOriginalURL: "long_link", | ||
ColumnCreatedAt: "created_at", | ||
ColumnExpireAt: "expire_at", | ||
ColumnUpdatedAt: "updated_at", | ||
TableName: "short_link", | ||
ColumnAlias: "alias", | ||
ColumnLongLink: "long_link", | ||
ColumnCreatedAt: "created_at", | ||
ColumnExpireAt: "expire_at", | ||
ColumnUpdatedAt: "updated_at", | ||
} |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package table | ||
|
||
// UserURLRelation represents database table columns for 'user_url_relation' table | ||
var UserURLRelation = struct { | ||
TableName string | ||
ColumnUserID string | ||
ColumnURLAlias string | ||
// UserShortLink represents database table columns for 'user_short_link' table | ||
var UserShortLink = struct { | ||
TableName string | ||
ColumnUserID string | ||
ColumnShortLinkAlias string | ||
}{ | ||
TableName: "user_short_link", | ||
ColumnUserID: "user_id", | ||
ColumnURLAlias: "short_link_alias", | ||
TableName: "user_short_link", | ||
ColumnUserID: "user_id", | ||
ColumnShortLinkAlias: "short_link_alias", | ||
} |
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 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