Guest User

Untitled

a guest
Jan 11th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. +----------------------+---------------------+------+-----+---------+----------------+
  2. | Field | Type | Null | Key | Default | Extra |
  3. +----------------------+---------------------+------+-----+---------+----------------+
  4. | id | int(11) | NO | PRI | NULL | auto_increment |
  5. | username | varchar(15) | NO | | NULL | |
  6. +----------------------+---------------------+------+-----+---------+----------------+
  7.  
  8. +-------------+---------+------+-----+---------+-------+
  9. | Field | Type | Null | Key | Default | Extra |
  10. +-------------+---------+------+-----+---------+-------+
  11. | user_one_id | int(11) | NO | PRI | NULL | |
  12. | user_two_id | int(11) | NO | PRI | NULL | |
  13. +-------------+---------+------+-----+---------+-------+
  14.  
  15. public async Task<IReadOnlyList<MessengerFriend>> GetFriends(int playerId)
  16.  
  17. SELECT * FROM messenger_friends WHERE user_one_id = {playerId} OR user_two_id = {playerId}
Add Comment
Please, Sign In to add comment