room notes, etc #139
							
								
								
									
										17
									
								
								src/entity/gateway/postgres/migrations/V0013__room2.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								src/entity/gateway/postgres/migrations/V0013__room2.sql
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					drop table room_note;
 | 
				
			||||||
 | 
					drop table room;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					create table room (
 | 
				
			||||||
 | 
					  id serial primary key not null,
 | 
				
			||||||
 | 
					  name varchar(32) not null,
 | 
				
			||||||
 | 
					  section_id "char" not null,
 | 
				
			||||||
 | 
					  mode "char" not null,
 | 
				
			||||||
 | 
					  episode "char" not null,
 | 
				
			||||||
 | 
					  difficulty "char" not null
 | 
				
			||||||
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					create table room_note (
 | 
				
			||||||
 | 
					  room integer references room (id) not null,
 | 
				
			||||||
 | 
					  note jsonb not null,
 | 
				
			||||||
 | 
					  created_at timestamptz default current_timestamp not null
 | 
				
			||||||
 | 
					);
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user