This commit is contained in:
nutzer26
2022-12-13 17:55:43 +01:00
parent a037410306
commit bed22c6720
12 changed files with 289 additions and 0 deletions

11
carpool/esentricar.sql Normal file
View File

@@ -0,0 +1,11 @@
CREATE DATABASE esentricar;
\c esentricar;
CREATE TABLE cars (
car_id SERIAL PRIMARY KEY,
license_plate varchar(30) NOT NULL,
car_type varchar(30) NOT NULL,
fuel varchar(30) NOT NULL,
number_of_seats integer NOT NULL
);
CREATE UNIQUE INDEX cars_license_plate
ON cars (license_plate);