forked from loafle/openapi-generator-original
* Initial version of PostgreSQL schema generator 'postgresql-schema' (based on 'mysql-schema' generator code) * PostgreSQL schema generator. Initial version. * Tested. Fixed errors. Documentation updated. * Samples for 'postgresql-schema' updated. * Removed current date/time from mustache templates for postgresql-schema generator. Re-created samples. * Re-created docs file for postgresql-schema generator. * Removed unecessary LocalTime computing code and imports for postgresql-schema generator. * Errors fixed for postgresql-schema generator. Samples recreated. * Docs updated.
29 lines
794 B
SQL
29 lines
794 B
SQL
--
|
|
-- "OpenAPI Petstore"
|
|
-- Prepared SQL queries for 'User' definition.
|
|
-- Created using 'openapi-generator' ('postgresql-schema' generator)
|
|
-- (https://openapi-generator.tech/docs/generators/postgresql-schema)
|
|
--
|
|
|
|
|
|
--
|
|
-- SELECT template for table 'user'
|
|
--
|
|
SELECT "id", username, first_name, last_name, email, "password", phone, user_status FROM "user" WHERE 1=1;
|
|
|
|
--
|
|
-- INSERT template for table 'user'
|
|
--
|
|
INSERT INTO "user" ("id", username, first_name, last_name, email, "password", phone, user_status) VALUES (?, ?, ?, ?, ?, ?, ?, ?);
|
|
|
|
--
|
|
-- UPDATE template for table 'user'
|
|
--
|
|
UPDATE "user" SET "id" = ?, username = ?, first_name = ?, last_name = ?, email = ?, "password" = ?, phone = ?, user_status = ? WHERE 1=2;
|
|
|
|
--
|
|
-- DELETE template for table 'user'
|
|
--
|
|
DELETE FROM "user" WHERE 1=2;
|
|
|