Files
cgrates/data/storage/postgres/create_accounts_tables.sql
2025-10-29 19:45:33 +01:00

14 lines
292 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_unique ON accounts ("id");