📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
import { Column, Entity, PrimaryColumn } from 'typeorm'
import { SaltRotationType } from '../salt.service'
@Entity()
export class Salt {
@PrimaryColumn('varchar', { length: 10 })
rotation: SaltRotationType
@Column('text')
salt: string
@Column({ type: 'timestamp' })
expiresAt: Date
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
created: Date
}