Files
openapi-generator/samples/schema/petstore/ktorm/docs/Pet.md
Luiz Felipe Stangarlin 319bd7eaa8 Add Ktorm schema generator (#7759)
* [ktorm] added support for ktorm

* [ktorm] fixed type mapping

* [ktorm] fixed foreign key

* [ktorm] added variable for the missing package import

* [ktorm] added correct templates

* [ktorm] added relationship metadata

* [ktorm] also support relationships 1:m

* [ktorm] relation to primitive naming fix

* [ktorm] updated mustache templates

* [ktorm] small fixes on templates, assigmentbuilder, docs, sql script syntax.

* fix issue, rename to ktorm-schema

* replace tabs with 4 spaces

* [ktorm] added primarykey automatic generation

* [ktorm] added tests

* [ktorm] added gradle to samples

* [ktorm] fix datatime type

* [ktorm] template fixes array and primarykey

* [ktorm][sample] regenerate

* [ktorm][sample] added manually files from kotlin-client

We inherit from baseTable, so we need those for now

* [ktorm] fix: relation column types hardcoded

* update samples

* update doc

Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-01-06 17:04:49 +08:00

1.3 KiB

Table Pet

(mapped from: Pet)

Properties

Name Mapping SQL Type Default Type Description Notes
name name text NOT NULL kotlin.String
photoUrls One-To-Many ---- ---- kotlin.Array<kotlin.String>
id id long PRIMARY KEY AUTOINCREMENT kotlin.Long [optional]
category category long Category [optional] [foreignkey]
tags One-To-Many ---- ---- kotlin.Array<Tag> [optional]
status status text status pet status in the store [optional]

Table PetPhotoUrls

(mapped from: PetPhotoUrls)

Properties

Name Mapping SQL Type Default Type Description Notes
pet pet long kotlin.Long Primary Key one
photoUrls photoUrls text kotlin.String Foreign Key many

Table PetTag

(mapped from: PetTag)

Properties

Name Mapping SQL Type Default Type Description Notes
pet pet long kotlin.Long Primary Key one
tag tag long kotlin.Long Foreign Key many