2018-07-10 09:04:19 +02:00
|
|
|
from titanembeds.database import db
|
2017-05-07 00:27:07 +02:00
|
|
|
|
2018-07-10 09:04:19 +02:00
|
|
|
class GuildMembers(db.Model):
|
2017-05-07 00:27:07 +02:00
|
|
|
__tablename__ = "guild_members"
|
|
|
|
id = db.Column(db.Integer, primary_key=True) # Auto incremented id
|
2018-01-23 22:08:55 +01:00
|
|
|
guild_id = db.Column(db.BigInteger) # Discord guild id
|
|
|
|
user_id = db.Column(db.BigInteger) # Discord user id
|
2017-05-07 00:27:07 +02:00
|
|
|
username = db.Column(db.String(255)) # Name
|
|
|
|
discriminator = db.Column(db.Integer) # User discriminator
|
|
|
|
nickname = db.Column(db.String(255)) # User nickname
|
|
|
|
avatar = db.Column(db.String(255)) # The avatar str of the user
|
|
|
|
active = db.Column(db.Boolean()) # If the user is a member of the guild
|
|
|
|
banned = db.Column(db.Boolean()) # If the user is banned in the guild
|
2018-07-10 09:04:19 +02:00
|
|
|
roles = db.Column(db.Text()) # Member roles
|