style: run eslint and prettier
All checks were successful
TrafficCue Server CI / check (push) Successful in 23s
All checks were successful
TrafficCue Server CI / check (push) Successful in 23s
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import { BaseEntity, Column, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
|
||||
import {
|
||||
BaseEntity,
|
||||
Column,
|
||||
Entity,
|
||||
ManyToOne,
|
||||
PrimaryGeneratedColumn,
|
||||
} from "typeorm";
|
||||
import { type User } from "./User";
|
||||
|
||||
@Entity()
|
||||
@@ -10,12 +16,12 @@ export class Review extends BaseEntity {
|
||||
user: User;
|
||||
|
||||
@Column({
|
||||
type: "float"
|
||||
type: "float",
|
||||
})
|
||||
latitude: number;
|
||||
|
||||
@Column({
|
||||
type: "float"
|
||||
type: "float",
|
||||
})
|
||||
longitude: number;
|
||||
|
||||
@@ -23,12 +29,12 @@ export class Review extends BaseEntity {
|
||||
rating: number;
|
||||
|
||||
@Column({
|
||||
type: "text"
|
||||
type: "text",
|
||||
})
|
||||
comment: string;
|
||||
|
||||
@Column({
|
||||
default: () => "NOW()"
|
||||
default: () => "NOW()",
|
||||
})
|
||||
created_at: Date;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
import { BaseEntity, Column, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
|
||||
import {
|
||||
BaseEntity,
|
||||
Column,
|
||||
Entity,
|
||||
ManyToOne,
|
||||
PrimaryGeneratedColumn,
|
||||
} from "typeorm";
|
||||
import { type User } from "./User";
|
||||
|
||||
@Entity()
|
||||
@@ -18,7 +24,7 @@ export class Saved extends BaseEntity {
|
||||
data: string;
|
||||
|
||||
@Column({
|
||||
default: () => "NOW()"
|
||||
default: () => "NOW()",
|
||||
})
|
||||
created_at: Date;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
import { BaseEntity, Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn } from "typeorm";
|
||||
import {
|
||||
BaseEntity,
|
||||
Column,
|
||||
Entity,
|
||||
OneToMany,
|
||||
PrimaryGeneratedColumn,
|
||||
} from "typeorm";
|
||||
import { type Review } from "./Review";
|
||||
import { type Saved } from "./Saved";
|
||||
|
||||
@@ -17,12 +23,12 @@ export class User extends BaseEntity {
|
||||
saved: Saved[];
|
||||
|
||||
@Column({
|
||||
default: () => "NOW()"
|
||||
default: () => "NOW()",
|
||||
})
|
||||
updated_at: Date;
|
||||
|
||||
@Column({
|
||||
default: () => "NOW()"
|
||||
default: () => "NOW()",
|
||||
})
|
||||
created_at: Date;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user