A
A
Aza Broflovski2021-09-01 20:55:42
PostgreSQL
Aza Broflovski, 2021-09-01 20:55:42

What type of data should be used to store order status?

Postgres database, I will have an order table, I need to store the order status.
Example: created, active, draft, success

How to proceed? In mysql I used tinyint, sometimes enum. Is there something similar in Postgres?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
veryoriginalnickname, 2021-09-01
@veryoriginalnickname

postgres also has enum

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question