60 lines
991 B
Go
60 lines
991 B
Go
package scylladb
|
|
|
|
import (
|
|
"github.com/scylladb/gocqlx/v2/table"
|
|
)
|
|
|
|
var (
|
|
Users = table.New(table.Metadata{
|
|
Name: "users",
|
|
Columns: []string{
|
|
"id",
|
|
"username",
|
|
"account_name",
|
|
"account_name_lc",
|
|
"email",
|
|
"password",
|
|
"description",
|
|
"latitude",
|
|
"longitude",
|
|
"xp_level",
|
|
"xp_points",
|
|
"followers_count",
|
|
"following_count",
|
|
"account_status",
|
|
"avatar_url",
|
|
"public_keys",
|
|
"created_at",
|
|
"updated_at"},
|
|
PartKey: []string{"id"},
|
|
})
|
|
|
|
WebSocketSessions = table.New(table.Metadata{
|
|
Name: "ws_sessions",
|
|
Columns: []string{
|
|
"id",
|
|
"user_id",
|
|
"user_agent",
|
|
"ip",
|
|
"last_used",
|
|
"created_at"},
|
|
PartKey: []string{"id"},
|
|
})
|
|
|
|
UserSignUpProcess = table.New(table.Metadata{
|
|
Name: "user_sign_up_process",
|
|
Columns: []string{
|
|
"x_token",
|
|
"email",
|
|
"user_agent",
|
|
"ip",
|
|
"email_verify_code",
|
|
"email_verified",
|
|
"last_email_resend",
|
|
"created_at",
|
|
"expires_at",
|
|
},
|
|
PartKey: []string{"x_token"},
|
|
})
|
|
)
|