Skip to content

Commit

Permalink
EF Core Models/Contexts for all the main database schemas. Core and R…
Browse files Browse the repository at this point in the history
…egion are split so you can query an instance that has only region tables (for instance if you've sharded the region databases and put them on the server with the regions.
  • Loading branch information
mdickson committed Feb 28, 2024
1 parent 7efd9e0 commit 7713f12
Show file tree
Hide file tree
Showing 81 changed files with 5,517 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Source/OpenSim.Data.Model/Core/AgentPref.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class AgentPref
{
public string PrincipalId { get; set; }

public string AccessPrefs { get; set; }

public double HoverHeight { get; set; }

public string Language { get; set; }

public bool? LanguageIsPublic { get; set; }

public int PermEveryone { get; set; }

public int PermGroup { get; set; }

public int PermNextOwner { get; set; }
}
29 changes: 29 additions & 0 deletions Source/OpenSim.Data.Model/Core/Asset.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class Asset
{
public string Name { get; set; }

public string Description { get; set; }

public sbyte AssetType { get; set; }

public bool Local { get; set; }

public bool Temporary { get; set; }

public byte[] Data { get; set; }

public string Id { get; set; }

public int? CreateTime { get; set; }

public int? AccessTime { get; set; }

public int AssetFlags { get; set; }

public string CreatorId { get; set; }
}
17 changes: 17 additions & 0 deletions Source/OpenSim.Data.Model/Core/Auth.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class Auth
{
public string Uuid { get; set; }

public string PasswordHash { get; set; }

public string PasswordSalt { get; set; }

public string WebLoginKey { get; set; }

public string AccountType { get; set; }
}
13 changes: 13 additions & 0 deletions Source/OpenSim.Data.Model/Core/Avatar.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class Avatar
{
public string PrincipalId { get; set; }

public string Name { get; set; }

public string Value { get; set; }
}
37 changes: 37 additions & 0 deletions Source/OpenSim.Data.Model/Core/Classified.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class Classified
{
public string Classifieduuid { get; set; }

public string Creatoruuid { get; set; }

public int Creationdate { get; set; }

public int Expirationdate { get; set; }

public string Category { get; set; }

public string Name { get; set; }

public string Description { get; set; }

public string Parceluuid { get; set; }

public int Parentestate { get; set; }

public string Snapshotuuid { get; set; }

public string Simname { get; set; }

public string Posglobal { get; set; }

public string Parcelname { get; set; }

public int Classifiedflags { get; set; }

public int Priceforlisting { get; set; }
}
11 changes: 11 additions & 0 deletions Source/OpenSim.Data.Model/Core/EstateGroup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class EstateGroup
{
public uint EstateId { get; set; }

public string Uuid { get; set; }
}
11 changes: 11 additions & 0 deletions Source/OpenSim.Data.Model/Core/EstateManager.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class EstateManager
{
public uint EstateId { get; set; }

public string Uuid { get; set; }
}
11 changes: 11 additions & 0 deletions Source/OpenSim.Data.Model/Core/EstateMap.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class EstateMap
{
public string RegionId { get; set; }

public int EstateId { get; set; }
}
63 changes: 63 additions & 0 deletions Source/OpenSim.Data.Model/Core/EstateSetting.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class EstateSetting
{
public uint EstateId { get; set; }

public string EstateName { get; set; }

public sbyte AbuseEmailToEstateOwner { get; set; }

public sbyte DenyAnonymous { get; set; }

public sbyte ResetHomeOnTeleport { get; set; }

public sbyte FixedSun { get; set; }

public sbyte DenyTransacted { get; set; }

public sbyte BlockDwell { get; set; }

public sbyte DenyIdentified { get; set; }

public sbyte AllowVoice { get; set; }

public sbyte UseGlobalTime { get; set; }

public int PricePerMeter { get; set; }

public sbyte TaxFree { get; set; }

public sbyte AllowDirectTeleport { get; set; }

public int RedirectGridX { get; set; }

public int RedirectGridY { get; set; }

public uint ParentEstateId { get; set; }

public double SunPosition { get; set; }

public sbyte EstateSkipScripts { get; set; }

public float BillableFactor { get; set; }

public sbyte PublicAccess { get; set; }

public string AbuseEmail { get; set; }

public string EstateOwner { get; set; }

public sbyte DenyMinors { get; set; }

public sbyte AllowLandmark { get; set; }

public sbyte AllowParcelChanges { get; set; }

public sbyte AllowSetHome { get; set; }

public sbyte AllowEnviromentOverride { get; set; }
}
11 changes: 11 additions & 0 deletions Source/OpenSim.Data.Model/Core/EstateUser.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class EstateUser
{
public uint EstateId { get; set; }

public string Uuid { get; set; }
}
21 changes: 21 additions & 0 deletions Source/OpenSim.Data.Model/Core/Estateban.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class Estateban
{
public uint EstateId { get; set; }

public string BannedUuid { get; set; }

public string BannedIp { get; set; }

public string BannedIpHostMask { get; set; }

public string BannedNameMask { get; set; }

public string BanningUuid { get; set; }

public int BanTime { get; set; }
}
15 changes: 15 additions & 0 deletions Source/OpenSim.Data.Model/Core/Friend.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class Friend
{
public string PrincipalId { get; set; }

public string Friend1 { get; set; }

public string Flags { get; set; }

public string Offered { get; set; }
}
23 changes: 23 additions & 0 deletions Source/OpenSim.Data.Model/Core/Fsasset.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class Fsasset
{
public string Id { get; set; }

public string Name { get; set; }

public string Description { get; set; }

public int Type { get; set; }

public string Hash { get; set; }

public int CreateTime { get; set; }

public int AccessTime { get; set; }

public int AssetFlags { get; set; }
}
23 changes: 23 additions & 0 deletions Source/OpenSim.Data.Model/Core/GloebitSubscription.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class GloebitSubscription
{
public string SubscriptionId { get; set; }

public string ObjectId { get; set; }

public string AppKey { get; set; }

public string GlbApiUrl { get; set; }

public bool Enabled { get; set; }

public string ObjectName { get; set; }

public string Description { get; set; }

public DateTime CTime { get; set; }
}
61 changes: 61 additions & 0 deletions Source/OpenSim.Data.Model/Core/GloebitTransaction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
using System;
using System.Collections.Generic;

namespace OpenSim.Data.Model.Core;

public partial class GloebitTransaction
{
public string TransactionId { get; set; }

public string PayerId { get; set; }

public string PayerName { get; set; }

public string PayeeId { get; set; }

public string PayeeName { get; set; }

public int Amount { get; set; }

public int TransactionType { get; set; }

public string TransactionTypeString { get; set; }

public bool IsSubscriptionDebit { get; set; }

public string SubscriptionId { get; set; }

public string PartId { get; set; }

public string PartName { get; set; }

public string PartDescription { get; set; }

public string CategoryId { get; set; }

public int? SaleType { get; set; }

public bool Submitted { get; set; }

public bool ResponseReceived { get; set; }

public bool ResponseSuccess { get; set; }

public string ResponseStatus { get; set; }

public string ResponseReason { get; set; }

public int PayerEndingBalance { get; set; }

public bool Enacted { get; set; }

public bool Consumed { get; set; }

public bool Canceled { get; set; }

public DateTime CTime { get; set; }

public DateTime? EnactedTime { get; set; }

public DateTime? FinishedTime { get; set; }
}
Loading

0 comments on commit 7713f12

Please sign in to comment.