/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetDatatableFullSchema200ResponseValueValue {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "columns")]
    pub columns: Vec<models::GetDatatableFullSchema200ResponseValueValueColumnsInner>,
    #[serde(rename = "foreign_keys")]
    pub foreign_keys: Vec<models::GetDatatableFullSchema200ResponseValueValueForeignKeysInner>,
    #[serde(rename = "pk_constraint_name", skip_serializing_if = "Option::is_none")]
    pub pk_constraint_name: Option<String>,
}

impl GetDatatableFullSchema200ResponseValueValue {
    pub fn new(name: String, columns: Vec<models::GetDatatableFullSchema200ResponseValueValueColumnsInner>, foreign_keys: Vec<models::GetDatatableFullSchema200ResponseValueValueForeignKeysInner>) -> GetDatatableFullSchema200ResponseValueValue {
        GetDatatableFullSchema200ResponseValueValue {
            name,
            columns,
            foreign_keys,
            pk_constraint_name: None,
        }
    }
}

