Use Postgresql, add db run params, npgsql logging adapter and empty models
This commit is contained in:
parent
3425896c0b
commit
d2f31d0730
24 changed files with 252 additions and 39 deletions
7
Geekbot.net/Database/Models/GuildSettingsModel.cs
Normal file
7
Geekbot.net/Database/Models/GuildSettingsModel.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Geekbot.net.Database.Models
|
||||
{
|
||||
public class GuildSettingsModel
|
||||
{
|
||||
|
||||
}
|
||||
}
|
7
Geekbot.net/Database/Models/GuildsModel.cs
Normal file
7
Geekbot.net/Database/Models/GuildsModel.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Geekbot.net.Database.Models
|
||||
{
|
||||
public class GuildsModel
|
||||
{
|
||||
|
||||
}
|
||||
}
|
7
Geekbot.net/Database/Models/KarmaModel.cs
Normal file
7
Geekbot.net/Database/Models/KarmaModel.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Geekbot.net.Database.Models
|
||||
{
|
||||
public class KarmaModel
|
||||
{
|
||||
|
||||
}
|
||||
}
|
28
Geekbot.net/Database/Models/QuoteModel.cs
Normal file
28
Geekbot.net/Database/Models/QuoteModel.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Geekbot.net.Database.Models
|
||||
{
|
||||
public class QuoteModel
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public int InternalId { get; set; }
|
||||
|
||||
[Required]
|
||||
public long GuildId { get; set; }
|
||||
|
||||
[Required]
|
||||
public long UserId { get; set; }
|
||||
|
||||
[Required]
|
||||
[DataType(DataType.DateTime)]
|
||||
public DateTime Time { get; set; }
|
||||
|
||||
public string Quote { get; set; }
|
||||
|
||||
public string Image { get; set; }
|
||||
}
|
||||
}
|
7
Geekbot.net/Database/Models/RoleSelfServiceModel.cs
Normal file
7
Geekbot.net/Database/Models/RoleSelfServiceModel.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Geekbot.net.Database.Models
|
||||
{
|
||||
public class RoleSelfServiceModel
|
||||
{
|
||||
|
||||
}
|
||||
}
|
7
Geekbot.net/Database/Models/ShipsModel.cs
Normal file
7
Geekbot.net/Database/Models/ShipsModel.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Geekbot.net.Database.Models
|
||||
{
|
||||
public class ShipsModel
|
||||
{
|
||||
|
||||
}
|
||||
}
|
7
Geekbot.net/Database/Models/SlapsModel.cs
Normal file
7
Geekbot.net/Database/Models/SlapsModel.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Geekbot.net.Database.Models
|
||||
{
|
||||
public class SlapsModel
|
||||
{
|
||||
|
||||
}
|
||||
}
|
7
Geekbot.net/Database/Models/UserModel.cs
Normal file
7
Geekbot.net/Database/Models/UserModel.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Geekbot.net.Database.Models
|
||||
{
|
||||
public class UserModel
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue