doc: explain how to use enum types properly (#4137)

This commit is contained in:
Ariel Mashraki
2024-07-12 18:27:08 +03:00
committed by GitHub
parent e57ff4adce
commit 4ce0013c76
30 changed files with 3558 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
-- Create enum type "status"
CREATE TYPE "status" AS ENUM ('active', 'inactive', 'pending');
-- Create "users" table
CREATE TABLE "users" ("id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, "status" "status" NOT NULL, PRIMARY KEY ("id"));

View File

@@ -0,0 +1,2 @@
h1:TutA+ler8PeLbYLHWi3gG7Ms58TAD1rM5qX48PFIboQ=
20240712145529.sql h1:C25ZlcdNNQOo2SvVZ5+9zL0loYYbn56pSHn5u8xZWpc=