@lobehub/lobehub 2.0.0-next.140 → 2.0.0-next.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -385,6 +385,13 @@
385
385
  "when": 1764579351312,
386
386
  "tag": "0054_better_auth_two_factor",
387
387
  "breakpoints": true
388
+ },
389
+ {
390
+ "idx": 55,
391
+ "version": "7",
392
+ "when": 1764583392443,
393
+ "tag": "0055_rename_phone_number_to_phone",
394
+ "breakpoints": true
388
395
  }
389
396
  ],
390
397
  "version": "6"
@@ -890,5 +890,16 @@
890
890
  "bps": true,
891
891
  "folderMillis": 1764579351312,
892
892
  "hash": "22fb7a65764b1f3e3c1ae2ce95d448685e6a01d1fb2f8c3f925c655f0824c161"
893
+ },
894
+ {
895
+ "sql": [
896
+ "ALTER TABLE \"users\" DROP CONSTRAINT IF EXISTS \"users_phone_number_unique\";",
897
+ "\nALTER TABLE \"users\" DROP COLUMN IF EXISTS \"phone_number\";",
898
+ "\nALTER TABLE \"users\" DROP CONSTRAINT IF EXISTS \"users_phone_unique\";",
899
+ "\nALTER TABLE \"users\" ADD CONSTRAINT \"users_phone_unique\" UNIQUE(\"phone\");\n"
900
+ ],
901
+ "bps": true,
902
+ "folderMillis": 1764583392443,
903
+ "hash": "6a43d90ee1d2e1e008d1b8206f227aa05b9a2e2a8fc8c31ec608a3716c716a6c"
893
904
  }
894
905
  ]
@@ -12,7 +12,7 @@ export const users = pgTable('users', {
12
12
  email: text('email').unique(),
13
13
 
14
14
  avatar: text('avatar'),
15
- phone: text('phone'),
15
+ phone: text('phone').unique(),
16
16
  firstName: text('first_name'),
17
17
  lastName: text('last_name'),
18
18
  fullName: text('full_name'),
@@ -38,7 +38,6 @@ export const users = pgTable('users', {
38
38
  twoFactorEnabled: boolean('two_factor_enabled').default(false),
39
39
 
40
40
  // better-auth phone number
41
- phoneNumber: text('phone_number').unique(),
42
41
  phoneNumberVerified: boolean('phone_number_verified'),
43
42
 
44
43
  ...timestamps,