13 lines
441 B
SQL
13 lines
441 B
SQL
|
|
CREATE TABLE transaction
|
|
(
|
|
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
|
partner_id NUMERIC NOT NULL,
|
|
transaction_type varchar not null,
|
|
reference_id varchar,
|
|
status varchar,
|
|
created_by numeric not null,
|
|
updated_by numeric not null,
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
); |