export interface Access { created_at: Date updated_at: Date id: string user_id?: string role_id?: string name: string tid: string level: number resource_id?: string app_id: string } export interface App { id: string created_at: Date updated_at: Date name: string icon: string des: string init_role_id?: string init_role?: Role init_url: string user_count: number typ: string status: string user_status: string } export const AppTyp = ['public', 'apply', 'private'] export interface AppUser { id: string created_at: Date updated_at: Date app_id: string user_id: string status: string app?: App user?: User } export interface Resource { created_at: Date updated_at: Date id: string name: string des: string app_id: string } export interface Role { id: string created_at: Date updated_at: Date name: string des: string app_id: string user_count: number } export interface Token { id: string created_at: Date updated_at: Date user_id: string app_id: string expired_at: Date over_perm: string device: string ip: string } export interface User { id: string created_at: Date updated_at: Date username: string nickname: string icon: string email: string phone: string status: number } export interface UserRole { id: string created_at: Date updated_at: Date user_id: string role_id: string app_id: string status: string }