source: resTools_backend/backend/Migrations/20220915165432_CronJobs.cs@ 13f1472

Last change on this file since 13f1472 was 13f1472, checked in by Danilo <danilo.najkov@…>, 22 months ago

vip functionallity + menu fields + alergens filtering + google/fb login + email queueing

  • Property mode set to 100644
File size: 1.4 KB
Line 
1using System;
2using Microsoft.EntityFrameworkCore.Migrations;
3using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
4
5#nullable disable
6
7namespace backend.Migrations
8{
9 public partial class CronJobs : Migration
10 {
11 protected override void Up(MigrationBuilder migrationBuilder)
12 {
13 migrationBuilder.CreateTable(
14 name: "QueueItems",
15 columns: table => new
16 {
17 Id = table.Column<int>(type: "integer", nullable: false)
18 .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
19 Subject = table.Column<string>(type: "text", nullable: false),
20 Message = table.Column<string>(type: "text", nullable: false),
21 Reciptient = table.Column<string>(type: "text", nullable: false),
22 CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
23 Retries = table.Column<int>(type: "integer", nullable: false)
24 },
25 constraints: table =>
26 {
27 table.PrimaryKey("PK_QueueItems", x => x.Id);
28 });
29 }
30
31 protected override void Down(MigrationBuilder migrationBuilder)
32 {
33 migrationBuilder.DropTable(
34 name: "QueueItems");
35 }
36 }
37}
Note: See TracBrowser for help on using the repository browser.