An Application is a registered client application. An Application belongs to an Instance.
| 5 | // An Application is a registered client application. |
| 6 | // An Application belongs to an Instance. |
| 7 | type Application struct { |
| 8 | snowflake.ID `gorm:"primarykey;autoIncrement:false"` |
| 9 | InstanceID snowflake.ID |
| 10 | Instance *Instance `gorm:"constraint:OnDelete:CASCADE;<-:false;"` |
| 11 | Name string `gorm:"size:255;not null"` |
| 12 | Website string `gorm:"size:255"` |
| 13 | RedirectURI string `gorm:"size:255;not null"` |
| 14 | ClientID string `gorm:"size:255;not null"` |
| 15 | ClientSecret string `gorm:"size:255;not null"` |
| 16 | VapidKey string `gorm:"size:255;not null"` |
| 17 | Scopes string `gorm:"size:255;not null;default:''"` |
| 18 | } |
nothing calls this directly
no outgoing calls
no test coverage detected