1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
| -- Table: activities
-- DROP TABLE activities;
CREATE TABLE activities
(
id serial NOT NULL,
ref integer NOT NULL,
id_module integer NOT NULL,
nom text NOT NULL,
difficult integer,
date_register timestamp without time zone,
der_modif timestamp without time zone,
lundi boolean,
mardi boolean,
mercredi boolean,
jeudi boolean,
vendredi boolean,
samedi boolean,
dimanche boolean,
note_max integer,
periode_notation integer,
eleve_duree real,
ass_duree real,
prof_duree real,
redondance integer,
is_visuel boolean,
is_sonore boolean,
is_notation boolean,
type_freq integer NOT NULL,
retro real,
demarrage timestamp without time zone,
id_ass1 integer DEFAULT 0,
assn1 boolean DEFAULT false,
id_ass2 integer DEFAULT 0,
assn2 boolean DEFAULT false,
id_ass3 integer DEFAULT 0,
assn3 boolean DEFAULT false,
rem1 text,
rem2 text,
rem3 text,
rem4 text,
rem5 text,
rem6 text,
type_group integer NOT NULL,
eleve_ref integer DEFAULT 0,
coeff_duree real DEFAULT 0,
ref_carnet integer,
coeff_carnet real,
freq_note integer,
son_time real,
indications text,
groups text,
id_etablissement text NOT NULL,
facultatif boolean DEFAULT false,
CONSTRAINT activities_id PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
-- Table: j_membres_modules
-- DROP TABLE j_membres_modules;
CREATE TABLE j_membres_modules
(
id serial NOT NULL,
membre integer NOT NULL,
module integer NOT NULL,
date_start date,
date_end date,
ass text,
date_register timestamp without time zone NOT NULL,
report timestamp without time zone,
virtual_start timestamp without time zone,
CONSTRAINT j_membres_modules_id PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
-- Index: j_membres_modules_index_j_membres_seances
-- DROP INDEX j_membres_modules_index_j_membres_seances;
CREATE UNIQUE INDEX j_membres_modules_index_j_membres_seances
ON j_membres_modules
USING btree
(membre, module);
-- Table: j_seances_niveaux
-- DROP TABLE j_seances_niveaux;
CREATE TABLE j_seances_niveaux
(
id_seance integer NOT NULL,
id_niveau integer NOT NULL,
conform boolean DEFAULT false,
CONSTRAINT j_seances_niveaux_index PRIMARY KEY (id_seance, id_niveau)
)
WITH (
OIDS=FALSE
);
-- Table: provocations
-- DROP TABLE provocations;
CREATE TABLE provocations
(
id serial NOT NULL,
provocante integer NOT NULL,
provoque integer NOT NULL,
delai text,
facultatif boolean,
CONSTRAINT provocations_primary_key PRIMARY KEY (id),
CONSTRAINT provocations_unique UNIQUE (provocante, provoque)
)
WITH (
OIDS=FALSE
);
-- Table: realisations
-- DROP TABLE realisations;
CREATE TABLE realisations
(
id serial NOT NULL,
activity integer NOT NULL,
seance integer NOT NULL,
nb_real integer NOT NULL,
"cycle" integer,
member integer NOT NULL,
date_real timestamp without time zone NOT NULL,
duree_prof real,
duree_ass real,
duree_eleve real,
type_real integer NOT NULL,
note real,
ass integer,
prof integer
)
WITH (
OIDS=FALSE
);
-- Table: seances
-- DROP TABLE seances;
CREATE TABLE seances
(
id serial NOT NULL,
nom text NOT NULL,
id_module integer NOT NULL,
date_register timestamp without time zone,
der_modif timestamp without time zone,
ordre integer,
obs text,
"version" integer,
rem1 text,
rem2 text,
rem3 text,
rem4 text,
rem5 text,
rem6 text,
"exec" text,
video text,
lien text,
repetition integer,
id_etablissement integer,
CONSTRAINT seances_id PRIMARY KEY (id),
CONSTRAINT index_seances_clean UNIQUE (id_module, version, nom, id_etablissement)
)
WITH (
OIDS=FALSE
);
ALTER TABLE seances OWNER TO activator;
-- Index: index_seances_ordre
-- DROP INDEX index_seances_ordre;
CREATE UNIQUE INDEX index_seances_ordre
ON seances
USING btree
(id_module, nom, version, id_etablissement);
-- Table: modules
-- DROP TABLE modules;
CREATE TABLE modules
(
id serial NOT NULL,
nom text NOT NULL,
descript text,
periode_debut timestamp without time zone,
periode_fin timestamp without time zone,
ans integer DEFAULT 0,
"cycle" boolean DEFAULT false,
id_etablissement integer,
master1 integer DEFAULT 0,
master2 integer DEFAULT 0,
date_register timestamp without time zone,
der_modif timestamp without time zone,
CONSTRAINT "modules.id" PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
); |
Partager