⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c_voiptariff.sql

📁 gnugk软交换产品
💻 SQL
字号:
-- Tariff---- VoIP Billing Platform for GnuGk-- Copyright (c) 2004, Michal Zygmuntowicz---- This work is published under the GNU Public License (GPL)-- see file COPYING for details-- tariff with a fixed price for a given destinationCREATE SEQUENCE voiptariff_id_seq CYCLE;CREATE TABLE voiptariff (	id INT DEFAULT nextval('voiptariff_id_seq'),	-- tariff destination (prefix)	dstid INT NOT NULL,	-- group associated with this tariff (NULL if this is a default tariff)	grpid INT DEFAULT NULL,	-- price	price NUMERIC(9,4) NOT NULL,	-- standard currency symbol for the price	currencysym CHAR(3) NOT NULL DEFAULT 'USD',	-- first billing unit (seconds)	initialincrement INT NOT NULL DEFAULT 60,	-- regular (2dn, 3rd, ...) billing unit (seconds)	regularincrement INT NOT NULL DEFAULT 60,	-- call duration, below which the user will not be billed	graceperiod INT NOT NULL DEFAULT 0,	-- description	description TEXT NOT NULL DEFAULT '',	-- block a destination associated with this tariff	active BOOLEAN NOT NULL DEFAULT TRUE,	-- whether the tariff should apply to an originatin or terminating endpoint	terminating BOOLEAN NOT NULL DEFAULT FALSE,			CONSTRAINT voiptariff_pkey PRIMARY KEY (id),	CONSTRAINT voiptariff_destination_exists FOREIGN KEY (dstid) REFERENCES voiptariffdst(id) ON UPDATE CASCADE,	CONSTRAINT voiptariff_group_exists FOREIGN KEY (grpid) REFERENCES voiptariffgrp(id) ON UPDATE CASCADE,	CONSTRAINT voiptariff_unique UNIQUE (dstid, grpid, currencysym, terminating));CREATE INDEX voiptariff_dstid_idx ON voiptariff(dstid);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -