diff --git a/002_source/cms/src/db/UserMetas/type.d.ts b/002_source/cms/src/db/UserMetas/type.d.ts index 65c5dd8..a7d6692 100644 --- a/002_source/cms/src/db/UserMetas/type.d.ts +++ b/002_source/cms/src/db/UserMetas/type.d.ts @@ -1,5 +1,38 @@ +// src/db/UserMetas/type.d.ts +// +// RULES: sorting direction for user meta lists + import type { BillingAddress } from '@/components/dashboard/user_meta/type.d'; +export interface DBUserMeta { + name: string; + // + // NOTE: obslete "avatar" and use "avatar_file" + avatar?: string; + avatar_file?: string; + // + email: string; + phone: string; + quota: number; + company: string; + // + // billingAddress: BillingAddress[] | []; + expand: { billingAddress?: BillingAddress[] }; + + // status is obsoleted, replace by state + status: 'pending' | 'active' | 'blocked'; + state: 'pending' | 'active' | 'blocked'; + // + timezone: string; + language: string; + currency: string; + // + id: string; + created: string; + updated?: string; + collectionId: string; +} + // UserMeta type definitions export interface UserMeta { id: string;