add progression

This commit is contained in:
BRAMAS Arthur
2025-10-24 16:14:44 +02:00
commit 1b0601d724
94 changed files with 12994 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
create user 'appcontrib'@'%' identified by 'abc123';
grant all on contribV2.* to 'appcontrib'@'%';
flush privileges;

View File

@@ -0,0 +1,40 @@
create table membre(
id int auto_increment primary key,
nom varchar(50) not null,
prenom varchar(50) not null,
email varchar(100) not null unique
);
create table projet(
id int auto_increment primary key,
nom varchar(50) not null,
commentaire text,
date_lancement date,
date_cloture date,
statut varchar(20) not null
);
create table contribution(
id int auto_increment primary key,
membre_id int not null references membre(id),
projet_id int not null references projet(id),
date_contribution date not null,
commentaire text,
duree int default 0
);
create table assistant_ia(
id int auto_increment primary key,
nom varchar(50) not null
);
create table contrib_ia(
id int auto_increment primary key,
assistant_ia_id int not null references assistant_ia(id),
contribution_id int not null references contribution(id),
evaluation_pertinence int check (evaluation_pertinence >= 1 and evaluation_pertinence <= 5),
evaluation_temps int check (evaluation_temps >= 1 and evaluation_temps <= 5),
commentaire text
);