Add License
This commit is contained in:
+14
-11
@@ -6,17 +6,20 @@ import (
|
||||
)
|
||||
|
||||
type License struct {
|
||||
ID uuid.UUID `gorm:"type:uuid;primaryKey;default:uuid_generate_v4()"`
|
||||
PartnerID int64 `gorm:"type:bigint;not null"`
|
||||
Name string `gorm:"type:varchar(255);not null"`
|
||||
StartDate time.Time `gorm:"type:date;not null"`
|
||||
EndDate time.Time `gorm:"type:date;not null"`
|
||||
RenewalDate *time.Time `gorm:"type:date"`
|
||||
SerialNumber string `gorm:"type:varchar(255);unique;not null"`
|
||||
CreatedBy int64 `gorm:"type:bigint;not null"`
|
||||
UpdatedBy int64 `gorm:"type:bigint;not null"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime"`
|
||||
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
||||
ID uuid.UUID `gorm:"type:uuid;primaryKey;default:uuid_generate_v4()"`
|
||||
PartnerID int64 `gorm:"type:bigint;not null"`
|
||||
Name string `gorm:"type:varchar(255);not null"`
|
||||
StartDate time.Time `gorm:"type:date;not null"`
|
||||
EndDate time.Time `gorm:"type:date;not null"`
|
||||
RenewalDate *time.Time `gorm:"type:date"`
|
||||
SerialNumber string `gorm:"type:varchar(255);unique;not null"`
|
||||
CreatedBy int64 `gorm:"type:bigint;not null"`
|
||||
UpdatedBy int64 `gorm:"type:bigint;not null"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime"`
|
||||
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
||||
PartnerName string `gorm:"type:varchar(255);not null"`
|
||||
LicenseStatus string `gorm:"type:string(255);not null"`
|
||||
CreatedByName string `gorm:"type:string(255);not null"`
|
||||
}
|
||||
|
||||
func (License) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user