251208:0010 Backend & Frontend Debug
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
2025-12-08 00:10:37 +07:00
parent 32d820ea6b
commit dcd126d704
99 changed files with 2775 additions and 1480 deletions

View File

@@ -5,6 +5,7 @@ declare module "next-auth" {
interface Session {
user: {
id: string;
username: string; // ✅ Added
role: string;
organizationId?: number;
} & DefaultSession["user"]
@@ -15,6 +16,7 @@ declare module "next-auth" {
interface User {
id: string;
username: string; // ✅ Added
role: string;
organizationId?: number;
accessToken?: string;
@@ -25,6 +27,7 @@ declare module "next-auth" {
declare module "next-auth/jwt" {
interface JWT {
id: string;
username: string; // ✅ Added
role: string;
organizationId?: number;
accessToken?: string;

View File

@@ -0,0 +1,9 @@
export interface Organization {
organization_id: number;
org_code: string;
org_name: string;
org_name_th: string;
description?: string;
created_at?: string;
updated_at?: string;
}