Skip to content

Commit

Permalink
File Structre Changes done
Browse files Browse the repository at this point in the history
  • Loading branch information
sms2sakthivel committed Dec 28, 2024
1 parent 28547dd commit a0f1dee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
File renamed without changes.
11 changes: 7 additions & 4 deletions products/model/productmodel.go → products/model/productdb.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package model

import "gorm.io/gorm"

type Product struct {
gorm.Model
ID uint `gorm:"primaryKey"`
Name string `gorm:"size:100;not null"`
Brand string `gorm:"size:100;not null"`
Category string `gorm:"size:100;not null"`
SubCategory string `gorm:"size:100;not null"`
Name string `gorm:"not null"`
Brand string `gorm:"not null"`
Category string `gorm:"not null"`
SubCategory string `gorm:"not null"`
Price uint `gorm:"not null"`
}

Expand Down

0 comments on commit a0f1dee

Please sign in to comment.