Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion model/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Application struct {
// read only: true
// required: true
// example: 5
ID uint `gorm:"primary_key;uniqueIndex;AUTO_INCREMENT" json:"id"`
Comment thread
eternal-flame-AD marked this conversation as resolved.
Outdated
ID uint `gorm:"primary_key;AUTO_INCREMENT" json:"id"`
// The application token. Can be used as `appToken`. See Authentication.
Comment thread
jmattheis marked this conversation as resolved.
//
// read only: true
Expand Down
2 changes: 1 addition & 1 deletion model/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Client struct {
// read only: true
// required: true
// example: 5
ID uint `gorm:"primary_key;uniqueIndex;AUTO_INCREMENT" json:"id"`
ID uint `gorm:"primary_key;AUTO_INCREMENT" json:"id"`
// The client token. Can be used as `clientToken`. See Authentication.
//
// read only: true
Expand Down
2 changes: 1 addition & 1 deletion model/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package model

// The User holds information about the credentials of a user and its application and client tokens.
type User struct {
ID uint `gorm:"primary_key;uniqueIndex;AUTO_INCREMENT"`
ID uint `gorm:"primary_key;AUTO_INCREMENT"`
Name string `gorm:"type:varchar(180);uniqueIndex"`
Pass []byte
Admin bool
Expand Down