Skip to content

Repository files navigation

  1. Démarrez MongoDB

npm install

npm run dev

Lancez votre navigateur sur le port 3000

Si vous souhaitez lancer les tests : npm test

Diagramme UML :

image image

#------------------------------------------------------------
#        Script MySQL.
#------------------------------------------------------------


#------------------------------------------------------------
# Table: User
#------------------------------------------------------------

CREATE TABLE User(
        id_user  Int  Auto_increment  NOT NULL ,
        password Varchar (50) NOT NULL ,
        email    Varchar (50) NOT NULL ,
        date     Date NOT NULL ,
        role     Varchar (50) NOT NULL ,
        age      Int NOT NULL
	,CONSTRAINT User_PK PRIMARY KEY (id_user)
)ENGINE=InnoDB;


#------------------------------------------------------------
# Table: Article
#------------------------------------------------------------

CREATE TABLE Article(
        id_article Int  Auto_increment  NOT NULL ,
        title      Varchar (50) NOT NULL ,
        content    Text NOT NULL ,
        id_user    Int NOT NULL
	,CONSTRAINT Article_PK PRIMARY KEY (id_article)

	,CONSTRAINT Article_User_FK FOREIGN KEY (id_user) REFERENCES User(id_user)
)ENGINE=InnoDB;


About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages