Files
cgrates/data/storage/postgres/create_accounts_tables.sql
2025-11-05 17:52:03 +01:00

14 lines
289 B
SQL

--
-- Table structure for table `accounts`
--
DROP TABLE IF EXISTS accounts;
CREATE TABLE accounts (
pk SERIAL PRIMARY KEY,
tenant VARCHAR(40) NOT NULL,
id VARCHAR(64) NOT NULL,
account JSONB NOT NULL,
UNIQUE (tenant, id)
);
CREATE UNIQUE INDEX accounts_idx ON accounts ("id");