parent
9505019968
commit
907dd6ca65
@ -0,0 +1,38 @@
|
||||
DROP TABLE
|
||||
|
||||
|
||||
CREATE TABLE Admin(
|
||||
email varchar(50) PRIMARY KEY,
|
||||
pseudo varchar(50),
|
||||
mdp varchar(50)
|
||||
);
|
||||
|
||||
CREATE TABLE Enigme(
|
||||
idEnigme char(5) PRIMARY KEY,
|
||||
admin varchar(50) REFERENCES Admin(email),
|
||||
enonce varchar(250) NOT NULL,
|
||||
aide varchar(250),
|
||||
rappel varchar(250),
|
||||
solution varchar(250) NOT NULL,
|
||||
test varchar(250) NOT NULL,
|
||||
tempsDeResolution numeric CHECK (tempsDeResolution >0)
|
||||
);
|
||||
|
||||
CREATE TABLE Joueur(
|
||||
email varchar(50) PRIMARY KEY,
|
||||
enigmeEnCours varchar(50) REFERENCES Enigme(idEnigme),
|
||||
pseudo varchar(50),
|
||||
mdp varchar(50)
|
||||
);
|
||||
|
||||
CREATE TABLE Partie(
|
||||
idPartie char(5) NOT NULL,
|
||||
joueur varchar(50) REFERENCES Joueur(email),
|
||||
enigme char(5) REFERENCES Enigme(idEnigme),
|
||||
points numeric CHECK (points >0),
|
||||
PRIMARY KEY(idGame, joueur, enigme)
|
||||
);
|
||||
|
||||
CREATE TABLE DetailPartie(
|
||||
|
||||
);
|
@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="fa700805-a8be-45a0-8d08-47178af584b1" name="Changes" comment="" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="ComposerSettings">
|
||||
<execution />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
|
||||
</component>
|
||||
<component name="ProjectId" id="2HIpcpV5fmzea4cOYDET0QOiih8" />
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
||||
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="last_opened_file_path" value="$USER_HOME$/public_html/PHP/Sae3.01" />
|
||||
<property name="vue.rearranger.settings.migration" value="true" />
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<configuration name="test.php" type="PhpLocalRunConfigurationType" factoryName="PHP Console" temporary="true" path="$PROJECT_DIR$/test.php">
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="PHP Script.test.php" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="fa700805-a8be-45a0-8d08-47178af584b1" name="Changes" comment="" />
|
||||
<created>1667982533636</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1667982533636</updated>
|
||||
<workItem from="1667982534863" duration="142000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
</project>
|
Loading…
Reference in new issue