mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-29 07:47:47 +01:00
first user is admin user, restrict signups
todo: actual admin interface (web and/or cli)
This commit is contained in:
@@ -90,7 +90,10 @@ export class Photo extends BaseEntity {
|
||||
@Column({ type: "timestamp", default: null })
|
||||
public editedAt: Date;
|
||||
|
||||
@ManyToOne(() => User, (user) => user.photos, { eager: true })
|
||||
@ManyToOne(() => User, (user) => user.photos, {
|
||||
eager: true,
|
||||
onDelete: "CASCADE",
|
||||
})
|
||||
public user: User;
|
||||
|
||||
public getFileName(): string {
|
||||
|
||||
Reference in New Issue
Block a user