zappyzep/backend/src/data/entities/Supporter.ts

15 lines
256 B
TypeScript
Raw Normal View History

import { Column, Entity, PrimaryColumn } from "typeorm";
2020-05-28 01:29:51 +03:00
@Entity("supporters")
export class Supporter {
@Column()
@PrimaryColumn()
user_id: string;
@Column()
name: string;
@Column({ type: String, nullable: true })
2020-05-28 01:29:51 +03:00
amount: string | null;
}