/api/client/[id]/key, /api/mek/share Endpoint 추가

This commit is contained in:
static
2024-12-31 17:41:54 +09:00
parent 0d00e2476a
commit ccad4fbd8b
8 changed files with 187 additions and 57 deletions

View File

@@ -4,7 +4,7 @@ import { user } from "./user";
export const client = sqliteTable(
"client",
{
id: integer("id").primaryKey(),
id: integer("id").primaryKey({ autoIncrement: true }),
encPubKey: text("encryption_public_key").notNull().unique(), // Base64
sigPubKey: text("signature_public_key").notNull().unique(), // Base64
},

View File

@@ -1,7 +1,7 @@
import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core";
export const user = sqliteTable("user", {
id: integer("id").primaryKey(),
id: integer("id").primaryKey({ autoIncrement: true }),
email: text("email").notNull().unique(),
password: text("password").notNull(),
});