This commit is contained in:
Bruno Sienkiewicz 2024-05-19 17:07:37 +02:00
parent ca280d192b
commit 6be6253db2
6 changed files with 145 additions and 19514 deletions

View File

@ -0,0 +1,16 @@
-- CreateTable
CREATE TABLE "example_table" (
"id" SERIAL NOT NULL,
"name" VARCHAR(100),
"created_at" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "example_table_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "HelloWorld" (
"id" SERIAL NOT NULL,
"message" TEXT NOT NULL,
CONSTRAINT "HelloWorld_pkey" PRIMARY KEY ("id")
);

View File

@ -0,0 +1,82 @@
/*
Warnings:
- You are about to drop the `HelloWorld` table. If the table is not empty, all the data it contains will be lost.
- You are about to drop the `example_table` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropTable
DROP TABLE "HelloWorld";
-- DropTable
DROP TABLE "example_table";
-- CreateTable
CREATE TABLE "Restauracja" (
"id" SERIAL NOT NULL,
"adres" TEXT NOT NULL,
CONSTRAINT "Restauracja_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "Recencja" (
"id" SERIAL NOT NULL,
"tekst" TEXT NOT NULL,
"wartosc" INTEGER NOT NULL,
CONSTRAINT "Recencja_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "Uzytkownik" (
"id" SERIAL NOT NULL,
"imie" TEXT NOT NULL,
"nazwisko" TEXT NOT NULL,
"adres" TEXT NOT NULL,
CONSTRAINT "Uzytkownik_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "Historia_zamowien" (
"id" SERIAL NOT NULL,
"data_zamowienia" TIMESTAMP(3) NOT NULL,
CONSTRAINT "Historia_zamowien_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "Danie" (
"id" SERIAL NOT NULL,
"cena" INTEGER NOT NULL,
"kategoria" TEXT NOT NULL,
"nazwa" TEXT NOT NULL,
CONSTRAINT "Danie_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "Zamowione_danie" (
"id" SERIAL NOT NULL,
CONSTRAINT "Zamowione_danie_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "Zamowienie" (
"id" SERIAL NOT NULL,
"status" TEXT NOT NULL,
CONSTRAINT "Zamowienie_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "Znizka" (
"id" SERIAL NOT NULL,
"kod" TEXT NOT NULL,
"wartosc" INTEGER NOT NULL,
"czy_dostepna" BOOLEAN NOT NULL,
CONSTRAINT "Znizka_pkey" PRIMARY KEY ("id")
);

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 = "postgresql"

View File

@ -7,8 +7,48 @@ datasource db {
url = env("DATABASE_URL")
}
model users {
id Int @id @default(autoincrement())
name String? @db.VarChar(100)
email String? @unique @db.VarChar(100)
model Restauracja {
id Int @id @default(autoincrement())
adres String
}
model Recencja {
id Int @id @default(autoincrement())
tekst String
wartosc Int
}
model Uzytkownik {
id Int @id @default(autoincrement())
imie String
nazwisko String
adres String
}
model Historia_zamowien {
id Int @id @default(autoincrement())
data_zamowienia DateTime
}
model Danie {
id Int @id @default(autoincrement())
cena Int
kategoria String
nazwa String
}
model Zamowione_danie {
id Int @id @default(autoincrement())
}
model Zamowienie {
id Int @id @default(autoincrement())
status String
}
model Znizka {
id Int @id @default(autoincrement())
kod String
wartosc Int
czy_dostepna Boolean
}

19509
monorepo/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,2 @@
#!/bin/sh
pnpm i
nx run-many --target=serve --projects=frontend,backend --parallel