mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
14 lines
292 B
SQL
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");
|