27 lines
451 B
TypeScript
27 lines
451 B
TypeScript
export interface Post {
|
|
_id: string
|
|
address: string
|
|
date: Date
|
|
notes: string
|
|
photo: string
|
|
status: StatusEnum
|
|
userID: string
|
|
}
|
|
|
|
export enum StatusEnum {
|
|
Created = 'created',
|
|
Pending = 'pending',
|
|
Denied = 'denied',
|
|
Approved = 'approved'
|
|
}
|
|
|
|
export const initialState: Post = {
|
|
_id: "",
|
|
address: "",
|
|
date: new Date(),
|
|
notes: "",
|
|
photo: "",
|
|
status: StatusEnum.Created,
|
|
userID: ""
|
|
}
|