Add project files.

This commit is contained in:
Sergio Matias Urquin
2025-04-29 18:39:57 -06:00
parent 116793710f
commit 6358f5f199
110 changed files with 4484 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
namespace Core.Blueprint.Domain.Entities
{
public abstract class AbsEntity
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
[BsonElement("_id")]
public string? Id { get; set; }
public char StatusCode { get; set; } = 'P';
}
}

View File

@@ -0,0 +1,7 @@
namespace Core.Blueprint.Domain.Entities
{
public abstract class AbsFileEntity : AbsEntity
{
public byte[] FileContent { get; set; } = [];
}
}

View File

@@ -0,0 +1,15 @@
using Core.Blueprint.Domain.Shared;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace Core.Blueprint.Domain.Entities
{
[CollectionAttributeName("blueprint")]
public class BlueprintCollection : AbsEntity
{
public Guid CorrelationId { get; set; }
public DateTime Created { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
namespace Core.Blueprint.Domain.Entities
{
public class SampleImage : AbsFileEntity
{
}
}

View File

@@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace Core.Blueprint.Domain.Entities
{
[Table("Blueprint_Test01")]
public class SampleItem : AbsEntity
{
public Guid Id { get; set; } = Guid.NewGuid();
public string TestName { get; set; } = string.Empty;
public char StatusCode { get; set; } = 'P';
public int NumValue { get; set; } = 0;
public DateTime CreatedAt { get; set; } = DateTime.Now;
}
}
//User - Project

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Core.Blueprint.Domain.Entities
{
public class Secret
{
public string? Value { get; set; }
}
}