refact:openteam

This commit is contained in:
Sakurasan
2025-01-01 23:10:01 +08:00
parent 1f5e1c221c
commit 65d6d12972
18 changed files with 1126 additions and 106 deletions

View File

@@ -2,16 +2,13 @@ package store
import (
"time"
"gorm.io/gorm"
)
type User struct {
gorm.Model
IsDelete bool `gorm:"default:false" json:"IsDelete"`
ID uint `gorm:"primarykey autoIncrement;" json:"id,omitempty"`
ID int64 `gorm:"primaryKey;autoIncrement" json:"id,omitempty"`
Name string `gorm:"unique;not null" json:"name,omitempty"`
Token string `gorm:"unique;not null" json:"token,omitempty"`
Token string `gorm:"unique;not null;index" json:"token,omitempty"`
CreatedAt time.Time `json:"createdAt,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
// DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`