mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
LoginElopageBuys Entity model
This commit is contained in:
parent
0cd213516e
commit
5d7241da14
52
database/entity/0003-login_server_tables/LoginElopageBuys.ts
Normal file
52
database/entity/0003-login_server_tables/LoginElopageBuys.ts
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
||||||
|
|
||||||
|
@Entity('login_elopage_buys')
|
||||||
|
export class LoginElopageBuys extends BaseEntity {
|
||||||
|
@PrimaryGeneratedColumn('increment', { unsigned: true })
|
||||||
|
id: number
|
||||||
|
|
||||||
|
@Column({ name: 'elopage_user_id', nullable: false })
|
||||||
|
elopageUserId: number
|
||||||
|
|
||||||
|
@Column({ name: 'affiliate_program_id', nullable: false })
|
||||||
|
affiliateProgramId: number
|
||||||
|
|
||||||
|
@Column({ name: 'publisher_id', nullable: false })
|
||||||
|
publisherId: number
|
||||||
|
|
||||||
|
@Column({ name: 'order_id', nullable: false })
|
||||||
|
orderId: number
|
||||||
|
|
||||||
|
@Column({ name: 'product_id', nullable: false })
|
||||||
|
productId: number
|
||||||
|
|
||||||
|
@Column({ name: 'product_price', nullable: false })
|
||||||
|
productPrice: number
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
name: 'payer_email',
|
||||||
|
length: 255,
|
||||||
|
nullable: false,
|
||||||
|
charset: 'utf8',
|
||||||
|
collation: 'utf8_bin',
|
||||||
|
})
|
||||||
|
payerEmail: string
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
name: 'publisher_email',
|
||||||
|
length: 255,
|
||||||
|
nullable: false,
|
||||||
|
charset: 'utf8',
|
||||||
|
collation: 'utf8_bin',
|
||||||
|
})
|
||||||
|
publisherEmail: string
|
||||||
|
|
||||||
|
@Column({ nullable: false })
|
||||||
|
payed: boolean
|
||||||
|
|
||||||
|
@Column({ name: 'success_date', nullable: false })
|
||||||
|
successDate: Date
|
||||||
|
|
||||||
|
@Column({ length: 255, nullable: false })
|
||||||
|
event: string
|
||||||
|
}
|
||||||
1
database/entity/LoginElopageBuys.ts
Normal file
1
database/entity/LoginElopageBuys.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export { LoginElopageBuys } from './0003-login_server_tables/LoginElopageBuys'
|
||||||
@ -1,4 +1,5 @@
|
|||||||
import { Balance } from './Balance'
|
import { Balance } from './Balance'
|
||||||
|
import { LoginElopageBuys } from './LoginElopageBuys'
|
||||||
import { LoginEmailOptIn } from './LoginEmailOptIn'
|
import { LoginEmailOptIn } from './LoginEmailOptIn'
|
||||||
import { LoginUser } from './LoginUser'
|
import { LoginUser } from './LoginUser'
|
||||||
import { LoginUserBackup } from './LoginUserBackup'
|
import { LoginUserBackup } from './LoginUserBackup'
|
||||||
@ -12,9 +13,10 @@ import { UserTransaction } from './UserTransaction'
|
|||||||
|
|
||||||
export const entities = [
|
export const entities = [
|
||||||
Balance,
|
Balance,
|
||||||
|
LoginElopageBuys,
|
||||||
|
LoginEmailOptIn,
|
||||||
LoginUser,
|
LoginUser,
|
||||||
LoginUserBackup,
|
LoginUserBackup,
|
||||||
LoginEmailOptIn,
|
|
||||||
Migration,
|
Migration,
|
||||||
Transaction,
|
Transaction,
|
||||||
TransactionCreation,
|
TransactionCreation,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user