Browse Source

Merge branch 'master' of github.com:TheMrNomis/KiWi-calendar

master
AmarOk 10 years ago
parent
commit
9454c64867
3 changed files with 8 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +7
    -0
      makedatabase.sql
  3. BIN
      testdb.db

+ 1
- 0
.gitignore View File

@ -1 +1,2 @@
*.*~
*.db

+ 7
- 0
makedatabase.sql View File

@ -0,0 +1,7 @@
CREATE TABLE sous_categorie(sous_cat_id INTEGER PRIMARY KEY, sous_cat_titre VARCHAR(255));
CREATE TABLE categorie(cat_id INTEGER PRIMARY KEY, cat_titre VARCHAR(255), sous_cat_id INTEGER, FOREIGN KEY(sous_cat_id) REFERENCES sous_categorie(sous_cat_id));
CREATE TABLE event(event_id INTEGER PRIMARY KEY, event_titre VARCHAR(255), event_localisation VARCHAR(255), event_dtstart DATETIME, event_dtend DATETIME, event_description TEXT, event_url VARCHAR(255));
CREATE TABLE eventCategorie(event_id INTEGER, cat_id INTEGER, FOREIGN KEY(event_id) REFERENCES event(event_id), FOREIGN KEY(cat_id) REFERENCES categorie(cat_id));

BIN
testdb.db View File


Loading…
Cancel
Save