-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from polyphony-chat/gateway
Gateway
- Loading branch information
Showing
9 changed files
with
87 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,21 +24,21 @@ INSERT INTO users ( | |
mfa_enabled, webauthn_enabled, totp_secret, totp_last_ticket, created_at, | ||
premium_since, verified, disabled, deleted, email, flags, public_flags, | ||
purchased_flags, premium_usage_flags, rights, data, fingerprints, extended_settings, | ||
settings_index, relevant_events | ||
settings_index | ||
) | ||
VALUES | ||
(7250861145186111490, 'john_doe_notes', '1296', 'avatar1.png', 16777215, 'banner1.png', NULL, | ||
'he/him', '+1234567890', true, false, true, 1, false, 'This is my bio', false, | ||
true, true, true, 'secret123', 'ticket456', '2024-01-01 12:00:00', | ||
'2024-01-02 12:00:00', true, false, false, '[email protected]', 100, 10, | ||
5, 1, 100, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint1', '{"setting": "value"}', 7251169922837909504, | ||
'[]'), | ||
5, 1, 100, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint1', '{"setting": "value"}', 7251169922837909504 | ||
), | ||
(7250861145186111491, 'jane_smith_notes', '5678', 'avatar2.png', 123456, NULL, NULL, | ||
'she/her', NULL, false, true, false, 0, false, '', false, | ||
false, false, false, NULL, NULL, '2024-02-01 15:30:00', | ||
NULL, false, false, false, '[email protected]', 50, 5, | ||
0, 0, 50, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint2', '{"setting": "another_value"}', 7251169922837909505, | ||
'[]'); | ||
0, 0, 50, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint2', '{"setting": "another_value"}', 7251169922837909505 | ||
); | ||
COMMIT; | ||
|
||
INSERT INTO notes ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,21 +25,21 @@ INSERT INTO users ( | |
mfa_enabled, webauthn_enabled, totp_secret, totp_last_ticket, created_at, | ||
premium_since, verified, disabled, deleted, email, flags, public_flags, | ||
purchased_flags, premium_usage_flags, rights, data, fingerprints, extended_settings, | ||
settings_index, relevant_events | ||
settings_index | ||
) | ||
VALUES | ||
(7250861145186111490, 'john_doe_private_channels', '1296', 'avatar1.png', 16777215, 'banner1.png', NULL, | ||
'he/him', '+1234567890', true, false, true, 1, false, 'This is my bio', false, | ||
true, true, true, 'secret123', 'ticket456', '2024-01-01 12:00:00', | ||
'2024-01-02 12:00:00', true, false, false, '[email protected]', 100, 10, | ||
5, 1, 100, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint1', '{"setting": "value"}', 7250861145186111495, | ||
'[]'), | ||
5, 1, 100, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint1', '{"setting": "value"}', 7250861145186111495 | ||
), | ||
(7250861145186111491, 'jane_smith_private_channels', '5678', 'avatar2.png', 123456, NULL, NULL, | ||
'she/her', NULL, false, true, false, 0, false, '', false, | ||
false, false, false, NULL, NULL, '2024-02-01 15:30:00', | ||
NULL, false, false, false, '[email protected]', 50, 5, | ||
0, 0, 50, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint2', '{"setting": "another_value"}', 7250861145186111496, | ||
'[]'); | ||
0, 0, 50, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint2', '{"setting": "another_value"}', 7250861145186111496 | ||
); | ||
COMMIT; | ||
|
||
INSERT INTO channels ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,37 +36,37 @@ INSERT INTO users ( | |
mfa_enabled, webauthn_enabled, totp_secret, totp_last_ticket, created_at, | ||
premium_since, verified, disabled, deleted, email, flags, public_flags, | ||
purchased_flags, premium_usage_flags, rights, data, fingerprints, extended_settings, | ||
settings_index, relevant_events | ||
settings_index | ||
) | ||
VALUES | ||
(7248639845155737600, 'john_doe', '1296', 'avatar1.png', 16777215, 'banner1.png', NULL, | ||
'he/him', '+1234567890', true, false, true, 1, false, 'This is my bio', false, | ||
true, true, true, 'secret123', 'ticket456', '2024-01-01 12:00:00', | ||
'2024-01-02 12:00:00', true, false, false, '[email protected]', 100, 10, | ||
5, 1, 100, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint1', '{"setting": "value"}', 1, | ||
'[]'), | ||
5, 1, 100, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint1', '{"setting": "value"}', 1 | ||
), | ||
(7248639891561517057, 'jane_smith', '5678', 'avatar2.png', 123456, NULL, NULL, | ||
'she/her', NULL, false, true, false, 0, false, '', false, | ||
false, false, false, NULL, NULL, '2024-02-01 15:30:00', | ||
NULL, false, false, false, '[email protected]', 50, 5, | ||
0, 0, 50, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint2', '{"setting": "another_value"}', 2, | ||
'[]'), | ||
0, 0, 50, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint2', '{"setting": "another_value"}', 2 | ||
), | ||
(7248640296244744192, 'alice_malice', '9876', 'avatar3.png', 987654, 'banner3.png', NULL, | ||
'they/them', '+1230987654', true, true, false, 0, false, 'Life is an adventure', | ||
false, false, true, false, 'secret789', 'ticket123', '2024-03-01 08:45:00', | ||
NULL, false, false, false, '[email protected]', 200, 20, | ||
2, 1, 150, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint3', '{"setting3": "value3"}', 3, | ||
'[]'), | ||
2, 1, 150, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint3', '{"setting3": "value3"}', 3 | ||
), | ||
(7248640311927246848, 'bob_the_woz', '1122', 'avatar4.png', 556677, NULL, NULL, | ||
'he/him', NULL, true, false, true, 1, false, 'Building the future', | ||
false, true, false, true, 'secret456', 'ticket789', '2024-03-15 14:30:00', | ||
'2024-04-01 14:30:00', true, false, false, '[email protected]', 250, 25, | ||
3, 2, 200, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint4', '{"setting4": "value4"}', 4, | ||
'[]'), | ||
3, 2, 200, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint4', '{"setting4": "value4"}', 4 | ||
), | ||
(7248640327265816576, 'xenia', '3344', 'avatar5.png', NULL, 'banner5.png', NULL, | ||
'he/him', '+4567890123', false, true, false, 0, false, 'Chocolate is life', | ||
false, false, false, true, 'secret555', 'ticket987', '2024-04-10 10:00:00', | ||
NULL, false, false, false, '[email protected]', 180, 15, | ||
0, 0, 180, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint5', '{"setting5": "value5"}', 5, | ||
'[]'); | ||
0, 0, 180, '{"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}', 'fingerprint5', '{"setting5": "value5"}', 5 | ||
); | ||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pub(super) fn print_logo() { | ||
let logo = "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%%***#%%%%%%%%%%%%%%%%%#**%%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%#----=++**#######*++=----#%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%%%#*+=--------------=++*%%%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%#===*#%%%%%%##***++****#%%%%%%#*===*%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%=-----=+*#%%%%%%%%%%%%%%%%#*+=-----=%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%*=--------=++**####***+==-------=*#%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%#*+=----------------------=+*#%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%#=---+*#%%%%%%%%#*+==----------==+**#%%%%%%%%*+=--=#%%%%%%%%% | ||
%%%%%%%%%--------=*#%%%%%%%%%%%%#######%%%%%%%%%%%#*+--------%%%%%%%%% | ||
%%%%%%%%%+----------=+*##%%%%%%%%%%%%%%%%%%%%##*+=----------+%%%%%%%%% | ||
%%%%%%%%%%#*=------------==+**##########**++=------------=*#%%%%%%%%%% | ||
%%%%%%%%%%%%%#*+=------------------------------------=+*#%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%#*+=----------------------------=+*#%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%#*++=----------------=++*#%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##********###%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
"; | ||
for line in logo.lines() { | ||
log::info!(target: "symfonia", "{line}") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters