Created
August 25, 2019 09:05
-
-
Save gaetanlegac/ba376c4adebd2ccfd2f887aaef1b1702 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Model } from 'sequelize'; | |
import { Utilisateur, Contenu, Publicite } from '@/serveur/modeles'; | |
export default class Event extends Model { | |
public id!: number; | |
public date!: Date; | |
public type!: number; | |
public utilisateur_id!: number; | |
public utilisateur?: Utilisateur; | |
public ip!: string; | |
public contenu_id!: number; | |
public contenu?: Contenu; | |
public publicite_id!: number; | |
public publicite?: Publicite; | |
public hash?: string; | |
public static types = { | |
vue: 1, | |
clic: 2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment