using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Configuration; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.Extensions.Configuration; /** * @overview Life of German Reallife - DatabaseContext.cs * @author VegaZ * @copyright (c) 2008 - 2018 Life of German */ namespace reallife_gamemode.Model { public partial class DatabaseContext : DbContext { public DatabaseContext(DbContextOptions options) :base (options) { } public DatabaseContext() { } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { base.OnConfiguring(optionsBuilder); optionsBuilder.UseMySql("Host=localhost;Port=3306;Database=gtav-devdb;Username=gtav-dev;Password=Test123"); } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); } //User public DbSet Users { get; set; } public DbSet UserVehicles { get; set; } public DbSet UserBankAccounts { get; set; } public DbSet Bans { get; set; } public DbSet Characters { get; set; } //Faction public DbSet Factions { get; set; } public DbSet FactionBankAccounts { get; set; } public DbSet FactionRanks { get; set; } public DbSet FactionVehicles { get; set; } //Shops public DbSet Shops { get; set; } //Logs //public DbSet BanLogs { get; set; } public DbSet BankAccountTransactionLogs { get; set; } public DbSet DeathLogs { get; set; } //Saves public DbSet Blips { get; set; } public DbSet GotoPoints { get; set; } public DbSet Markers { get; set; } public DbSet Peds { get; set; } public DbSet Pickups { get; set; } public DbSet TextLabels { get; set; } public DbSet Vehicles { get; set; } public DbSet ShopVehicles { get; set; } } }