feat: initial commit
This commit is contained in:
22
internal/domain/entity/user.go
Normal file
22
internal/domain/entity/user.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package entity
|
||||
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
TelegramID int64
|
||||
Username string
|
||||
FirstName string
|
||||
LastName string
|
||||
Language string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type Session struct {
|
||||
UserID int64
|
||||
ChatID int64
|
||||
CurrentWorkflow string
|
||||
History []Message
|
||||
Data map[string]any
|
||||
UpdatedAt time.Time
|
||||
TTL int // hours
|
||||
}
|
||||
Reference in New Issue
Block a user