- Created migration scripts for new tables including banlist, banners, event_queue, flags, testi_e_stringhe, and ratelimiter. - Added data seeding for banners, etichette, flags, prezziario, and testi_e_stringhe with idempotent inserts. - Initialized database with necessary extensions and user tables. - Updated servizio table to include new columns for managing service states. - Established foreign key relationships and unique constraints across various tables. - Implemented sequences for auto-incrementing primary keys in several tables.
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; |