create-fate 1.7.6 → 1.7.7
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
CHANGED
|
@@ -46,6 +46,7 @@ export const session = pgTable(
|
|
|
46
46
|
createdAt: timestamp({ mode: 'date' }).notNull().defaultNow(),
|
|
47
47
|
expiresAt: timestamp({ mode: 'date' }).notNull(),
|
|
48
48
|
id: idColumn().primaryKey(),
|
|
49
|
+
impersonatedBy: text(),
|
|
49
50
|
ipAddress: text(),
|
|
50
51
|
token: text().notNull(),
|
|
51
52
|
updatedAt: timestamp({ mode: 'date' }).notNull().defaultNow(),
|
|
@@ -66,7 +67,6 @@ export const account = pgTable(
|
|
|
66
67
|
createdAt: timestamp({ mode: 'date' }).notNull().defaultNow(),
|
|
67
68
|
id: idColumn().primaryKey(),
|
|
68
69
|
idToken: text(),
|
|
69
|
-
issuer: text().notNull(),
|
|
70
70
|
password: text(),
|
|
71
71
|
providerId: text().notNull(),
|
|
72
72
|
refreshToken: text(),
|
|
@@ -77,7 +77,22 @@ export const account = pgTable(
|
|
|
77
77
|
.notNull()
|
|
78
78
|
.references(() => user.id, { onDelete: 'cascade' }),
|
|
79
79
|
},
|
|
80
|
-
(table) => [
|
|
80
|
+
(table) => [
|
|
81
|
+
uniqueIndex('account_providerId_accountId_key').on(table.providerId, table.accountId),
|
|
82
|
+
],
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
export const verification = pgTable(
|
|
86
|
+
'verification',
|
|
87
|
+
{
|
|
88
|
+
createdAt: timestamp({ mode: 'date' }).notNull().defaultNow(),
|
|
89
|
+
expiresAt: timestamp({ mode: 'date' }).notNull(),
|
|
90
|
+
id: idColumn().primaryKey(),
|
|
91
|
+
identifier: text().notNull(),
|
|
92
|
+
updatedAt: timestamp({ mode: 'date' }).notNull().defaultNow(),
|
|
93
|
+
value: text().notNull(),
|
|
94
|
+
},
|
|
95
|
+
(table) => [index('verification_identifier_idx').on(table.identifier)],
|
|
81
96
|
);
|
|
82
97
|
|
|
83
98
|
export const post = pgTable(
|
|
@@ -164,6 +179,7 @@ const schema = {
|
|
|
164
179
|
sessionRelations,
|
|
165
180
|
user,
|
|
166
181
|
userRelations,
|
|
182
|
+
verification,
|
|
167
183
|
};
|
|
168
184
|
|
|
169
185
|
export default schema;
|
|
@@ -51,15 +51,16 @@ model User {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
model Session {
|
|
54
|
-
id
|
|
55
|
-
expiresAt
|
|
56
|
-
token
|
|
57
|
-
createdAt
|
|
58
|
-
updatedAt
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
id String @unique @default(uuid(7))
|
|
55
|
+
expiresAt DateTime
|
|
56
|
+
token String
|
|
57
|
+
createdAt DateTime
|
|
58
|
+
updatedAt DateTime
|
|
59
|
+
impersonatedBy String?
|
|
60
|
+
ipAddress String?
|
|
61
|
+
userAgent String?
|
|
62
|
+
userId String
|
|
63
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
63
64
|
|
|
64
65
|
@@unique([token])
|
|
65
66
|
@@map("session")
|
|
@@ -69,7 +70,6 @@ model Account {
|
|
|
69
70
|
id String @unique @default(uuid(7))
|
|
70
71
|
accountId String
|
|
71
72
|
providerId String
|
|
72
|
-
issuer String
|
|
73
73
|
userId String
|
|
74
74
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
75
75
|
accessToken String?
|
|
@@ -82,10 +82,22 @@ model Account {
|
|
|
82
82
|
createdAt DateTime
|
|
83
83
|
updatedAt DateTime
|
|
84
84
|
|
|
85
|
-
@@unique([
|
|
85
|
+
@@unique([providerId, accountId])
|
|
86
86
|
@@map("account")
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
model Verification {
|
|
90
|
+
id String @id @default(uuid(7))
|
|
91
|
+
identifier String
|
|
92
|
+
value String
|
|
93
|
+
expiresAt DateTime
|
|
94
|
+
createdAt DateTime @default(now())
|
|
95
|
+
updatedAt DateTime @updatedAt
|
|
96
|
+
|
|
97
|
+
@@index([identifier])
|
|
98
|
+
@@map("verification")
|
|
99
|
+
}
|
|
100
|
+
|
|
89
101
|
model Post {
|
|
90
102
|
id String @id @default(uuid(7))
|
|
91
103
|
title String
|
|
@@ -46,6 +46,7 @@ export const session = pgTable(
|
|
|
46
46
|
createdAt: timestamp({ mode: 'date' }).notNull().defaultNow(),
|
|
47
47
|
expiresAt: timestamp({ mode: 'date' }).notNull(),
|
|
48
48
|
id: idColumn().primaryKey(),
|
|
49
|
+
impersonatedBy: text(),
|
|
49
50
|
ipAddress: text(),
|
|
50
51
|
token: text().notNull(),
|
|
51
52
|
updatedAt: timestamp({ mode: 'date' }).notNull().defaultNow(),
|
|
@@ -66,7 +67,6 @@ export const account = pgTable(
|
|
|
66
67
|
createdAt: timestamp({ mode: 'date' }).notNull().defaultNow(),
|
|
67
68
|
id: idColumn().primaryKey(),
|
|
68
69
|
idToken: text(),
|
|
69
|
-
issuer: text().notNull(),
|
|
70
70
|
password: text(),
|
|
71
71
|
providerId: text().notNull(),
|
|
72
72
|
refreshToken: text(),
|
|
@@ -77,7 +77,22 @@ export const account = pgTable(
|
|
|
77
77
|
.notNull()
|
|
78
78
|
.references(() => user.id, { onDelete: 'cascade' }),
|
|
79
79
|
},
|
|
80
|
-
(table) => [
|
|
80
|
+
(table) => [
|
|
81
|
+
uniqueIndex('account_providerId_accountId_key').on(table.providerId, table.accountId),
|
|
82
|
+
],
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
export const verification = pgTable(
|
|
86
|
+
'verification',
|
|
87
|
+
{
|
|
88
|
+
createdAt: timestamp({ mode: 'date' }).notNull().defaultNow(),
|
|
89
|
+
expiresAt: timestamp({ mode: 'date' }).notNull(),
|
|
90
|
+
id: idColumn().primaryKey(),
|
|
91
|
+
identifier: text().notNull(),
|
|
92
|
+
updatedAt: timestamp({ mode: 'date' }).notNull().defaultNow(),
|
|
93
|
+
value: text().notNull(),
|
|
94
|
+
},
|
|
95
|
+
(table) => [index('verification_identifier_idx').on(table.identifier)],
|
|
81
96
|
);
|
|
82
97
|
|
|
83
98
|
export const post = pgTable(
|
|
@@ -164,6 +179,7 @@ const schema = {
|
|
|
164
179
|
sessionRelations,
|
|
165
180
|
user,
|
|
166
181
|
userRelations,
|
|
182
|
+
verification,
|
|
167
183
|
};
|
|
168
184
|
|
|
169
185
|
export default schema;
|
|
@@ -36,15 +36,16 @@ model User {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
model Session {
|
|
39
|
-
id
|
|
40
|
-
expiresAt
|
|
41
|
-
token
|
|
42
|
-
createdAt
|
|
43
|
-
updatedAt
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
id String @unique @default(uuid(7))
|
|
40
|
+
expiresAt DateTime
|
|
41
|
+
token String
|
|
42
|
+
createdAt DateTime
|
|
43
|
+
updatedAt DateTime
|
|
44
|
+
impersonatedBy String?
|
|
45
|
+
ipAddress String?
|
|
46
|
+
userAgent String?
|
|
47
|
+
userId String
|
|
48
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
48
49
|
|
|
49
50
|
@@unique([token])
|
|
50
51
|
@@map("session")
|
|
@@ -54,7 +55,6 @@ model Account {
|
|
|
54
55
|
id String @unique @default(uuid(7))
|
|
55
56
|
accountId String
|
|
56
57
|
providerId String
|
|
57
|
-
issuer String
|
|
58
58
|
userId String
|
|
59
59
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
60
60
|
accessToken String?
|
|
@@ -67,10 +67,22 @@ model Account {
|
|
|
67
67
|
createdAt DateTime
|
|
68
68
|
updatedAt DateTime
|
|
69
69
|
|
|
70
|
-
@@unique([
|
|
70
|
+
@@unique([providerId, accountId])
|
|
71
71
|
@@map("account")
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
model Verification {
|
|
75
|
+
id String @id @default(uuid(7))
|
|
76
|
+
identifier String
|
|
77
|
+
value String
|
|
78
|
+
expiresAt DateTime
|
|
79
|
+
createdAt DateTime @default(now())
|
|
80
|
+
updatedAt DateTime @updatedAt
|
|
81
|
+
|
|
82
|
+
@@index([identifier])
|
|
83
|
+
@@map("verification")
|
|
84
|
+
}
|
|
85
|
+
|
|
74
86
|
model Post {
|
|
75
87
|
id String @id @default(uuid(7))
|
|
76
88
|
title String
|