reset-infra 1.0.7 → 1.0.9
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.
- package/package.json +1 -1
- package/prisma/schema.prisma +3 -2
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -41,6 +41,7 @@ model User {
|
|
|
41
41
|
created_at DateTime @default(now())
|
|
42
42
|
updated_at DateTime @default(now()) @updatedAt
|
|
43
43
|
sponsor_code String? @unique @db.VarChar(10)
|
|
44
|
+
avatar_url String @default("https://api.dicebear.com/7.x/pixel-art/svg?seed=default") @db.Text
|
|
44
45
|
|
|
45
46
|
addictions UserAddiction[]
|
|
46
47
|
daily_logs DailyLog[]
|
|
@@ -101,8 +102,8 @@ model UserAddiction {
|
|
|
101
102
|
|
|
102
103
|
model Sponsorship {
|
|
103
104
|
id String @id @default(uuid()) @db.Uuid
|
|
104
|
-
sponsor_id String @
|
|
105
|
-
addict_id String @
|
|
105
|
+
sponsor_id String @default("00000000-0000-0000-0000-000000000000") @db.Uuid
|
|
106
|
+
addict_id String @default("00000000-0000-0000-0000-000000000000") @db.Uuid
|
|
106
107
|
started_at DateTime @default(now())
|
|
107
108
|
ended_at DateTime @default("9999-12-31T23:59:59Z")
|
|
108
109
|
status SponsorshipStatus @default(PENDING)
|