mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
12 lines
399 B
MySQL
12 lines
399 B
MySQL
|
create table logs
|
||
|
(
|
||
|
id varchar(21) not null,
|
||
|
type varchar(64) not null,
|
||
|
payload jsonb /* @use ArbitraryObject */ not null default '{}'::jsonb,
|
||
|
created_at timestamptz not null default (now()),
|
||
|
primary key (id)
|
||
|
);
|
||
|
|
||
|
create index logs__type on logs (type);
|
||
|
create index logs__created_at on logs (created_at);
|