user.ts 795 Bytes
// eslint-disable-next-line import/no-cycle
import { Project } from '@/types/project';
// eslint-disable-next-line import/no-cycle
import { Tag } from '@/types/tag';
// eslint-disable-next-line import/no-cycle

export interface User {
  id: number;
  avatar?: string;
  nick_name: string;
  real_name: string;
  phone: string;
  email: string;
  business_id: 0;
  business?: User;
  province?: string;
  city?: string;
  role?: 'Singer' | 'Business' | 'ProjectUser' | 'SystemUser' | 'Admin';
  remarks?: string;
  like_activities_count?: number;
  sound?: string;
  status?: number;
  last_login?: string;
  created_at?: string;
  updated_at?: string;
  projects?: Project[];
  tags?: Tag[];
  styles?: Tag[];
  voices?: Tag[];
  skills?: Tag[];
  identity: number;

  [key: string]: unknown;
}