mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Store supporters in the database
This commit is contained in:
parent
cb4beacf8a
commit
f9568ab37b
4 changed files with 89 additions and 17 deletions
14
backend/src/data/entities/Supporter.ts
Normal file
14
backend/src/data/entities/Supporter.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { Entity, Column, PrimaryColumn } from "typeorm";
|
||||
|
||||
@Entity("supporters")
|
||||
export class Supporter {
|
||||
@Column()
|
||||
@PrimaryColumn()
|
||||
user_id: string;
|
||||
|
||||
@Column()
|
||||
name: string;
|
||||
|
||||
@Column()
|
||||
amount: string | null;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue