use sqids

This commit is contained in:
2025-09-17 22:45:50 -05:00
parent 4435c0baee
commit b5d57228f0
6 changed files with 42 additions and 23 deletions

View File

@@ -24,6 +24,7 @@ interface Build {
endTime?: Date;
status: Status;
pid?: number;
sqid?: string;
}
interface LogChunk {
@@ -51,7 +52,8 @@ class DB {
this.sequelize = new Sequelize(config.db || 'archery', config.user || 'archery', process.env.PASSWORD || config.password || '', {
host: config.host || 'localhost',
port: config.port || 5432,
dialect: 'postgres'
dialect: 'postgres',
logging: false
});
this.build = this.sequelize.define('builds', {
id: {