Files
2026-05-07 02:06:54 +02:00

13 lines
516 B
Go

package models
import "time"
type SSHKey struct {
ID int64 `xorm:"'id' pk autoincr" json:"id"`
UserID int64 `xorm:"'user_id' notnull index" json:"userId"`
Title string `xorm:"'title' notnull varchar(255)" json:"title"`
Fingerprint string `xorm:"'fingerprint' notnull unique" json:"fingerprint"`
PublicKey string `xorm:"'public_key' text notnull" json:"publicKey"`
CreatedAt time.Time `xorm:"'created_at' created" json:"createdAt"`
}