Commit 40bc033c authored by Leo Peron's avatar Leo Peron
Browse files

Update bdd.sql

parent c52abc30
......@@ -13,9 +13,9 @@ CREATE TABLE ComptesCourant (
Statut ETAT_COMPTE NOT NULL,
MaxMois DECIMAL(12, 2) NOT NULL,
MinMois DECIMAL(12, 2) NOT NULL CHECK (MinMois <= MaxMois),
Solde DECIMAL(12, 2) NOT NULL CHECK (Solde >= DecouvertAutorise),
DecouvertAutorise DECIMAL(12, 2) NOT NULL CHECK (DecouvertAutorise <= 0),
DebutDecouvert timestamp
Solde DECIMAL(12, 2) NOT NULL CHECK (Solde >= DecouvertAutorise),
DecouvertAutorise DECIMAL(12, 2) NOT NULL CHECK (DecouvertAutorise <= 0),
DebutDecouvert timestamp
);
CREATE TABLE ComptesRevolving (
......@@ -33,7 +33,7 @@ CREATE TABLE ComptesEpargne (
Statut ETAT_COMPTE NOT NULL,
Interet REAL NOT NULL,
Plafond DECIMAL(12, 2) NOT NULL CHECK (Plafond >= 300),
Solde DECIMAL(12, 2) NOT NULL CHECK (Solde BETWEEN 300 AND Plafond)
Solde DECIMAL(12, 2) NOT NULL CHECK (Solde BETWEEN 300 AND Plafond)
);
CREATE FUNCTION IntersectionComptes()
......
Supports Markdown
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