Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Leo Peron
NF18 - Gestion comptes bancaires
Commits
b131895b
Commit
b131895b
authored
May 11, 2022
by
Leo Peron
Browse files
updated bdd.sql
parent
f9c1a63c
Changes
1
Hide whitespace changes
Inline
Side-by-side
bdd.sql
View file @
b131895b
...
...
@@ -9,18 +9,18 @@ CREATE TABLE Clients (
CREATE
TABLE
ComptesCourant
(
Id
INT
PRIMARY
KEY
,
DateCreation
DATE
UNIQUE
,
DateCreation
timestamp
UNIQUE
,
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
DATE
Solde
DECIMAL
(
12
,
2
)
NOT
NULL
CHECK
(
Solde
>=
DecouvertAutorise
),
DecouvertAutorise
DECIMAL
(
12
,
2
)
NOT
NULL
CHECK
(
DecouvertAutorise
<=
0
),
DebutDecouvert
timestamp
);
CREATE
TABLE
ComptesRevolving
(
Id
INT
PRIMARY
KEY
,
DateCreation
DATE
UNIQUE
,
DateCreation
timestamp
UNIQUE
,
Statut
ETAT_COMPTE
NOT
NULL
,
TauxJournalier
REAL
NOT
NULL
,
MontantNegocie
DECIMAL
(
12
,
2
)
NOT
NULL
CHECK
(
MontantNegocie
<
0
),
...
...
@@ -29,7 +29,7 @@ CREATE TABLE ComptesRevolving (
CREATE
TABLE
ComptesEpargne
(
Id
INT
PRIMARY
KEY
,
DateCreation
DATE
UNIQUE
,
DateCreation
timestamp
UNIQUE
,
Statut
ETAT_COMPTE
NOT
NULL
,
Interet
REAL
NOT
NULL
,
Plafond
DECIMAL
(
12
,
2
)
NOT
NULL
CHECK
(
Plafond
>=
300
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment