package models import ( "time" "gorm.io/datatypes" "gorm.io/gorm" ) type Client struct { gorm.Model ClientID string `gorm:"uniqueIndex;not null"` ClientSecret string `gorm:"not null"` RedirectURIs datatypes.JSON `gorm:"type:json"` TokenEndpointAuthMethod string `gorm:"not null"` GrantTypes datatypes.JSON `gorm:"type:json"` ResponseTypes datatypes.JSON `gorm:"type:json"` ClientName string `gorm:"type:varchar(255)"` ClientURI string `gorm:"type:varchar(255)"` LogoURI string `gorm:"type:varchar(255)"` Scopes datatypes.JSON `gorm:"type:json"` Contacts datatypes.JSON `gorm:"type:json"` TosURI string `gorm:"type:varchar(255)"` PolicyURI string `gorm:"type:varchar(255)"` SoftwareID string `gorm:"type:varchar(255)"` SoftwareVersion string `gorm:"type:varchar(255)"` IsActive bool `gorm:"default:true"` CreatedAt time.Time UpdatedAt time.Time } func (c *Client) TableName() string { return "oauth_clients" }