import { TermEnum } from "../enums/Term";
import { DateType, Nullable } from "./App";

// Define the type for the object

interface StudentPackageStudent {
  first_name: string;
  last_name: string;
  city: string | null;
  sex: string | null;
  image: string | null;
  address: string | null;
  card: string | null;
  birthday: string | null;
  grade_id: number;
  user_id: number;
}

interface StudentPackagePackageConfiguration {
  key: string;
  value: string;
}

interface StudentPackagePackage {
  id: number;
  name: string;
  configuration: StudentPackagePackageConfiguration[];
  price: number;
  grade_id: number;
}



export interface StudentPackage {
  id: number;
  activation_date: string;
  expiration_date: string;
  student: StudentPackageStudent;
  package: StudentPackagePackage;
}

export interface InitialValues {
  
  id: number;
  activation_date: DateType;
  expiration_date: DateType;
  student: StudentPackageStudent;
  package: StudentPackagePackage;

  student_id: number | string;
  package_id: number | string;
}

export type StudentPackageInitialValues = Partial<Nullable<InitialValues>>;
