/** * Generated by API Builder - https://www.apibuilder.io * Service version: 1.0.1 * User agent: apibuilder app.apibuilder.io/nashtech/order/1.0.1/flow_erm_schema */ package com.nashtech.order.v1.erm import io.flow.event.relation.mapper.schema.ErmSpec import io.apibuilder.spec.v0.models.{Enum, EnumValue, Field, Model, Union, UnionType} import com.nashtech.order.v1.models.Error import com.nashtech.order.v1.models.Order import com.nashtech.order.v1.models.OrderForm object GeneratedErmSchema { implicit lazy val ermSpecError: ErmSpec[Error] = ErmSpec.model( qualifiedName = "com.nashtech.order.v1.models.error", spec = Model(name = "error", plural = "errors", fields = Seq( Field(name = "code", `type` = "string", required = true), Field(name = "message", `type` = "[string]", required = true), )), ) implicit lazy val ermSpecOrder: ErmSpec[Order] = ErmSpec.model( qualifiedName = "com.nashtech.order.v1.models.order", spec = Model(name = "order", plural = "orders", fields = Seq( Field(name = "id", `type` = "string", required = true), Field(name = "number", `type` = "string", required = true), Field(name = "merchant_id", `type` = "string", required = true), Field(name = "submitted_at", `type` = "date-time-iso8601", required = true), Field(name = "total", `type` = "decimal", required = true), )), ) implicit lazy val ermSpecOrderForm: ErmSpec[OrderForm] = ErmSpec.model( qualifiedName = "com.nashtech.order.v1.models.order_form", spec = Model(name = "order_form", plural = "order_forms", fields = Seq( Field(name = "total", `type` = "decimal", required = true), )), ) val all: Seq[ErmSpec[_]] = Seq( ermSpecError, ermSpecOrder, ermSpecOrderForm, ) }