Initial commit

This commit is contained in:
Florian Sylvain
2024-02-08 13:59:12 +01:00
commit d3109983fe
20 changed files with 7811 additions and 0 deletions
BIN
View File
Binary file not shown.
+170
View File
@@ -0,0 +1,170 @@
//// ------------------------------------------------------
//// THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
//// ------------------------------------------------------
Table City {
id Int [pk, increment]
name String [not null]
zipcode Int [not null]
}
Table ImageCover {
id String [pk]
filename String [not null]
width Int [not null]
height Int [not null]
format Format [not null]
etag String [not null]
mimetype MimeType [not null]
last_synchronized DateTime [not null]
color_summary String[] [not null]
thumbnail Boolean [not null]
}
Table LatLon {
id Int [pk, increment]
lon Float [not null]
lat Float [not null]
}
Table Contact {
id Int [pk, increment]
url String
phone String
mail String
facebook String
twitter String
}
Table Price {
id Int [pk, increment]
type PriceType [not null]
detail String
}
Table Access {
id Int [pk, increment]
type String [not null]
link String
link_text String
}
Table Event {
id Int [pk, increment]
latLonId Int [not null]
cityId Int [not null]
contactId Int
priceId Int
accessId Int
imageCoverId String [not null]
url String [unique, not null]
title String [not null]
lead_text String [not null]
description String [not null]
date_start DateTime [not null]
date_end DateTime [not null]
date_description String [not null]
occurrences String [not null]
cover_url String [not null]
cover_alt String
cover_credit String
tags Tag[] [not null]
address_name String [not null]
address_street String [not null]
pmr Boolean [not null]
blind Boolean [not null]
deaf Boolean [not null]
transport String
updated_at DateTime [not null]
programs String
address_url String
address_url_text String
address_text String
title_event String
audience String
childrens String
group Group [not null]
}
Enum Tag {
Concert
Enfants
Musique
Expo
Theatre
Conference
Loisirs
Peinture
Atelier
Litterature
Danse
Sport
ArtContemporain
SpectacleMusical
Cinema
Innovation
Balade
Nature
Histoire
Photo
Clubbing
BD
Cirque
Solidarite
Brocante
Humour
Salon
Sciences
LGBT
Sante
StreetArt
Gourmand
Jeux2024
}
Enum PriceType {
gratuit
payant
gratuitConditionnel
}
Enum Group {
Aucun
Agenda
CentresAnimations
NuitBlanche
Bibliotheques
ActivitesDJS
ParcsEtJardins
Associations
Musees
}
Enum Format {
PNG
JPEG
}
Enum MimeType {
image_jpeg
image_png
}
Table User {
id Int [pk, increment]
email String [unique, not null]
password String [not null]
name String
}
Ref: Event.cityId > City.id
Ref: Event.latLonId > LatLon.id
Ref: Event.contactId > Contact.id
Ref: Event.priceId > Price.id
Ref: Event.accessId > Access.id
Ref: Event.imageCoverId > ImageCover.id
+123
View File
@@ -0,0 +1,123 @@
//// ------------------------------------------------------
//// THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
//// ------------------------------------------------------
Table City {
id Int [pk, increment]
name String [not null]
zipcode Int [unique, not null]
}
Table Contact {
id Int [pk, increment]
url String
phone String
email String
facebook String
twitter String
}
Table Event {
id Int [pk, increment]
cityId Int
contactId Int
url String
title String
lead_text String
description String
date_start DateTime
date_end DateTime
date_description String
occurrences String
cover_url String
cover_alt String
cover_credit String
tags Tag[] [not null]
address_name String
address_street String
latitude Float
longitude Float
pmr Boolean
blind Boolean
deaf Boolean
transport String
access_type AccessType
access_link String
access_link_text String
price_type PriceType
price_detail String
programs String
audience String
group Group
}
Table User {
id Int [pk, increment]
email String [unique, not null]
password String [not null]
name String
}
Enum Tag {
Concert
Enfants
Musique
Expo
Theatre
Conference
Loisirs
Peinture
Atelier
Litterature
Danse
Sport
ArtContemporain
SpectacleMusical
Cinema
Innovation
Balade
Nature
Histoire
Photo
Clubbing
BD
Cirque
Solidarite
Brocante
Humour
Salon
Sciences
LGBT
Sante
StreetArt
Gourmand
Jeux2024
}
Enum PriceType {
gratuit
payant
gratuitConditionnel
}
Enum Group {
Aucun
Agenda
CentresAnimations
NuitBlanche
Bibliotheques
ActivitesDJS
ParcsEtJardins
Associations
Musees
}
Enum AccessType {
obligatoire
conseillee
non
}
Ref: Event.cityId > City.id
Ref: Event.contactId > Contact.id
+10
View File
@@ -0,0 +1,10 @@
//// ------------------------------------------------------
//// THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
//// ------------------------------------------------------
Table Score {
id Int [pk, increment]
nickname String [not null]
score Int [not null]
position Int [not null]
}
@@ -0,0 +1,7 @@
-- CreateTable
CREATE TABLE "Score" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"nickname" TEXT NOT NULL,
"score" INTEGER NOT NULL,
"position" INTEGER NOT NULL
);
+3
View File
@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"
+19
View File
@@ -0,0 +1,19 @@
generator client {
provider = "prisma-client-js"
}
generator dblm {
provider = "prisma-dbml-generator"
}
datasource db {
provider = "sqlite"
url = "file:./sqlite.db"
}
model Score {
id Int @id @default(autoincrement())
nickname String
score Int
position Int
}
BIN
View File
Binary file not shown.