Skip to content

Commit

Permalink
Update database models 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fchrgrib committed Jun 15, 2023
1 parent 05a1902 commit 7f84137
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions controllers/profile/UserDelete.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package profile

import (
"github.com/gin-gonic/gin"
)

func UserDelete(c *gin.Context) {

//var (
// userDelete models.UserDescDB
//)
//
//userId, err := data.GetUserIdFromCookies(c)
//if err != nil {
// c.JSON(http.StatusUnauthorized, gin.H{
// "status": err.Error(),
// })
// return
//}
//
//db, err := database.ConnectDB()
//if err != nil {
// c.JSON(http.StatusInternalServerError, gin.H{
// "status": err.Error(),
// })
// return
//}

}
2 changes: 1 addition & 1 deletion models/DatabaseModels.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

type UserPhotoProfileDB struct {
UserId string `json:"user_id" gorm:"column:user_id;type:varchar(155);primaryKey"`
UserId string `json:"user_id" gorm:"column:user_id;type:varchar(155);primaryKey;index"`
Path string `json:"path" gorm:"column:path"`
}

Expand Down

3 comments on commit 7f84137

@vercel
Copy link

@vercel vercel bot commented on 7f84137 Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7f84137 Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7f84137 Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.