-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
returns username
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package data | ||
|
||
// ---------------------------------------------- | ||
// table stucts | ||
// ---------------------------------------------- | ||
|
||
type Accounts_User struct { | ||
ID int `gorm:"primaryKey;autoIncrement"` | ||
RemoteID string `json:"remote_id" gorm:"column:remote_id"` | ||
Username string `json:"username" gorm:"column:username"` | ||
FirstName string `json:"first_name" gorm:"column:first_name"` | ||
LastName string `json:"last_name" gorm:"column:last_name"` | ||
Email string `json:"email" gorm:"column:email"` | ||
} | ||
|
||
// ---------------------------------------------- | ||
// table configurations | ||
// ---------------------------------------------- | ||
|
||
type Tabler interface { | ||
TableName() string | ||
} | ||
|
||
func (Accounts_User) TableName() string { | ||
return "accounts_user" | ||
} |