use crate::database::page::Page;
use crate::database::schema::Schema;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(default)]
pub struct Punc {
  pub id: String,
  pub r#type: String,
  pub name: String,
  pub module: String,
  pub source: String,
  pub description: Option<String>,
  pub public: bool,
  pub form: bool,
  pub get: Option<String>,
  pub page: Option<Page>,
  #[serde(default)]
  pub schemas: Vec<Schema>,
}
