Bibliotheque de données #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User :
id String unique
userId String
email String
name String
slug String
organisations UserOnOrganisation[]
comment Comment[]
createdAt DateTime
updatedAt DateTime
Organisation :
id String unique
name String
description String
logo String
type String
tag String
slug String
members UserOnOrganisation[]
events Event[]
albums Album[]
terrain Terrain[]
createdAt DateTime
updatedAt DateTime
Role :
id String unique
name String unique
usersOnOrganisations UserOnOrganisation[]
UserOnOrganisation :
userId String
organisationId String
roleId String
user User relation(fields: [userId], references: [id], onDelete: Cascade)
organisation Organisation relation(fields: [organisationId], references: [id], onDelete: Cascade)
role Role relation(fields: [roleId], references: [id], onDelete: Cascade)
createdAt DateTime
@@id([userId, organisationId, roleId])
Event :
id String unique
name String
description String
date DateTime
location String
organisationId String
organisation Organisation relation(fields: [organisationId], references: [id], onDelete: Cascade)
comments Comment[]
createdAt DateTime
updatedAt DateTime
Comment :
id String unique
content String
userId String
eventId String
user User relation(fields: [userId], references: [id], onDelete: Cascade)
event Event relation(fields: [eventId], references: [id], onDelete: Cascade)
createdAt DateTime
Album :
id String unique
title String
organisationId String
organisation Organisation relation(fields: [organisationId], references: [id], onDelete: Cascade)
photos Photo[]
createdAt DateTime
updatedAt DateTime
Photo :
id String unique
url String
albumId String
album Album relation(fields: [albumId], references: [id], onDelete: Cascade)
createdAt DateTime
Terrain :
id String unique
name String
location String
codePostal Int
ville String
lag String
lng String
slug String
Organisation Organisation? relation(fields: [organisationId], references: [id])
organisationId String