use serde::Serialize;
use std::collections::BTreeMap;
#[derive(Debug, Serialize)]
pub struct Column{
pub(crate) name: String,
pub(crate) data_type: String,
}
#[derive(Debug, Serialize)]
pub struct Table{
pub(crate) columns:Vec<Column>,
}
#[derive(Debug, Serialize)]
pub struct Schema{
pub(crate) tables: BTreeMap<String, Table>,
}
#[derive(Debug, Serialize)]
pub struct Database{
pub(crate) schemas: BTreeMap<String, Schema>,
}
#[derive(Debug, Serialize)]
pub struct Server{
pub(crate) databases: BTreeMap<String, Database>,
}
#[derive(Debug, Serialize)]
pub struct Root{
pub(crate) servers: BTreeMap<String, Server>,
}