/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * 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 TemplateScript {
    #[serde(rename = "postgres_resource_path")]
    pub postgres_resource_path: String,
    #[serde(rename = "relations")]
    pub relations: Vec<models::Relations>,
    #[serde(rename = "language")]
    pub language: models::Language,
}

impl TemplateScript {
    pub fn new(postgres_resource_path: String, relations: Vec<models::Relations>, language: models::Language) -> TemplateScript {
        TemplateScript {
            postgres_resource_path,
            relations,
            language,
        }
    }
}

