When using fully declared table metadata,use the primary_key=True
flag
on those columns:
|
|
This will create the following table (in postgres) :
testdb=> \d dummy;
Table "public.dummy"
Column | Type | Modifiers
-------+-------------------+-----------------------------------------------------
pk1 | integer | not null default nextval('dummy_pk1_seq'::regclass)
pk2 | character varying | not null
Indexes:
"dummy_pkey" PRIMARY KEY, btree (pk1, pk2)