-
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.
- Loading branch information
1 parent
028cd6c
commit bd616cf
Showing
3 changed files
with
6 additions
and
88 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,17 +1,10 @@ | ||
package models | ||
|
||
type Product struct { | ||
<<<<<<< HEAD | ||
Id uint `json:"id" gorm:"primaryKey;unique;not null"` | ||
UserName string `json:"username" gorm:"not null"` | ||
Email string `json:"email" gorm:"not null;unique"` | ||
Password string `json:"password" gorm:"not null"` | ||
IsBlocked bool | ||
======= | ||
Id uint `json:"id" gorm:"primaryKey;unique;not null"` | ||
ProductName string `json:"productname" gorm:"not null"` | ||
Discription string `json:"discription" gorm:"not null;unique"` | ||
Image string `json:"image" gorm:"not null"` | ||
Stock uint `json:"stock" gorm:"not null"` | ||
>>>>>>> user | ||
Id uint | ||
ProductName string | ||
Discription string | ||
Price float64 | ||
Quantity int | ||
Category string | ||
} |