mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 22:11:39 +00:00
feat[convex]: api key auth support
This commit is contained in:
@@ -40,6 +40,13 @@ const schema = defineSchema({
|
||||
"name",
|
||||
"deletedAt",
|
||||
]),
|
||||
apiKeys: defineTable({
|
||||
publicId: v.string(),
|
||||
hashedKey: v.string(),
|
||||
createdAt: v.number(),
|
||||
updatedAt: v.number(),
|
||||
expiresAt: v.optional(v.number()),
|
||||
}).index("byPublicId", ["publicId"]),
|
||||
})
|
||||
|
||||
export default schema
|
||||
|
||||
Reference in New Issue
Block a user