Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drop table if exists Utilisateur, Message, SectionN, Sujet, Moderateur, IgnoreN;
- create table Utilisateur(
- login text primary key,
- mot_De_Passe text,
- email text,
- idIgnore text references Utilisateur(login)
- );
- create table SectionN(
- nom text,
- idSection int primary key
- );
- create table Sujet(
- titre text,
- idSujet int primary key,
- idSection int references SectionN
- );
- create table Message(
- dateN date,
- contenu text,
- titre text,
- idMessage int primary key,
- idSujet int references Sujet,
- login text references utilisateur
- );
- create table Moderateur(
- login text references Utilisateur,
- idSection int references SectionN(idSection),
- primary key(login,idSection)
- );
- create table IgnoreN(
- ignorant text references Utilisateur(login),
- ignoré text references Utilisateur(login),
- primary key(ignorant, ignoré)
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement