mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			536 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			536 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { DatabaseSchema, Table } from 'src/sql-tools';
 | 
						|
 | 
						|
@Table({ name: 'table-1' })
 | 
						|
export class Table1 {}
 | 
						|
 | 
						|
export const description = 'should register a table with a specific name';
 | 
						|
export const schema: DatabaseSchema = {
 | 
						|
  databaseName: 'postgres',
 | 
						|
  schemaName: 'public',
 | 
						|
  functions: [],
 | 
						|
  enums: [],
 | 
						|
  extensions: [],
 | 
						|
  parameters: [],
 | 
						|
  overrides: [],
 | 
						|
  tables: [
 | 
						|
    {
 | 
						|
      name: 'table-1',
 | 
						|
      columns: [],
 | 
						|
      indexes: [],
 | 
						|
      triggers: [],
 | 
						|
      constraints: [],
 | 
						|
      synchronize: true,
 | 
						|
    },
 | 
						|
  ],
 | 
						|
  warnings: [],
 | 
						|
};
 |