- Created tables for `chats_etichette`, `messages`, `servizio`, `servizio_interessi`, `servizio_annunci`, `prezziario`, `ordini`, `payments`, and `banlist`. - Established primary and foreign key constraints for data integrity. - Introduced enums for various types including `TipologiaPosizioneEnum`, `OrderTypeEnum`, and `PaymentStatusEnum`. - Seeded initial data for banners, labels, flags, pricing, strings, and users. - Implemented unique constraints where necessary to prevent duplicate entries.
24 lines
No EOL
473 B
SQL
24 lines
No EOL
473 B
SQL
INSERT INTO
|
|
PUBLIC.USERS (
|
|
username,
|
|
email,
|
|
"isAdmin",
|
|
PASSWORD,
|
|
nome,
|
|
cognome,
|
|
"isVerified",
|
|
salt,
|
|
telefono
|
|
)
|
|
VALUES (
|
|
'Marco Pedone'::TEXT,
|
|
'm.pedone98@gmail.com'::TEXT,
|
|
TRUE::BOOLEAN,
|
|
'changeme'::TEXT,
|
|
'Marco'::TEXT,
|
|
'Pedone'::TEXT,
|
|
TRUE::BOOLEAN,
|
|
'a'::TEXT,
|
|
'+393407246729'::TEXT
|
|
)
|
|
ON CONFLICT (email) DO NOTHING; |