making progress

This commit is contained in:
2026-05-07 02:06:54 +02:00
parent 7b7e2d399c
commit dea186c995
39 changed files with 2021 additions and 67 deletions
+12
View File
@@ -0,0 +1,12 @@
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"`
}