mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 12:34:44 +00:00
Replace DB with Store in service/user (#321)
This commit is contained in:
17
user/migrate/entity/entity.go
Normal file
17
user/migrate/entity/entity.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Row struct {
|
||||
Id string
|
||||
Data string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
func KeyPrefix(tenantId string) string {
|
||||
return fmt.Sprintf("user/%s/", tenantId)
|
||||
}
|
||||
Reference in New Issue
Block a user