Last active
December 11, 2015 01:39
-
-
Save rodrigolang/4525302 to your computer and use it in GitHub Desktop.
Script para criação da tabela no banco de dados PostgreSQL para o AGI de ligações por login e senha.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE login_ast ( | |
login_id SERIAL, | |
nome varchar(30) NOT NULL, | |
login integer NOT NULL, | |
senha integer NOT NULL, | |
contexto varchar(30) NOT NULL, | |
CONSTRAINT login_ast_pk PRIMARY KEY (nome, login, senha, contexto), | |
CONSTRAINT login_ast_idx UNIQUE (login) | |
); | |
COMMENT ON TABLE login_ast IS 'Tabela do Asterisk de senhas para realizar ligacoes'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment