44dfe1753b
+ Added session in the database and added session controller + Added session in authorize attribute/Login + Added Logout function * Refactor database models
31 lines
827 B
C#
31 lines
827 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Step.Model.DatabaseModels
|
|
{
|
|
[Table("function_access")]
|
|
|
|
public class FunctionAccessModel
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int FunctionAccessId { get; set; }
|
|
[Column("name")]
|
|
public string Name { get; set; }
|
|
[Column("write_level_min")]
|
|
public int WriteLevelMin { get; set; }
|
|
[Column("read_level_min")]
|
|
public int ReadLevelMin { get; set; }
|
|
[Column("area")]
|
|
public string Area { get; set; }
|
|
[Column("enabled")]
|
|
public bool Enabled { get; set; }
|
|
}
|
|
}
|