177 lines
15 KiB
SQL
177 lines
15 KiB
SQL
-- =====================================================================
|
|
-- Omika Diagnostic Center — SEED RÉFÉRENTIEL COMPLET (généré)
|
|
-- Généré par scripts\seed-referentiel-complet.ps1
|
|
-- =====================================================================
|
|
-- NON DESTRUCTIF : INSERT ... ON CONFLICT DO NOTHING.
|
|
-- IDEMPOTENT : un libellé modifié par un Admin n'est JAMAIS écrasé.
|
|
-- Cible : table diagnostics_reference (T24-A, créée par 011_diagnostics_reference.sql).
|
|
-- Aucun mot de passe, aucune donnée personnelle, aucun secret.
|
|
-- =====================================================================
|
|
|
|
INSERT INTO diagnostics_reference
|
|
(reference_type, code, label, description, enabled, sort_order, created_at_utc, updated_at_utc)
|
|
VALUES
|
|
('SCREEN_CODE', 'AGENDA', 'Agenda', NULL, TRUE, 10, now(), now()),
|
|
('SCREEN_CODE', 'INTERVENTION_SEARCH', 'Recherche d''interventions', NULL, TRUE, 20, now(), now()),
|
|
('SCREEN_CODE', 'DOSSIER_LIST', 'Dossiers', NULL, TRUE, 30, now(), now()),
|
|
('SCREEN_CODE', 'TEAM', 'Équipe', NULL, TRUE, 40, now(), now()),
|
|
('SCREEN_CODE', 'TEAM_DETAIL', 'Détail d''équipe', NULL, TRUE, 50, now(), now()),
|
|
('SCREEN_CODE', 'CLIENT_LIST', 'Clients', NULL, TRUE, 60, now(), now()),
|
|
('SCREEN_CODE', 'SITE_LIST', 'Sites', NULL, TRUE, 70, now(), now()),
|
|
('SCREEN_CODE', 'SETTINGS', 'Paramètres', NULL, TRUE, 80, now(), now()),
|
|
('SCREEN_CODE', 'RENDEZVOUS_DETAIL', 'Détail de rendez-vous', NULL, TRUE, 90, now(), now()),
|
|
('SCREEN_CODE', 'AGENDA_TEAM', 'Agenda d''équipe', NULL, TRUE, 100, now(), now()),
|
|
('SCREEN_CODE', 'INTERVENTION_DETAIL', 'Détail d''intervention', NULL, TRUE, 110, now(), now()),
|
|
('SCREEN_CODE', 'INTERVENTION_DOCUMENTS', 'Documents d''intervention', NULL, TRUE, 120, now(), now()),
|
|
('SCREEN_CODE', 'INTERVENTION_NOTES', 'Notes d''intervention', NULL, TRUE, 130, now(), now()),
|
|
('SCREEN_CODE', 'INTERVENTION_NOTES_ADMIN', 'Notes administratives', NULL, TRUE, 140, now(), now()),
|
|
('SCREEN_CODE', 'INTERVENTION_EMAILS', 'Courriels d''intervention', NULL, TRUE, 150, now(), now()),
|
|
('SCREEN_CODE', 'EMAIL', 'Nouveau courriel', NULL, TRUE, 160, now(), now()),
|
|
('SCREEN_CODE', 'RAPPORT', 'Rapport', NULL, TRUE, 170, now(), now()),
|
|
('SCREEN_CODE', 'INTERVENTION_RESOURCES', 'Contenus d''intervention', NULL, TRUE, 180, now(), now()),
|
|
('SCREEN_CODE', 'PHOTO_VIEWER', 'Visionneuse photo', NULL, TRUE, 190, now(), now()),
|
|
('SCREEN_CODE', 'IMAGE_EDITOR', 'Éditeur d''image', NULL, TRUE, 200, now(), now()),
|
|
('SCREEN_CODE', 'INTERVENTION_CONTACTS', 'Contacts d''intervention', NULL, TRUE, 210, now(), now()),
|
|
('SCREEN_CODE', 'CONTACT_DETAIL', 'Détail de contact', NULL, TRUE, 220, now(), now()),
|
|
('SCREEN_CODE', 'DOSSIER_DETAIL', 'Détail de dossier', NULL, TRUE, 230, now(), now()),
|
|
('SCREEN_CODE', 'CLIENT_DETAIL', 'Détail de client', NULL, TRUE, 240, now(), now()),
|
|
('SCREEN_CODE', 'SITE_DETAIL', 'Détail de site', NULL, TRUE, 250, now(), now()),
|
|
('SCREEN_CODE', 'COLLABORATEUR_DETAIL', 'Détail de collaborateur', NULL, TRUE, 260, now(), now()),
|
|
('SCREEN_CODE', 'INTERVENTION_EDIT', 'Formulaire intervention', NULL, TRUE, 270, now(), now()),
|
|
('SCREEN_CODE', 'SUIVI_TEMPS_CREATE', 'Saisie de temps', NULL, TRUE, 280, now(), now()),
|
|
('SCREEN_CODE', 'COMPTE_RENDU_CREATE', 'Compte rendu', NULL, TRUE, 290, now(), now()),
|
|
('SCREEN_CODE', 'SYNC_QUEUE', 'File de synchronisation', NULL, TRUE, 300, now(), now()),
|
|
('FEATURE_CODE', 'INTERVENTION_SEARCH_RUN', 'Recherche d''intervention', NULL, TRUE, 10, now(), now()),
|
|
('FEATURE_CODE', 'REPORT_GENERATE', 'Génération de rapport', NULL, TRUE, 20, now(), now()),
|
|
('FEATURE_CODE', 'EMAIL_SEND', 'Envoi de courriel', NULL, TRUE, 30, now(), now()),
|
|
('FEATURE_CODE', 'ADD_COLLABORATEUR', 'Ajouter un collaborateur', NULL, TRUE, 1000, now(), now()),
|
|
('FEATURE_CODE', 'ADD_DOCUMENT', 'Ajouter un document', NULL, TRUE, 1010, now(), now()),
|
|
('FEATURE_CODE', 'ADD_NOTE', 'Ajouter une note', NULL, TRUE, 1020, now(), now()),
|
|
('FEATURE_CODE', 'ADD_PHOTO', 'Ajouter une photo', NULL, TRUE, 1030, now(), now()),
|
|
('FEATURE_CODE', 'ADD_PHOTO_FROM_CAMERA', 'Prendre une photo', NULL, TRUE, 1040, now(), now()),
|
|
('FEATURE_CODE', 'ADD_TIME', 'Ajouter un temps', NULL, TRUE, 1050, now(), now()),
|
|
('FEATURE_CODE', 'AJOUTER_DOCUMENT', 'Ajouter un document', NULL, TRUE, 1060, now(), now()),
|
|
('FEATURE_CODE', 'AJOUTER_PHOTO', 'Ajouter une photo', NULL, TRUE, 1070, now(), now()),
|
|
('FEATURE_CODE', 'ANNULER', 'Annuler', NULL, TRUE, 1080, now(), now()),
|
|
('FEATURE_CODE', 'ANNULER_CONFIRMATION_ANNULATION', 'Annuler la confirmation', NULL, TRUE, 1090, now(), now()),
|
|
('FEATURE_CODE', 'APPLY_CUSTOM_COLOR', 'Appliquer la couleur personnalisée', NULL, TRUE, 1100, now(), now()),
|
|
('FEATURE_CODE', 'APPLY_PRIMARY_COLOR', 'Appliquer la couleur principale', NULL, TRUE, 1110, now(), now()),
|
|
('FEATURE_CODE', 'ARCHIVE', 'Archiver', NULL, TRUE, 1120, now(), now()),
|
|
('FEATURE_CODE', 'ASSIGN_LICENCE', 'Attribuer une licence', NULL, TRUE, 1130, now(), now()),
|
|
('FEATURE_CODE', 'BACK', 'Retour', NULL, TRUE, 1140, now(), now()),
|
|
('FEATURE_CODE', 'BASCULER_OPTION', 'Cocher / décocher l''option', NULL, TRUE, 1150, now(), now()),
|
|
('FEATURE_CODE', 'BASCULER_SELECTION', 'Sélectionner la pièce jointe', NULL, TRUE, 1160, now(), now()),
|
|
('FEATURE_CODE', 'CALL', 'Appeler', NULL, TRUE, 1170, now(), now()),
|
|
('FEATURE_CODE', 'CALL_COLLABORATEUR', 'Appeler le collaborateur', NULL, TRUE, 1180, now(), now()),
|
|
('FEATURE_CODE', 'CALL_CONTACT', 'Appeler le contact', NULL, TRUE, 1190, now(), now()),
|
|
('FEATURE_CODE', 'CALL_PRIMARY', 'Appeler (contact principal)', NULL, TRUE, 1200, now(), now()),
|
|
('FEATURE_CODE', 'CALL_SUIVI_PAR', 'Appeler (suivi par)', NULL, TRUE, 1210, now(), now()),
|
|
('FEATURE_CODE', 'CANCEL', 'Annuler', NULL, TRUE, 1220, now(), now()),
|
|
('FEATURE_CODE', 'CANCEL_ARCHIVE', 'Annuler l''archivage', NULL, TRUE, 1230, now(), now()),
|
|
('FEATURE_CODE', 'CANCEL_SCAN', 'Annuler le scan', NULL, TRUE, 1240, now(), now()),
|
|
('FEATURE_CODE', 'CLEAR_ALL_DATA', 'Vider toutes les données', NULL, TRUE, 1250, now(), now()),
|
|
('FEATURE_CODE', 'CLEAR_DOCUMENTS', 'Vider les documents', NULL, TRUE, 1260, now(), now()),
|
|
('FEATURE_CODE', 'CONFIRM_ARCHIVE', 'Confirmer l''archivage', NULL, TRUE, 1270, now(), now()),
|
|
('FEATURE_CODE', 'CONFIRMER_ANNULATION', 'Confirmer l''annulation', NULL, TRUE, 1280, now(), now()),
|
|
('FEATURE_CODE', 'CONTINUER', 'Continuer', NULL, TRUE, 1290, now(), now()),
|
|
('FEATURE_CODE', 'DELETE_DRAFT', 'Supprimer le brouillon', NULL, TRUE, 1300, now(), now()),
|
|
('FEATURE_CODE', 'DEMANDER_ANNULATION', 'Demander l''annulation', NULL, TRUE, 1310, now(), now()),
|
|
('FEATURE_CODE', 'DOWNLOAD', 'Télécharger', NULL, TRUE, 1320, now(), now()),
|
|
('FEATURE_CODE', 'DOWNLOAD_ALL_DOCUMENTS', 'Télécharger tous les documents', NULL, TRUE, 1330, now(), now()),
|
|
('FEATURE_CODE', 'DOWNLOAD_ALL_PHOTOS', 'Télécharger toutes les photos', NULL, TRUE, 1340, now(), now()),
|
|
('FEATURE_CODE', 'EDIT', 'Modifier', NULL, TRUE, 1350, now(), now()),
|
|
('FEATURE_CODE', 'EDIT_DRAFT', 'Modifier le brouillon', NULL, TRUE, 1360, now(), now()),
|
|
('FEATURE_CODE', 'EMAIL', 'Envoyer un courriel', NULL, TRUE, 1370, now(), now()),
|
|
('FEATURE_CODE', 'EMAIL_COLLABORATEUR', 'Écrire au collaborateur', NULL, TRUE, 1380, now(), now()),
|
|
('FEATURE_CODE', 'EMAIL_CONTACT', 'Écrire au contact', NULL, TRUE, 1390, now(), now()),
|
|
('FEATURE_CODE', 'EMAIL_PRIMARY', 'Écrire (contact principal)', NULL, TRUE, 1400, now(), now()),
|
|
('FEATURE_CODE', 'EMAIL_SUIVI_PAR', 'Écrire (suivi par)', NULL, TRUE, 1410, now(), now()),
|
|
('FEATURE_CODE', 'ENREGISTRER', 'Enregistrer', NULL, TRUE, 1420, now(), now()),
|
|
('FEATURE_CODE', 'ENROLL', 'Enrôler', NULL, TRUE, 1430, now(), now()),
|
|
('FEATURE_CODE', 'ENVOYER', 'Envoyer', NULL, TRUE, 1440, now(), now()),
|
|
('FEATURE_CODE', 'ENVOYER_EMAIL', 'Envoyer par courriel', NULL, TRUE, 1450, now(), now()),
|
|
('FEATURE_CODE', 'GENERER', 'Générer', NULL, TRUE, 1460, now(), now()),
|
|
('FEATURE_CODE', 'GO_TO_TODAY', 'Aller à aujourd''hui', NULL, TRUE, 1470, now(), now()),
|
|
('FEATURE_CODE', 'HIDE_EDITOR', 'Masquer l''éditeur', NULL, TRUE, 1480, now(), now()),
|
|
('FEATURE_CODE', 'INITIALIZE', 'Initialiser', NULL, TRUE, 1490, now(), now()),
|
|
('FEATURE_CODE', 'LOAD', 'Charger', NULL, TRUE, 1500, now(), now()),
|
|
('FEATURE_CODE', 'LOAD_AVEC_DESTINATAIRE', 'Charger avec destinataire', NULL, TRUE, 1510, now(), now()),
|
|
('FEATURE_CODE', 'LOAD_AVEC_RAPPORT', 'Charger avec rapport', NULL, TRUE, 1520, now(), now()),
|
|
('FEATURE_CODE', 'LOAD_EDITION', 'Charger en édition', NULL, TRUE, 1530, now(), now()),
|
|
('FEATURE_CODE', 'LOAD_SCOPES', 'Charger les périmètres', NULL, TRUE, 1540, now(), now()),
|
|
('FEATURE_CODE', 'LOGOUT', 'Se déconnecter', NULL, TRUE, 1550, now(), now()),
|
|
('FEATURE_CODE', 'MODIFIER', 'Modifier', NULL, TRUE, 1560, now(), now()),
|
|
('FEATURE_CODE', 'NAVIGATE', 'Naviguer', NULL, TRUE, 1570, now(), now()),
|
|
('FEATURE_CODE', 'NEW_INTERVENTION', 'Nouvelle intervention', NULL, TRUE, 1580, now(), now()),
|
|
('FEATURE_CODE', 'NEXT', 'Suivant', NULL, TRUE, 1590, now(), now()),
|
|
('FEATURE_CODE', 'NEXT_DAY', 'Jour suivant', NULL, TRUE, 1600, now(), now()),
|
|
('FEATURE_CODE', 'NEXT_WEEK', 'Semaine suivante', NULL, TRUE, 1610, now(), now()),
|
|
('FEATURE_CODE', 'NOUVEAU', 'Nouveau', NULL, TRUE, 1620, now(), now()),
|
|
('FEATURE_CODE', 'OPEN', 'Ouvrir', NULL, TRUE, 1630, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_CLIENT', 'Ouvrir le client', NULL, TRUE, 1640, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_COLLABORATEUR', 'Ouvrir le collaborateur', NULL, TRUE, 1650, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_COMPTE_RENDU', 'Ouvrir le compte rendu', NULL, TRUE, 1660, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_CONTACT', 'Ouvrir le contact', NULL, TRUE, 1670, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_CONTACTS', 'Ouvrir les contacts', NULL, TRUE, 1680, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_DOCUMENTS', 'Ouvrir les documents', NULL, TRUE, 1690, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_DOSSIER', 'Ouvrir le dossier', NULL, TRUE, 1700, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_EMAILS', 'Ouvrir les courriels', NULL, TRUE, 1710, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_EQUIPE', 'Ouvrir l''équipe', NULL, TRUE, 1720, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_FIRST_RENDEZ_VOUS', 'Ouvrir le premier rendez-vous', NULL, TRUE, 1730, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_IMAGES', 'Ouvrir les images', NULL, TRUE, 1740, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_IMAGES_ET_DOCUMENTS', 'Ouvrir images et documents', NULL, TRUE, 1750, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_INTERVENTION', 'Ouvrir l''intervention', NULL, TRUE, 1760, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_ITINERAIRE', 'Ouvrir l''itinéraire', NULL, TRUE, 1770, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_NOTES', 'Ouvrir les notes', NULL, TRUE, 1780, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_NOTES_ADMINISTRATIVES', 'Ouvrir les notes administratives', NULL, TRUE, 1790, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_RAPPORT', 'Ouvrir le rapport', NULL, TRUE, 1800, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_RENDEZ_VOUS', 'Ouvrir le rendez-vous', NULL, TRUE, 1810, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_SITE', 'Ouvrir le site', NULL, TRUE, 1820, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_SYNC_QUEUE', 'Ouvrir la file de synchronisation', NULL, TRUE, 1830, now(), now()),
|
|
('FEATURE_CODE', 'OPEN_TEAM_AGENDA', 'Ouvrir l''agenda d''équipe', NULL, TRUE, 1840, now(), now()),
|
|
('FEATURE_CODE', 'OUVRIR_BROUILLON', 'Ouvrir le brouillon', NULL, TRUE, 1850, now(), now()),
|
|
('FEATURE_CODE', 'OUVRIR_RUBRIQUE', 'Ouvrir une rubrique', NULL, TRUE, 1860, now(), now()),
|
|
('FEATURE_CODE', 'PREVIOUS', 'Précédent', NULL, TRUE, 1870, now(), now()),
|
|
('FEATURE_CODE', 'PREVIOUS_DAY', 'Jour précédent', NULL, TRUE, 1880, now(), now()),
|
|
('FEATURE_CODE', 'PREVIOUS_WEEK', 'Semaine précédente', NULL, TRUE, 1890, now(), now()),
|
|
('FEATURE_CODE', 'RELEASE_LICENCE', 'Libérer la licence', NULL, TRUE, 1900, now(), now()),
|
|
('FEATURE_CODE', 'REMOVE_COLLABORATEUR', 'Retirer un collaborateur', NULL, TRUE, 1910, now(), now()),
|
|
('FEATURE_CODE', 'RESET_APP', 'Réinitialiser l''application', NULL, TRUE, 1920, now(), now()),
|
|
('FEATURE_CODE', 'RESET_FILTERS', 'Réinitialiser les filtres', NULL, TRUE, 1930, now(), now()),
|
|
('FEATURE_CODE', 'RESET_SEARCH', 'Réinitialiser la recherche', NULL, TRUE, 1940, now(), now()),
|
|
('FEATURE_CODE', 'RETOUR', 'Retour', NULL, TRUE, 1950, now(), now()),
|
|
('FEATURE_CODE', 'RETOUR_RUBRIQUES', 'Retour aux rubriques', NULL, TRUE, 1960, now(), now()),
|
|
('FEATURE_CODE', 'RETRY', 'Réessayer', NULL, TRUE, 1970, now(), now()),
|
|
('FEATURE_CODE', 'RUBRIQUE_PRECEDENTE', 'Rubrique précédente', NULL, TRUE, 1980, now(), now()),
|
|
('FEATURE_CODE', 'RUBRIQUE_SUIVANTE', 'Rubrique suivante', NULL, TRUE, 1990, now(), now()),
|
|
('FEATURE_CODE', 'SAVE', 'Enregistrer', NULL, TRUE, 2000, now(), now()),
|
|
('FEATURE_CODE', 'SAVE_EDITOR', 'Enregistrer l''éditeur', NULL, TRUE, 2010, now(), now()),
|
|
('FEATURE_CODE', 'SAVE_PAUSE_DEJEUNER', 'Enregistrer la pause déjeuner', NULL, TRUE, 2020, now(), now()),
|
|
('FEATURE_CODE', 'SCAN', 'Scanner', NULL, TRUE, 2030, now(), now()),
|
|
('FEATURE_CODE', 'SEARCH', 'Rechercher', NULL, TRUE, 2040, now(), now()),
|
|
('FEATURE_CODE', 'SELECT_CALENDAR_DAY', 'Sélectionner un jour', NULL, TRUE, 2050, now(), now()),
|
|
('FEATURE_CODE', 'SELECT_CLIENTS', 'Onglet Clients', NULL, TRUE, 2060, now(), now()),
|
|
('FEATURE_CODE', 'SELECT_CONTACTS', 'Onglet Contacts', NULL, TRUE, 2070, now(), now()),
|
|
('FEATURE_CODE', 'SELECT_DAY', 'Sélectionner le jour', NULL, TRUE, 2080, now(), now()),
|
|
('FEATURE_CODE', 'SELECT_DOSSIERS', 'Onglet Dossiers', NULL, TRUE, 2090, now(), now()),
|
|
('FEATURE_CODE', 'SELECT_INTERVENTIONS', 'Onglet Interventions', NULL, TRUE, 2100, now(), now()),
|
|
('FEATURE_CODE', 'SELECT_RENDEZ_VOUS', 'Onglet Rendez-vous', NULL, TRUE, 2110, now(), now()),
|
|
('FEATURE_CODE', 'SELECT_SITES', 'Onglet Sites', NULL, TRUE, 2120, now(), now()),
|
|
('FEATURE_CODE', 'SELECT_TAB', 'Changer d''onglet', NULL, TRUE, 2130, now(), now()),
|
|
('FEATURE_CODE', 'SEND_SUPPORT_EMAIL', 'Écrire au support', NULL, TRUE, 2140, now(), now()),
|
|
('FEATURE_CODE', 'SET_PRIMARY_COLOR', 'Changer la couleur principale', NULL, TRUE, 2150, now(), now()),
|
|
('FEATURE_CODE', 'SET_THEME_MODE', 'Changer le thème', NULL, TRUE, 2160, now(), now()),
|
|
('FEATURE_CODE', 'SHOW_CALENDAR', 'Afficher le calendrier', NULL, TRUE, 2170, now(), now()),
|
|
('FEATURE_CODE', 'SHOW_DAY', 'Afficher le jour', NULL, TRUE, 2180, now(), now()),
|
|
('FEATURE_CODE', 'SHOW_PINNED', 'Afficher les épinglés', NULL, TRUE, 2190, now(), now()),
|
|
('FEATURE_CODE', 'SHOW_RECENT', 'Afficher les récents', NULL, TRUE, 2200, now(), now()),
|
|
('FEATURE_CODE', 'SHOW_WEEK', 'Afficher la semaine', NULL, TRUE, 2210, now(), now()),
|
|
('FEATURE_CODE', 'SYNC_NOW', 'Synchroniser maintenant', NULL, TRUE, 2220, now(), now()),
|
|
('FEATURE_CODE', 'TOGGLE_PINNED', 'Épingler / désépingler', NULL, TRUE, 2230, now(), now()),
|
|
('FEATURE_CODE', 'VALIDER', 'Valider', NULL, TRUE, 2240, now(), now())
|
|
ON CONFLICT DO NOTHING;
|
|
|
|
-- =====================================================================
|
|
-- FIN. Vérification :
|
|
-- SELECT reference_type, COUNT(*) FROM diagnostics_reference GROUP BY reference_type;
|
|
-- ===================================================================== |