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 {
nullable: true,
length: 1000,
})
imgpUrl: string;
imgp_url: string;
@Column('character varying', {
name: 'imgm_url',
nullable: true,
length: 1000,
})
imgmUrl: string;
imgm_url: string;
@Column('character varying', {
name: 'click_ref',
nullable: true,
length: 1000,
})
clickRef: string;
click_ref: string;
@Column('character varying', {
name: 'click_url',
......@@ -48,7 +48,7 @@ export class Ads {
nullable: true,
length: 1000,
})
implUrl: string;
impl_url: string;
@Column('integer', { name: 'impl', nullable: true, default: 0 })
impl: number;
......@@ -63,13 +63,13 @@ export class Ads {
name: 'update_time',
nullable: true,
})
updateTime: Date;
update_time: Date;
@Column('timestamp without time zone', {
name: 'create_time',
nullable: true,
})
createTime: Date;
create_time: Date;
@Column('character varying', {
name: 'type',
......
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_usernameb_index', ['usernameb'], {})
@Entity('battle_history', { schema: 'public' })
......@@ -39,7 +39,7 @@ export class BattleHistory {
precision: 53,
default: 0,
})
expaEx: number;
expa_ex: number;
@Column('double precision', {
name: 'expb_ex',
......@@ -47,7 +47,7 @@ export class BattleHistory {
precision: 53,
default: 0,
})
expbEx: number;
expb_ex: number;
@Column('double precision', {
name: 'pta',
......@@ -71,7 +71,7 @@ export class BattleHistory {
precision: 53,
default: 0,
})
ptaEx: number;
pta_ex: number;
@Column('double precision', {
name: 'ptb_ex',
......@@ -79,18 +79,18 @@ export class BattleHistory {
precision: 53,
default: 0,
})
ptbEx: number;
ptb_ex: number;
@Column('character varying', { name: 'type', length: 100 })
type: string;
@Column('timestamp without time zone', { name: 'start_time', nullable: true })
startTime: Date;
start_time: Date;
@PrimaryColumn('timestamp without time zone', {
name: 'end_time',
})
endTime: Date;
end_time: Date;
@Column('text', { name: 'winner', nullable: true })
winner: string;
......
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' })
export class VoteResult {
@PrimaryGeneratedColumn({ type: 'integer', name: 'id' })
id: number;
@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 })
optionId: string;
option_id: string;
@Column('character varying', { name: 'userid', unique: true, length: 100 })
userid: string;
@Column('character varying', { name: 'date_time', length: 100 })
dateTime: string;
date_time: string;
@Column('timestamp without time zone', {
name: 'create_time',
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