types = { # add your custom types here
'attendance': ('Notconfirmed','Coming', 'Notcoming', 'Maycome',),
}
CREATE TYPE attendance AS ENUM types;
Run Code Online (Sandbox Code Playgroud)
上面的查询使用类型中提到的枚举标签创建枚举类型出勤.如何创建具有默认标签的类型?在这种情况下,我想创建具有默认值Notconfirmed的出勤类型.