this repo has no description
1CREATE TABLE plc_operation_tokens (
2 id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
3 user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
4 token TEXT NOT NULL UNIQUE,
5 expires_at TIMESTAMPTZ NOT NULL,
6 created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
7);
8
9CREATE INDEX idx_plc_op_tokens_user ON plc_operation_tokens(user_id);
10CREATE INDEX idx_plc_op_tokens_expires ON plc_operation_tokens(expires_at);