Account
Account แทนองค์กร ทีม หรือบุคคลที่มีการเรียกเก็บเงินและสมาชิกภาพของตัวเอง บัญชีสามารถซ้อนกันได้ และต้องสังกัดทรัพยากรแม่เสมอ (แอปพลิเคชันหรือบัญชีอื่น)
สคีมา
interface Account {
id: string; // "acc..." - ตัวระบุที่ไม่ซ้ำ
parent_id: string | null; // รหัสทรัพยากรแม่ (application หรือ account)
name: string | null; // ชื่อที่แสดง
avatar_url: string | null; // รูปอวาตาร์ (ไม่บังคับ)
}
คุณสมบัติ
| Property | Type | คำอธิบาย |
|---|---|---|
id | string | KSUID ที่ขึ้นต้นด้วย acc |
parent_id | string? | รหัสทรัพยากรแม่ (application หรือ account) |
name | string? | ชื่อที่อ่านเข้าใจได้ |
avatar_url | string? | URL รูปอวาตาร์ |
ลำดับชั้น
app_platform
└─ acc_alice
└─ acc_team
บัญชีสามารถซ้อนกันได้โดยตรง และยังสร้างแอปพลิเคชันภายใต้บัญชีเพื่อทำลำดับชั้นแบบสลับได้
ตัวอย่าง
{
"id": "acc_2kHfPZcN9xW4mE8RtY7vB",
"parent_id": "app_root",
"name": "Acme Corporation",
"avatar_url": null
}
ที่เกี่ยวข้อง
- Accounts - การจัดการบัญชี
- Applications - ขอบเขตบริการ
- Membership - ความเชื่อมโยงผู้ใช้กับบัญชี