32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
CREATE TABLE IF NOT EXISTS membres_sessions
-- Sessions
(
selecteur TEXT NOT NULL,
hash TEXT NOT NULL,
id_membre INTEGER NOT NULL REFERENCES membres (id) ON DELETE CASCADE,
expire TEXT NOT NULL CHECK (datetime(expire) IS NOT NULL AND datetime(expire) = expire),
PRIMARY KEY (selecteur, id_membre)
);
CREATE TABLE IF NOT EXISTS cotisations
-- Types de cotisations et activités
(
|
|
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
CREATE TABLE IF NOT EXISTS membres_sessions
-- Sessions
(
selecteur TEXT NOT NULL,
hash TEXT NOT NULL,
id_membre INTEGER NOT NULL REFERENCES membres (id) ON DELETE CASCADE,
expire INT NOT NULL,
PRIMARY KEY (selecteur, id_membre)
);
CREATE TABLE IF NOT EXISTS cotisations
-- Types de cotisations et activités
(
|