Augustin Vidovic
Frank Denis

Projet bases de données : Gestion de parc informatique
Description des tables

La description des tables se fait dans de simples fichiers de configuration en texte simple, situés dans le dossier tables .

Le format des fichiers textes utilisés est celui défini dans le cours de SGBD de l'ESI, qui suit la convention Oracle.

Chaque ligne contient en plus de la définition du modèle logique d'un enregistrement le nom de la clef associée au texte international dans les fichiers de configuration pour l'internationalisation.

Pensez donc bien à ceci lorsque vous modifierez la description de vos bases de données pour utiliser GPI pour vos propres besoins.


contact
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
nom		VARCHAR(64)	NN		last_name
prenom		VARCHAR(64)	NN		first_name
mail		VARCHAR(64)	NULL		mail
telephone	VARCHAR(32)	NULL		phone
fax		VARCHAR(32)	NULL		fax
commentaires	VARCHAR(512)	NULL		commentary
societe_id	NUMBER		FK		societe_id


copie_logiciel
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
licence		VARCHAR(128)	NN		licence
date_in		DATE		NN		date_in
date_out	DATE		NULL		date_out
logiciel_id	NUMBER		FK		logiciel_id
garantie_id	NUMBER		FK		garantie_id
materiel_id	NUMBER		FK		materiel_id


garantie
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
date_debut	DATE		NN		date_from
date_fin	DATE		NN		date_until
type		VARCHAR(128)	NULL		type
cout		NUMBER		NN		cost
contact_id	NUMBER		FK		contact_id
societe_id	NUMBER		FK		societe_id


table_immeuble
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
description	VARCHAR(512)	NULL		description
adresse		VARCHAR(256)	NN		adresse
ville		VARCHAR(64)	NN		ville
pays		VARCHAR(64)	NN		pays
debut_bail	DATE		NN		debut_bail
fin_bail	DATE		NN		fin_bail
loyer		NUMBER		NN		loyer
site_id		NUMBER		FK		site_id


individu
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
nom		VARCHAR(64)	NN		last_name
prenom		VARCHAR(64)	NN		first_name
date_naissance	DATE		NULL		born
date_embauche	DATE		NN		hired
date_sortie	DATE		NULL		date_out
site_id		NUMBER		FK		site_id


logiciel
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
titre		VARCHAR(128)	NN		title
version		VARCHAR(128)	NN		version
description	VARCHAR(512)	NULL		description
plateforme	VARCHAR(128)	NN		platform


materiel
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
date_in		DATE		NN		date_in
date_out	DATE		NULL		date_out
remarques	VARCHAR(512)	NULL		remarks
type_materiel_id	NUMBER	FK		hardware_type_id
garantie_id	NUMBER		FK		garantie_id
individu_id	NUMBER		FK		individual_id


meuble
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
description	VARCHAR(512)	NULL		description
date_in		DATE		NN		date_in
date_out	DATE		NULL		date_out
immeuble_id	NUMBER		FK		immeuble_id		
garantie_id	NUMBER		FK		garantie_id
individu_id	NUMBER		FK		individual_id


site
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
nom		VARCHAR(128)	NN		name
url_db		VARCHAR(512)	NN		url_db


societe
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
nom		VARCHAR(128)	NN		name
adresse		VARCHAR(128)	NN		adresse
code_postal	VARCHAR(5)	NN		code_postal
ville		VARCHAR(64)	NN		ville
pays		VARCHAR(64)	NN		pays
telephone	VARCHAR(32)	NULL		phone
fax		VARCHAR(32)	NULL		fax
url		VARCHAR(512)	NN		url
commentaires	VARCHAR(512)	NULL		commentary


type_materiel
# Champ		type		restriction	clé texte
id		NUMBER		PK		id
type		VARCHAR(128)	NULL		type
nom		VARCHAR(128)	NN		name
description	VARCHAR(512)	NULL		description
remarques	VARCHAR(512)	NULL		remarks


>>>> Opérations DBA