using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SolarPower.Models
{
///
/// 基礎BaseModel
///
public class MyBaseModel
{
public int Id { get; set; } //編號
}
public class Created
{
private string createdAt;
public int CreatedBy { get; set; } //創建者
public string CreatedAt { get { return Convert.ToDateTime(createdAt).ToString("yyyy-MM-dd HH:mm:ss"); } set { createdAt = value; } } //創建時間
}
public class Updated : MyBaseModel
{
private string updatedAt;
public int UpdatedBy { get; set; } //修改者
public string UpdatedAt { get { return Convert.ToDateTime(updatedAt).ToString("yyyy-MM-dd HH:mm:ss"); } set { updatedAt = value; } } //修改時間
}
///
/// 當前登入的使用者基本資訊
///
public class MyUser
{
public int Id { get; set; } //編號
public MyCompany Company { get; set; } //公司資訊
}
///
/// 當前登入使用者的公司資訊
///
public class MyCompany
{
}
}