15 lines
337 B
MySQL
15 lines
337 B
MySQL
|
CREATE TYPE "OfferState" AS ENUM (
|
||
|
'Pending',
|
||
|
'Approved',
|
||
|
'Banned'
|
||
|
);
|
||
|
|
||
|
CREATE TABLE offers
|
||
|
(
|
||
|
id serial unique not null primary key,
|
||
|
name text not null,
|
||
|
picture_url text not null,
|
||
|
state "OfferState" not null,
|
||
|
created_at timestamp not null default now()
|
||
|
);
|