migrate from github

This commit is contained in:
2026-07-15 22:42:31 +08:00
commit 3ad559f05e
262 changed files with 21637 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package model
import "time"
type InvitationRecord struct {
ID int64 `gorm:"primaryKey;autoIncrement" json:"id"`
Code string `gorm:"size:32;index;not null" json:"code"`
UsedByUserID *int64 `gorm:"index" json:"used_by_user_id"`
UsedBy string `gorm:"size:100" json:"used_by"`
Status string `gorm:"size:20;index" json:"status"`
UsedAt time.Time `json:"used_at"`
CreatedAt time.Time `json:"created_at"`
}
func (InvitationRecord) TableName() string {
return "invitation_records"
}