forked from noxious/server
Added ORM entities
This commit is contained in:
19
src/entities/world.ts
Normal file
19
src/entities/world.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { Entity, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
|
||||
@Entity()
|
||||
export class World {
|
||||
@PrimaryKey()
|
||||
date = new Date();
|
||||
|
||||
@Property()
|
||||
isRainEnabled = false;
|
||||
|
||||
@Property()
|
||||
rainPercentage = 0;
|
||||
|
||||
@Property()
|
||||
isFogEnabled = false;
|
||||
|
||||
@Property()
|
||||
fogDensity = 0;
|
||||
}
|
Reference in New Issue
Block a user