Unverified Commit 7788e273 authored by CapsLock's avatar CapsLock

[fix] sql script

parent 03fa13e9
CREATE USER avecmonfai with password 'avecmonfai';
CREATE DATABASE avecmonfai owner avecmonfai;
--CREATE USER avecmonfai with password 'avecmonfai';
--CREATE DATABASE avecmonfai owner avecmonfai;
CREATE TABLE pictures(id serial PRIMARY KEY, filename VARCHAR(250) NOT NULL, description VARCHAR(500), created_on TIMESTAMP NOT NULL);
CREATE TABLE domain_names(id serial PRIMARY KEY, name VARCHAR(800) NOT NULL, related_to integer, created_on TIMESTAMP NOT NULL);
CREATE TABLE pictures_domain_names(id serial PRIMARY KEY, picture_id integer, domain_name_id integer, created_on TIMESTAMP NOT NULL
grant all on pictures to avecmonfai
grant all on domain_names to avecmonfai
grant all on pictures_domain_names to avecmonfai
grant all on pictures_id_seq to avecmonfai;
grant all on domain_names_id_seq to avecmonfai;
grant all on pictures_id_seq to avecmonfai;
grant all on pictures_domain_names_id_seq to avecmonfai;
\ No newline at end of file
CREATE TABLE pictures_domain_names(id serial PRIMARY KEY, picture_id integer, domain_name_id integer, created_on TIMESTAMP NOT NULL);
--grant all on pictures to avecmonfai
--grant all on domain_names to avecmonfai
--grant all on pictures_domain_names to avecmonfai
--grant all on pictures_id_seq to avecmonfai;
--grant all on domain_names_id_seq to avecmonfai;
--grant all on pictures_id_seq to avecmonfai;
--grant all on pictures_domain_names_id_seq to avecmonfai;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment