3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-19 08:05:01 +00:00

Store supporters in the database

This commit is contained in:
Dragory 2020-05-28 01:29:51 +03:00
parent d9ada892a8
commit 78ae7b840c
4 changed files with 89 additions and 17 deletions

View 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;
}