apskel-pos-backend/migrations/000012_add-transaction.up.sql

13 lines
441 B
MySQL
Raw Normal View History

2024-07-30 23:39:55 +07:00
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
);