sql schemas
This commit is contained in:
		
							parent
							
								
									575db455a7
								
							
						
					
					
						commit
						f626446e50
					
				
					 3 changed files with 32 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								examples/schemas/guilds.sql
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								examples/schemas/guilds.sql
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
CREATE TABLE guilds(
 | 
			
		||||
    guild_id bigint,
 | 
			
		||||
    prefix text DEFAULT '~',
 | 
			
		||||
    mutedRole bigint DEFAULT NULL,
 | 
			
		||||
    autorole bigint DEFAULT NULL,
 | 
			
		||||
    welcomeChannel bigint DEFAULT NULL,
 | 
			
		||||
    welcomeMessage varchar(2000) DEFAULT 'Hey there {{user}}, and welcome to {{server}}!',
 | 
			
		||||
    leaveChannel bigint DEFAULT NULL,
 | 
			
		||||
    leaveMessage varchar(2000) DEFAULT 'See you around, {{user}}.',
 | 
			
		||||
    chatlogsChannel bigint DEFAULT NULL,
 | 
			
		||||
    modlogsChannel bigint DEFAULT NULL,
 | 
			
		||||
    starboardChannel bigint DEFAULT NULL,
 | 
			
		||||
    blacklist bigint[] DEFAULT '{}',
 | 
			
		||||
    disabledCommands text[] DEFAULT '{}',
 | 
			
		||||
    disabledCategories text[] DEFAULT '{}',
 | 
			
		||||
    PRIMARY KEY (guild_id)
 | 
			
		||||
);
 | 
			
		||||
							
								
								
									
										5
									
								
								examples/schemas/members.sql
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								examples/schemas/members.sql
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
CREATE TABLE members(
 | 
			
		||||
    member_id varchar(37),
 | 
			
		||||
    experience bigint DEFAULT 0,
 | 
			
		||||
    PRIMARY KEY (member_id)
 | 
			
		||||
);
 | 
			
		||||
							
								
								
									
										10
									
								
								examples/schemas/users.sql
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								examples/schemas/users.sql
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
CREATE TABLE users(
 | 
			
		||||
    user_id bigint DEFAULT NULL,
 | 
			
		||||
    prefix text DEFAULT '~',
 | 
			
		||||
    experience bigint DEFAULT 0,
 | 
			
		||||
    seashells bigint DEFAULT 0,
 | 
			
		||||
    relationships bigint[] DEFAULT '{}',
 | 
			
		||||
    pronouns text DEFAULT NULL,
 | 
			
		||||
    colour text DEFAULT NULL,
 | 
			
		||||
    PRIMARY KEY (user_id)
 | 
			
		||||
);
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue