Skip to content

Commit e4a8e9f

Browse files
committed
revert back to cuid
1 parent abcdaed commit e4a8e9f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎integration/valk/client.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ type Queries struct {
157157
dialect Dialect
158158
// User provides CRUD operations for User.
159159
//
160-
// id string default: uuid()
160+
// id string default: cuid()
161161
// email string required
162162
// phoneNum string required
163163
// password string optional

‎integration/valk/user.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func (s *UserCreate) ToRowMap() map[string]any {
274274
if s.Id != nil {
275275
m["id"] = *s.Id
276276
} else {
277-
m["id"] = generateUUID()
277+
m["id"] = generateCUID()
278278
}
279279
m["email"] = s.Email
280280
m["phoneNum"] = s.PhoneNum
@@ -313,7 +313,7 @@ func (q *Queries) executeUserCreate(ctx context.Context, assignments []FieldAssi
313313
vals = append(vals, *input.Id)
314314
} else {
315315
cols = append(cols, "id")
316-
vals = append(vals, generateUUID())
316+
vals = append(vals, generateCUID())
317317
}
318318
cols = append(cols, "email")
319319
vals = append(vals, input.Email)

0 commit comments

Comments
 (0)