create table mytable (
  id                            integer generated by default as identity not null,
  status                        varchar(1) not null,
  order_id                      integer not null,
  constraint ck_mytable_status check (status in ('A','B')),
  constraint pk_mytable primary key (id)
);

