Commit 092fadcd authored by nanahira's avatar nanahira

rename all entites to original name

parent 9acd774c
Pipeline #2466 passed with stages
in 39 seconds
This diff is collapsed.
...@@ -20,21 +20,21 @@ export class Ads { ...@@ -20,21 +20,21 @@ export class Ads {
nullable: true, nullable: true,
length: 1000, length: 1000,
}) })
imgpUrl: string; imgp_url: string;
@Column('character varying', { @Column('character varying', {
name: 'imgm_url', name: 'imgm_url',
nullable: true, nullable: true,
length: 1000, length: 1000,
}) })
imgmUrl: string; imgm_url: string;
@Column('character varying', { @Column('character varying', {
name: 'click_ref', name: 'click_ref',
nullable: true, nullable: true,
length: 1000, length: 1000,
}) })
clickRef: string; click_ref: string;
@Column('character varying', { @Column('character varying', {
name: 'click_url', name: 'click_url',
...@@ -48,7 +48,7 @@ export class Ads { ...@@ -48,7 +48,7 @@ export class Ads {
nullable: true, nullable: true,
length: 1000, length: 1000,
}) })
implUrl: string; impl_url: string;
@Column('integer', { name: 'impl', nullable: true, default: 0 }) @Column('integer', { name: 'impl', nullable: true, default: 0 })
impl: number; impl: number;
...@@ -63,13 +63,13 @@ export class Ads { ...@@ -63,13 +63,13 @@ export class Ads {
name: 'update_time', name: 'update_time',
nullable: true, nullable: true,
}) })
updateTime: Date; update_time: Date;
@Column('timestamp without time zone', { @Column('timestamp without time zone', {
name: 'create_time', name: 'create_time',
nullable: true, nullable: true,
}) })
createTime: Date; create_time: Date;
@Column('character varying', { @Column('character varying', {
name: 'type', name: 'type',
......
import { Column, Entity, Index, PrimaryColumn } from 'typeorm'; import { Column, Entity, Index, PrimaryColumn } from 'typeorm';
@Index('battle_history_end_time_index', ['endTime'], {}) @Index('battle_history_end_time_index', ['end_time'], {})
@Index('battle_history_usernamea_index', ['usernamea'], {}) @Index('battle_history_usernamea_index', ['usernamea'], {})
@Index('battle_history_usernameb_index', ['usernameb'], {}) @Index('battle_history_usernameb_index', ['usernameb'], {})
@Entity('battle_history', { schema: 'public' }) @Entity('battle_history', { schema: 'public' })
...@@ -39,7 +39,7 @@ export class BattleHistory { ...@@ -39,7 +39,7 @@ export class BattleHistory {
precision: 53, precision: 53,
default: 0, default: 0,
}) })
expaEx: number; expa_ex: number;
@Column('double precision', { @Column('double precision', {
name: 'expb_ex', name: 'expb_ex',
...@@ -47,7 +47,7 @@ export class BattleHistory { ...@@ -47,7 +47,7 @@ export class BattleHistory {
precision: 53, precision: 53,
default: 0, default: 0,
}) })
expbEx: number; expb_ex: number;
@Column('double precision', { @Column('double precision', {
name: 'pta', name: 'pta',
...@@ -71,7 +71,7 @@ export class BattleHistory { ...@@ -71,7 +71,7 @@ export class BattleHistory {
precision: 53, precision: 53,
default: 0, default: 0,
}) })
ptaEx: number; pta_ex: number;
@Column('double precision', { @Column('double precision', {
name: 'ptb_ex', name: 'ptb_ex',
...@@ -79,18 +79,18 @@ export class BattleHistory { ...@@ -79,18 +79,18 @@ export class BattleHistory {
precision: 53, precision: 53,
default: 0, default: 0,
}) })
ptbEx: number; ptb_ex: number;
@Column('character varying', { name: 'type', length: 100 }) @Column('character varying', { name: 'type', length: 100 })
type: string; type: string;
@Column('timestamp without time zone', { name: 'start_time', nullable: true }) @Column('timestamp without time zone', { name: 'start_time', nullable: true })
startTime: Date; start_time: Date;
@PrimaryColumn('timestamp without time zone', { @PrimaryColumn('timestamp without time zone', {
name: 'end_time', name: 'end_time',
}) })
endTime: Date; end_time: Date;
@Column('text', { name: 'winner', nullable: true }) @Column('text', { name: 'winner', nullable: true })
winner: string; winner: string;
......
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm'; import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
@Index('unique_index', ['optionId', 'userid', 'voteId'], { unique: true }) @Index('unique_index', ['option_id', 'userid', 'vote_id'], { unique: true })
@Entity('vote_result', { schema: 'public' }) @Entity('vote_result', { schema: 'public' })
export class VoteResult { export class VoteResult {
@PrimaryGeneratedColumn({ type: 'integer', name: 'id' }) @PrimaryGeneratedColumn({ type: 'integer', name: 'id' })
id: number; id: number;
@Column('character varying', { name: 'vote_id', unique: true, length: 100 }) @Column('character varying', { name: 'vote_id', unique: true, length: 100 })
voteId: string; vote_id: string;
@Column('character varying', { name: 'option_id', unique: true, length: 100 }) @Column('character varying', { name: 'option_id', unique: true, length: 100 })
optionId: string; option_id: string;
@Column('character varying', { name: 'userid', unique: true, length: 100 }) @Column('character varying', { name: 'userid', unique: true, length: 100 })
userid: string; userid: string;
@Column('character varying', { name: 'date_time', length: 100 }) @Column('character varying', { name: 'date_time', length: 100 })
dateTime: string; date_time: string;
@Column('timestamp without time zone', { @Column('timestamp without time zone', {
name: 'create_time', name: 'create_time',
nullable: true, nullable: true,
}) })
createTime: Date; create_time: Date;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment