# Voting
## feat - Voting user - Halaman kontribusi - Halaman riwayat ### No issuue
This commit is contained in:
38
src/app_modules/vote/model/interface.ts
Normal file
38
src/app_modules/vote/model/interface.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
import { MODEL_USER } from "@/app_modules/home/model/interface";
|
||||
|
||||
export interface MODEL_VOTING {
|
||||
id: string;
|
||||
title: string;
|
||||
deskripsi: string;
|
||||
awalVote: Date;
|
||||
akhirVote: Date;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updateAt: Date;
|
||||
catatan: string;
|
||||
authorId: string;
|
||||
Author: MODEL_USER;
|
||||
Voting_DaftarNamaVote: MODEL_VOTING_DAFTAR_NAMA_VOTE[];
|
||||
}
|
||||
|
||||
export interface MODEL_VOTING_DAFTAR_NAMA_VOTE {
|
||||
id: string;
|
||||
value: string;
|
||||
jumlah: number;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
votingId: string;
|
||||
}
|
||||
|
||||
export interface MODEL_VOTE_KONTRIBUTOR {
|
||||
id: string;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
Author: MODEL_USER;
|
||||
votingId: string;
|
||||
Voting: MODEL_VOTING;
|
||||
Voting_DaftarNamaVote: MODEL_VOTING_DAFTAR_NAMA_VOTE;
|
||||
voting_DaftarNamaVoteId: string;
|
||||
}
|
||||
Reference in New Issue
Block a user