Skip to content

Commit 66ccde1

Browse files
committedMar 10, 2024·
fix: directus' sample data
1 parent 422ff49 commit 66ccde1

File tree

1 file changed

+97
-13
lines changed

1 file changed

+97
-13
lines changed
 

‎directus/dump.sql

+97-13
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,31 @@ La destination de cette année est Amsterdam, et le voyage se déroulera du 10 a
182182
183183
Les inscriptions sont fermées !', NULL);
184184

185+
185186
--
186187
-- Data for Name: news; Type: TABLE DATA; Schema: public; Owner: directus_user
187188
--
188189

189-
INSERT INTO public.news (id, status, sort, user_created, date_created, date_updated, banner, slug) VALUES (2, 'published', NULL, NULL, '2024-02-15 04:02:43.255+00', '2024-02-15 04:05:41.422+00', NULL, 'secret-santa-2023');
190+
INSERT INTO public.news (id, user_created, date_created, date_updated, status, sort, slug) VALUES (1, NULL, '2024-03-10 21:14:48.331+00', NULL, 'published', NULL, 'secret-santa-2023');
191+
INSERT INTO public.news (id, user_created, date_created, date_updated, status, sort, slug) VALUES (2, NULL, '2024-03-10 21:15:54.068+00', NULL, 'published', NULL, 'faculty-dinner-2023');
192+
193+
194+
INSERT INTO public.news_commissions (id, news_id, commissions_id) VALUES (1, 1, 3);
195+
196+
INSERT INTO public.news_translations (id, news_id, languages_code, title, description, content, banner) VALUES (1, 1, 'en-US', 'Secret Santa CLIC 2023', 'Come give and receive a gift with a glass of wine/hot chocolate!', '## Ho Ho Ho!
197+
198+
The end of the year is approaching! Good luck to you with the projects and finals💙 It''s time to catch up, but it''s also time to settle down in front of the fireplace with a hot chocolate and get out your gift wrappings 🎁
199+
200+
CLIC is organizing a Secret Santa for the whole IC Faculty! The principle is simple: bring a gift (worth 10~15 CHF) on the evening of December 20, no later than 7pm. When there''s enough in the CLIC''s hood, we''ll randomly distribute the gifts to each participant! You won''t be assigned a person in advance, but after the distribution, you can try to find the person who gave you the gift 🎀
201+
202+
And to share more good vibes in holiday cheer, there''ll be a distribution of mulled wine, hot chocolates (with expert help from Chocopoly!) and cookies! 🍪☕
203+
204+
📍 Location: INM Hall
205+
🕰️ Date: December 20th, 2023 from 6 p.m. to 9 p.m.
206+
🎁 Prepare a gift between 10 and 15 CHF
190207
191-
INSERT INTO public.news_translations (id, news_id, languages_code, title, description, content) VALUES (3, 2, 'fr-FR', 'Secret Santa CLIC 2023', 'Viens offrir et recevoir un cadeau avec un verre de vin/chocolat chaud !', 'Ho Ho Ho !
208+
Love from CLIC ❤️💙', NULL);
209+
INSERT INTO public.news_translations (id, news_id, languages_code, title, description, content, banner) VALUES (2, 1, 'fr-FR', 'Secret Santa CLIC 2023', 'Viens offrir et recevoir un cadeau avec un verre de vin/chocolat chaud !', '## Ho Ho Ho !
192210
193211
La fin de l’année approche ! Bon courage à vous pour les derniers rendus et les finals💙 Il est temps de rattraper les retards, mais c’est aussi l’heure de vous installer devant la cheminée avec un chocolat chaud et de sortir vos emballages cadeaux 🎁
194212
@@ -200,24 +218,90 @@ Et pour partager plus de kiff dans la bonne humeur des fêtes de fin d’année,
200218
🕰️ Date: 20 Décembre 2023 de 18h à 21h
201219
🎁 Préparez un cadeau entre 10 et 15 CHF
202220
203-
La CLIC vous aime ❤️💙');
204-
INSERT INTO public.news_translations (id, news_id, languages_code, title, description, content) VALUES (4, 2, 'en-US', 'Secret Santa CLIC 2023', 'Come give and receive a gift with a glass of wine/hot chocolate!', 'Ho Ho Ho!
221+
La CLIC vous aime ❤️💙', NULL);
222+
INSERT INTO public.news_translations (id, news_id, languages_code, title, description, content, banner) VALUES (3, 2, 'fr-FR', 'Souper de Faculté IC 2023', 'Le traditionnel dîner de la famille IC', 'Il est enfin là, l’annonce que vous attendiez depuis longtemps avec impatience. Le Souper de Faculté IC Automne 2023 ! Rendez-vous le 9 novembre au Hall BC pour partager un repas avec les autres étudiant.e.s et membres de la faculté (professeurs compris, qui n’a jamais rêvé de trinquer avec son/sa prof préféré.e ?). Cette année on s’est ornementé du thème Sol Et Luna; que vous soyez chaleureux.ses et énergétique.s comme le soleil, ou calme et brillant.e.s comme la lune, venez passer un moment merveilleux avec un repas céleste, animé du quiz sur notre faculté IC et un karaoké à la fin.
205223
206-
The end of the year is approaching! Good luck to you with the projects and finals💙 It''s time to catch up, but it''s also time to settle down in front of the fireplace with a hot chocolate and get out your gift wrappings 🎁
224+
Au menu : 🍽️
207225
208-
CLIC is organizing a Secret Santa for the whole IC Faculty! The principle is simple: bring a gift (worth 10~15 CHF) on the evening of December 20, no later than 7pm. When there''s enough in the CLIC''s hood, we''ll randomly distribute the gifts to each participant! You won''t be assigned a person in advance, but after the distribution, you can try to find the person who gave you the gift 🎀
226+
Salade mêlée
227+
•••
228+
Dahl de lentille au lait de coco
229+
&
230+
Brochette de Poulet Tandoori
231+
OU (option végé)
232+
Brochette de Tofu BIO Suisse
233+
&
234+
Légumes de saison - Naan
235+
•••
236+
Gâteau au Chocolat
237+
Crème Chantilly vanillée
209238
210-
And to share more good vibes in holiday cheer, there''ll be a distribution of mulled wine, hot chocolates (with expert help from Chocopoly!) and cookies! 🍪☕
239+
📅 Date: 9 novembre à partir de 18h. Vous devez être présent.e au plus tard à 19h.
240+
📍 Lieu: Hall BC
241+
🪙 Prix: 10.- jusqu’au 5 novembre 23:59, 12.- après
211242
212-
📍 Location: INM Hall
213-
🕰️ Date: December 20th, 2023 from 6 p.m. to 9 p.m.
214-
🎁 Prepare a gift between 10 and 15 CHF
243+
Pour s’inscrire: Remplir ce formulaire Aller au bureau de la CLIC (INN132), ouvert tous les jours de 10h à 17h et payer en personne soit en cash, soit par camipro, ou finalement par virement bancaire via le QR code qui se trouve à la fin du formulaire d’inscription.
244+
245+
La CLIC qui vous aime ❤️💙', NULL);
246+
INSERT INTO public.news_translations (id, news_id, languages_code, title, description, content, banner) VALUES (4, 2, 'en-US', 'IC Faculty Dinner Automn 2023', 'The traditional faculty dinner of IC Family', 'It''s finally here, the announcement you''ve been eagerly awaiting. The Automn 2023 IC Faculty Dinner! Join us on November 9 at the BC Hall to share a meal with fellow students and faculty members (including professors - who hasn''t dreamed of toasting with their favourite professor?) This year''s theme is Sol Et Luna; whether you''re warm and energetic like the sun, or calm and bright like the moon, come and enjoy a heavenly meal, IC faculty quiz and karaoke at the end.
247+
248+
The menu: 🍽️
249+
250+
Mixed salad
251+
•••
252+
Lentil dahl with coconut milk
253+
&
254+
Skewer of Tandoori Chicken
255+
OR (veggie option)
256+
Skewer of Swiss BIO Tofu
257+
&
258+
Seasonal vegetables - Naan bread
259+
•••
260+
Chocolate cake
261+
Vanilla whipped cream
262+
263+
📅 Date: November 9 from 6pm. You must be present at the latest at 7pm.
264+
📍 Location: Hall BC
265+
🪙 Price: 10.- until November 5 23:59, 12.- afterwards
266+
267+
To register: Fill in this form Go and pay at the CLIC office (INN132), open every day from 10am to 5pm. You can pay either by cash or by camipro, in person at the office. You can also pay by bank transfer via the QR code that can be found at the end of the registration form.
268+
269+
Love from CLIC ❤️💙', NULL);
270+
271+
272+
--
273+
-- Data for website user
274+
--
275+
276+
INSERT INTO public.directus_roles (id, name, icon, description, ip_access, enforce_tfa, admin_access, app_access) VALUES ('3169d1f9-7faa-48d9-b81a-3333afccdefe', 'website', 'supervised_user_circle', NULL, NULL, false, false, false);
277+
INSERT INTO public.directus_users (id, first_name, last_name, email, password, location, title, description, tags, avatar, language, tfa_secret, status, role, token, last_access, last_page, provider, external_identifier, auth_data, email_notifications, appearance, theme_dark, theme_light, theme_light_overrides, theme_dark_overrides) VALUES ('8814d708-eead-4f05-8c41-1412ed7b0e7a', 'website', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'active', '3169d1f9-7faa-48d9-b81a-3333afccdefe', '9JDjdJ3nzoa09B8lzUiHjeyfnNSzwdsT', NULL, NULL, 'default', NULL, NULL, true, NULL, NULL, NULL, NULL, NULL);
215278

216-
Love from CLIC ❤️💙');
279+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (1, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'association', 'read', '{}', '{}', NULL, '*');
280+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (2, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'association_files', 'read', '{}', '{}', NULL, '*');
281+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (3, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'association_memberships', 'read', '{}', '{}', NULL, '*');
282+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (4, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'association_memberships_translations', 'read', '{}', '{}', NULL, '*');
283+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (5, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'association_partners', 'read', '{}', '{}', NULL, '*');
284+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (6, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'association_social_links', 'read', '{}', '{}', NULL, '*');
285+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (7, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'association_translations', 'read', '{}', '{}', NULL, '*');
286+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (8, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'commission_memberships', 'read', '{}', '{}', NULL, '*');
287+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (9, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'commission_memberships_translations', 'read', '{}', '{}', NULL, '*');
288+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (10, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'commissions_members', 'read', '{}', '{}', NULL, '*');
289+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (11, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'commissions', 'read', '{}', '{}', NULL, '*');
290+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (12, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'commissions_social_links', 'read', '{}', '{}', NULL, '*');
291+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (13, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'commissions_translations', 'read', '{}', '{}', NULL, '*');
292+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (14, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'languages', 'read', '{}', '{}', NULL, '*');
293+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (15, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'members', 'read', '{}', '{}', NULL, '*');
294+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (16, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'news', 'read', '{}', '{}', NULL, '*');
295+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (17, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'news_commissions', 'read', '{}', '{}', NULL, '*');
296+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (18, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'news_partners', 'read', '{}', '{}', NULL, '*');
297+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (19, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'news_translations', 'read', '{}', '{}', NULL, '*');
298+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (20, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'partners', 'read', '{}', '{}', NULL, '*');
299+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (21, '3169d1f9-7faa-48d9-b81a-3333afccdefe', 'social_links', 'read', '{}', '{}', NULL, '*');
217300

218301

219302
--
220-
-- Data for Name: news_commissions; Type: TABLE DATA; Schema: public; Owner: directus_user
303+
-- Data for public folder
221304
--
222305

223-
INSERT INTO public.news_commissions (id, news_id, commissions_id) VALUES (4, 2, 3);
306+
INSERT INTO public.directus_folders (id, name, parent) VALUES ('c591c65a-ce8c-447c-8442-fea5eed26dcb', 'public', NULL);
307+
INSERT INTO public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields) VALUES (22, NULL, 'directus_files', 'read', '{"_and":[{"folder":{"_eq":"c591c65a-ce8c-447c-8442-fea5eed26dcb"}}]}', NULL, NULL, NULL);

0 commit comments

Comments
 (0)
Please sign in to comment.